/* ====================================================================
   HEXK Perfect Responsive Design System
   완벽한 모바일 & 태블릿 최적화 (320px - 1400px)
   PC Version: 1400px+ (원본 유지)
   ==================================================================== */

/* ====================================================================
   텍스트 버전 전환 시스템 (PC/모바일 분리)
   ==================================================================== */

/* 기본 상태: PC 버전 */
.hero-subtitle-mobile,
.stats-title-mobile,
.grid-header-title-mobile,
.grid-card-title-mobile,
.grid-card-content-mobile,
.slide-card-title-mobile,
.slide-card-description-mobile {
  display: none !important;
}

.hero-subtitle-desktop,
.stats-title-desktop,
.grid-header-title-desktop,
.grid-card-title-desktop,
.grid-card-content-desktop,
.slide-card-title-desktop,
.slide-card-description-desktop {
  display: block !important;
}

/* hero-subtitle: 1399px 이하에서 모바일 버전 */
@media (max-width: 1399px) {
  .hero-subtitle-desktop {
    display: none !important;
  }
  
  .hero-subtitle-mobile {
    display: block !important;
  }
}

/* stats-title & grid-section: 1024px 이하에서 모바일 버전 */
@media (max-width: 1024px) {
  .stats-title-desktop,
  .grid-header-title-desktop,
  .grid-card-title-desktop,
  .grid-card-content-desktop {
    display: none !important;
  }
  
  .stats-title-mobile,
  .grid-header-title-mobile,
  .grid-card-title-mobile,
  .grid-card-content-mobile {
    display: block !important;
  }
}

/* ====================================================================
   기본 모바일 최적화 - 모든 화면에 적용
   ==================================================================== */
@media (max-width: 1399px) {
  /* 오버플로우 방지 */
  body {
    overflow-x: hidden;
  }
  
  /* 전체 컨테이너 최적화 */
  .content-wrapper {
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Hero Section 오버플로우 수정 */
  .hero-section {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* 모든 섹션 패딩 조정 */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Hero Sections - 통일된 높이 */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 550px;
  }
}

/* ====================================================================
   BREAKPOINT: 1399px - Large Desktop
   ====================================================================== */
@media (max-width: 1399px) and (min-width: 1281px) {
  .header-container,
  .hero-content,
  .stats-container,
  .grid-container,
  .footer-container {
    max-width: 1200px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .slide-container {
    max-width: 1200px;
    padding: 0 4rem;
  }
}

/* ====================================================================
   BREAKPOINT: 1399px - Large Desktop Transition
   ==================================================================== */
@media (max-width: 1399px) {
  :root {
    --space-section: 7rem;
    --space-container: 1.5rem;
  }
  
  .header-container,
  .hero-content,
  .slide-container,
  .stats-container,
  .grid-container,
  .footer-container {
    max-width: 1200px;
  }
  
  .hero-title {
    max-width: 900px;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
  }
  
  .hero-title-logo {
    height: 180px;
    width: 200px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
  }
  
  .slide-container {
    padding: 0 5rem;
  }
  
  .slide-card {
    padding: 2.5rem;
    gap: 2.5rem;
  }
  
  .slide-card-image {
    min-height: 280px;
    font-size: 2.8rem;
  }
  
  .slide-card-title {
    font-size: 1.7rem;
  }
  
  /* Hero Sections Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 550px;
  }
}

/* ====================================================================
   BREAKPOINT: 1280px - Standard Desktop
   ==================================================================== */
@media (max-width: 1280px) {
  :root {
    --space-section: 6.5rem;
  }
  
  header {
    padding: 1rem 1.5rem;
  }
  
  .logo img {
    height: 65px;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1rem;
    padding: 0.4rem 0.9rem;
  }
  
  .hero-title {
    gap: 2rem;
    grid-template-columns: 180px 1fr;
  }
  
  .hero-title-logo {
    height: 160px;
    width: 180px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
  
  .stats-title {
    font-size: 2.3rem;
    flex: 0 0 260px;
  }
  
  .stat-card {
    padding: 2.2rem;
  }
  
  .stat-card-value {
    font-size: 2.3rem;
  }
  
  .grid-header h2 {
    font-size: 2.8rem;
  }
  
  .grid-full {
    padding: 2.7rem;
  }
  
  .grid-card {
    padding: 2.2rem;
  }
  
  .grid-card-title {
    font-size: 1.4rem;
  }
  
  .grid-card-content {
    font-size: 1.05rem;
  }
  
  /* Hero Sections Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 500px;
  }
}

/* ====================================================================
   BREAKPOINT: 1120px - Small Desktop / Large Tablet
   ==================================================================== */
@media (max-width: 1120px) {
  :root {
    --space-section: 6rem;
  }
  
  .nav-menu {
    gap: 1.2rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-content {
    width: 100%;
    padding: 5rem 2rem;
  }
  
  .hero-title {
    grid-template-columns: 170px 1fr;
    gap: 2rem;
    max-width: 800px;
  }
  
  .hero-title-logo {
    height: 150px;
    width: 170px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2.8rem;
  }
  
  .hero-title-line2 {
    min-height: 3.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    max-width: 650px;
  }
  
  .slide-header h2 {
    font-size: 2.6rem;
  }
  
  .slide-container {
    padding: 0 4.5rem;
  }
  
  .slide-card {
    padding: 2.2rem;
    gap: 2.2rem;
  }
  
  .slide-card-image {
    min-height: 250px;
    font-size: 2.5rem;
  }
  
  .slide-card-title {
    font-size: 1.6rem;
  }
  
  .stats-container {
    gap: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
  }
  
  .grid-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    width: 100%;
  }
  
  .grid-row .grid-card {
    max-width: 100%;
    width: 100%;
    grid-column: auto;
    margin: 0;
  }
  
  /* Hero Sections Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 480px;
  }
}

/* ====================================================================
   BREAKPOINT: 1024px - Tablet Landscape
   ==================================================================== */
@media (max-width: 1024px) {
  :root {
    --space-section: 5.5rem;
    --space-container: 1.5rem;
  }
  
  header {
    padding: 0.9rem 1.5rem;
  }
  
  .logo img {
    height: 60px;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
  }
  
  .hero-content {
    padding: 4.5rem 1.5rem;
  }
  
  .hero-title {
    grid-template-columns: 160px 1fr;
    gap: 1.8rem;
    max-width: 750px;
  }
  
  .hero-title-logo {
    height: 140px;
    width: 160px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2.6rem;
  }
  
  .hero-title-line2 {
    min-height: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
  }
  
  .hero-buttons {
    gap: 1.2rem;
  }
  
  .hero-social-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  
  .slide-section {
    padding: 5.5rem 0;
  }
  
  .slide-header h2 {
    font-size: 2.4rem;
  }
  
  .slide-container {
    padding: 0 4rem;
  }
  
  .slide-card {
    padding: 2rem;
    gap: 2rem;
  }
  
  .slide-card-image {
    min-height: 230px;
    font-size: 2.3rem;
  }
  
  .slide-card-title {
    font-size: 1.5rem;
  }
  
  .slide-card-description {
    font-size: 0.92rem;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3.5rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 46px;
    height: 46px;
    font-size: 1.1rem;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 3.5rem;
  }
  
  .slide-button:last-child {
    right: 3.5rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  .stats-section {
    padding: 5.5rem 0;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 2.5rem;
    max-width: 100%;
    padding: 0 2rem !important;
  }
  
  .stats-title {
    position: static;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .stats-title-mobile {
    font-size: 2.3rem !important;
    text-align: center;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    width: 100%;
  }
  
  .stat-card {
    padding: 2rem;
  }
  
  .stat-card-title {
    font-size: 1.1rem;
  }
  
  .stat-card-description {
    font-size: 1rem;
  }
  
  .stat-card-value {
    font-size: 2.2rem;
  }
  
  .grid-section {
    padding: 5.5rem 0;
  }
  
  .grid-header-title-mobile {
    font-size: 2.3rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.3rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  .grid-full {
    padding: 2.5rem;
  }
  
  .grid-card {
    padding: 2rem;
  }
  
  .grid-row {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    width: 100%;
  }
  
  .grid-row .grid-card {
    max-width: 100%;
    width: 100%;
  }
  
  .grid-card-title {
    font-size: 1.35rem;
  }
  
  .grid-card-content {
    font-size: 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
  
  .footer-info {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  /* Hero Sections Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 450px;
  }
}

/* ====================================================================
   BREAKPOINT: 900px - Tablet Portrait
   ==================================================================== */
@media (max-width: 900px) {
  :root {
    --space-section: 5rem;
  }
  
  header {
    padding: 0.85rem 1.2rem;
  }
  
  .logo img {
    height: 55px;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.88rem;
  }
  
  .hero-content {
    padding: 4rem 1.5rem;
  }
  
  .hero-title {
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
  }
  
  .hero-title-logo {
    height: 130px;
    width: 150px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2.4rem;
  }
  
  .hero-title-line2 {
    min-height: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    max-width: 550px;
  }
  
  .btn {
    padding: 0.75rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .slide-header h2 {
    font-size: 2.2rem;
  }
  
  .slide-container {
    padding: 0 3.5rem;
  }
  
  .slide-card {
    padding: 1.8rem;
    gap: 1.8rem;
  }
  
  .slide-card-image {
    min-height: 200px;
    font-size: 2.2rem;
  }
  
  .slide-card-title {
    font-size: 1.4rem;
  }
  
  .slide-card-description {
    font-size: 0.9rem;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 3rem;
  }
  
  .slide-button:last-child {
    right: 3rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  .stats-container {
    max-width: 100%;
    padding: 0 1.5rem !important;
  }
  
  .stats-title-mobile {
    font-size: 2.1rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .stats-grid {
    width: 100%;
  }
  
  .stat-card {
    padding: 1.8rem;
  }
  
  .stat-card-value {
    font-size: 2.1rem;
  }
  
  .grid-header-title-mobile {
    font-size: 2.1rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.25rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.93rem !important;
    line-height: 1.6 !important;
  }
  
  .grid-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
  }
  
  .grid-row .grid-card {
    max-width: 100%;
    width: 100%;
  }
  
  /* Hero Sections Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: 420px;
  }
}

/* ====================================================================
   BREAKPOINT: 768px - 완벽한 모바일 최적화
   ==================================================================== */
@media (max-width: 768px) {
  /* 전체 오버플로우 방지 */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
  }
  
  /* Header - Mobile Navigation */
  header {
    padding: 0.8rem 1rem;
    width: 100%;
  }
  
  .header-container {
    max-width: 100%;
    padding: 0;
  }
  
  .logo img {
    height: 50px;
  }
  
  .menu-toggle {
    display: flex !important;
    z-index: 1001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
  }
  
  nav {
    gap: 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    gap: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 153, 34, 0.1);
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 1rem;
    font-size: 0.95rem;
    border: none !important;
    width: 100%;
  }
  
  .dropdown-content {
    position: static;
    display: none;
    border: none;
    margin-top: 0;
    background: rgba(240, 255, 240, 0.8);
    box-shadow: none;
    width: 100%;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
  
  .dropdown-content a {
    padding: 0.8rem 1.5rem;
    font-size: 0.88rem;
  }
  
  /* Main Content */
  main {
    padding: 0 !important;
    margin-top: 70px;
    width: 100%;
  }
  
  /* Hero Section - 완벽한 모바일 레이아웃 */
  .hero-section {
    min-height: auto;
    padding: 3rem 1rem !important;
    width: 100% !important;
    margin: 0 !important;
  }
  
  /* Hero Sections - Mobile Height */
  .learn-hero,
  .tutorials-hero,
  .hexkey-hero,
  .pool-hero,
  .keymap-hero {
    height: auto;
    padding: 3rem 1rem !important;
  }
  
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto;
  }
  
  .hero-title {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
  }
  
  .hero-title-logo {
    height: 120px;
    width: 140px;
    margin: 0 auto !important;
  }
  
  .hero-title-text {
    text-align: center !important;
    width: 100% !important;
    padding: 0 !important;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2.2rem !important;
    text-align: center !important;
    white-space: normal;
  }
  
  .hero-title-line2 {
    min-height: 2.5rem;
  }
  
  /* 모바일 텍스트 최적화 */
  .hero-subtitle-mobile {
    font-size: 1.05rem !important;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    padding: 0 0.5rem;
    text-align: center;
  }
  
  .hero-buttons {
    flex-direction: column !important;
    gap: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.5rem;
    margin: 0 0 2.5rem 0 !important;
  }
  
  .hero-buttons .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1rem;
    box-sizing: border-box;
  }
  
  .hero-social {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.5rem;
  }
  
  .hero-social-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    flex-shrink: 0;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
  }
  
  /* Slide Section - 모바일 최적화 */
  .slide-section {
    padding: 3rem 0;
    width: 100%;
  }
  
  .slide-header {
    padding: 0 1rem;
  }
  
  .slide-header h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .slide-container {
    max-width: 100%;
    padding: 0 1rem !important;
  }
  
  .slide-wrapper {
    width: 100%;
    padding: 50px 0;
  }
  
  .slide-card {
    flex-direction: column !important;
    padding: 1.5rem;
    gap: 1.5rem;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .slide-card-image {
    width: 100% !important;
    min-height: 140px;
    font-size: 2rem;
  }
  
  .slide-card-content {
    width: 100% !important;
  }
  
  /* Slide Card 텍스트 버전 전환 */
  .slide-card-title-desktop,
  .slide-card-description-desktop {
    display: none !important;
  }
  
  .slide-card-title-mobile,
  .slide-card-description-mobile {
    display: block !important;
  }
  
  .slide-card-title {
    font-size: 1.35rem;
  }
  
  .slide-card-title-mobile {
    font-size: 1.35rem !important;
  }
  
  .slide-card-description {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  
  .slide-card-description-mobile {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }
  
  .slide-card-button {
    width: 100%;
    text-align: center;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 3rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 3rem;
  }
  
  .slide-button:last-child {
    right: 3rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  /* Stats Section - 모바일 그리드 */
  .stats-section {
    padding: 3rem 0;
    width: 100%;
  }
  
  .stats-container {
    max-width: 100%;
    padding: 0 1rem !important;
  }
  
  .stats-title-mobile {
    font-size: 2rem !important;
    text-align: center;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    width: 100%;
  }
  
  .stat-card {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .stat-card-title {
    font-size: 1rem;
  }
  
  .stat-card-description {
    font-size: 0.9rem;
  }
  
  .stat-card-value {
    font-size: 1.9rem;
  }
  
  .stat-card-note {
    font-size: 0.82rem;
  }
  
  /* Grid Section - 모바일 최적화 */
  .grid-section {
    padding: 3rem 0;
    width: 100%;
  }
  
  .grid-header {
    padding: 0 1rem;
    margin-bottom: 2rem;
  }
  
  .grid-header-title-mobile {
    font-size: 2rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.2rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
  }
  
  .grid-container {
    max-width: 100%;
    padding: 0 1rem !important;
    gap: 1.3rem;
  }
  
  .grid-full {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .grid-row {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1.3rem;
    width: 100%;
  }
  
  .grid-card {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .grid-card-title {
    font-size: 1.25rem;
  }
  
  .grid-card-content {
    font-size: 0.92rem;
    line-height: 1.5;
  }
  
  .grid-card-link {
    font-size: 0.82rem;
    display: inline-flex;
  }
  
  /* Footer - 완벽한 모바일 레이아웃 */
  footer {
    padding: 2rem 1rem 1.5rem;
    width: 100%;
  }
  
  .footer-container {
    max-width: 100%;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    padding: 0 !important;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .footer-logo img {
    max-width: 80px;
    height: auto;
  }
  
  .footer-logo p {
    font-size: 0.82rem !important;
  }
  
  .footer-links {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    width: 100%;
  }
  
  .footer-column {
    width: 100%;
  }
  
  .footer-column h4 {
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
  }
  
  .footer-column ul {
    width: 100%;
  }
  
  .footer-column ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-column ul li a {
    font-size: 0.82rem;
  }
  
  .footer-info {
    flex-direction: column !important;
    gap: 1.5rem;
    width: 100%;
    align-items: flex-start;
  }
  
  .footer-email {
    font-size: 0.82rem;
    width: 100%;
  }
  
  .footer-social {
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  
  .social-icon {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  
  .footer-lang {
    width: 100%;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
  }
}

/* ====================================================================
   BREAKPOINT: 640px - Mobile Landscape
   ==================================================================== */
@media (max-width: 640px) {
  :root {
    --space-section: 4rem;
  }
  
  .hero-content {
    padding: 3rem 1rem;
  }
  
  .hero-title-logo {
    height: 110px;
    width: 130px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 2rem;
  }
  
  .hero-title-line2 {
    min-height: 2.3rem;
  }
  
  .hero-subtitle-mobile {
    font-size: 1rem !important;
  }
  
  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.88rem;
  }
  
  .slide-section {
    padding: 4rem 0;
  }
  
  .slide-header h2 {
    font-size: 1.9rem;
  }
  
  .slide-container {
    padding: 0 2.5rem;
  }
  
  .slide-card {
    padding: 1.4rem;
  }
  
  .slide-card-image {
    min-height: 140px;
    font-size: 1.9rem;
  }
  
  .slide-card-title {
    font-size: 1.3rem;
  }
  
  .slide-card-title-mobile {
    font-size: 1.3rem !important;
  }
  
  .slide-card-description {
    font-size: 0.86rem;
  }
  
  .slide-card-description-mobile {
    font-size: 0.86rem !important;
    line-height: 1.6 !important;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2.5rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 2.5rem;
  }
  
  .slide-button:last-child {
    right: 2.5rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  .stats-section,
  .grid-section {
    padding: 4rem 0;
  }
  
  .grid-header-title-mobile {
    font-size: 2rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.15rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
  }
  
  .stat-card,
  .grid-card {
    padding: 1.6rem;
  }
  
  .stat-card-value {
    font-size: 1.9rem;
  }
  
  .grid-full {
    padding: 1.8rem;
  }
}

/* ====================================================================
   BREAKPOINT: 480px - 소형 모바일 완벽 최적화
   ==================================================================== */
@media (max-width: 480px) {
  /* 헤더 */
  header {
    padding: 0.7rem 0.8rem;
  }
  
  .logo img {
    height: 44px;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0.8rem !important;
  }
  
  .hero-title {
    gap: 1rem !important;
  }
  
  .hero-title-logo {
    height: 100px !important;
    width: 120px !important;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 1.85rem !important;
  }
  
  .hero-title-line2 {
    min-height: 2.1rem !important;
  }
  
  .hero-subtitle-mobile {
    font-size: 0.8rem !important;
    line-height: 1.65;
    padding: 0 0.3rem;
    text-align: center;
    font-weight: 400;
  }
  
  .btn {
    padding: 0.75rem 1.4rem;
    font-size: 0.85rem;
  }
  
  .hero-social-icon {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
  }
  
  /* Slide Section */
  .slide-section {
    padding: 2.5rem 0;
  }
  
  .slide-header h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem;
  }
  
  .slide-container {
    padding: 0 0.8rem !important;
  }
  
  .slide-card {
    padding: 1.2rem !important;
    gap: 1.2rem !important;
  }
  
  .slide-card-image {
    min-height: 110px !important;
    font-size: 1.7rem !important;
  }
  
  .slide-card-title {
    font-size: 1.2rem !important;
  }
  
  .slide-card-title-mobile {
    font-size: 1.2rem !important;
  }
  
  .slide-card-description {
    font-size: 0.82rem !important;
    line-height: 1.5;
  }
  
  .slide-card-description-mobile {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
  
  .slide-card-button {
    padding: 0.5rem 1rem !important;
    font-size: 0.78rem !important;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 2rem;
  }
  
  .slide-button:last-child {
    right: 2rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  /* Stats Section */
  .stats-section {
    padding: 2.5rem 0;
  }
  
  .stats-container {
    padding: 0 0.8rem !important;
  }
  
  .stats-title-mobile {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .stats-grid {
    gap: 0.9rem !important;
  }
  
  .stat-card {
    padding: 1.3rem !important;
  }
  
  .stat-card-title {
    font-size: 0.95rem !important;
  }
  
  .stat-card-description {
    font-size: 0.86rem !important;
  }
  
  .stat-card-value {
    font-size: 1.75rem !important;
  }
  
  .stat-card-note {
    font-size: 0.78rem !important;
  }
  
  /* Grid Section */
  .grid-section {
    padding: 2.5rem 0;
  }
  
  .grid-header {
    padding: 0 0.8rem !important;
    margin-bottom: 1.5rem;
  }
  
  .grid-header-title-mobile {
    font-size: 1.8rem !important;
  }
  
  .grid-container {
    padding: 0 0.8rem !important;
    gap: 1.2rem !important;
  }
  
  .grid-full {
    padding: 1.4rem !important;
  }
  
  .grid-card {
    padding: 1.3rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.18rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }
  
  .grid-card-link {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.85rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0.8rem 1.2rem;
  }
  
  .footer-logo img {
    max-width: 75px !important;
  }
  
  .footer-logo p {
    font-size: 0.78rem !important;
  }
  
  .footer-column h4 {
    font-size: 0.88rem !important;
  }
  
  .footer-column ul li a {
    font-size: 0.78rem !important;
  }
  
  .footer-email {
    font-size: 0.78rem !important;
  }
  
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }
  
  .footer-bottom {
    font-size: 0.72rem !important;
  }
}

/* ====================================================================
   BREAKPOINT: 375px - iPhone SE, Modern Small Phones
   ==================================================================== */
@media (max-width: 375px) {
  :root {
    --space-section: 3rem;
  }
  
  header {
    padding: 0.65rem 0.9rem;
  }
  
  .logo img {
    height: 42px;
  }
  
  .hero-content {
    padding: 2.2rem 0.9rem;
  }
  
  .hero-title-logo {
    height: 95px;
    width: 115px;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 1.75rem;
  }
  
  .hero-title-line2 {
    min-height: 2rem;
  }
  
  .hero-subtitle-mobile {
    font-size: 0.7rem !important;
    text-align: center;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.82rem;
  }
  
  .hero-social-icon {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
  }
  
  .slide-section {
    padding: 3rem 0;
  }
  
  .slide-header h2 {
    font-size: 1.7rem;
  }
  
  .slide-container {
    padding: 0 2rem;
  }
  
  .slide-card {
    padding: 1.2rem;
  }
  
  .slide-card-image {
    min-height: 110px;
    font-size: 1.7rem;
  }
  
  .slide-card-title {
    font-size: 1.2rem;
  }
  
  .slide-card-description {
    font-size: 0.82rem;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1.5rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 1.5rem;
  }
  
  .slide-button:last-child {
    right: 1.5rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  .stats-section,
  .grid-section {
    padding: 3rem 0;
  }
  
  .stats-container,
  .grid-header,
  .grid-container {
    padding: 0 0.9rem;
  }
  
  .stats-title-mobile {
    font-size: 1.75rem !important;
    text-align: center;
    line-height: 1.1 !important;
    margin-bottom: 1.3rem !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .grid-header-title-mobile {
    font-size: 1.75rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.1rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }
  
  .stat-card,
  .grid-card {
    padding: 1.4rem;
  }
  
  .stat-card-value {
    font-size: 1.75rem;
  }
  
  .grid-full {
    padding: 1.5rem;
  }
  
  footer {
    padding: 1.8rem 0.9rem 1rem;
  }
}

/* ====================================================================
   BREAKPOINT: 320px - 초소형 모바일 완벽 지원
   ==================================================================== */
@media (max-width: 320px) {
  /* 헤더 */
  header {
    padding: 0.6rem 0.7rem;
  }
  
  .logo img {
    height: 40px !important;
  }
  
  /* Main */
  main {
    padding: 0 !important;
    margin-top: 65px;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 2rem 0.7rem !important;
  }
  
  .hero-title {
    gap: 0.9rem !important;
  }
  
  .hero-title-logo {
    height: 90px !important;
    width: 110px !important;
  }
  
  .hero-title-line1,
  .hero-title-line2 {
    font-size: 1.65rem !important;
  }
  
  .hero-title-line2 {
    min-height: 1.9rem !important;
  }
  
  .hero-subtitle-mobile {
    font-size: 0.88rem !important;
    line-height: 1.6;
    padding: 0 0.2rem;
    text-align: center;
  }
  
  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .hero-social {
    gap: 0.8rem;
  }
  
  .hero-social-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
  }
  
  /* Slide Section */
  .slide-section {
    padding: 2rem 0;
  }
  
  .slide-header {
    padding: 0 0.7rem !important;
  }
  
  .slide-header h2 {
    font-size: 1.6rem !important;
    margin-bottom: 1.3rem;
  }
  
  .slide-container {
    padding: 0 0.7rem !important;
  }
  
  .slide-card {
    padding: 1.1rem !important;
    gap: 1.1rem !important;
  }
  
  .slide-card-image {
    min-height: 90px !important;
    font-size: 1.5rem !important;
  }
  
  .slide-card-title {
    font-size: 1.1rem !important;
  }
  
  .slide-card-description {
    font-size: 0.8rem !important;
    line-height: 1.5;
  }
  
  .slide-card-button {
    padding: 0.45rem 1rem !important;
    font-size: 0.75rem !important;
  }
  
  .slide-controls {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    margin-top: 0;
    pointer-events: all;
    gap: 0;
  }
  
  .slide-button {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
    position: absolute;
    z-index: 10;
  }
  
  .slide-button:first-child {
    left: 1rem;
  }
  
  .slide-button:last-child {
    right: 1rem;
  }
  
  .slide-dots {
    position: static;
    transform: none;
    margin-top: 0;
  }
  
  .slide-dot {
    width: 6px;
    height: 6px;
  }
  
  .slide-dot.active {
    width: 18px;
  }
  
  /* Stats Section */
  .stats-section {
    padding: 2rem 0;
  }
  
  .stats-container {
    padding: 0 0.7rem !important;
  }
  
  .stats-title-mobile {
    font-size: 1.6rem !important;
    margin-bottom: 1.3rem !important;
    text-align: center;
    line-height: 1.1 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    flex: none !important;
    position: static !important;
    height: auto !important;
  }
  
  .stats-grid {
    gap: 0.8rem !important;
  }
  
  .stat-card {
    padding: 1.2rem !important;
  }
  
  .stat-card-title {
    font-size: 0.92rem !important;
  }
  
  .stat-card-description {
    font-size: 0.84rem !important;
  }
  
  .stat-card-value {
    font-size: 1.6rem !important;
  }
  
  .stat-card-note {
    font-size: 0.75rem !important;
  }
  
  /* Grid Section */
  .grid-section {
    padding: 2rem 0;
  }
  
  .grid-header {
    padding: 0 0.7rem !important;
    margin-bottom: 1.3rem;
  }
  
  .grid-header-title-mobile {
    font-size: 1.6rem !important;
  }
  
  .grid-container {
    padding: 0 0.7rem !important;
    gap: 1.1rem !important;
  }
  
  .grid-full {
    padding: 1.2rem !important;
  }
  
  .grid-card {
    padding: 1.2rem !important;
  }
  
  .grid-card-title-mobile {
    font-size: 1.1rem !important;
  }
  
  .grid-card-content-mobile {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
  }
  
  .grid-card-link {
    font-size: 0.75rem !important;
    padding: 0.38rem 0.8rem;
  }
  
  /* Footer */
  footer {
    padding: 1.5rem 0.7rem 1rem;
  }
  
  .footer-container {
    gap: 1.5rem !important;
  }
  
  .footer-logo img {
    max-width: 68px !important;
  }
  
  .footer-logo p {
    font-size: 0.75rem !important;
  }
  
  .footer-links {
    gap: 1.3rem !important;
  }
  
  .footer-column h4 {
    font-size: 0.84rem !important;
    margin-bottom: 0.7rem;
  }
  
  .footer-column ul li {
    margin-bottom: 0.4rem;
  }
  
  .footer-column ul li a {
    font-size: 0.75rem !important;
  }
  
  .footer-email {
    font-size: 0.75rem !important;
  }
  
  .social-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }
  
  .footer-bottom {
    font-size: 0.7rem !important;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
  }
}

/* ====================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ==================================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap target sizes */
  .nav-link,
  .btn,
  .slide-button,
  .social-icon,
  .hero-social-icon,
  .grid-card-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Disable hover effects on touch devices */
  .slide-card:hover,
  .stat-card:hover,
  .grid-card:hover,
  .grid-full:hover,
  .visual-card:hover,
  .feature-card:hover,
  .tech-item:hover,
  .path-card:hover,
  .tutorial-item:hover,
  .resource-card:hover,
  .platform-card:hover,
  .feature-mini:hover,
  .feature-large:hover {
    transform: none !important;
    border-color: initial !important;
    background: initial !important;
    box-shadow: none !important;
  }
  
  .tutorial-item:hover::before,
  .feature-card:hover::before,
  .path-card:hover::before,
  .resource-card:hover::before {
    transform: none !important;
    opacity: initial !important;
  }
  
  /* Enable active states instead */
  .slide-card:active,
  .stat-card:active,
  .grid-card:active,
  .grid-full:active {
    transform: translateY(-2px);
  }
  
  /* Learn pages - active states only */
  .visual-card:active,
  .feature-card:active,
  .tech-item:active {
    background: rgba(0, 153, 34, 0.05);
    transform: translateY(-2px);
  }
  
  .path-card:active {
    transform: translateY(-3px);
  }
  
  .path-card.beginner:active {
    background: rgba(59, 130, 246, 0.05);
  }
  
  .path-card.intermediate:active {
    background: rgba(249, 115, 22, 0.05);
  }
  
  .path-card.advanced:active {
    background: rgba(139, 92, 246, 0.05);
  }
  
  .tutorial-item:active,
  .resource-card:active {
    background: rgba(0, 153, 34, 0.03);
    transform: translateY(-2px);
  }
  
  .platform-card:active,
  .feature-mini:active {
    background: rgba(0, 153, 34, 0.05);
    transform: translateY(-3px);
  }
  
  .feature-large:active {
    background: rgba(0, 153, 34, 0.03);
    transform: translateY(-2px);
  }
}

/* ====================================================================
   LEARN PAGES RESPONSIVE STYLES
   ==================================================================== */

/* Learn-HEXK Page - 1024px */
@media (max-width: 1024px) {
  .learn-hero {
    padding: 4rem 2rem;
  }
  
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-illustration {
    width: 250px;
    height: 250px;
  }
  
  .circle-1 { width: 250px; height: 250px; }
  .circle-2 { width: 180px; height: 180px; }
  .circle-3 { width: 120px; height: 120px; }
  
  .illustration-icon {
    width: 140px;
    height: 140px;
  }
  
  .intro-section,
  .features-section,
  .tech-section,
  .vision-section,
  .cta-section {
    padding: 4rem 2rem;
  }
  
  .intro-section .container,
  .features-section .container,
  .tech-section .container,
  .vision-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vision-content {
    gap: 2rem;
  }
}

/* Tutorials Page - 1024px */
@media (max-width: 1024px) {
  .tutorials-hero {
    padding: 5rem 0 4rem;
  }
  
  .tutorials-hero .container {
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .path-section,
  .tutorials-list,
  .resources-section {
    padding: 4rem 2rem;
  }
  
  .path-section .container,
  .tutorials-list .container,
  .resources-section .container {
    padding: 0;
  }
  
  .paths-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tutorial-item {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
  }
  
  .tutorial-link {
    display: none;
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* About HEX-KEY Page - 1024px */
@media (max-width: 1024px) {
  .hexkey-hero {
    padding: 4rem 2rem;
  }
  
  .hexkey-hero .container {
    padding: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .features-overview,
  .features-detail,
  .platform-section,
  .cta-section {
    padding: 4rem 2rem;
  }
  
  .features-overview .container,
  .features-detail .container,
  .platform-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .features-showcase {
    grid-template-columns: 1fr;
  }
  
  .detail-item {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
  }
  
  .detail-item.reverse {
    direction: ltr;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .cta-box {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }
  
  .cta-actions {
    justify-content: center;
  }
}

/* Learn-HEXK Page - 768px */
@media (max-width: 768px) {
  .learn-main {
    margin-top: 70px;
  }
  
  .learn-hero {
    padding: 3rem 1rem;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .learn-hero-title {
    font-size: 2.5rem;
  }
  
  .learn-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .intro-section,
  .features-section,
  .tech-section,
  .vision-section,
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .intro-section .container,
  .features-section .container,
  .tech-section .container,
  .vision-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    margin: 0;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .vision-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .intro-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .visual-card {
    margin: 0;
  }
}

/* Tutorials Page - 768px */
@media (max-width: 768px) {
  .tutorials-main {
    margin-top: 70px;
  }
  
  .tutorials-hero {
    padding: 3rem 1rem 2.5rem;
  }
  
  .tutorials-hero .container {
    padding: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-search {
    max-width: 100%;
    padding: 0;
  }
  
  .path-section,
  .tutorials-list,
  .resources-section {
    padding: 3rem 1rem;
  }
  
  .path-section .container,
  .tutorials-list .container,
  .resources-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .path-card {
    margin: 0;
  }
  
  .tutorial-item {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    margin: 0;
  }
  
  .tutorial-number {
    font-size: 2rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: auto;
  }
  
  .tutorial-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .resource-card {
    margin: 0;
  }
}

/* About HEX-KEY Page - 768px */
@media (max-width: 768px) {
  .hexkey-main {
    margin-top: 70px;
    width: 100%;
    max-width: 100%;
  }
  
  .hexkey-hero {
    padding: 3rem 1rem;
    width: 100%;
  }
  
  .hexkey-hero .container {
    padding: 0;
  }
  
  .hero-grid {
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 1.05rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  
  .hero-stats .stat {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 153, 34, 0.05);
    border-radius: 12px;
  }
  
  .app-mockup {
    transform: scale(0.85);
    margin: 0 auto;
  }
  
  .mockup-screen {
    border-width: 6px;
  }
  
  .screen-content {
    padding: 1.5rem;
  }
  
  .balance-card {
    padding: 1.5rem;
  }
  
  .balance-amount {
    font-size: 2rem;
  }
  
  .features-overview,
  .features-detail,
  .platform-section,
  .cta-section {
    padding: 3rem 1rem;
    width: 100%;
  }
  
  .features-overview .container,
  .features-detail .container,
  .platform-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1.05rem;
  }
  
  .features-showcase {
    gap: 1.5rem;
  }
  
  .feature-large {
    padding: 2rem 1.5rem;
    margin: 0;
  }
  
  .feature-icon-large {
    width: 80px;
    height: 80px;
  }
  
  .feature-icon-large i {
    font-size: 2.5rem;
  }
  
  .feature-large h3 {
    font-size: 1.8rem;
  }
  
  .feature-large p {
    font-size: 1rem;
  }
  
  .features-grid-mini {
    gap: 1rem;
  }
  
  .feature-mini {
    padding: 1.5rem;
    margin: 0;
  }
  
  .detail-item {
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .detail-content h3 {
    font-size: 2rem;
  }
  
  .detail-content p {
    font-size: 1rem;
  }
  
  .visual-box {
    padding: 1.5rem;
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  
  .swap-interface {
    gap: 1.2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .swap-input {
    padding: 1.2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .swap-input input {
    min-width: 0;
    width: 100%;
    font-size: 1.3rem;
  }
  
  .swap-input span {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .code-editor {
    font-size: 0.85rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .editor-content {
    padding: 1.2rem;
    overflow-x: auto;
  }
  
  .code-line {
    white-space: nowrap;
    font-size: 0.8rem;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .platform-card {
    padding: 2.5rem 2rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .platform-icon {
    width: 90px;
    height: 90px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.05rem;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }


/* Learn-HEXK Page - 480px */
@media (max-width: 480px) {
  .learn-main {
    margin-top: 65px;
  }
  
  .learn-hero {
    padding: 2.5rem 0.8rem;
  }
  
  .hero-grid {
    padding: 0rem;
    gap: 2rem;
  }
  
  .learn-hero-title {
    font-size: 2rem;
  }
  
  .learn-hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .intro-section,
  .features-section,
  .tech-section,
  .vision-section,
  .cta-section {
    padding: 2.5rem 0.8rem;
  }
  
  .intro-section .container,
  .features-section .container,
  .tech-section .container,
  .vision-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .intro-description {
    font-size: 0.95rem;
  }
  
  .feature-card {
    padding: 1.8rem 1.2rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .feature-icon i {
    font-size: 2rem;
  }
  
  .feature-title {
    font-size: 1.3rem;
  }
  
  .vision-box {
    padding: 1.8rem 1.2rem;
  }
  
  .vision-header h3 {
    font-size: 1.5rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-subtitle {
    font-size: 1rem;
  }
}

/* Tutorials Page - 480px */
@media (max-width: 480px) {
  .tutorials-main {
    margin-top: 65px;
  }
  
  .tutorials-hero {
    padding: 2.5rem 0.8rem 2rem;
  }
  
  .tutorials-hero .container {
    padding: 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .breadcrumb {
    font-size: 0.85rem;
  }
  
  .hero-search {
    padding: 0;
  }
  
  .hero-search input {
    padding: 0.9rem 1rem 0.9rem 3.2rem;
    font-size: 0.9rem;
  }
  
  .hero-search i {
    left: 1rem;
    font-size: 0.95rem;
  }
  
  .path-section,
  .tutorials-list,
  .resources-section {
    padding: 2.5rem 0.8rem;
  }
  
  .path-section .container,
  .tutorials-list .container,
  .resources-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .path-card {
    padding: 1.8rem 1.2rem;
  }
  
  .path-card h3 {
    font-size: 1.4rem;
  }
  
  .tutorial-item {
    padding: 1.2rem 0.8rem;
  }
  
  .tutorial-number {
    font-size: 1.3rem;
    top: 0.8rem;
    right: 0.8rem;
  }
  
  .tutorial-header h3 {
    font-size: 1.15rem;
  }
  
  .tutorial-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .tutorial-content > p {
    font-size: 0.9rem;
  }
}

/* About HEX-KEY Page - 480px */
@media (max-width: 480px) {
  .hexkey-main {
    margin-top: 65px;
    width: 100%;
  }
  
  .hexkey-hero {
    padding: 2.5rem 0.8rem;
    width: 100%;
  }
  
  .hexkey-hero .container {
    padding: 0;
  }
  
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .hero-tag {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
  
  .hero-buttons {
    gap: 0.8rem;
  }
  
  .stat-icon {
    width: 38px;
    height: 38px;
  }
  
  .stat-icon i {
    font-size: 1.1rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .app-mockup {
    transform: scale(0.75);
  }
  
  .mockup-screen {
    border-width: 5px;
  }
  
  .screen-content {
    padding: 1.2rem;
  }
  
  .balance-card {
    padding: 1.2rem;
  }
  
  .balance-amount {
    font-size: 1.7rem;
  }
  
  .balance-amount span {
    font-size: 1rem;
  }
  
  .action-buttons {
    gap: 0.8rem;
  }
  
  .action-btn {
    padding: 0.8rem;
  }
  
  .action-btn i {
    font-size: 1.3rem;
  }
  
  .action-btn span {
    font-size: 0.75rem;
  }
  
  .features-overview,
  .features-detail,
  .platform-section,
  .cta-section {
    padding: 2.5rem 0.8rem;
    width: 100%;
  }
  
  .features-overview .container,
  .features-detail .container,
  .platform-section .container,
  .cta-section .container {
    padding: 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .features-showcase {
    gap: 1.2rem;
  }
  
  .feature-large {
    padding: 1.8rem 1.2rem;
  }
  
  .feature-icon-large {
    width: 70px;
    height: 70px;
  }
  
  .feature-icon-large i {
    font-size: 2.2rem;
  }
  
  .feature-large h3 {
    font-size: 1.5rem;
  }
  
  .feature-large p {
    font-size: 0.95rem;
  }
  
  .feature-highlights {
    gap: 0.8rem;
  }
  
  .highlight-item {
    font-size: 0.9rem;
  }
  
  .feature-mini {
    padding: 1.3rem 1rem;
  }
  
  .feature-icon-mini {
    width: 50px;
    height: 50px;
  }
  
  .feature-icon-mini i {
    font-size: 1.5rem;
  }
  
  .feature-mini h4 {
    font-size: 1.1rem;
  }
  
  .feature-mini p {
    font-size: 0.85rem;
  }
  
  .detail-item {
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .detail-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .detail-content h3 {
    font-size: 1.7rem;
  }
  
  .detail-content p {
    font-size: 0.95rem;
  }
  
  .detail-list li {
    font-size: 0.9rem;
  }
  
  .visual-box {
    padding: 1.2rem;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .swap-interface {
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }
  
  .swap-header {
    font-size: 1.1rem;
  }
  
  .swap-input {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.5rem;
  }
  
  .swap-input input {
    font-size: 1rem;
    min-width: 0;
    width: 100%;
  }
  
  .swap-input span {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .swap-btn {
    padding: 1rem;
    font-size: 0.95rem;
  }
  
  .code-editor {
    font-size: 0.8rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
  }
  
  .editor-header {
    padding: 0.8rem 1rem;
  }
  
  .file-name {
    font-size: 0.8rem;
  }
  
  .editor-content {
    font-size: 0.75rem;
    padding: 0.8rem;
    overflow-x: auto;
  }
  
  .code-line {
    white-space: nowrap;
    font-size: 0.75rem;
  }
  
  .chart-placeholder i {
    font-size: 4rem;
  }
  
  .legend-item {
    font-size: 0.85rem;
  }
  
  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .platform-card {
    padding: 2rem 1.3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .platform-icon {
    width: 75px;
    height: 75px;
  }
  
  .platform-icon i {
    font-size: 2.3rem;
  }
  
  .platform-card h3 {
    font-size: 1.3rem;
  }
  
  .platform-card p {
    font-size: 0.85rem;
  }
  
  .platform-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .cta-box {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .cta-actions {
    justify-content: center;
  }
  
  .cta-content h2 {
    font-size: 1.7rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  .cta-actions {
    gap: 0.8rem;
  }
}

/* ====================================================================
   DOCS PAGE RESPONSIVE STYLES
   ==================================================================== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  /* Hide sidebar by default on mobile/tablet */
  .docs-sidebar {
    transform: translateX(-280px);
  }
  
  /* Show sidebar when not hidden */
  .docs-sidebar:not(.hidden) {
    transform: translateX(0);
  }
  
  /* Show sidebar toggle on tablet */
  .sidebar-toggle {
    display: flex !important;
    left: 0;
  }
  
  /* When sidebar is visible */
  .sidebar-toggle:not(.sidebar-hidden) {
    left: 280px;
  }
  
  .sidebar-toggle i::before {
    content: "\f105" !important; /* Right arrow - default */
  }
  
  /* When sidebar is visible, show left arrow */
  .sidebar-toggle:not(.sidebar-hidden) i::before {
    content: "\f104" !important; /* Left arrow */
  }
  
  .docs-content {
    padding: 2.5rem 2rem;
  }
  
  .section-main-title {
    font-size: 2.5rem;
  }
  
  .section-intro {
    font-size: 1.1rem;
  }
  
  .doc-subsection h2 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .security-features {
    grid-template-columns: 1fr;
  }
  
  .staking-info {
    grid-template-columns: 1fr;
  }
  
  /* Code IDE Block - Tablet */
  .code-ide-block {
    margin: 1.8rem 0;
  }
  
  .code-ide-header {
    padding: 0.4rem 1rem;
  }
  
  .code-ide-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
  
  .code-ide-copy {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .code-ide-line-numbers {
    min-width: 45px;
    font-size: 0.8rem;
  }
  
  .code-ide-content {
    padding: 1.3rem;
  }
  
  .code-ide-content pre {
    font-size: 0.8rem;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  .docs-main {
    margin-top: 70px;
  }
  
  /* Show sidebar toggle button on mobile/tablet */
  .sidebar-toggle {
    display: flex !important;
    width: 30px;
    height: 55px;
    font-size: 1rem;
    border-radius: 0 6px 6px 0;
    left: 0;
  }
  
  .sidebar-toggle i::before {
    content: "\f105" !important; /* Right arrow - default */
  }
  
  /* When sidebar is visible */
  .sidebar-toggle:not(.sidebar-hidden) {
    left: 260px;
  }
  
  .sidebar-toggle:not(.sidebar-hidden) i::before {
    content: "\f104" !important; /* Left arrow */
  }
  
  .docs-sidebar {
    width: 260px;
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  .docs-sidebar.hidden {
    transform: translateX(-260px);
  }
  
  .sidebar-content {
    padding: 1.5rem 1rem;
  }
  
  .sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .nav-section-title {
    padding: 0.8rem 0 0.8rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .nav-subsection {
    padding: 0;
    margin: 0.5rem 0 0 0;
  }
  
  .nav-subsection li {
    margin: 0;
    padding: 0;
  }
  
  .nav-subsection a {
    font-size: 0.85rem;
    padding: 0.5rem 0 0.5rem 0.9rem;
    margin: 0;
  }
  
  .docs-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .section-main-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .section-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .doc-subsection {
    margin-bottom: 2.5rem;
  }
  
  .doc-subsection h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }
  
  .doc-subsection h3 {
    font-size: 1.3rem;
  }
  
  .doc-subsection p,
  .doc-subsection li {
    font-size: 0.95rem;
  }
  
  .info-box {
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
  }
  
  .info-box h3 {
    font-size: 1.1rem;
  }
  
  .code-box {
    padding: 1.2rem;
    font-size: 0.85rem;
  }
  
  .code-box pre {
    font-size: 0.8rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .feature-card i {
    font-size: 2rem;
  }
  
  .feature-card h3 {
    font-size: 1.2rem;
  }
  
  .step-list {
    margin: 1.5rem 0;
  }
  
  .step-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }
  
  .step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .architecture-diagram {
    gap: 0.8rem;
  }
  
  .arch-layer {
    padding: 1.2rem 1.5rem;
  }
  
  .arch-layer h3 {
    font-size: 1.1rem;
  }
  
  .arch-layer p {
    font-size: 0.85rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .stat-box {
    padding: 1.5rem;
  }
  
  .stat-value {
    font-size: 2rem;
  }
  
  .feature-list {
    gap: 1.2rem;
  }
  
  .feature-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
  }
  
  .feature-item i {
    font-size: 1.8rem;
  }
  
  .distribution-chart {
    margin: 1.5rem 0;
  }
  
  .distribution-item {
    margin-bottom: 1.2rem;
  }
  
  .dist-bar {
    height: 40px;
    padding: 0 1rem;
  }
  
  .dist-percent {
    font-size: 1rem;
  }
  
  .dist-label {
    font-size: 0.9rem;
  }
  
  .staking-info {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .staking-card {
    padding: 1.2rem;
  }
  
  .staking-value {
    font-size: 1.8rem;
  }
  
  .api-list {
    margin: 1.5rem 0;
  }
  
  .api-item {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }
  
  .security-features {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .security-item {
    padding: 1.2rem;
  }
  
  .security-item i {
    font-size: 2rem;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .copy-code-btn {
    top: 8px;
    right: 8px;
    padding: 0.4rem;
    font-size: 0.85rem;
  }
  
  /* Code IDE Block - Mobile */
  .code-ide-block {
    margin: 1.5rem 0;
  }
  
  .code-ide-header {
    padding: 0.4rem 0.8rem;
  }
  
  .code-ide-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .code-ide-copy {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .code-ide-line-numbers {
    min-width: 40px;
    font-size: 0.75rem;
    padding: 1rem 0;
  }
  
  .code-ide-line-numbers span {
    padding: 0 0.6rem;
  }
  
  .code-ide-content {
    padding: 1rem;
  }
  
  .code-ide-content pre {
    font-size: 0.75rem;
  }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
  .docs-main {
    margin-top: 65px;
  }
  
  .sidebar-toggle {
    display: flex !important;
    width: 28px;
    height: 50px;
    font-size: 0.9rem;
    left: 0;
  }
  
  .sidebar-toggle:not(.sidebar-hidden) {
    left: 240px;
  }
  
  .docs-sidebar {
    width: 240px;
    top: 65px;
    height: calc(100vh - 65px);
  }
  
  .docs-sidebar.hidden {
    transform: translateX(-240px);
  }
  
  .sidebar-content {
    padding: 1.2rem 0.8rem;
  }
  
  .sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .nav-section-title {
    padding: 0.7rem 0 0.7rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .nav-section-title i {
    font-size: 1rem;
  }
  
  .nav-subsection {
    padding: 0;
    margin: 0.5rem 0 0 0;
  }
  
  .nav-subsection li {
    margin: 0;
    padding: 0;
  }
  
  .nav-subsection a {
    font-size: 0.8rem;
    padding: 0.5rem 0 0.5rem 0.8rem;
    margin: 0;
  }
  
  .docs-content {
    padding: 1.5rem 1rem;
  }
  
  .section-main-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }
  
  .section-intro {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }
  
  .doc-subsection {
    margin-bottom: 2rem;
  }
  
  .doc-subsection h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }
  
  .doc-subsection h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .doc-subsection h4 {
    font-size: 1.1rem;
  }
  
  .doc-subsection p,
  .doc-subsection li {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  
  .doc-subsection ul,
  .doc-subsection ol {
    padding-left: 1.5rem;
  }
  
  .info-box {
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
  }
  
  .info-box h3 {
    font-size: 1rem;
  }
  
  .code-box {
    padding: 1rem;
    margin: 1.2rem 0;
    font-size: 0.8rem;
  }
  
  .code-box h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .code-box pre {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  
  .feature-grid {
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1.2rem;
  }
  
  .feature-card i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .feature-card p {
    font-size: 0.9rem;
  }
  
  .step-list {
    margin: 1.2rem 0;
  }
  
  .step-item {
    gap: 0.8rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .step-content h3 {
    font-size: 1.1rem;
  }
  
  .architecture-diagram {
    gap: 0.6rem;
    margin: 1.5rem 0;
  }
  
  .arch-layer {
    padding: 1rem 1.2rem;
  }
  
  .arch-layer h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }
  
  .arch-layer p {
    font-size: 0.8rem;
  }
  
  .stats-grid {
    gap: 1rem;
  }
  
  .stat-box {
    padding: 1.2rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }
  
  .stat-label {
    font-size: 0.9rem;
  }
  
  .feature-list {
    gap: 1rem;
  }
  
  .feature-item {
    gap: 0.8rem;
    padding: 1rem;
  }
  
  .feature-item i {
    font-size: 1.6rem;
  }
  
  .feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .feature-item p {
    font-size: 0.9rem;
  }
  
  .distribution-chart {
    margin: 1.2rem 0;
  }
  
  .distribution-item {
    margin-bottom: 1rem;
  }
  
  .dist-bar {
    height: 35px;
    padding: 0 0.8rem;
  }
  
  .dist-percent {
    font-size: 0.95rem;
  }
  
  .dist-label {
    font-size: 0.85rem;
  }
  
  .staking-info {
    gap: 1rem;
  }
  
  .staking-card {
    padding: 1rem;
  }
  
  .staking-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  
  .staking-value {
    font-size: 1.6rem;
  }
  
  .api-list {
    margin: 1.2rem 0;
  }
  
  .api-item {
    gap: 0.6rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .api-method {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .api-item code {
    font-size: 0.85rem;
  }
  
  .api-item p {
    font-size: 0.85rem;
  }
  
  .security-features {
    gap: 1rem;
  }
  
  .security-item {
    padding: 1rem;
  }
  
  .security-item i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .security-item h4 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .security-item p {
    font-size: 0.85rem;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .copy-code-btn {
    top: 6px;
    right: 6px;
    padding: 0.35rem;
    font-size: 0.8rem;
  }
  
  /* Code IDE Block - Small Mobile */
  .code-ide-block {
    margin: 1.2rem 0;
  }
  
  .code-ide-header {
    padding: 0.3rem 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .code-ide-tabs {
    width: 100%;
    overflow-x: auto;
  }
  
  .code-ide-tab {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
  
  .code-ide-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .code-ide-line-numbers {
    min-width: 35px;
    font-size: 0.7rem;
    padding: 0.8rem 0;
  }
  
  .code-ide-line-numbers span {
    padding: 0 0.5rem;
  }
  
  .code-ide-content {
    padding: 0.8rem;
  }
  
  .code-ide-content pre {
    font-size: 0.7rem;
    line-height: 1.5;
  }
}

/* ====================================================================
   HEXK-POOL PAGE RESPONSIVE STYLES
   ==================================================================== */

/* HEXK-Pool Page - 1024px */
@media (max-width: 1024px) {
  .pool-hero {
    padding: 5rem 2rem 4rem;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .title-highlight {
    font-size: 3rem;
  }
  
  .hero-metrics {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .metric-item {
    width: 100%;
  }
  
  .code-lines {
    font-size: 5rem;
    right: 5%;
  }
  
  .overview-section,
  .architecture-section,
  .implementation-section,
  .performance-section,
  .integration-section,
  .cta-section {
    padding: 4rem 2rem;
  }
  
  .overview-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
  
  .overview-visual {
    order: -1;
  }
  
  .diagram-container {
    position: relative;
    top: 0;
  }
  
  .architecture-layers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  
  /* Implementation section overflow fix */
  .implementation-grid {
    overflow: hidden;
    max-width: 100%;
  }
  
  .implementation-item {
    overflow: hidden;
    max-width: 100%;
  }
  
  .code-editor {
    overflow-x: auto;
    max-width: 100%;
  }
  
  .editor-content {
    overflow-x: auto;
  }
  
  .editor-content pre {
    overflow-x: auto;
  }
}

/* HEXK-Pool Page - 768px */
@media (max-width: 768px) {
  .pool-main {
    margin-top: 70px;
  }
  
  .pool-hero {
    padding: 4rem 1rem 3rem;
  }
  
  .code-lines {
    display: none;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .title-highlight {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-metrics {
    gap: 1rem;
  }
  
  .metric-item {
    padding: 1.2rem 1.5rem;
  }
  
  .metric-icon {
    width: 50px;
    height: 50px;
  }
  
  .metric-icon i {
    font-size: 1.5rem;
  }
  
  .metric-value {
    font-size: 2rem;
  }
  
  .overview-section,
  .architecture-section,
  .implementation-section,
  .performance-section,
  .integration-section,
  .wallets-section,
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .section-subtitle {
    font-size: 1.05rem;
  }
  
  .content-block h3 {
    font-size: 1.6rem;
  }
  
  .content-block p {
    font-size: 1rem;
  }
  
  .feature-list li {
    font-size: 0.95rem;
  }
  
  .diagram-placeholder {
    padding: 3rem 2rem;
    min-height: 300px;
  }
  
  .diagram-placeholder i {
    font-size: 4rem;
  }
  
  .layer-card {
    padding: 2rem;
  }
  
  .layer-icon {
    width: 60px;
    height: 60px;
  }
  
  .layer-icon i {
    font-size: 1.7rem;
  }
  
  .layer-header h3 {
    font-size: 1.3rem;
  }
  
  .implementation-item {
    padding: 1.5rem;
    overflow: hidden;
    max-width: 100%;
  }
  
  .implementation-grid {
    overflow: hidden;
    max-width: 100%;
  }
  
  .impl-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    overflow: hidden;
  }
  
  .impl-header h3 {
    font-size: 1.3rem;
    word-break: break-word;
  }
  
  .code-editor {
    overflow-x: auto;
    max-width: 100%;
  }
  
  .editor-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .editor-content pre {
    font-size: 0.75rem;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
  }
  
  .editor-content code {
    word-break: normal;
    white-space: pre;
  }
  
  .step-item {
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }
  
  .step-number {
    font-size: 2rem;
    min-width: auto;
  }
  
  .code-snippet {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cta-content h2 {
    font-size: 2.2rem;
  }
  
  .cta-content p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-btn {
    width: 100%;
  }
  
  /* Mobile card layout for wallets table */
  .wallets-table-wrapper {
    overflow-x: visible !important;
  }
  
  .wallets-table {
    display: block;
  }
  
  .wallets-table thead {
    display: none;
  }
  
  .wallets-table tbody {
    display: block;
  }
  
  .wallets-table tr {
    display: block;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 153, 34, 0.2);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
  }
  
  .wallets-table tr:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 153, 34, 0.2);
  }
  
  .wallets-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0 !important;
    border: none !important;
    text-align: right;
  }
  
  .wallets-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    flex: 1;
  }
  
  .wallets-table td:first-child:before {
    content: "순위";
  }
  
  .wallets-table td:nth-child(2):before {
    content: "지갑 주소";
  }
  
  .wallets-table td:nth-child(3):before {
    content: "잔고";
  }
  
  .wallets-table td:nth-child(4):before {
    content: "비율";
  }
  
  .wallets-table td:nth-child(5):before {
    content: "마지막 활동";
  }
  
  .wallets-table td:nth-child(6):before {
    content: "";
  }
  
  .wallets-table td:first-child {
    border-top: none;
    padding-top: 0 !important;
  }
  
  .wallets-table td:last-child {
    padding-bottom: 0 !important;
    justify-content: center;
  }
  
  .rank-badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
  }
  
  .wallet-address {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: 60%;
  }
  
  .wallet-address code {
    font-size: 0.7rem;
    word-break: break-all;
    text-align: right;
  }
  
  .btn-mini-copy {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .btn-explorer-mini {
    padding: 0.5rem 0.8rem;
  }
}

/* HEXK-Pool Page - 480px */
@media (max-width: 480px) {
  .pool-hero {
    padding: 3rem 0.8rem 2.5rem;
  }
  
  .tech-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .title-highlight {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .metric-item {
    padding: 1rem 1.2rem;
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .metric-value {
    font-size: 1.8rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
  }
  
  .overview-section,
  .architecture-section,
  .implementation-section,
  .performance-section,
  .integration-section,
  .cta-section {
    padding: 2.5rem 0.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .content-block h3 {
    font-size: 1.4rem;
  }
  
  .content-block p {
    font-size: 0.95rem;
  }
  
  .feature-list li {
    font-size: 0.9rem;
  }
  
  .diagram-placeholder {
    padding: 2rem 1.5rem;
    min-height: 250px;
  }
  
  .diagram-placeholder i {
    font-size: 3rem;
  }
  
  .diagram-placeholder p {
    font-size: 1rem;
  }
  
  .layer-card {
    padding: 1.8rem;
  }
  
  .layer-icon {
    width: 55px;
    height: 55px;
  }
  
  .layer-icon i {
    font-size: 1.5rem;
  }
  
  .layer-header h3 {
    font-size: 1.2rem;
  }
  
  .layer-content p {
    font-size: 0.95rem;
  }
  
  .tech-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
  
  .implementation-item {
    padding: 1.2rem;
    overflow: hidden;
    max-width: 100%;
  }
  
  .implementation-grid {
    overflow: hidden;
    max-width: 100%;
  }
  
  .impl-header {
    overflow: hidden;
  }
  
  .impl-header h3 {
    font-size: 1.2rem;
    word-break: break-word;
  }
  
  .impl-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  
  .editor-header {
    padding: 0.7rem 0.8rem;
    overflow-x: auto;
  }
  
  .file-name {
    font-size: 0.75rem;
  }
  
  .code-editor {
    overflow-x: auto;
    max-width: 100%;
  }
  
  .editor-content {
    padding: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .editor-content pre {
    font-size: 0.7rem;
    white-space: pre;
    overflow-x: auto;
  }
  
  .editor-content code {
    white-space: pre;
  }
  
  .impl-description {
    padding: 0.8rem 1rem;
  }
  
  .impl-description p {
    font-size: 0.85rem;
  }
  
  .metric-card {
    padding: 2rem;
  }
  
  .metric-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .metric-header i {
    font-size: 1.5rem;
  }
  
  .metric-header h3 {
    font-size: 1.15rem;
  }
  
  .chart-bar {
    height: 40px;
  }
  
  .bar-label {
    font-size: 0.95rem;
    padding-right: 1rem;
  }
  
  .metric-desc {
    font-size: 0.85rem;
  }
  
  .step-item {
    padding: 1.5rem;
  }
  
  .step-number {
    font-size: 1.8rem;
  }
  
  .step-content h3 {
    font-size: 1.3rem;
  }
  
  .step-content p {
    font-size: 0.95rem;
  }
  
  .code-snippet {
    padding: 0.8rem 1rem;
  }
  
  .code-snippet code {
    font-size: 0.85rem;
  }
  
  .link-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
}

/* ====================================================================
   KEY MAP PAGE RESPONSIVE STYLES
   ==================================================================== */

/* Key Map Page - 1024px */
@media (max-width: 1024px) {
  .keymap-main .container {
    padding: 0;
  }
  
  .keymap-hero {
    padding: 5rem 1.5rem 4rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gradient-text {
    font-size: 2.8rem;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .key-visualization {
    max-width: 100%;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 2rem;
  }
  
  .keymap-hero .stat {
    flex: 1;
    min-width: 200px;
    padding: 0;
  }
  
  .generator-section,
  .visualization-section,
  .wallets-section,
  .cta-section {
    padding: 4rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .generator-input-area,
  .generator-result-area {
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-controls,
  .visualization-container,
  .viz-stats {
    padding: 0rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .generator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .viz-controls {
    flex-wrap: wrap;
  }
  
  .viz-canvas {
    height: 500px;
  }
  
  .viz-stats {
    grid-template-columns: 1fr;
  }
  
  .wallets-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .control-search input {
    width: 100%;
  }
  
  .wallets-table {
    font-size: 0.9rem;
  }
  
  .wallets-table th,
  .wallets-table td {
    padding: 1rem;
  }
}

/* Key Map Page - 768px */
@media (max-width: 768px) {
  .keymap-main {
    margin-top: 70px;
  }
  
  .keymap-main .container {
    padding: 0;
  }
  
  .keymap-hero {
    padding: 3rem 1rem 2.5rem;
  }
  
  .hero-grid {
    gap: 0;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
    margin-top: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .gradient-text {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
  }
  
  .keymap-hero .stat {
    width: 100%;
    padding: 0;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .stat-info {
    flex: 1;
  }
  
  .hex-display {
    padding: 2rem 1rem;
  }
  
  .hex-value {
    font-size: 0.95rem;
    padding: 1rem;
  }
  
  .generator-section,
  .visualization-section,
  .wallets-section,
  .cta-section {
    padding: 3rem 1rem;
  }
  
  .generator-input-area,
  .generator-result-area {
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-controls {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .visualization-container {
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-stats {
    padding: 0rem;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .section-title {
    font-size: 2rem;
    flex-direction: column;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .generator-input-area,
  .generator-result-area {
    padding: 2rem;
  }
  
  .network-selector {
    flex-direction: column;
  }
  
  .input-wrapper {
    flex-direction: column;
  }
  
  .btn-random {
    width: 100%;
    justify-content: center;
  }
  
  .viz-controls {
    padding: 1.2rem;
  }
  
  .control-group {
    flex: 1;
    min-width: 120px;
  }
  
  .btn-refresh {
    width: 100%;
    justify-content: center;
  }
  
  .viz-canvas {
    height: 400px;
  }
  
  .viz-legend {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .viz-stat {
    padding: 1.2rem;
  }
  
  .viz-stat i {
    font-size: 2rem;
  }
  
  .viz-stat-value {
    font-size: 1.6rem;
  }
  
  .control-tabs {
    width: 100%;
  }
  
  .tab-btn {
    flex: 1;
    justify-content: center;
  }
  
  .table-container {
    overflow-x: auto;
  }
  
  .wallets-table {
    min-width: 800px;
  }
  
  .wallets-table th,
  .wallets-table td {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .wallet-address code {
    font-size: 0.75rem;
  }
  
  .pagination {
    flex-wrap: wrap;
  }
  
  .page-numbers {
    flex-wrap: wrap;
  }
  
  .cta-icon {
    font-size: 3rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1.05rem;
  }
}

/* Key Map Page - 480px */
@media (max-width: 480px) {
  .keymap-main .container {
    padding: 0;
  }
  
  .keymap-hero {
    padding: 2.5rem 1rem 2rem;
  }
  
  .hero-tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .gradient-text {
    font-size: 1.6rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .keymap-hero .stat {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  
  .stat-icon i {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .stat-info {
    width: 100%;
  }
  
  .hex-display {
    padding: 2rem 1.5rem;
  }
  
  .hex-label {
    font-size: 0.8rem;
  }
  
  .hex-value {
    font-size: 0.9rem;
    padding: 1rem;
  }
  
  .address-outputs {
    gap: 0.8rem;
  }
  
  .output-item {
    padding: 0.8rem 1.2rem;
  }
  
  .output-item i {
    font-size: 1.3rem;
  }
  
  .generator-section,
  .visualization-section,
  .wallets-section,
  .cta-section {
    padding: 2.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .generator-input-area,
  .generator-result-area {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-controls {
    padding: 1.2rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .visualization-container {
    padding: 1.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-stats {
    padding: 0rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .network-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .network-btn i {
    font-size: 1.2rem;
  }
  
  .input-wrapper input {
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-random {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-generate {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .result-header h3 {
    font-size: 1.3rem;
  }
  
  .result-network {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }
  
  .result-value code {
    font-size: 0.8rem;
  }
  
  .balance-value {
    font-size: 1.1rem;
    padding: 1.2rem;
  }
  
  .btn-explorer {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .viz-controls {
    padding: 1rem;
    gap: 1rem;
  }
  
  .control-group {
    min-width: 100px;
  }
  
  .control-group label {
    font-size: 0.75rem;
  }
  
  .viz-select {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .btn-refresh {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .visualization-container {
    padding: 1.5rem;
  }
  
  .viz-canvas {
    height: 350px;
  }
  
  .viz-placeholder i {
    font-size: 3.5rem;
  }
  
  .viz-placeholder p {
    font-size: 1rem;
  }
  
  .loading-bar {
    width: 200px;
  }
  
  .viz-legend {
    gap: 0.8rem;
  }
  
  .legend-item {
    font-size: 0.8rem;
  }
  
  .legend-dot {
    width: 12px;
    height: 12px;
  }
  
  .viz-stat {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .viz-stat i {
    font-size: 1.8rem;
  }
  
  .viz-stat-value {
    font-size: 1.4rem;
  }
  
  .viz-stat-label {
    font-size: 0.8rem;
  }
  
  .control-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .control-search input {
    padding: 0.7rem 2rem 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
  
  .wallets-table {
    min-width: 700px;
  }
  
  .wallets-table th {
    padding: 0.8rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .wallets-table td {
    padding: 0.8rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .rank-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .wallet-address code {
    font-size: 0.7rem;
  }
  
  .btn-mini-copy {
    padding: 0.2rem 0.4rem;
  }
  
  .btn-explorer-mini {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .page-btn,
  .page-num {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .cta-icon {
    font-size: 2.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.6rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  /* Mobile card layout for wallets table - 480px */
  .wallets-table-wrapper {
    overflow-x: visible !important;
  }
  
  .wallets-table {
    display: block;
  }
  
  .wallets-table thead {
    display: none;
  }
  
  .wallets-table tbody {
    display: block;
  }
  
  .wallets-table tr {
    display: block;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 153, 34, 0.2);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
  }
  
  .wallets-table tr:hover {
    border-color: var(--primary-color);
  }
  
  .wallets-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0 !important;
    border: none !important;
    text-align: right;
    font-size: 0.85rem;
  }
  
  .wallets-table td:before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    flex: 1;
    font-size: 0.82rem;
  }
  
  .wallets-table td:first-child:before {
    content: "순위";
  }
  
  .wallets-table td:nth-child(2):before {
    content: "주소";
  }
  
  .wallets-table td:nth-child(3):before {
    content: "잔고";
  }
  
  .wallets-table td:nth-child(4):before {
    content: "비율";
  }
  
  .wallets-table td:nth-child(5):before {
    content: "활동";
  }
  
  .wallets-table td:nth-child(6):before {
    content: "";
  }
  
  .wallets-table td:first-child {
    padding-top: 0 !important;
  }
  
  .wallets-table td:last-child {
    padding-bottom: 0 !important;
  }
  
  .rank-badge {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
  
  .wallet-address {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    width: 55%;
  }
  
  .wallet-address code {
    font-size: 0.65rem;
    word-break: break-all;
  }
  
  .btn-mini-copy {
    padding: 0.2rem 0.4rem;
    font-size: 0.6rem;
  }
  
  .btn-explorer-mini {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* ====================================================================
   ABOUT HEX-KEY PAGE RESPONSIVE STYLES
   ==================================================================== */

/* About HEX-KEY Page - 1024px */
@media (max-width: 1024px) {
  .hexkey-hero {
    padding: 5rem 1.5rem 4rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .hero-stats {
    margin-bottom: 2rem;
  }
  
  .app-mockup {
    max-width: 100%;
  }
}

/* About HEX-KEY Page - 768px */
@media (max-width: 768px) {
  .hexkey-main {
    margin-top: 70px;
  }
  
  .hexkey-hero {
    padding: 3rem 1rem 2.5rem;
  }
  
  .hero-grid {
    gap: 0;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
    margin-top: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0;
  }
  
  .stat {
    width: 100%;
  }
  
  .app-mockup {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .mockup-screen {
    padding: 1.5rem;
  }
}

/* About HEX-KEY Page - 480px */
@media (max-width: 480px) {
  .hexkey-hero {
    padding: 2.5rem 1rem 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .stat {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  
  .stat-icon i {
    font-size: 1rem;
  }
  
  .app-mockup {
    max-width: 100%;
  }
}

/* Landscape Mobile - specific adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .docs-sidebar {
    width: 220px;
  }
  
  .sidebar-content {
    padding: 1rem 0.8rem;
  }
  
  .section-main-title {
    font-size: 1.8rem;
  }
  
  .doc-subsection h2 {
    font-size: 1.5rem;
  }
}

/* ====================================================================
   PRINT STYLES
   ==================================================================== */
@media print {
  header,
  .menu-toggle,
  .hero-social,
  .slide-controls,
  .slide-dots,
  .abstract-shape,
  .sidebar-toggle,
  .docs-sidebar,
  .back-to-top,
  .copy-code-btn,
  footer {
    display: none !important;
  }
  
  .docs-content {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .hero-section,
  .slide-section,
  .stats-section,
  .grid-section,
  .doc-section {
    page-break-inside: avoid;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
  
  .section-main-title,
  .doc-subsection h2 {
    color: #000 !important;
  }
  
  .code-box {
    border: 1px solid #ccc !important;
  }
  
  .doc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ====================================================================
   DOCS PAGE - Matrix Sections Responsive Enhancements
   ==================================================================== */

/* 중간 화면 (1200px 이하) */
@media (max-width: 1200px) {
  .doc-grid {
    gap: 25px;
  }
}

/* 태블릿 세로 (900px 이하) */
@media (max-width: 900px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-left,
  .grid-right {
    width: 100%;
    max-width: 100%;
  }
}

/* 모바일 최적화 (600px 이하) */
@media (max-width: 600px) {
  .doc-grid {
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .grid-left,
  .grid-right {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .grid-left .code-box pre code,
  .grid-right p {
    word-break: break-word;
  }
}

/* ====================================================================
   Quote Emphasis Responsive Design
   ==================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .quote-emphasis {
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
  }
  
  .quote-emphasis .comma {
    font-size: 1.7rem;
  }
  
  .quote-author {
    font-size: 1.05rem;
  }
}

/* Tablet Portrait (900px and below) */
@media (max-width: 900px) {
  .quote-emphasis {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
  }
  
  .quote-emphasis .comma {
    font-size: 1.6rem;
  }
  
  .quote-author {
    font-size: 1rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  .quote-emphasis {
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
  }
  
  .quote-emphasis .comma {
    font-size: 1.5rem;
  }
  
  .quote-author {
    font-size: 0.95rem;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  .quote-emphasis {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .quote-emphasis .comma {
    font-size: 1.4rem;
  }
  
  .quote-author {
    font-size: 0.9rem;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .quote-emphasis {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.65;
  }
  
  .quote-emphasis .comma {
    font-size: 1.3rem;
  }
  
  .quote-author {
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
  .quote-emphasis {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
  }
  
  .quote-emphasis .comma {
    font-size: 1.2rem;
  }
  
  .quote-author {
    font-size: 0.8rem;
  }
}

/* ====================================================================
   KEYMAP PAGE RESPONSIVE DESIGN
   ==================================================================== */

/* Large Desktop (1399px and below) */
@media (max-width: 1399px) {
  .keymap-hero {
    height: 500px;
  }
  
  .hero-grid {
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

/* Desktop (1280px and below) */
@media (max-width: 1280px) {
  .generator-section,
  .visualization-section,
  .wallets-section {
    padding: 5rem 2rem;
  }
  
  .crypto-sections-wrapper {
    gap: 1.5rem;
  }
}

/* Laptop (1024px and below) */
@media (max-width: 1024px) {
  /* Hero Section */
  .keymap-hero {
    height: auto;
    padding: 4rem 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .key-visualization {
    max-width: 100%;
  }
  
  /* Generator Section - Switch to Vertical Layout */
  .main-grid-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  
  /* Right side (input) comes first on mobile */
  .input-display-side {
    order: -1;
    position: static !important;
    width: 100%;
    max-width: 100%;
  }
  
  /* Left side - ensure full width */
  .crypto-results-side {
    width: 100%;
    max-width: 100%;
  }
  
  .generator-input-area {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  /* Reset PC height adjustments for mobile */
  .bitcoin-section .address-grid {
    gap: 1.5rem;
  }
  
  .bitcoin-section .address-item {
    padding: 1.5rem;
  }
  
  .hex-key-display {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .ethereum-section {
    padding: 2rem;
    width: 100%;
    max-width: 100%;
  }
  
  .crypto-section {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure crypto sections wrapper is full width */
  .crypto-sections-wrapper {
    width: 100%;
    max-width: 100%;
  }
  
  /* Prevent overflow issues on mobile */
  .address-value,
  .hex-key-value,
  .key-text {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  
  .address-item {
    max-width: 100%;
    overflow: hidden;
  }
  
  /* Visualization */
  .viz-controls {
    flex-wrap: wrap;
  }
  
  .viz-canvas {
    height: 500px;
  }
  
  /* Tables */
  .wallets-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .control-search input {
    width: 100%;
  }
}

/* Tablet (900px and below) */
@media (max-width: 900px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  /* Generator */
  .input-wrapper {
    flex-direction: column;
  }
  
  .btn-random {
    width: 100%;
    justify-content: center;
  }
  
  /* Viz Stats */
  .viz-stats {
    grid-template-columns: 1fr;
  }
  
  .viz-legend {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Hero */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat {
    width: 100%;
  }
  
  /* Sections */
  .generator-section,
  .visualization-section,
  .wallets-section {
    padding: 3rem 1.5rem;
    overflow-x: hidden;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Generator */
  .generator-container {
    gap: 2rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .generator-input-area {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .generator-input-area h3 {
    font-size: 1.5rem;
  }
  
  .hex-input {
    font-size: 0.85rem;
    max-width: 100%;
  }
  
  /* Ensure no horizontal overflow */
  .main-grid-container,
  .input-display-side,
  .crypto-results-side {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .crypto-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .crypto-header h4 {
    font-size: 1.3rem;
  }
  
  /* Table */
  .table-container {
    overflow-x: auto;
  }
  
  .wallets-table {
    min-width: 800px;
  }
  
  .wallets-table th,
  .wallets-table td {
    padding: 1rem;
    font-size: 0.85rem;
  }
  
  .wallet-address code {
    font-size: 0.75rem;
  }
  
  /* Viz */
  .viz-canvas {
    height: 400px;
  }
  
  .viz-controls {
    padding: 1rem;
  }
  
  .control-group {
    min-width: 120px;
  }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  .generator-section,
  .generator-container,
  .main-grid-container {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  /* Hero */
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .stat-icon {
    width: 45px;
    height: 45px;
  }
  
  .stat-icon i {
    font-size: 1.3rem;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  /* Section */
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-title i {
    font-size: 1.3rem;
  }
  
  /* Generator */
  .generator-input-area h3 {
    font-size: 1.3rem;
  }
  
  .input-group label {
    font-size: 0.9rem;
  }
  
  .hex-key-display {
    padding: 1.5rem;
  }
  
  .hex-key-value {
    font-size: 1rem;
  }
  
  .crypto-section {
    padding: 1.2rem;
  }
  
  .address-item {
    padding: 1.2rem;
  }
  
  .address-value {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
  
  /* Viz */
  .viz-canvas {
    height: 350px;
  }
  
  .viz-stat {
    flex-direction: column;
    text-align: center;
  }
  
  .viz-stat i {
    font-size: 2rem;
  }
  
  .viz-stat-value {
    font-size: 1.5rem;
  }
  
  /* Pagination */
  .page-numbers {
    gap: 0.3rem;
  }
  
  .page-num,
  .page-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  .generator-section,
  .generator-container,
  .main-grid-container,
  .input-display-side,
  .crypto-results-side {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  /* Hero */
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-description br {
    display: none;
  }
  
  .hero-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }
  
  /* Sections */
  .generator-section,
  .visualization-section,
  .wallets-section {
    padding: 2.5rem 1rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  /* Generator */
  .generator-input-area {
    padding: 1.2rem;
  }
  
  .generator-input-area h3 {
    font-size: 1.2rem;
  }
  
  .generator-input-area .subtitle {
    font-size: 0.9rem;
  }
  
  .input-wrapper input {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
  }
  
  .btn-generate {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .hex-key-label {
    font-size: 0.8rem;
  }
  
  .hex-key-value {
    font-size: 0.9rem;
  }
  
  .decimal-value {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  
  .decimal-value span {
    font-size: 0.75rem;
  }
  
  .crypto-header i {
    font-size: 1.5rem;
  }
  
  .crypto-header h4 {
    font-size: 1.2rem;
  }
  
  .label-text {
    font-size: 0.85rem;
  }
  
  .label-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  
  /* Controls */
  .viz-controls {
    flex-direction: column;
  }
  
  .btn-refresh {
    width: 100%;
    justify-content: center;
  }
  
  .viz-canvas {
    height: 300px;
  }
  
  .viz-legend {
    font-size: 0.85rem;
  }
  
  /* Tabs */
  .control-tabs {
    width: 100%;
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Table */
  .wallets-table {
    min-width: 700px;
  }
  
  .rank-badge {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Extra Small Mobile (320px) */
@media (max-width: 320px) {
  /* Prevent horizontal scroll */
  body,
  .generator-section,
  .generator-container,
  .main-grid-container,
  .input-display-side,
  .crypto-results-side {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 0.85rem;
  }
  
  .stat-number {
    font-size: 1.1rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .generator-input-area h3 {
    font-size: 1.1rem;
  }
  
  .hex-key-value {
    font-size: 0.8rem;
  }
  
  .decimal-value {
    font-size: 0.7rem;
    line-height: 1.4;
  }
  
  .decimal-value span {
    font-size: 0.7rem;
  }
  
  .crypto-header h4 {
    font-size: 1.1rem;
  }
  
  .address-value {
    font-size: 0.75rem;
  }
}
}