/* ============================================================
   Jujutsu Shenanigans Wiki — Dark "Cursed Violet" theme
   ============================================================ */

:root {
  /* Core palette (HSL triplets) */
  --violet: 267 72% 58%;
  --violet-light: 270 82% 68%;
  --accent: 349 82% 57%;

  --background: 258 16% 7%;
  --surface: 258 14% 11%;
  --surface-light: 258 12% 16%;
  --foreground: 260 15% 94%;

  --muted: 258 10% 62%;
  --line: 260 14% 20%;

  /* Gradients */
  --grad-brand: linear-gradient(120deg, hsl(var(--violet-light)) 0%, hsl(var(--violet)) 45%, hsl(var(--accent)) 100%);
  --grad-soft: linear-gradient(120deg, hsl(var(--violet) / .22), hsl(var(--accent) / .16));

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1180px;
  --nav-h: 72px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Effects */
  --shadow-glow: 0 0 0 1px hsl(var(--violet) / .35), 0 18px 50px -18px hsl(var(--violet) / .45);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: hsl(var(--violet) / .55); color: #fff; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: hsl(var(--violet));
  color: #fff;
  font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--violet-light));
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px 2px hsl(var(--violet) / .7);
}

.section { padding: 108px 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section-sub { color: hsl(var(--muted)); margin-top: 14px; font-size: 1.02rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .2s, border-color .2s, color .2s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.98); }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 30px -10px hsl(var(--violet) / .75);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px hsl(var(--violet) / .9);
}

.btn-ghost {
  border: 1px solid hsl(var(--line));
  background: hsl(var(--surface) / .6);
  color: hsl(var(--foreground));
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: hsl(var(--violet) / .6);
  background: hsl(var(--surface-light) / .8);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: .88rem; border-radius: 10px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .95rem;
  color: hsl(var(--violet-light));
}
.link-arrow svg { transition: transform .2s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-nav.scrolled {
  background: hsl(var(--background) / .82);
  backdrop-filter: blur(14px);
  border-bottom-color: hsl(var(--line) / .7);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-tag {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: hsl(var(--violet-light));
}

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  position: relative;
  font-size: .92rem;
  font-weight: 500;
  color: hsl(var(--muted));
  padding: 6px 0;
  white-space: nowrap;
  transition: color .2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: right .25s var(--ease-out);
}
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link:hover::after { right: 0; }

.nav-cta { margin-left: 8px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid hsl(var(--line));
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--foreground));
  transition: transform .25s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 110px;
  overflow: hidden;
}

/* Fade the hero's bottom edge into the next section */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, hsl(var(--background)) 82%);
  pointer-events: none;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.hero-glow-a {
  width: 560px; height: 560px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, hsl(var(--violet) / .55), transparent 65%);
}
.hero-glow-b {
  width: 620px; height: 620px;
  right: -200px; bottom: -260px;
  background: radial-gradient(circle, hsl(var(--accent) / .35), transparent 65%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsl(var(--foreground) / .045) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px hsl(var(--violet) / .45));
}

.hero-desc {
  color: hsl(var(--muted));
  font-size: 1.06rem;
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-size: .83rem;
  font-weight: 500;
  color: hsl(var(--foreground) / .88);
  background: hsl(var(--surface) / .72);
  border: 1px solid hsl(var(--line) / .8);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.stat-pill svg { color: hsl(var(--violet-light)); flex: none; }
.stat-hot {
  border-color: hsl(var(--violet) / .55);
  background: hsl(var(--violet) / .14);
  color: hsl(var(--violet-light));
  font-weight: 600;
}
.stat-hot svg { color: hsl(var(--violet-light)); }

/* Hero video card */
.hero-media { position: relative; }

.video-card {
  position: relative;
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  background: hsl(var(--surface) / .8);
  border: 1px solid hsl(var(--violet) / .35);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
}
.video-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .55;
  pointer-events: none;
}

.video-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 4px 12px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--muted));
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: hsl(var(--accent));
  box-shadow: 0 0 10px 2px hsl(var(--accent) / .8);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), opacity .3s; }
.video-poster:hover img { transform: scale(1.03); opacity: .85; }

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: hsl(var(--violet) / .9);
  box-shadow: 0 0 0 8px hsl(var(--violet) / .25), 0 14px 40px -8px hsl(var(--violet) / .9);
  transition: transform .25s var(--ease-out), background-color .2s;
}
.video-poster:hover .play-badge { transform: scale(1.08); background: hsl(var(--accent) / .95); }
.play-badge svg { margin-left: 3px; }

.video-caption {
  padding: 12px 4px 2px;
  font-size: .84rem;
  color: hsl(var(--muted));
}
.video-caption a {
  color: hsl(var(--violet-light));
  font-weight: 600;
}
.video-caption a:hover { text-decoration: underline; }

/* ============================================================
   START HERE — path cards
   ============================================================ */
.start { background: hsl(var(--surface) / .35); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: hsl(var(--surface) / .85);
  border: 1px solid hsl(var(--line) / .75);
  overflow: hidden;
  transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s;
}
.path-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .3s;
}
.path-card:hover {
  transform: translateY(-6px);
  border-color: hsl(var(--violet) / .5);
  box-shadow: 0 22px 45px -20px hsl(var(--violet) / .5);
}
.path-card:hover::before { opacity: 1; }

.path-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, hsl(var(--violet-light)), hsl(var(--violet) / .35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}
.path-title {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.path-desc {
  color: hsl(var(--muted));
  font-size: .9rem;
  flex: 1;
  margin-bottom: 20px;
}
.path-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: hsl(var(--violet-light) / .75);
  text-transform: uppercase;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.about-copy p { color: hsl(var(--muted)); margin-bottom: 18px; max-width: 60ch; }
.about-copy .btn { margin-top: 12px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fact {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: hsl(var(--surface) / .8);
  border: 1px solid hsl(var(--line) / .7);
  transition: border-color .25s, transform .25s var(--ease-out);
}
.fact:hover { border-color: hsl(var(--violet) / .45); transform: translateY(-3px); }
.fact dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  margin-bottom: 7px;
}
.fact dd {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.fact-hot {
  background: hsl(var(--violet) / .13);
  border-color: hsl(var(--violet) / .5);
}
.fact-hot dd {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.45rem;
}
.fact-wide { grid-column: 1 / -1; }

/* ============================================================
   WIKI MAP — chips
   ============================================================ */
.wikimap { background: hsl(var(--surface) / .35); }

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.chip {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  background: hsl(var(--surface) / .85);
  border: 1px solid hsl(var(--line) / .8);
  transition: transform .22s var(--ease-out), border-color .25s, color .2s, background-color .25s;
  cursor: default;
}
.chip:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--violet) / .6);
  color: hsl(var(--violet-light));
  background: hsl(var(--violet) / .12);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-panel {
  position: relative;
  text-align: center;
  padding: 84px 32px;
  border-radius: 24px;
  background: hsl(var(--surface) / .85);
  border: 1px solid hsl(var(--violet) / .35);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -40% -10% auto;
  height: 420px;
  background: radial-gradient(ellipse at center, hsl(var(--violet) / .35), transparent 65%);
  pointer-events: none;
}
.cta-title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.cta-desc {
  position: relative;
  color: hsl(var(--muted));
  max-width: 58ch;
  margin: 0 auto 34px;
}
.cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid hsl(var(--line) / .7);
  background: hsl(258 18% 5%);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr .8fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-desc { color: hsl(var(--foreground) / .8); font-size: .92rem; margin: 18px 0 14px; max-width: 42ch; }
.footer-about { color: hsl(var(--muted)); font-size: .8rem; max-width: 48ch; }

.footer-head {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  margin-bottom: 18px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col a {
  color: hsl(var(--muted));
  font-size: .9rem;
  padding: 6px 0;
  transition: color .2s, transform .2s var(--ease-out);
}
.footer-col a:hover { color: hsl(var(--violet-light)); transform: translateX(3px); }
.footer-col a.is-disabled { opacity: .45; cursor: default; }
.footer-col a.is-disabled:hover { color: hsl(var(--muted)); transform: none; }

.footer-bottom {
  border-top: 1px solid hsl(var(--line) / .5);
  padding: 22px 0 26px;
  color: hsl(var(--muted));
  font-size: .8rem;
  text-align: center;
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid hsl(var(--line));
  border-radius: 10px;
  background: hsl(var(--surface) / .6);
  color: hsl(var(--muted));
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background-color .2s;
}
.lang-btn:hover {
  color: hsl(var(--foreground));
  border-color: hsl(var(--violet) / .55);
  background: hsl(var(--surface-light) / .8);
}
.lang-chevron { transition: transform .25s var(--ease-out); }
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 205px;
  padding: 6px;
  background: hsl(var(--surface-light));
  border: 1px solid hsl(var(--line));
  border-radius: 12px;
  box-shadow: 0 24px 50px -12px rgb(0 0 0 / .65);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .25s var(--ease-out);
  z-index: 60;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: .9rem;
  color: hsl(var(--muted));
  transition: background-color .15s, color .15s;
}
.lang-menu a:hover {
  background: hsl(var(--violet) / .12);
  color: hsl(var(--foreground));
}
.lang-menu a[aria-current="true"] {
  color: hsl(var(--violet-light));
  font-weight: 600;
}
.lang-menu a[aria-current="true"]::after {
  content: "✓";
  font-size: .82rem;
}

@media (max-width: 1150px) {
  .lang-switcher { margin-top: 8px; }
  .lang-btn { width: 100%; justify-content: center; padding: 12px; }
  .lang-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    margin-top: 6px;
    background: hsl(var(--surface));
  }
  .lang-switcher.open .lang-menu { display: block; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
a.path-card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}
a.path-card:hover {
  transform: translateY(-5px);
  border-color: hsl(var(--violet) / .55);
  box-shadow: 0 18px 44px hsl(var(--violet) / .18);
}
a.path-card:hover .path-title { color: hsl(var(--violet-light)); }
a.path-card .path-link::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m13 6 6 6-6 6"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="m13 6 6 6-6 6"/></svg>') center/contain no-repeat;
  transition: transform .3s;
}
a.path-card:hover .path-link::after { transform: translateX(4px); }

.wikimap-more { margin-top: 34px; text-align: center; }

.chip-link { display: inline-block; cursor: pointer; }
.chip-link:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--violet) / .6);
  color: hsl(var(--violet-light));
  background: hsl(var(--violet) / .12);
}

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .hero-media { max-width: 640px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 24px;
    background: hsl(var(--background) / .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid hsl(var(--line));
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease-out), opacity .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 12px 6px; font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas .link-arrow { margin-inline: auto; }
  .cta-panel { padding: 60px 22px; }
}
