/* Wormwell website. Colors follow Wormwell/Graphics/DesignTokens.swift and docs/ART-DIRECTION.md:
   warm light in dark, soft earth; gold means action and reward; round, glossy, friendly. */
:root {
  --cream: #f7e6d0;
  --cream-dim: rgba(247, 230, 208, .72);
  --sand: #ffc978;
  --gold-light: #ffe39a;
  --gold: #ffc457;
  --gold-deep: #f2a53a;
  --gold-ink: #4a2a10;
  --glow: #ffd86b;
  --loam: #7b4e3b;
  --soil: #4b3026;
  --cavern: #2a1b16;
  --night: #170d09;
  --worm: #d98a94;
  --energy: #7ed957;
  --energy-deep: #4fb23a;
  --moss: #8faf6a;
  --warning: #f28c6b;
  --crystal-blue: #3dc7ff;
  --crystal-violet: #b789ff;
  --line: rgba(255, 201, 120, .16);
  --glass: rgba(42, 27, 22, .72);
  --max: 1200px;
  --radius: 26px;

  /* The page ground follows the scroll from the turf down to the Heart of the World (site.js). */
  --depth-a: #4b3026;
  --depth-b: #2a1b16;
  --depth-glow: rgba(255, 196, 87, .16);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sand); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; font-weight: 900; }
p { text-wrap: pretty; }
.ic { width: 22px; height: 22px; fill: currentColor; flex: none; }
.muted { color: var(--cream-dim); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 50;
  padding: 10px 14px; background: var(--cream); color: var(--night); border-radius: 12px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- Living ground behind every page ---------- */
.ground {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, var(--depth-glow), transparent 38%),
    linear-gradient(180deg, var(--depth-a), var(--depth-b));
  transition: background-color .3s linear;
}
/* Speckled soil: pebbles, grit and the odd fossil curl, drawn with gradients so nothing is downloaded. */
.ground::before, .ground::after {
  content: ""; position: absolute; inset: -20%;
  background-image:
    radial-gradient(6px 4px at 12% 18%, rgba(255, 220, 180, .1), transparent),
    radial-gradient(3px 3px at 32% 64%, rgba(255, 220, 180, .12), transparent),
    radial-gradient(10px 7px at 58% 28%, rgba(0, 0, 0, .25), transparent),
    radial-gradient(4px 3px at 76% 82%, rgba(255, 220, 180, .1), transparent),
    radial-gradient(14px 9px at 88% 44%, rgba(0, 0, 0, .2), transparent),
    radial-gradient(2px 2px at 44% 90%, rgba(255, 230, 190, .18), transparent);
  background-size: 340px 300px;
  transform: translateY(var(--ground-shift, 0px));
}
.ground::after { background-size: 520px 460px; background-position: 140px 90px; opacity: .7; }
.ground-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(10, 5, 3, .55)); }

/* ---------- Scroll burrow (home page) ---------- */
/* A viewport-sized canvas above the ground and below the content; site.js draws the tunnel and the worm. */
.burrow-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.gauge {
  position: fixed; right: 18px; top: 86px; z-index: 20;
  display: flex; gap: 8px; pointer-events: none; opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .4s;
}
.gauge.is-on { opacity: 1; transform: none; }
.gauge .chip { padding: 7px 14px 7px 10px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gauge .chip b { font-size: 17px; display: inline-block; }
.gauge .chip b.is-bump { animation: bump .35s ease; }

/* ---------- Navigation ---------- */
.nav {
  max-width: var(--max); margin: auto; padding: 16px 28px;
  display: flex; align-items: center; gap: 28px; position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); font-size: 22px; font-weight: 900; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.nav a:not(.brand) {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--cream-dim); text-decoration: none; font-weight: 750; font-size: 15px;
  transition: color .2s, background .2s;
}
.nav a:not(.brand):hover, .nav a[aria-current=page] { color: var(--cream); background: rgba(255, 201, 120, .12); }
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .35s, box-shadow .35s; }
.site-nav.is-scrolled {
  background: rgba(23, 13, 9, .78);
  backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, .25);
}

/* ---------- Buttons (the in-game gold capsule) ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px;
  border-radius: 999px; border: 0; cursor: default;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 52%, var(--gold-deep));
  color: var(--gold-ink); font-weight: 900; font-size: 16px; letter-spacing: .04em; text-decoration: none;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -3px 0 rgba(160, 90, 20, .35), 0 12px 32px rgba(255, 196, 87, .3);
  transition: transform .2s, filter .2s;
}
a.button { cursor: pointer; }
a.button:hover { color: var(--gold-ink); filter: brightness(1.06); transform: translateY(-2px); }
.button.store { line-height: 1.1; text-align: left; padding-left: 20px; letter-spacing: 0; }
.button.store .ic { width: 26px; height: 26px; }
.button.store small { display: block; font-size: 11px; font-weight: 700; opacity: .75; }
.button.ghost {
  background: var(--glass); color: var(--cream); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.button.ghost:hover { color: var(--cream); background: rgba(75, 48, 38, .85); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

/* ---------- Glass and chips ---------- */
.glass, .card {
  background: linear-gradient(160deg, rgba(123, 78, 59, .32), rgba(23, 13, 9, .66));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 12px; border-radius: 999px;
  background: rgba(23, 13, 9, .78); border: 1px solid var(--line); color: var(--cream);
  font-weight: 800; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); line-height: 1.15;
}
.chip b { font-size: 20px; font-variant-numeric: tabular-nums; }
.chip small { display: block; color: var(--cream-dim); font-size: 12px; font-weight: 700; }
.gem { width: 22px; height: 22px; flex: none; }
.gem path:first-child { fill: var(--gold); }
.gem path + path { fill: var(--gold-light); }
.bolt-ic { color: var(--energy); }
.mini-bar { width: 110px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(180deg, #a6ef7f, var(--energy-deep)); animation: drain 9s ease-in-out infinite; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(680px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
/* A strip of dusk meadow at the very top, so the page starts at the surface and digs down. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 46%; z-index: -1;
  background: linear-gradient(180deg, #3a4a2e 0%, rgba(58, 74, 46, .55) 40%, transparent 100%);
}
.hero-inner {
  max-width: var(--max); width: 100%; margin: auto; padding: 120px 28px 110px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.kicker, .eyebrow { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.hero h1 {
  font-size: clamp(54px, 7.6vw, 108px); line-height: .92; letter-spacing: -.035em; margin: 18px 0 22px;
  background: linear-gradient(180deg, var(--cream) 30%, var(--sand)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .45));
}
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold-light), var(--gold) 45%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: rgba(247, 230, 208, .88); max-width: 560px; margin: 0 0 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--cream-dim); font-size: 15px; font-weight: 700; }
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-right: 16px; }
.hero-facts b { color: var(--cream); font-size: 18px; font-variant-numeric: tabular-nums; }

.hero-art { position: relative; }
.burrow {
  position: relative; border-radius: 44% 44% 36px 36px / 34% 34% 36px 36px; overflow: hidden; aspect-ratio: 1;
  box-shadow: 0 0 0 10px rgba(23, 13, 9, .6), 0 0 0 11px var(--line), 0 40px 90px rgba(0, 0, 0, .55), 0 0 120px rgba(255, 196, 87, .18);
}
.burrow img { width: 100%; height: 100%; object-fit: cover; animation: breathe 9s ease-in-out infinite alternate; }
.hero-art .chip { position: absolute; animation: float 7s ease-in-out infinite; }
.hero-art .c1 { left: -26px; top: 12%; }
.hero-art .c2 { right: -18px; top: 46%; animation-delay: -2.5s; }
.hero-art .c3 { left: 6%; bottom: -22px; animation-delay: -4.5s; }
.motes { position: absolute; inset: 0; pointer-events: none; }
.motes i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); opacity: 0; animation: mote 7s ease-in-out infinite; }
.motes i:nth-child(1) { left: 70%; top: 70%; }
.motes i:nth-child(2) { left: 80%; top: 60%; animation-delay: -2s; }
.motes i:nth-child(3) { left: 62%; top: 80%; animation-delay: -4s; }
.motes i:nth-child(4) { left: 86%; top: 76%; animation-delay: -5.5s; }

/* ---------- Sections ---------- */
main { overflow: clip; }
.section { max-width: var(--max); margin: auto; padding: 110px 28px; position: relative; }
.section.narrow-top { padding-bottom: 40px; }
.section h2, .page h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 18px; }
.section-lead { color: var(--cream-dim); font-size: 19px; max-width: 660px; margin: 0 0 40px; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.try-hint { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); font-weight: 750; margin: 0; padding: 12px 18px; border-radius: 999px; background: rgba(255, 196, 87, .12); border: 1px solid rgba(255, 196, 87, .32); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255, 196, 87, .7); animation: pulse 1.8s infinite; flex: none; }
.keys { color: var(--cream-dim); font-size: 15px; margin: 18px 0 0; }
kbd { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px; background: rgba(23, 13, 9, .7); font: 700 13px/1.5 ui-rounded, -apple-system, sans-serif; text-align: center; color: var(--cream); }

/* Interactive dig demo */
.demo { position: relative; padding: 14px; border-radius: 34px; }
.demo canvas {
  display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 640px; border-radius: 24px; background: var(--soil);
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.demo canvas:active { cursor: grabbing; }
.demo-hud { position: absolute; left: 28px; right: 28px; top: 28px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.demo-hud .chip { padding: 7px 14px 7px 10px; }
.demo-hud .chip b { font-size: 17px; }
.demo-depth { text-align: center; line-height: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.demo-depth b { font-size: 36px; font-variant-numeric: tabular-nums; }
.demo-depth span { font-size: 18px; font-weight: 800; margin-left: 2px; }
.demo-energy { display: block; width: 120px; height: 9px; margin: 8px auto 0; border-radius: 5px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.demo-energy i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(180deg, #a6ef7f, var(--energy-deep)); transform-origin: left; transform: scaleX(var(--v, 1)); transition: background .3s; }
.demo-energy i.is-low { background: var(--warning); }
.demo-status {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); margin: 0; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; background: rgba(23, 13, 9, .78); border: 1px solid var(--line);
  font-weight: 800; font-size: 15px; pointer-events: none; transition: opacity .4s;
}
.demo-status.is-hidden { opacity: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 28px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 196, 87, .4); }
.card .number { display: block; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; margin-top: 18px; }
.card h3 { font-size: 23px; margin: 6px 0 8px; line-height: 1.2; }
.card p { color: var(--cream-dim); margin: 0; }
.badge-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); color: var(--gold-ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.badge-ic svg { width: 28px; height: 28px; fill: currentColor; }
.badge-ic.green { background: linear-gradient(180deg, #b4f08f, var(--energy-deep)); color: #183a10; }
.badge-ic.pink { background: linear-gradient(180deg, #f5c0c6, var(--worm)); color: #5a1e27; }
.badge-ic.violet { background: linear-gradient(180deg, #d9c2ff, var(--crystal-violet)); color: #2b1550; }
.badge-ic.blue { background: linear-gradient(180deg, #a8e8ff, var(--crystal-blue)); color: #0b3346; }

/* ---------- Gallery ---------- */
.gallery { max-width: var(--max); margin: auto; padding: 0 28px 110px; display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.gallery-tabs { display: grid; gap: 8px; }
.gallery-tabs button {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; text-align: left; position: relative; overflow: hidden;
  padding: 14px 18px; border-radius: 20px; border: 1px solid transparent; background: transparent; color: var(--cream); font: inherit; cursor: pointer;
  transition: background .25s, border-color .25s;
}
.gallery-tabs button:hover { background: rgba(255, 201, 120, .07); }
.gallery-tabs button[aria-selected=true] { background: var(--glass); border-color: var(--line); }
.t-n { grid-row: span 2; align-self: center; color: var(--gold); font-weight: 900; font-size: 15px; letter-spacing: .08em; }
.gallery-tabs b { font-size: 19px; line-height: 1.25; }
.gallery-tabs small { color: var(--cream-dim); font-size: 15px; }
.t-progress { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); opacity: 0; }
.gallery-tabs button[aria-selected=true] .t-progress { opacity: 1; animation: tabprogress var(--slide, 6s) linear forwards; }
.gallery.is-paused .t-progress { animation-play-state: paused; }

.phone {
  position: relative; width: min(340px, 78vw); aspect-ratio: 1206 / 2622; padding: 11px; border-radius: 54px;
  background: linear-gradient(150deg, #5a3a2c, #1c110c 40%, #3b261d);
  box-shadow: 0 0 0 1px rgba(255, 201, 120, .25), 0 50px 100px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 196, 87, .12);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--night); }
.phone figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform .9s ease; }
.phone figure.is-active { opacity: 1; transform: none; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Depth strata ---------- */
.strata { list-style: none; margin: 0; padding: 0; border-radius: 30px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.stratum {
  display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; padding: 20px 28px; position: relative;
  background: linear-gradient(90deg, var(--z), color-mix(in srgb, var(--z) 55%, #120905));
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.stratum:first-child { border-top: 0; }
.stratum::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 92% 50%, var(--zl, transparent), transparent 40%); opacity: .55; }
.stratum .z-depth { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--gold-light); font-size: 15px; }
.stratum h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.stratum p { margin: 2px 0 0; color: var(--cream-dim); font-size: 15px; }
.stratum .z-tag { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); }
.z1 { --z: #6b4630; --zl: rgba(143, 175, 106, .35); }
.z2 { --z: #8a4f33; --zl: rgba(255, 180, 110, .25); }
.z3 { --z: #2c5158; --zl: rgba(110, 210, 220, .3); }
.z4 { --z: #3a2d63; --zl: rgba(183, 137, 255, .45); }
.z5 { --z: #4a2c1f; --zl: rgba(255, 140, 60, .4); }
.z6 { --z: #34363c; --zl: rgba(200, 210, 220, .18); }
.z7 { --z: #561d12; --zl: rgba(255, 110, 40, .5); }
.z8 { --z: #212c66; --zl: rgba(61, 199, 255, .5); }
.z9 { --z: #4c2637; --zl: rgba(255, 150, 190, .3); }
.z10 { --z: #7d6c52; --zl: rgba(255, 240, 210, .3); }
.z11 { --z: #5f321d; --zl: rgba(255, 196, 87, .35); }
.z12 { --z: #1b4a4b; --zl: rgba(80, 230, 210, .35); }
.z13 { --z: #261532; --zl: rgba(183, 137, 255, .4); }
.z14 { --z: #6e1a1f; --zl: rgba(255, 90, 70, .6); }
.z14 .z-depth::after { content: " ∞"; }

/* ---------- Progression ---------- */
.grow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grow .card { padding: 26px; }
.grow .card h3 { margin-top: 16px; }

/* ---------- Respect ---------- */
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 52px; align-items: center; }
.fair ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fair li { display: flex; gap: 12px; align-items: center; font-weight: 750; font-size: 17px; }
.fair li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--energy-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 56px 0 0; }
.stats li { text-align: center; padding: 26px 12px; }
.stats b { display: block; font-size: clamp(40px, 5vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--gold-light), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--cream-dim); font-weight: 750; }

/* ---------- Finale ---------- */
.finale { text-align: center; padding: 120px 28px 140px; position: relative; }
.finale::before { content: ""; position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 87, .2), transparent 62%); pointer-events: none; }
.finale-inner { position: relative; max-width: 760px; margin: auto; }
.finale-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 196, 87, .3); }
.finale h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; }
.finale .section-lead { margin: 0 auto 32px; }

/* ---------- Footer ---------- */
footer {
  max-width: var(--max); margin: auto; padding: 32px 28px 48px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  color: var(--cream-dim); font-size: 15px; border-top: 1px solid var(--line);
}
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--cream-dim); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--gold-light); }

/* ---------- Text pages (support, contact, privacy, terms, 404) ---------- */
.page { max-width: 820px; margin: auto; padding: 48px 28px 96px; }
.page h1 { margin-top: 10px; }
.page h2 { font-size: 26px; line-height: 1.2; margin: 44px 0 10px; }
.page p, .page li { color: rgba(247, 230, 208, .86); }
.page ul { padding-left: 22px; }
.effective { color: var(--cream-dim); font-weight: 700; font-size: 15px; }
.summary { padding: 24px 28px; margin: 28px 0; }
.summary strong { color: var(--gold); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.summary ul { margin: 10px 0 0; }
.contact-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 26px; margin: 28px 0; }
.faq details { padding: 0; margin: 10px 0; border-radius: 20px; }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 20px; }
.legal-note { color: var(--cream-dim); font-size: 14px; margin-top: 40px; }
.page-404 { text-align: center; padding-top: 12vh; }
.page-404 img { width: 180px; margin: 0 auto 10px; border-radius: 40px; transform: rotate(-6deg); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, 1%); } }
@keyframes mote { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-90px); } }
@keyframes drain { 0%, 100% { width: 82%; } 50% { width: 38%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 196, 87, .7); } 70% { box-shadow: 0 0 0 12px rgba(255, 196, 87, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 196, 87, 0); } }
@keyframes tabprogress { to { transform: scaleX(1); } }
@keyframes bump { 50% { transform: scale(1.25); color: var(--gold-light); } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .split, .fair, .gallery { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .gallery .phone { margin: auto; grid-row: 1; }
  .features, .grow { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { padding: 12px 18px; gap: 12px; }
  .nav ul a[href^="#"] { display: none; }
  .nav a:not(.brand) { padding: 7px 10px; font-size: 14px; }
  .section { padding: 80px 20px; }
  .hero-inner { padding: 100px 20px 90px; }
  .hero-art .c1 { left: -6px; }
  .hero-art .c2 { right: -6px; }
  .features, .grow { grid-template-columns: 1fr; }
  .gallery { padding: 0 20px 80px; }
  .gallery-tabs small { display: none; }
  .stratum { grid-template-columns: 1fr; gap: 6px; padding: 18px 22px; }
  .stratum .z-tag { justify-self: start; }
  .fair { padding: 30px 24px; }
  .page { padding: 32px 20px 72px; }
  .gauge { top: auto; bottom: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
