/* ============================================================
   $werld — the werld is yours.
   Dark starfield + pastel iridescent orb branding.
   ============================================================ */

:root {
  --bg: #07070f;
  --bg-soft: #0d0d1a;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f4f2ff;
  --muted: #a8a4c4;
  --yellow: #ffd166;
  --coral: #ff8fa3;
  --peri: #8fa7ff;
  --violet: #c390f0;
  --mint: #6fe3c8;
  --drool: #7fc9ff;
  --grad: linear-gradient(115deg, #8fa7ff 0%, #ff8fa3 30%, #ffd166 60%, #6fe3c8 100%);
  --grad-soft: linear-gradient(115deg, rgba(143,167,255,.18), rgba(255,143,163,.18), rgba(255,209,102,.18), rgba(111,227,200,.18));
  --radius: 22px;
  --font: 'Nunito', system-ui, -apple-system, sans-serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: #14060a; }

img, video { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- starfield ---------- */
.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(143, 167, 255, 0.12), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(255, 143, 163, 0.09), transparent 60%),
    radial-gradient(900px 900px at 60% 110%, rgba(111, 227, 200, 0.08), transparent 60%),
    var(--bg);
}
.stars::before, .stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff9, transparent),
    radial-gradient(2px 2px at 44% 12%, #fffc, transparent),
    radial-gradient(1px 1px at 57% 45%, #fff8, transparent),
    radial-gradient(1.5px 1.5px at 68% 80%, #fffa, transparent),
    radial-gradient(1px 1px at 76% 28%, #fff9, transparent),
    radial-gradient(2px 2px at 88% 60%, #fffb, transparent),
    radial-gradient(1px 1px at 95% 15%, #fff8, transparent),
    radial-gradient(1.5px 1.5px at 5% 85%, #fffa, transparent),
    radial-gradient(1px 1px at 35% 92%, #fff8, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.stars::after {
  transform: translate(30px, 50px) scale(1.4);
  opacity: 0.5;
  animation-delay: 2.5s;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

/* ---------- shared ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

section { padding: 90px 0; position: relative; }

.kicker {
  font-family: var(--hand);
  font-size: 1.25rem;
  letter-spacing: .08em;
  color: var(--mint);
  text-transform: lowercase;
}

h2.title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 8px 0 18px;
  letter-spacing: -0.02em;
}

.title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { color: var(--muted); max-width: 640px; font-size: 1.1rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* wordmark: solid white bold geometric sans, like the official banner */
.wm, .wm span {
  color: #fff;
  font-family: 'Sora', 'Nunito', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* the brand word "werld" inside headlines — same treatment, site-wide */
.wm-word {
  font-family: 'Sora', 'Nunito', system-ui, sans-serif;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad);
  color: #14121f;
  box-shadow: 0 8px 30px rgba(255, 143, 163, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(143, 167, 255, .45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.btn-x {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}
.btn-x:hover { background: #111; transform: translateY(-2px); }

.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand img { width: 40px; height: 40px; animation: bob 4s ease-in-out infinite; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav .btn { padding: 10px 20px; font-size: .9rem; }
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ---------- hero ---------- */
#hero { padding: 80px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
/* prevent grid blowout from nowrap content (CA string, buttons) */
.hero-grid > *, .whut-grid > *, .gen-grid > * { min-width: 0; }
.ca-pill { min-width: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(111, 227, 200, 0.09);
  border: 1px solid rgba(111, 227, 200, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }

.hero-title {
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-sub strong { color: var(--text); }

.ca-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 28px;
  max-width: 560px;
}
.ca-pill .label {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--yellow);
}
.ca-pill code {
  font-size: .82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, monospace;
}
.copy-btn {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 800;
  font-size: .8rem;
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font);
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); }
.copy-btn.copied { background: rgba(111, 227, 200, .2); border-color: var(--mint); color: var(--mint); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; }
.hero-logo {
  display: block;
  width: min(420px, 88%);
  margin: 0 auto;
  animation: bob 6s ease-in-out infinite;
  filter:
    drop-shadow(0 34px 70px rgba(124, 215, 196, 0.38))
    drop-shadow(0 10px 50px rgba(179, 165, 227, 0.28));
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }

.hero-visual .bubble {
  position: absolute;
  top: -10px;
  right: 14px;
  z-index: 2;
  font-family: var(--hand);
  font-size: 1.3rem;
  color: #14121f;
  background: #fff;
  border-radius: 18px;
  padding: 8px 18px;
  transform: rotate(4deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: bob 4.5s ease-in-out infinite reverse;
}
.hero-visual .bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 32px;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-left-width: 4px;
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 42px;
  animation: scroll 30s linear infinite;
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--muted);
}
.marquee-track .hot { color: var(--yellow); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- whut ---------- */
.whut-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  margin-top: 30px;
}
.whut-img img {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  transform: rotate(-1.5deg);
  transition: transform .3s;
}
.whut-img img:hover { transform: rotate(0deg) scale(1.02); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease, background .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.25); background: rgba(255,255,255,.06); }
.card .emoji { font-size: 2rem; }
.card h3 { font-size: 1.25rem; font-weight: 900; margin: 10px 0 6px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- gallery ---------- */
#memes { padding-bottom: 40px; }
.gallery-marquee { overflow: hidden; margin-top: 34px; }
.g-row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scroll 60s linear infinite;
  margin-bottom: 18px;
}
.g-row.rev { animation-direction: reverse; animation-duration: 70s; }
.g-row:hover { animation-play-state: paused; }
.g-row img {
  height: 210px;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s;
}
.g-row img:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 14px 44px rgba(143, 167, 255, .35);
}

.tv-row { display: flex; gap: 18px; margin-top: 26px; }
.tv-row video {
  flex: 1 1 0;
  min-width: 0;
  height: 230px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 10, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 18px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .8);
}

/* ---------- generator ---------- */
#werldify {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(143, 167, 255, 0.1), transparent 70%);
}

.examples {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 8px;
  flex-wrap: wrap;
}
.examples figure {
  position: relative;
  margin: 0;
  transform: rotate(var(--r, 0deg));
  transition: transform .25s ease;
}
.examples figure:hover { transform: rotate(0deg) scale(1.07); z-index: 2; }
.examples img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  cursor: zoom-in;
}
.examples figcaption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 7, 15, 0.8);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 800;
  font-size: .68rem;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}
.examples-caption {
  font-family: var(--hand);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.35;
  transform: rotate(-2deg);
}
.gen-shell {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.gen-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .5;
  pointer-events: none;
}

.gen-tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.gen-tab {
  font-family: var(--font);
  font-weight: 800;
  font-size: .95rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.gen-tab.active {
  background: var(--grad);
  color: #14121f;
  border-color: transparent;
}

.style-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.style-label {
  font-family: var(--hand);
  color: var(--muted);
  font-size: 1.05rem;
}
.style-chip {
  font-family: var(--font);
  font-weight: 800;
  font-size: .85rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}
.style-chip.active {
  background: rgba(255, 255, 255, 0.92);
  color: #14121f;
  border-color: transparent;
}

.gen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }

.drop {
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 26px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.drop:hover, .drop.drag { border-color: var(--peri); background: rgba(143, 167, 255, 0.06); }
.drop .big { font-size: 2.6rem; }
.drop p { color: var(--muted); font-size: .95rem; max-width: 300px; }
.drop img.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px;
}
.drop .clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: 1px solid #ffffff44;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: none;
}
.drop.has-img .clear-btn { display: block; }
.drop.has-img .drop-hint { display: none; }

.gen-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-frame {
  flex: 1;
  min-height: 320px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(400px 260px at 50% 30%, rgba(255, 209, 102, 0.07), transparent 70%),
    rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
  padding: 20px;
}
.result-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.result-frame .placeholder { color: var(--muted); font-family: var(--hand); font-size: 1.25rem; }

.loader { display: none; flex-direction: column; align-items: center; gap: 16px; }
.result-frame.loading .loader { display: flex; }
.result-frame.loading .placeholder { display: none; }
.loader .orbspin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  animation: spinbob 1.2s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(255, 143, 163, .6);
}
@keyframes spinbob {
  0%,100% { transform: scale(1) rotate(0deg); border-radius: 50%; }
  50% { transform: scale(.85) rotate(180deg); border-radius: 42%; }
}
.loader .msg { font-family: var(--hand); font-size: 1.2rem; color: var(--text); }

.gen-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.gen-actions .btn { flex: 1; justify-content: center; }

.gen-note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}
.gen-offline {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--yellow);
  font-weight: 700;
  font-size: .92rem;
  text-align: center;
}

/* random mode: hide drop zone */
.gen-grid.random-mode .gen-left { display: none; }
.gen-grid.random-mode { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }

/* ---------- werldnomics ---------- */
.nomics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.nomic {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}
.nomic:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); }
.nomic .n {
  font-size: 2rem;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nomic .l { color: var(--muted); font-weight: 700; font-size: .92rem; margin-top: 4px; }

/* ---------- how to buy ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #14121f;
  font-weight: 900;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 143, 163, .4);
}
.step h3 { margin: 8px 0 8px; font-size: 1.2rem; font-weight: 900; }
.step p { color: var(--muted); font-size: .97rem; }
.step a { color: var(--mint); font-weight: 700; }

/* ---------- chart ---------- */
.chart-frame {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #0b0b16;
  aspect-ratio: 16 / 9;
}
.chart-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- community ---------- */
#community { text-align: center; }
#community .lead { margin: 0 auto 34px; }
.community-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 50px 0 40px;
  margin-top: 40px;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}
.foot-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92rem; }
.foot-links a:hover { color: var(--text); }
.disclaimer {
  color: #6d6a86;
  font-size: .8rem;
  max-width: 900px;
  line-height: 1.7;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  max-width: 92vw;
  width: max-content;
  text-align: center;
  transform: translateX(-50%) translateY(90px);
  background: #17172a;
  border: 1px solid var(--card-border);
  color: var(--text);
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 999px;
  z-index: 200;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .6);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .whut-grid, .gen-grid { grid-template-columns: 1fr; }
  #hero { padding: 48px 0 36px; }
  .hero-grid { gap: 36px; }
  .hero-visual { max-width: 480px; width: 100%; margin: 0 auto; }
  .cards3 { grid-template-columns: 1fr; }
  .nomics-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 7, 15, 0.97);
    padding: 22px 26px;
    border-bottom: 1px solid var(--card-border);
    gap: 18px;
  }
  section { padding: 64px 0; }
}
@media (max-width: 700px) {
  .chart-frame { aspect-ratio: auto; height: 540px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .nomics-grid { grid-template-columns: 1fr; }
  .g-row img { height: 150px; }
  .tv-row { flex-direction: column; }
  .tv-row video { height: 200px; width: 100%; }
  .hero-visual .bubble { top: 6px; right: 10px; font-size: 1.1rem; }
  .gen-shell { padding: 20px 14px; }
  .drop { min-height: 240px; }
  .result-frame { min-height: 260px; }
  .examples { gap: 12px; }
  .examples figure { width: calc(50% - 6px); }
  .examples img { width: 100%; }
  .examples-caption { width: 100%; transform: none; }
  .marquee-track { font-size: 1.1rem; gap: 30px; }
  h2.title { font-size: 1.9rem; }
  .hero-title { font-size: 2.4rem; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .nav .btn { padding: 8px 13px; font-size: .8rem; }
  .nav-inner { gap: 10px; }
  .hero-title { font-size: 2.1rem; }
  .ca-pill { padding: 10px 12px; gap: 8px; }
  .btn { font-size: .92rem; padding: 13px 18px; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
