@media (max-width: 1100px) {
  .nav-link { padding: 0.55rem 0.85rem; font-size: 0.84rem; }
  .nav-container { padding: 0.7rem 0.7rem 0.7rem 1.25rem; }
}

@media (max-width: 900px) {
  :root {
    --pad: 1.2rem;
    --nav-h: 4.75rem;
  }

  .nav-container {
    border-radius: var(--r-lg);
    padding: 0.65rem 0.65rem 0.65rem 1.1rem;
  }

  .logo { font-size: 1.1rem; }
  .logo-icon { font-size: 1.15rem; }

  .mobile-menu-btn { display: flex; }

  .nav-links {
    position: fixed;
    top: 4.5rem;
    left: var(--pad);
    right: var(--pad);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(14,17,24,0.97) 0%, rgba(10,12,18,0.98) 100%);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid var(--line-hi);
    border-radius: var(--r-lg);
    box-shadow:
      0 28px 80px rgba(0,0,0,0.75),
      0 0 80px var(--amber-glow),
      0 0 60px var(--violet-glow),
      inset 0 1px 0 rgba(255,255,255,0.1),
      inset 0 -6px 16px rgba(0,0,0,0.25);
    transform: translateY(-16px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    gap: 0.25rem;
  }

  .nav-links.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.2rem;
    text-align: left;
    font-size: 0.95rem;
    border-radius: var(--r-sm);
    color: var(--text-1);
  }

  .nav-link:hover { background: rgba(255,255,255,0.05); }

  .nav-link.active {
    background: linear-gradient(90deg, var(--amber), var(--pink));
    color: #06070b;
    font-weight: 600;
    box-shadow: 0 0 30px var(--amber-glow-strong);
  }

  .nav-indicator { display: none; }

  .hero {
    min-height: auto;
    padding: 3rem var(--pad) 3.5rem;
    align-items: flex-start;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content { text-align: left; }

  .hero-title { letter-spacing: -0.035em; }

  .hero-subtitle { font-size: 1rem; }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .clay-btn { flex: 1 1 auto; min-width: 0; }

  .hero-side {
    flex-direction: column;
    width: 100%;
  }

  .profile-section {
    width: 100%;
    padding: 1.5rem;
    border-radius: var(--r-lg);
  }

  .profile-img-container { width: 68px; height: 68px; }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-stats .stat-badge { flex: 1 1 auto; }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-tile,
  .bento-tile.span-2,
  .bento-tile.span-3,
  .bento-tile.span-4,
  .bento-tile.span-6 {
    grid-column: auto;
    min-height: auto;
  }

  .bento-tile.feature-tile { min-height: auto; }

  .webui-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .webui-terminal .line {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .install-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .compat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer { padding: 3rem var(--pad) 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
  .footer-col:first-child { grid-column: 1 / -1; }

  .aurora { opacity: 0.5; filter: blur(90px); }
  .aurora-1 { width: 420px; height: 420px; }
  .aurora-2 { width: 400px; height: 400px; }
  .aurora-3 { width: 460px; height: 460px; }
  .aurora-4 { width: 350px; height: 350px; opacity: 0.3; }
  .aurora-5 { width: 330px; height: 330px; opacity: 0.28; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 4.5rem;
    --pad: 1.1rem;
  }

  body { font-size: 15px; }

  .navbar { padding: 0.7rem var(--pad); }

  .nav-links { top: 4.25rem; }

  .page-header { padding: 1.75rem var(--pad) 1.5rem; }

  .page-subtitle { font-size: 0.74rem; }

  .section-head { margin-bottom: 2.25rem; padding: 0 var(--pad); }

  .clay-card,
  .bento-tile,
  .profile-section,
  .webui-preview,
  .download-hero-card,
  .release-card,
  .compat-item,
  .step {
    border-radius: var(--r-md);
    box-shadow:
      0 18px 48px rgba(0,0,0,0.5),
      0 0 70px rgba(167,139,250,0.06),
      inset 0 1px 0 rgba(255,255,255,0.08),
      inset 0 -8px 22px rgba(0,0,0,0.2);
  }

  .clay-card:hover,
  .bento-tile:hover {
    box-shadow:
      0 24px 60px rgba(0,0,0,0.55),
      0 0 80px rgba(167,139,250,0.1),
      inset 0 1px 0 rgba(255,255,255,0.1),
      inset 0 -8px 22px rgba(0,0,0,0.22);
  }

  .clay-btn { padding: 1rem 1.75rem; font-size: 0.92rem; }

  .hero-badge { margin-bottom: 1.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .clay-btn { width: 100%; }

  .webui-preview { padding: 1.5rem; }

  .webui-terminal { font-size: 0.77rem; padding: 1rem 1.15rem; }

  .webui-feature { font-size: 0.9rem; }

  .webui-copy h2 { font-size: 1.5rem; }

  .footer { padding: 2.5rem var(--pad) 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col:first-child { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .modal { max-width: 100%; border-radius: var(--r-lg); }
  .modal-header { padding: 1.15rem 1.25rem; }
  .modal-body { padding: 1.25rem; }

  .aurora { opacity: 0.42; filter: blur(85px); }
  .aurora-1 { width: 350px; height: 350px; }
  .aurora-2 { width: 330px; height: 330px; }
  .aurora-3 { width: 380px; height: 380px; }
  .aurora-4 { width: 300px; height: 300px; }
  .aurora-5 { width: 280px; height: 280px; }
}

@media (max-width: 480px) {
  :root {
    --pad: 1rem;
    --nav-h: 4.25rem;
  }

  body { font-size: 14.5px; }

  .navbar { padding: 0.6rem var(--pad); }

  .nav-container {
    padding: 0.55rem 0.55rem 0.55rem 0.95rem;
    border-radius: var(--r-md);
  }

  .logo { font-size: 1.05rem; gap: 0.45rem; }
  .logo-icon { font-size: 1.05rem; }
  .version-badge { font-size: 0.62rem; padding: 0.2rem 0.6rem; }

  .mobile-menu-btn { width: 42px; height: 42px; }

  .nav-links { top: 4rem; padding: 0.85rem; }

  .page-header { padding: 1.5rem var(--pad) 1.25rem; }

  .hero { padding: 2.5rem var(--pad) 3rem; }

  .hero-title { font-size: 2.1rem; line-height: 1.08; }

  .hero-tagline { font-size: 0.95rem; }

  .hero-subtitle { font-size: 0.95rem; }

  .hero-badge { padding: 0.4rem 1.05rem; }

  .badge-text { font-size: 0.68rem; letter-spacing: 2.2px; }

  .profile-img-container { width: 62px; height: 62px; }

  .profile-name { font-size: 1.15rem; }

  .section-head { margin-bottom: 2rem; padding: 0 0.6rem; }

  .bento-grid { gap: 1rem; }

  .bento-tile { padding: 1.5rem; }

  .bento-tile h3 { font-size: 1.1rem; }

  .bento-tile p { font-size: 0.88rem; }

  .tile-stat .stat-num { font-size: 2rem; }

  .webui-container { gap: 2rem; }

  .webui-preview { padding: 1.25rem; }

  .webui-terminal { font-size: 0.74rem; padding: 0.95rem 1.05rem; }

  .webui-feature { font-size: 0.87rem; }

  .webui-feature i { width: 30px; height: 30px; font-size: 0.74rem; flex-shrink: 0; }

  .install-steps { grid-template-columns: 1fr; gap: 0.9rem; }

  .compat-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }

  .compat-item { padding: 1.35rem 0.8rem; }

  .compat-item i { font-size: 1.65rem; }

  .compat-item span { font-size: 0.83rem; }

  .step { padding: 1.4rem 1rem; }

  .step p { font-size: 0.85rem; }

  .footer { padding: 2.25rem var(--pad) 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-grid > * { grid-column: 1 / -1 !important; }

  .clay-card,
  .bento-tile {
    padding: 1.4rem;
    border-radius: var(--r-md);
  }

  .clay-btn {
    padding: 0.95rem 1.6rem;
    font-size: 0.9rem;
  }

  .download-hero-card { padding: 2rem 1.5rem; border-radius: var(--r-lg); }
  .dl-title { font-size: 1.75rem; }
  .dl-codename { font-size: 0.95rem; }
  .dl-btn-primary { padding: 1.1rem 1.5rem; font-size: 1rem; }

  .release-card { padding: 1.5rem; }

  .aurora { opacity: 0.35; filter: blur(75px); }
  .aurora-1 { width: 280px; height: 280px; }
  .aurora-2 { width: 260px; height: 260px; }
  .aurora-3 { width: 300px; height: 300px; }
  .aurora-4 { display: none; }
  .aurora-5 { display: none; }
}

@media (min-width: 1440px) {
  :root { --max-w: 1280px; }
}

@media (hover: none) {
  #custom-cursor,
  #cursor-ring { display: none !important; }
  body.cursor-custom { cursor: auto; }
  .clay-card:hover { transform: none !important; }
}

@media (min-width: 901px) {
  .nav-overlay { display: none !important; }
}

@media (orientation: landscape) and (max-height: 540px) {
  :root { --nav-h: 3.75rem; }
  .navbar { padding: 0.5rem var(--pad); }
  .nav-links { top: 3.5rem; }
}

@media print {
  .navbar,
  .footer,
  .aurora,
  #bg-canvas { display: none !important; }
  body { background: #fff; color: #000; }
}