/* Eight v2 — Vercel-faithful + Instrument Serif editorial flourish.
   Extends the v1 visual DNA into the new IA. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg:           #000;
  --bg-2:         #0a0a0a;
  --panel:        #0a0a0a;
  --panel-hover:  #111;
  --line:         hsla(0, 0%, 100%, 0.10);
  --line-strong:  hsla(0, 0%, 100%, 0.18);
  --line-dim:     hsla(0, 0%, 100%, 0.06);

  --text:         #ededed;
  --text-2:       #a1a1a1;
  --muted:        #8c8c8c;
  --muted-2:      #666;

  --ink:          #fff;
  --on-ink:       #000;

  --accent-magenta: #ff0080;
  --accent-cyan:    #50e3c2;
  --accent-blue:    #0070f3;

  --accent:        #ffffff;     /* tweakable */
  --accent-soft:   color-mix(in oklch, var(--accent) 14%, transparent);

  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "GT Sectra", "Tiempos", Georgia, serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --container: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* light mode (kept as Tweak) */
html[data-mode="light"] {
  --bg:           #ffffff;
  --bg-2:         #fafafa;
  --panel:        #ffffff;
  --panel-hover:  #f6f6f7;
  --line:         hsla(0, 0%, 0%, 0.10);
  --line-strong:  hsla(0, 0%, 0%, 0.18);
  --line-dim:     hsla(0, 0%, 0%, 0.06);
  --text:         #18181b;
  --text-2:       #3f3f46;
  --muted:        #71717a;
  --muted-2:      #a1a1a1;
  --ink:          #000;
  --on-ink:       #fff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

::selection { background: var(--ink); color: var(--on-ink); }

.serif { font-family: var(--serif); font-weight: 400; }
.italic { font-style: italic; }
.mono { font-family: var(--mono); }
.dim  { color: var(--muted); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand .mark-svg { width: 22px; height: 22px; }
.brand .domain { color: var(--muted); font-weight: 400; }
.version-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
}
.version-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px;
  font-size: 13.5px; font-weight: 400;
  color: var(--text-2);
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-hover); }
.nav-links a.is-active { color: var(--ink); }

.top-actions { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.14s var(--ease-out);
  white-space: nowrap;
}
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--panel-hover); }
.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }
html[data-mode="light"] .btn-outline:hover { background: rgba(0,0,0,0.04); }
.btn-primary {
  background: var(--ink); color: var(--on-ink);
}
.btn-primary:hover { filter: brightness(0.92); }

.nav-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 8px 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--muted);
  transition: border-color 0.12s;
  min-width: 200px;
}
.nav-search-btn:hover { border-color: var(--line-strong); }
.nav-search-btn span { flex: 1; text-align: left; }
.kbd {
  font-family: var(--mono); font-size: 10.5px;
  background: var(--bg-2);
  color: var(--text-2);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  line-height: 1;
}

/* small inline version strip — above hero */
.version-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.version-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
}
.version-strip-inner .label {
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vs-row { display: flex; gap: 6px; }
.vs-pill {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--mono); font-size: 11px;
  transition: all 0.12s;
  display: inline-flex; align-items: center; gap: 5px;
}
.vs-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.vs-pill.is-current { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.vs-pill.is-draft { opacity: 0.5; pointer-events: none; }
.vs-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-cyan); }
.vs-pill.is-current .dot { background: var(--on-ink); }
.vs-strip-r {
  margin-left: auto;
  display: flex; gap: 16px;
}
.vs-strip-r a:hover { color: var(--ink); }

/* ============================================================
   HERO — Find/Generate tabs + featured pack sidebar
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-dim) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dim) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 70%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 600px;
  background:
    radial-gradient(closest-side, rgba(255, 0, 128, 0.18), transparent 70%),
    radial-gradient(closest-side at 65% 40%, rgba(0, 112, 243, 0.16), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
  margin-bottom: 28px;
}
html[data-mode="light"] .hero-eyebrow { background: rgba(0,0,0,0.02); }
.hero-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.hero-h1 .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.hero-h1 .grad {
  background: linear-gradient(90deg, var(--ink), var(--muted));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-deck {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 50ch;
}

/* search w/ tabs */
.hero-tabs {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 12px;
}
.hero-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  transition: all 0.14s var(--ease-out);
}
.hero-tab .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.hero-tab.is-on {
  background: var(--ink);
  color: var(--on-ink);
}
.hero-tab.is-on .dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(0,0,0,0.3);
  max-width: 560px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.hero-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input {
  flex: 1; border: 0; background: none; outline: 0;
  font-size: 15px; min-width: 0;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search .scope-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px;
  padding: 4px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
}
.hero-search-go {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  transition: filter 0.1s;
}
.hero-search-go:hover { filter: brightness(0.92); }

.hero-trending {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 20px;
}
.hero-trending .t-label {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 6px;
  text-transform: uppercase;
}
.trend-chip {
  font-size: 12px; padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--panel);
  transition: border-color 0.12s, color 0.12s;
}
.trend-chip:hover { border-color: var(--line-strong); color: var(--ink); }

/* Featured pack sidebar */
.hero-feat {
  position: relative;
}
.feat-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
}
.feat-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}
.feat-head .new {
  background: var(--ink); color: var(--on-ink);
  padding: 2px 7px; border-radius: 999px;
  font-weight: 600;
}
.feat-icon {
  position: relative;
  aspect-ratio: 1.2 / 1;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feat-icon-svg {
  width: 50%;
  color: var(--ink);
  position: relative; z-index: 1;
}
.feat-icon-svg svg { width: 100%; height: auto; stroke-width: 1.2; }
.feat-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-dim) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dim) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.feat-styles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}
.feat-style {
  display: flex; flex-direction: column; gap: 5px; align-items: center;
  padding: 6px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9.5px; color: var(--muted);
  background: var(--panel);
  font-family: var(--mono);
  transition: all 0.12s;
}
.feat-style:hover { border-color: var(--line-strong); color: var(--text); }
.feat-style.is-on { border-color: var(--ink); color: var(--ink); }
.feat-style .thumb {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.feat-style .thumb svg { width: 60%; height: 60%; stroke-width: 1.4; }
.feat-style .thumb.filled svg { fill: var(--ink); stroke-width: 0; }
.feat-style .thumb.accent { background: var(--accent); color: var(--bg); }
.feat-style .thumb.three-d { background: radial-gradient(circle at 30% 25%, #fff, #888 60%, #333); color: #000; }
.feat-style .thumb.hand svg { stroke-width: 2.2; }

.feat-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.feat-foot-l { display: flex; gap: 4px; flex-wrap: wrap; }
.feat-foot-l .fmt {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-2);
}
.feat-foot-cta {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ink); color: var(--on-ink);
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { border-bottom: 1px solid var(--line); }
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 40px;
}
.section-head.simple { grid-template-columns: 1fr; }
.section-kicker {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: lowercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-kicker .num {
  background: var(--ink); color: var(--on-ink);
  padding: 1px 6px; border-radius: 4px;
  font-weight: 600;
}
.section-h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.section-h2 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.015em; color: var(--text); }
.section-h2 .grad {
  background: linear-gradient(90deg, var(--ink), var(--muted));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-h2 .muted { color: var(--muted); }
.section-deck {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
}
.section-foot-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
}
.section-foot-link:hover { color: var(--ink); }

/* ============================================================
   AI STUDIO — the flagship section
   ============================================================ */
.studio {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.studio::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 70%; height: 80%;
  background:
    radial-gradient(closest-side, rgba(255, 0, 128, 0.20), transparent 70%),
    radial-gradient(closest-side at 70% 50%, rgba(0, 112, 243, 0.22), transparent 70%);
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}
.studio-inner {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 24px 96px;
}
.studio-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.studio-h2 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.studio-h2 .serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.studio-deck {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 50ch;
}
.studio-cta { display: flex; gap: 8px; align-self: end; }

/* demo strip */
.studio-demo {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5);
}
.demo-prompt {
  display: flex; flex-direction: column; gap: 12px;
}
.demo-prompt-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.demo-prompt-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
}
.demo-prompt-text {
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.demo-prompt-meta {
  display: flex; align-items: center;
  margin-top: 12px;
  gap: 8px;
}
.demo-prompt-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-magenta), var(--accent-cyan), var(--accent-blue), var(--accent-magenta));
  flex-shrink: 0;
  animation: spin 8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-prompt-meta .small { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.demo-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.demo-out {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  transition: border-color 0.14s;
}
.demo-out:hover { border-color: var(--line-strong); }
.demo-out .label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.demo-out .label .badge {
  font-size: 9.5px;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  text-transform: none;
  letter-spacing: 0;
}
html[data-mode="light"] .demo-out .label .badge { background: rgba(0,0,0,0.04); }
.demo-out-preview {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.demo-out.img .demo-out-preview {
  background:
    radial-gradient(circle at 30% 30%, #ffd0e8, transparent 60%),
    radial-gradient(circle at 70% 60%, #c2d4ff, transparent 60%),
    linear-gradient(135deg, #ff5e9c, #5e7eff 80%);
}
.demo-out.vid .demo-out-preview {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5), transparent 60%),
    linear-gradient(180deg, #2a1a3a, #08243e);
  display: flex; align-items: center; justify-content: center;
}
.demo-out.vid .play {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  color: #000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  padding-left: 3px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.demo-out.aud .demo-out-preview {
  background: linear-gradient(180deg, #0a1a2e, #08243e);
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
}
.demo-out.aud .wave {
  display: flex; align-items: center; gap: 2px;
  width: 100%; height: 50%;
}
.demo-out.aud .wave span {
  flex: 1;
  background: var(--accent-cyan);
  border-radius: 999px;
  min-width: 2px;
}
.demo-out .meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}

/* model logos */
.studio-models {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.model-group h4 {
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.model-group h4::after {
  content: "";
  flex: 1; height: 1px;
  background: var(--line);
}
.model-row { display: flex; flex-wrap: wrap; gap: 6px; }
.model-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px; font-weight: 500;
  color: var(--text);
  transition: all 0.12s;
}
.model-chip:hover { border-color: var(--line-strong); }
.model-chip .mark {
  width: 14px; height: 14px;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  color: #fff;
}

/* ============================================================
   BROWSE — Icons + Illustrations (compressed)
   ============================================================ */
.browse-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.browse-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.14s;
  position: relative;
}
.browse-card:hover { border-color: var(--line-strong); }
.browse-card .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 6px;
}
.browse-card .head .kicker {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.browse-card .head .stat {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}
.browse-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}
.browse-card h3 .serif { font-family: var(--serif); font-style: italic; color: var(--text); }
.browse-card p {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  max-width: 40ch;
}

/* brand tiles row (icons trending) */
.brand-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}
.brand-tile {
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.14s var(--ease-out);
  cursor: pointer;
}
.brand-tile:hover { transform: translateY(-2px); }
.brand-tile svg { width: 50%; height: 50%; }
.brand-tile .label {
  position: absolute;
  bottom: 4px; left: 4px; right: 4px;
  font-family: var(--mono); font-size: 8px;
  text-align: center;
  color: rgba(255,255,255,0.7);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0; transition: opacity 0.12s;
}
.brand-tile:hover .label { opacity: 1; }

.brand-tile.wa     { background: #25D366; }
.brand-tile.gpt    { background: #10A37F; }
.brand-tile.insta  {
  background: radial-gradient(circle at 30% 70%, #fdba47 0%, #f4396f 30%, #c423a3 60%, #4b34a3 90%);
}
.brand-tile.oai    { background: #000; border-color: var(--line-strong); }
html[data-mode="light"] .brand-tile.oai { background: #18181b; }
.brand-tile.valo   { background: #FF4655; }
.brand-tile.shopee { background: #EE4D2D; }
.brand-tile.phone  { background: #1e3a8a; }
.brand-tile.email  { background: #4338ca; }
.brand-tile svg { color: #fff; }

/* style chips (illustrations) */
.style-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.style-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font-family: var(--sans);
  transition: all 0.12s;
}
.style-chip:hover { border-color: var(--line-strong); }
.style-chip .swatch {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
}
.style-chip.s-3d  .swatch { background: radial-gradient(circle at 30% 30%, #fff, #aaa 60%, #555); }
.style-chip.s-trend .swatch { background: linear-gradient(135deg, #ff5e9c, #5e7eff); }
.style-chip.s-edu .swatch { background: #facc15; }
.style-chip.s-biz .swatch { background: #50e3c2; }
.style-chip.s-hand .swatch { background: #f4ede2; }

.browse-card .row-foot {
  display: flex; gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.browse-card .row-foot a {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.browse-card .row-foot a:hover { text-decoration: underline; }

/* sample illustration preview */
.ill-preview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 20px;
}
.ill-thumb {
  aspect-ratio: 1;
  border-radius: 9px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ill-thumb.t1 { background: radial-gradient(circle at 30% 30%, #ffd0a0, transparent 60%), linear-gradient(135deg, #ff9a5e, #c85a3a); }
.ill-thumb.t2 { background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.5), transparent 50%), linear-gradient(160deg, #82a4ff, #1e3a8a); }
.ill-thumb.t3 { background: radial-gradient(circle at 30% 30%, #b8b3ff, transparent 60%), linear-gradient(120deg, #a08fff, #6a4ec4); }

/* ============================================================
   FEATURED PRODUCTS — 3 cards
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.prod-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px 22px;
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: border-color 0.14s, background 0.14s;
}
.prod-card:hover { border-color: var(--line-strong); background: var(--panel-hover); }
.prod-card .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.prod-card .kicker {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.prod-card .badge {
  font-family: var(--mono); font-size: 10.5px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}
.prod-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.prod-card p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 36ch;
}
.prod-card .art {
  flex: 1;
  margin: 18px -10px 12px;
  position: relative;
  overflow: hidden;
}
.prod-card footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}
.prod-card footer .arrow {
  color: var(--ink); font-family: var(--sans);
  font-size: 13px; font-weight: 500;
}

/* Mega Creator art */
.art-mega {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  height: 100%;
  padding: 0 6px;
}
.art-mega span {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
}
.art-mega .blob1 { background: radial-gradient(circle at 30% 30%, #ff8a5a, #c43a3a); border: 0; }
.art-mega .blob2 { background: linear-gradient(160deg, #82a4ff, #1e3a8a); border: 0; }
.art-mega .blob3 { background: linear-gradient(120deg, #80e0a8, #0e6b3e); border: 0; grid-column: span 2; }

/* Lunacy art — design canvas */
.art-lunacy {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lunacy-canvas {
  width: 92%; height: 92%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lc-bar {
  height: 22px;
  display: flex; gap: 4px; align-items: center;
  padding: 0 8px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.lc-bar i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}
.lc-content {
  flex: 1; position: relative;
}
.lc-rect { position: absolute; left: 18%; top: 22%; width: 42%; height: 48%; background: var(--ink); border-radius: 4px; }
.lc-circle { position: absolute; right: 12%; bottom: 16%; width: 30%; aspect-ratio: 1; background: linear-gradient(135deg, var(--accent-magenta), var(--accent-blue)); border-radius: 50%; }

/* GenYOU art — avatar grid */
.art-genyou {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  height: 100%;
  padding: 0 6px;
}
.art-genyou span {
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.art-genyou span::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4), transparent 60%);
}
.art-genyou .g1 { background: linear-gradient(135deg, #f4a261, #c1593c); }
.art-genyou .g2 { background: linear-gradient(135deg, #ffd0e8, #9b7bff); }
.art-genyou .g3 { background: linear-gradient(135deg, #5fb8a8, #1d4f44); }
.art-genyou .g4 { background: linear-gradient(135deg, #2a7fff, #1a2a5a); }
.art-genyou .g5 { background: linear-gradient(135deg, #fcd34d, #d97706); }
.art-genyou .g6 { background: linear-gradient(135deg, #a5b4fc, #4338ca); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px;
}
.pricing-head {
  text-align: center;
  margin-bottom: 48px;
}
.pricing-head .section-kicker {
  justify-content: center;
}
.pricing-head h2 {
  margin: 14px 0 14px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
}
.pricing-head h2 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text); }
.pricing-head p {
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-2);
  max-width: 56ch;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 1080px;
  margin: 0 auto;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier .h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.tier .h .name {
  font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.tier .h .badge {
  font-family: var(--mono); font-size: 10.5px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.tier.is-featured {
  background: var(--bg-2);
  border: 1px solid var(--ink);
  z-index: 2;
}
.tier.is-featured .h .badge {
  background: var(--ink); color: var(--on-ink); border-color: transparent;
}
.tier.is-featured::before {
  content: "⭐ Recommended";
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--on-ink);
  font-family: var(--mono); font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.tier .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 10px 0 6px;
}
.tier .price .n {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tier .price .per {
  font-size: 13px; color: var(--muted);
}
.tier .credits {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.tier .credits b { color: var(--ink); font-weight: 500; }
.tier ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.tier li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.tier li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.tier .cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: all 0.12s;
}
.tier .cta:hover { border-color: var(--ink); }
.tier.is-featured .cta {
  background: var(--ink); color: var(--on-ink);
  border-color: transparent;
}
.tier.is-featured .cta:hover { filter: brightness(0.92); }

.pricing-foot {
  margin-top: 32px;
  text-align: center;
}
.pricing-foot a {
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
}
.pricing-foot a:hover { color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 36px;
}
.foot-brand { max-width: 280px; grid-column: span 2; }
.foot-brand .tag {
  margin: 14px 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.foot-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text-2);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.foot-status .ok {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
.foot-col {
  display: flex; flex-direction: column; gap: 9px;
}
.foot-col .h {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 500;
  margin-bottom: 4px;
}
.foot-col a {
  font-size: 13px;
  color: var(--text-2);
}
.foot-col a:hover { color: var(--ink); }
.foot-social {
  display: flex; gap: 8px; margin-top: 4px;
}
.foot-social a {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all 0.12s;
}
.foot-social a:hover { color: var(--ink); border-color: var(--line-strong); }
.foot-social svg { width: 13px; height: 13px; }
.foot-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  margin-top: 56px;
}
.foot-bar .right { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bar a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 6px 9px; font-size: 13px; }
  .version-pill { display: none; }
  .nav-search-btn { min-width: auto; padding: 6px 8px; }
  .nav-search-btn span { display: none; }
  .foot-inner { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-feat { max-width: 540px; }
  .studio-head { grid-template-columns: 1fr; gap: 24px; }
  .studio-cta { align-self: start; }
  .studio-demo { grid-template-columns: 1fr; }
  .demo-prompt { max-width: 480px; }
  .studio-models { grid-template-columns: 1fr; gap: 18px; }
  .browse-inner { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tier.is-featured::before { left: 28px; transform: none; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 900px) {
  .nav-links a[href="#illustrations"] { display: none; }
  .top-actions .btn-ghost { display: none; }
  .brand-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .topbar-inner { padding: 0 18px; gap: 12px; }
  .nav-links { display: none; }
  .hero-inner, .section-inner, .studio-inner, .pricing-inner, .foot-inner, .foot-bar { padding-left: 18px; padding-right: 18px; }
  .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .section-inner { padding-top: 64px; padding-bottom: 64px; }
  .section-head { grid-template-columns: 1fr; }
  .demo-outputs { grid-template-columns: 1fr; }
  .brand-row { grid-template-columns: repeat(4, 1fr); }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
  .foot-brand { grid-column: span 1; }
  .foot-bar { flex-direction: column; gap: 12px; }
  .version-strip-inner { flex-wrap: wrap; gap: 8px; }
  .vs-strip-r { width: 100%; margin-left: 0; }
}
