:root {
  --ink: #0b1220;
  --ink-2: #1a2333;
  --text: #0f172a;
  --muted: #5b6577;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --accent: #c6f432;
  --accent-ink: #0b1220;
  --brand: #2f5bff;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11,18,32,.06), 0 12px 32px -12px rgba(11,18,32,.18);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; font-family: var(--font); white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 8px 24px -8px rgba(198,244,50,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.logo b { font-weight: 700; }
.logo.small { font-size: 1rem; }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .94rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; background:
  radial-gradient(900px 420px at 85% 10%, rgba(47,91,255,.10), transparent 60%),
  radial-gradient(700px 360px at 10% 0%, rgba(198,244,50,.22), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); padding: 0 .08em; }
.lead { font-size: 1.15rem; color: var(--muted); margin-top: 22px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; list-style: none; padding: 0; margin: 32px 0 0; color: var(--muted); font-size: .92rem; flex-wrap: wrap; }
.hero-proof li { position: relative; padding-left: 20px; }
.hero-proof li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.hero-proof b { color: var(--text); font-weight: 600; }

.hero-card { background: var(--ink); color: #e6ebf5; border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px -24px rgba(11,18,32,.5); transform: rotate(1deg); }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.hc-file { font-family: var(--mono); font-size: .76rem; color: #8b96ad; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: rgba(198,244,50,.14); color: var(--accent); }
.hc-code { margin: 16px 0; font-family: var(--mono); font-size: .84rem; line-height: 1.7; white-space: pre-wrap; }
.hc-code .c { color: #5b6880; } .hc-code .k { color: #8fb4ff; } .hc-code .s { color: var(--accent); }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hc-stats div { background: rgba(255,255,255,.05); border-radius: 10px; padding: 10px 12px; }
.hc-stats b { display: block; font-family: var(--display); font-size: 1.3rem; color: #fff; }
.hc-stats span { font-size: .74rem; color: #8b96ad; }
.hc-harness { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-size: .74rem; color: #8b96ad; }
.hc-harness i { font-style: normal; background: rgba(255,255,255,.07); color: #d6dcea; padding: 3px 9px; border-radius: 999px; }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.strip-inner { display: flex; align-items: center; gap: 24px; padding: 18px 24px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.strip li { font-family: var(--display); font-weight: 600; color: var(--text); opacity: .75; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sub { color: var(--muted); font-size: 1.07rem; margin-top: 16px; }

/* Props */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.prop:hover { border-color: #cfd5e1; transform: translateY(-2px); box-shadow: var(--shadow); }
.prop-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.prop-ic svg { width: 22px; height: 22px; stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.prop p { color: var(--muted); font-size: .95rem; margin-top: 8px; }

.flow { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow li { padding: 22px; border-right: 1px solid var(--line); background: #fff; }
.flow li:last-child { border-right: 0; background: var(--ink); color: #fff; }
.flow li:last-child p { color: #aab4c8; }
.flow .n { display: block; font-family: var(--mono); font-size: .78rem; color: var(--brand); margin-bottom: 8px; }
.flow li:last-child .n { color: var(--accent); }
.flow b { font-family: var(--display); font-size: 1.05rem; }
.flow p { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* Catalog */
.search { position: relative; width: 300px; max-width: 100%; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--muted); }
.chip:hover { color: var(--text); border-color: #cfd5e1; }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfd5e1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cat { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.status { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.status.approved { background: #e8f8ee; color: #137a3a; }
.status.review { background: #fff6e0; color: #8a5a00; }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; flex-wrap: wrap; }
.card-meta b { color: var(--text); font-weight: 600; }
.tag-top { background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-left: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty a { color: var(--brand); font-weight: 600; }
.note { margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* Harness */
.harness { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.harness .sub code { background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1220' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks.small li { font-size: .95rem; color: var(--muted); }
.term { background: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(11,18,32,.45); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 12px 16px; background: #131c2e; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: .74rem; color: #6b7894; }
.term pre { margin: 0; padding: 20px; font-family: var(--mono); font-size: .82rem; line-height: 1.75; color: #e6ebf5; overflow-x: auto; }
.term .p { color: var(--accent); } .term .m { color: #8b96ad; }

/* Audiences */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aud-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.aud-card h3 { font-size: 1.5rem; }
.aud-card ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.aud-card li { padding-left: 26px; position: relative; color: var(--muted); }
.aud-card li::before { content: "→"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.aud-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.aud-dark li { color: #b6c0d4; }
.aud-dark li::before { color: var(--accent); }

/* Creators */
.creators { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.creators .btn { margin-top: 28px; }
.tiers { display: grid; gap: 14px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.tier-n { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.tier p { color: var(--muted); font-size: .94rem; margin-top: 4px; }
.tier-hot { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; }
.tier-hot p { color: #b6c0d4; }
.tier-hot .tier-n { color: var(--accent); }
.tier-hot::after { content: "Commission"; position: absolute; right: 18px; top: 20px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.form .invalid { border-color: #dc2626; }
.form button { justify-self: start; }
.form-msg { font-size: .92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #dc2626; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 120%, rgba(198,244,50,.22), transparent 70%); }
.cta-inner { position: relative; text-align: center; }
.cta h2 { max-width: 760px; margin: 0 auto; }
.cta p { color: #aab4c8; margin-top: 14px; font-size: 1.08rem; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin: 32px auto 0; max-width: 620px; }
.cta-form input, .cta-form select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid #2a3550; background: #131c2e; color: #fff; }
.cta-form input { flex: 1; min-width: 0; }
.cta-form input::placeholder { color: #6b7894; }
.cta .form-msg { margin-top: 14px; color: var(--accent); }
.cta .form-msg.err { color: #fca5a5; }

/* Footer */
.foot { padding: 40px 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: .9rem; }
.foot nav a:hover { color: var(--text); }
.foot p { margin-left: auto; color: var(--muted); font-size: .84rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
  .props { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open .nav-links a { padding: 12px 0; font-size: 1rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .harness, .creators, .form-wrap, .aud { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { transform: none; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .props, .grid, .f2 { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .aud-card, .form { padding: 24px; }
  .foot p { margin-left: 0; }
  .hc-stats b { font-size: 1.1rem; }
}

/* Let grid children shrink below their content width (prevents mobile overflow) */
.hero-grid > *, .harness > *, .creators > *, .form-wrap > *, .aud > *, .grid > *, .props > * { min-width: 0; }

/* Private brand library */
.brandlib { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: start; }
.brandlib > * { min-width: 0; }
.lib { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 92px; }
.lib-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lib-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lib-brand b { display: block; font-family: var(--display); }
.lib-brand div span { font-size: .8rem; color: var(--muted); }
.lib-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.lib-lock { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.lib-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lib-list { list-style: none; margin: 0; padding: 6px 0; }
.lib-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; }
.lib-list li + li { border-top: 1px solid var(--line); }
.lib-list div { min-width: 0; }
.lib-list b { display: block; font-weight: 600; font-size: .95rem; }
.lib-list span { font-size: .8rem; color: var(--muted); }
.pill { font-style: normal; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-private { background: var(--ink); color: var(--accent); }
.pill-pilot { background: #fff6e0; color: #8a5a00; }
.pill-open { background: #e8f8ee; color: #137a3a; }
.lib-foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 14px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: .82rem; color: var(--muted); }
.lib-foot b { color: var(--text); font-weight: 600; }
.lib-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #e4e7ee; overflow: hidden; grid-row: 2; }
.lib-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.lib-pct { grid-row: 1; grid-column: 2; }
.bl-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bl-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bl-feat h3 { font-size: 1.02rem; }
.bl-feat p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.bl-cta { display: flex; align-items: center; gap: 18px; margin-top: 36px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .brandlib { grid-template-columns: 1fr; }
  .lib { position: static; }
}
@media (max-width: 600px) {
  .bl-feats { grid-template-columns: 1fr; }
  .lib-list li, .lib-head, .lib-foot { padding-left: 16px; padding-right: 16px; }
}
