/* =============================================================
   chatty — AI chat copilot for OnlyFans & Fanvue agencies
   Design system v2 — "Powder-faithful": warm off-white on black,
   Inter + Fragment Mono, white CTAs, minimal, dusk hero.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #070708;
  --bg-2: #0a0a0c;
  --bg-elev: #121214;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.10);
  --hair-strong: rgba(255, 255, 255, 0.18);

  --text: #fff3f0;          /* warm off-white (Powder) */
  --muted: rgba(255, 243, 240, 0.62);
  --faint: rgba(255, 243, 240, 0.56);

  --cream: #fff3f0;         /* white/cream button bg */
  --ink: #1a1614;           /* near-black button text */

  /* subtle warm accent — used sparingly */
  --warm: #f0a98e;
  --warm-deep: #e07d5a;
  --good: #7fd9a8;

  --f-display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px; --sp-11: 168px;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 40px 90px -50px rgba(0,0,0,0.95);
  --shadow-lift: 0 30px 70px -40px rgba(0,0,0,0.9);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(255,243,240,0.20); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Atmosphere (subtle grain only; hero owns the dusk) ---------- */
.atmos { position: fixed; inset: 0; z-index: -2; pointer-events: none; background:
  radial-gradient(60% 50% at 50% -10%, rgba(120,120,140,0.10), transparent 60%); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--sp-10); position: relative; }
.section--tight { padding-block: var(--sp-9); }
.center { text-align: center; }
.maxw-2 { max-width: 660px; } .maxw-3 { max-width: 820px; }
.center .maxw-2, .center .maxw-3 { margin-inline: auto; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--hair-strong); }
.eyebrow.center-line { justify-content: center; }
.eyebrow.center-line::after { content: ""; width: 18px; height: 1px; background: var(--hair-strong); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.035em; color: var(--text); }
.h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 450; }
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.042em; font-weight: 450; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -0.032em; }
.display-em { font-style: italic; color: var(--text); opacity: 0.96; }
.lede { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; font-weight: 400; }
.kicker { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.tnum { font-variant-numeric: tabular-nums; }

.section-head { margin-bottom: var(--sp-8); }
.section-head .h2 { margin-top: 18px; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-pill); font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.01em; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, opacity 0.3s; will-change: transform; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cream); color: var(--ink); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--hair-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-circle { width: 50px; height: 50px; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid var(--hair-strong); }
.btn-circle:hover { background: rgba(255,255,255,0.1); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 15px; transition: gap 0.3s var(--ease), opacity 0.3s; }
.link-arrow:hover { gap: 13px; opacity: 0.8; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 100; transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7,7,8,0.72); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--hair); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.03em; }
.brand .dot-mark { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.brand .dot-mark svg { width: 15px; height: 15px; color: var(--ink); }
.brand .bw { font-weight: 500; }
.brand .bw b { font-weight: 600; font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 36px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--hair); align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 1.5px; background: var(--text); position: relative; transition: 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--text); transition: 0.3s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 72px 0 0; z-index: 99; background: rgba(7,7,8,0.97); backdrop-filter: blur(20px); padding: 32px 24px; display: flex; flex-direction: column; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s linear; }
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s; }
.mobile-menu a { font-size: 1.08rem; font-weight: 400; letter-spacing: -0.02em; padding: 13px 0; border-bottom: 1px solid var(--hair); color: var(--text); }
.mobile-menu .btn { margin-top: 18px; font-size: 0.95rem; padding: 13px 22px; }
.mobile-menu .btn-primary { color: var(--ink); } /* override .mobile-menu a color so button text stays dark on cream */

/* ---------- HERO (Powder-style centered + dusk) ---------- */
.hero { position: relative; padding-top: 170px; padding-bottom: 0; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 86%, rgba(255,150,105,0.30), rgba(255,120,85,0.10) 38%, transparent 64%),
    radial-gradient(80% 50% at 50% 100%, rgba(120,60,50,0.5), transparent 70%),
    linear-gradient(180deg, #0c0e13 0%, #12110f 40%, #241915 66%, #160f0e 84%, var(--bg) 100%);
}
.hero-bg::after { /* distant hills silhouette */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background:
    radial-gradient(60% 120% at 18% 130%, #07090a 60%, transparent 72%),
    radial-gradient(70% 130% at 70% 135%, #060708 58%, transparent 74%),
    linear-gradient(180deg, transparent, var(--bg) 86%);
}
.hero-inner { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 7px 6px 15px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: rgba(255,255,255,0.05); backdrop-filter: blur(8px); font-size: 13px; color: var(--muted); }
.hero-badge .arrowdot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid var(--hair); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text); }
.hero .h1 { margin: 26px auto 0; max-width: 760px; }
.hero .lede { margin: 22px auto 0; max-width: 440px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; justify-content: center; align-items: center; }
.hero-trust { margin-top: 26px; display: inline-flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; font-family: var(--f-mono); letter-spacing: 0; flex-wrap: wrap; justify-content: center; }
.hero-trust .pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }

/* Wide glassy hero card (the "Welcome back" analog) */
.hero-card { max-width: 880px; margin: 64px auto 0; border-radius: 22px 22px 0 0; border: 1px solid var(--hair-strong); border-bottom: none;
  background: linear-gradient(180deg, rgba(22,20,24,0.82), rgba(10,10,12,0.72)); backdrop-filter: blur(22px); box-shadow: var(--shadow-card); overflow: hidden; text-align: left; }
.hc-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.hc-top .hc-ava { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3a2a2a, #1c1416); border: 1px solid var(--hair); flex: none; overflow: hidden; }
.hc-top .hc-ava img { width: 100%; height: 100%; object-fit: cover; }
.hc-top .hc-name { font-weight: 500; font-size: 14.5px; }
.hc-top .hc-sub { font-family: var(--f-mono); font-size: 11px; color: var(--good); }
.hc-top .hc-badge { margin-left: auto; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--hair); padding: 5px 10px; border-radius: var(--r-pill); }
.hc-body { padding: 22px 20px 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 470px; overflow: hidden; }
.hc-body > *, .mini-chat > * { flex-shrink: 0; } /* keep bubbles/PPV full-size — never squish the locked preview */
.hc-composer { display: flex; align-items: center; gap: 12px; margin: 8px 14px 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: rgba(0,0,0,0.3); }
.hc-composer .cm-text { color: var(--faint); font-size: 13.5px; flex: 1; }
.hc-composer .cm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 8px var(--warm); flex: none; animation: pulse 1.4s infinite; }
.hc-composer .cm-send { width: 30px; height: 30px; border-radius: 9px; background: var(--cream); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hc-composer .cm-send svg { width: 15px; height: 15px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* chat bubbles (shared) */
.bubble { max-width: 74%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.js-reveal .hc-body .bubble:not(.show) { display: none; }
.bubble.in { align-self: flex-start; background: rgba(255,255,255,0.07); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--cream); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 450; }
.bubble.show { animation: pop 0.5s var(--ease) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.typing { padding: 13px 16px; border-radius: 16px; display: none; gap: 4px; width: -moz-fit-content; width: fit-content; }
.typing.show { display: inline-flex; }
.typing.t-in { align-self: flex-start; background: rgba(255,255,255,0.07); border-bottom-left-radius: 5px; }
.typing.t-out { align-self: flex-end; background: var(--cream); border-bottom-right-radius: 5px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing.t-out span { background: rgba(26,22,20,0.5); }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,60%,100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ppv { align-self: flex-end; max-width: 76%; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair-strong); background: rgba(255,255,255,0.04); }
.js-reveal .hc-body .ppv:not(.show) { display: none; }
.ppv.show { animation: pop 0.5s var(--ease) forwards; }
.ppv-img { height: 88px; background: linear-gradient(135deg, rgba(224,125,90,0.25), rgba(40,30,30,0.4)); display: flex; align-items: center; justify-content: center; color: rgba(255,243,240,0.7); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; }
.ppv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; font-size: 13px; }
.ppv-row .unlocked { color: var(--good); font-family: var(--f-mono); font-size: 11.5px; }

/* ---------- Integration strip ---------- */
.proof-strip { border-bottom: 1px solid var(--hair); padding-block: 30px; background: var(--bg); position: relative; z-index: 1; }
.proof-strip .lbl { text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 46px; flex-wrap: wrap; }
.logo-row .lg { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); opacity: 0.7; transition: opacity 0.3s, color 0.3s; }
.logo-row .lg:hover { opacity: 1; color: var(--text); }

/* ---------- Cards / feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 30px; position: relative; overflow: hidden; transition: border-color 0.4s, transform 0.4s var(--ease), background 0.4s; }
.card:hover { border-color: var(--hair-strong); transform: translateY(-4px); background: var(--surface-2); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); margin-bottom: 20px; color: var(--text); }
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-weight: 500; font-size: 1.16rem; letter-spacing: -0.025em; line-height: 1.25; }
.card p { color: var(--muted); margin-top: 11px; font-size: 14.5px; line-height: 1.58; }
.card .feat-tag { position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); background: var(--cream); padding: 3px 8px; border-radius: var(--r-pill); font-weight: 500; }

/* ---------- Comparison ---------- */
.vs-glass { position: relative; isolation: isolate; padding: clamp(18px, 3vw, 36px); border-radius: 28px; }
.vs-glass > .dusk-bg { inset: 0; border-radius: 28px; }
.vs-wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.vs-col { position: relative; padding: 30px; border-radius: 20px; border: 1px solid var(--hair); background: rgba(16,14,14,0.5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.vs-col.left { background: rgba(255,255,255,0.018); }
.vs-col.right { border-color: rgba(232,132,92,0.5); background: linear-gradient(165deg, rgba(224,125,90,0.16), rgba(20,16,15,0.55)); box-shadow: 0 28px 64px -30px rgba(224,125,90,0.5), inset 0 1px 0 rgba(255,255,255,0.07); }
.vs-badge { position: absolute; top: -11px; right: 22px; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); background: linear-gradient(90deg, var(--warm), var(--warm-deep)); padding: 5px 11px; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(224,125,90,0.6); }
.vs-mid { display: flex; align-items: center; justify-content: center; width: 44px; }
.vs-orb { width: 50px; height: 50px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 600; font-style: italic; color: var(--ink); box-shadow: 0 0 0 6px rgba(7,7,8,0.5); }
.vs-col h3 { font-weight: 500; font-size: 1.05rem; margin-bottom: 20px; letter-spacing: -0.02em; }
.vs-col.left h3 { color: var(--muted); }
.vs-col.right h3 { color: var(--text); }
.vs-list li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; line-height: 1.4; color: var(--faint); }
.vs-list li:last-child { border-bottom: none; }
.vs-col.right .vs-list li { color: var(--text); border-bottom-color: rgba(232,132,92,0.14); }
.vs-ic { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.vs-ic.bad { color: var(--faint); } .vs-ic.good { color: var(--good); }
.vs-foot { margin-top: 18px; padding: 16px 22px; border-radius: 14px; background: rgba(224,125,90,0.1); border: 1px solid rgba(232,132,92,0.28); font-size: 14.5px; line-height: 1.55; color: var(--text); text-align: center; }
.vs-foot b { color: var(--warm); font-weight: 600; }

/* ---------- Dashboard mockup ---------- */
.dash { border-radius: var(--r-xl); border: 1px solid var(--hair-strong); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); padding: 12px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.dash-chrome { display: flex; align-items: center; gap: 8px; padding: 6px 10px 12px; }
.dash-chrome .dots { display: flex; gap: 6px; }
.dash-chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--hair-strong); display: block; }
.dash-chrome .addr { margin-left: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); background: rgba(0,0,0,0.3); padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--hair); }
.dash-app { display: grid; grid-template-columns: 200px 1fr; background: var(--bg-2); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); min-height: 440px; }
.dash-side { padding: 20px 14px; border-right: 1px solid var(--hair); background: rgba(0,0,0,0.25); }
.dash-side .ds-brand { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 22px; padding-inline: 8px; }
.dash-side .ds-brand .dot-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; }
.dash-side .ds-brand .dot-mark svg { width: 12px; height: 12px; color: var(--ink); }
.dash-nav { display: flex; flex-direction: column; gap: 3px; }
.dash-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; font-size: 13.5px; color: var(--muted); transition: 0.25s; }
.dash-nav a svg { width: 16px; height: 16px; opacity: 0.8; }
.dash-nav a.on { background: rgba(255,255,255,0.07); color: var(--text); border: 1px solid var(--hair); }
.dash-nav a:hover { color: var(--text); }
.dash-main { padding: 22px; overflow: hidden; }
.dash-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dash-h .title { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; }
.dash-h .acct { font-family: var(--f-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--hair); padding: 6px 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 7px; }
.dash-h .acct::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px; }
.kpi .k-lbl { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--faint); }
.kpi .k-val { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; margin-top: 8px; }
.kpi .k-delta { font-family: var(--f-mono); font-size: 10.5px; margin-top: 4px; color: var(--good); }
.dash-low { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px; }
.panel .p-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel .p-h .pt { font-size: 13px; font-weight: 500; }
.panel .p-h .pm { font-family: var(--f-mono); font-size: 10px; color: var(--faint); }
.chart { height: 96px; position: relative; }
.chart svg { width: 100%; height: 100%; }
.flirty { display: flex; flex-direction: column; gap: 10px; }
.slider { height: 6px; border-radius: var(--r-pill); background: var(--hair); position: relative; margin-top: 4px; }
.slider .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--warm), var(--warm-deep)); }
.slider .knob { position: absolute; left: 64%; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: var(--cream); transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.fl-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 9px; color: var(--faint); letter-spacing: 0.03em; text-transform: uppercase; }
.media-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.media-mini .mm { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--hair); background: linear-gradient(135deg, #2a2120, #15110f); overflow: hidden; }
.media-mini .mm img { width: 100%; height: 100%; object-fit: cover; }
.media-mini .mm.gen { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px dashed var(--hair-strong); color: var(--muted); font-family: var(--f-mono); font-size: 11px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow-card); position: relative; aspect-ratio: 4/3; background: linear-gradient(135deg, #2a2120, #14100f); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--faint); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; text-align: center; padding: 20px; }
.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list .fi { flex: none; width: 28px; height: 28px; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--text); }
.feature-list .fi svg { width: 15px; height: 15px; }
.feature-list .ft strong { font-weight: 500; font-size: 15.5px; display: block; letter-spacing: -0.02em; }
.feature-list .ft span { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding-top: 28px; border-top: 1px solid var(--hair); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 24px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.step .st-line { position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--text); transition: width 0.8s var(--ease); }
.step.revealed .st-line { width: 100%; }
.step h3 { font-weight: 500; font-size: 1.16rem; letter-spacing: -0.025em; margin: 40px 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Security teaser ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-item { padding: 24px; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--surface); }
.sec-item .si-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--text); margin-bottom: 16px; }
.sec-item .si-ic svg { width: 19px; height: 19px; }
.sec-item h4 { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.sec-item p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font-size: 1.25rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1.3; transition: opacity 0.3s; }
.faq-q:hover { opacity: 0.8; }
.faq-q .pm-ic { flex: none; width: 24px; height: 24px; position: relative; }
.faq-q .pm-ic::before, .faq-q .pm-ic::after { content: ""; position: absolute; background: var(--text); transition: transform 0.35s var(--ease); }
.faq-q .pm-ic::before { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.faq-q .pm-ic::after { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.faq-item.open .pm-ic::before { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding-bottom: 26px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 640px; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-xl); border: 1px solid var(--hair-strong); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); padding: clamp(40px, 6vw, 76px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 90% at 50% 120%, rgba(255,150,105,0.18), transparent 60%); pointer-events: none; }
.cta-band .h2, .cta-band .lede, .cta-actions { position: relative; }
.cta-band .lede { margin: 20px auto 34px; max-width: 540px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hair); padding-block: var(--sp-8) var(--sp-6); margin-top: var(--sp-9); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--hair); flex-wrap: wrap; }
.footer-bottom p { color: var(--faint); font-size: 13px; }
.footer-bottom .disclaimer { max-width: 640px; line-height: 1.5; }
.tg-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: var(--r-pill); border: 1px solid var(--hair-strong); background: rgba(255,255,255,0.04); font-size: 14px; font-weight: 500; transition: 0.3s; }
.tg-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.tg-btn svg { width: 18px; height: 18px; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 44px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 9px; }
.field label .req { color: var(--warm); }
.field .hint { color: var(--faint); font-size: 12.5px; font-weight: 400; margin-left: 6px; }
.input, .select, .textarea { width: 100%; background: rgba(0,0,0,0.28); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px 16px; color: var(--text); font: inherit; font-size: 15px; transition: border-color 0.3s, background 0.3s; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--hair-strong); background: rgba(0,0,0,0.4); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.textarea { resize: vertical; min-height: 130px; }
select.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fff3f0' stroke-opacity='0.5' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); font-family: var(--f-mono); font-size: 15px; }
.input-group .input { padding-left: 38px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 16px; line-height: 1.55; }
.form-success { display: none; text-align: center; padding: 30px 0; }
.form-success.show { display: block; }
.form-success .fs-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 20px; background: rgba(127,217,168,0.12); border: 1px solid rgba(127,217,168,0.3); display: flex; align-items: center; justify-content: center; color: var(--good); }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-side .chan { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.contact-side .chan .ci { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--text); }
.contact-side .chan h4 { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.contact-side .chan p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.contact-side .chan a { color: var(--text); font-size: 14px; border-bottom: 1px solid var(--hair-strong); }

/* ---------- Interior page hero ---------- */
.page-hero { padding-top: 150px; padding-bottom: var(--sp-7); text-align: center; }
.page-hero .h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin: 20px auto 0; max-width: 16ch; }
.page-hero .lede { margin: 22px auto 0; max-width: 560px; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); }
.js-reveal .reveal.revealed { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal[data-d="4"] { transition-delay: 0.28s; }
.reveal[data-d="5"] { transition-delay: 0.35s; }

.hero-anim { opacity: 0; transform: translateY(18px); animation: heroIn 0.9s var(--ease) forwards; }
.hero-anim[data-d="1"] { animation-delay: 0.05s; }
.hero-anim[data-d="2"] { animation-delay: 0.16s; }
.hero-anim[data-d="3"] { animation-delay: 0.28s; }
.hero-anim[data-d="4"] { animation-delay: 0.4s; }
.hero-anim[data-d="5"] { animation-delay: 0.52s; }
.hero-mock-anim { opacity: 0; transform: translateY(28px) scale(0.99); animation: heroIn 1.1s var(--ease) 0.36s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .split { gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .dash-low { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .split-media { order: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-side { display: none; }
  .dash-app { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-9); }
  .vs-wrap { grid-template-columns: 1fr; gap: 14px; }
  .vs-col { border-radius: 18px; }
  .vs-mid { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }

  /* ---- Hero: tighten void above headline, scale H1, stack CTAs ---- */
  .hero { padding-top: 108px; }
  .hero .h1 { font-size: clamp(2.05rem, 9vw, 2.9rem); margin-top: 18px; }
  .hero .lede { margin-top: 18px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 26px; }
  .hero-cta .btn { width: 100%; }
  .hero-card { margin-top: 40px; }
  .hc-body { height: 430px; }
  /* interior page hero shares the same oversized top void */
  .page-hero { padding-top: 108px; padding-bottom: var(--sp-6); }
  .page-hero .h1 { font-size: clamp(2rem, 8.5vw, 3.2rem); }
}

/* =============================================================
   Upgrade v3 — animated product mockups
   ============================================================= */

/* count-up numerics keep tabular width so they don't jiggle */
[data-countup] { font-variant-numeric: tabular-nums; }

/* ---- Creator card (dashboard hero) ---- */
.creator-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 16px; align-items: center; }
.cc-photo { width: 92px; height: 116px; flex: none; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--hair); background: linear-gradient(135deg,#2a2120,#14100f); }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; }
.cc-photo .dot { position: absolute; bottom: 8px; left: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg-2); box-shadow: 0 0 8px var(--good); }
.cc-body { flex: 1; min-width: 0; }
.cc-name { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.cc-name .verif { color: var(--warm); }
.cc-reply { font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.cc-earned { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.04em; margin-top: 12px; line-height: 1; }
.cc-earned-lbl { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.cc-stats { display: flex; gap: 18px; margin-top: 14px; }
.cc-stat { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.cc-stat svg { width: 15px; height: 15px; opacity: 0.7; }
.cc-stat b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- Toggle switch (auto-demo) ---- */
.tog { width: 38px; height: 22px; border-radius: 999px; background: var(--hair-strong); position: relative; flex: none; transition: background 0.4s var(--ease); }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); transition: transform 0.4s var(--ease); }
.is-demo .tog, .is-demo .tog.on { background: var(--warm-deep); }
.is-demo .tog::after, .is-demo .tog.on::after { transform: translateX(16px); }

/* ---- Behavior settings panel ---- */
.behavior { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px; }
.bh-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.bh-row:last-child { border-bottom: none; }
.bh-row .lbl { color: var(--muted); }
.bh-pill { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--hair-strong); border-radius: 999px; padding: 4px 11px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.bh-pill.accent { border-color: rgba(232,132,92,0.4); color: var(--warm); }
.bh-opts { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.bh-opt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); transition: 0.4s var(--ease); }
.bh-opt.sel { border-color: var(--warm-deep); color: var(--text); background: rgba(232,132,92,0.1); }
.is-demo .bh-opt.demo-sel { border-color: var(--warm-deep); color: var(--text); background: rgba(232,132,92,0.12); }

/* flirty slider (animated) */
.flirty-demo .slider .fill { width: 0; transition: width 1.4s cubic-bezier(0.22,1,0.36,1); }
.flirty-demo .slider .knob { left: 0; transition: left 1.4s cubic-bezier(0.22,1,0.36,1); }
.is-demo.flirty-demo .slider .fill { width: 66%; }
.is-demo.flirty-demo .slider .knob { left: 66%; }

/* ---- Fan profile card ---- */
.fan-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px; }
.fan-head { display: flex; align-items: center; gap: 11px; }
.fan-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,#3a2a2a,#1c1416); border: 1px solid var(--hair); flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }
.fan-name { font-weight: 600; font-size: 14.5px; }
.fan-tier { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--warm); border: 1px solid rgba(232,132,92,0.35); padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.fan-meta { display: flex; gap: 16px; margin-top: 14px; }
.fan-meta .fm { font-size: 11px; color: var(--faint); font-family: var(--f-mono); }
.fan-meta .fm b { display: block; font-size: 15px; color: var(--text); font-family: var(--f-body); font-weight: 600; margin-top: 2px; }
.fan-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.fan-tag { font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--hair); padding: 3px 9px; border-radius: 999px; }
.fan-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); border-left: 2px solid var(--warm-deep); padding-left: 11px; line-height: 1.5; }

/* ---- Leaderboard ---- */
.leader { display: flex; flex-direction: column; gap: 8px; }
.leader-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; }
.leader-row.top { border-color: rgba(232,132,92,0.35); background: rgba(232,132,92,0.06); }
.leader-rank { font-family: var(--f-mono); font-size: 12px; color: var(--faint); width: 18px; }
.leader-ava { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; border: 1px solid var(--hair); background: linear-gradient(135deg,#2a2120,#14100f); }
.leader-ava img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { font-weight: 500; font-size: 14px; flex: 1; }
.leader-val { font-family: var(--f-mono); font-size: 13px; color: var(--good); font-weight: 500; }

/* ---- AI vs human meter ---- */
.vsmeter { display: flex; flex-direction: column; gap: 16px; }
.vsm-row .vsm-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.vsm-row .vsm-top .who { color: var(--muted); }
.vsm-row .vsm-top .num { font-family: var(--f-mono); font-weight: 500; }
.vsm-track { height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--hair); overflow: hidden; }
.vsm-fill { display: block; height: 100%; border-radius: 999px; width: 0; }
.vsm-fill.ai { background: linear-gradient(90deg, var(--warm), var(--warm-deep)); }
.vsm-fill.human { background: rgba(255,243,240,0.3); }

/* ---- Triggers panel ---- */
.trig { display: flex; flex-direction: column; gap: 2px; }
.trig-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--hair); }
.trig-row:last-child { border-bottom: none; }
.trig-ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.trig-ic svg { width: 15px; height: 15px; }
.trig-row .tt { flex: 1; font-size: 13.5px; }
.trig-row .tt span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }

/* ---- Media generation panel ---- */
.mediagen { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 16px; }
.mg-prompt { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,0.3); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 13px; font-size: 13px; color: var(--muted); }
.mg-prompt .spark { color: var(--warm); }
.mg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mg-cell { aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; border: 1px solid var(--hair); background: linear-gradient(135deg,#2a2120,#14100f); position: relative; }
.mg-cell img { width: 100%; height: 100%; object-fit: cover; }
.mg-cell.gen { display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(232,132,92,0.4); color: var(--warm); font-family: var(--f-mono); font-size: 11px; text-align: center; }
.mg-cell .shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,243,240,0.08) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Feature demo grid ---- */
.demos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.demo { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px; transition: border-color 0.4s, transform 0.4s var(--ease); }
.demo:hover { border-color: var(--hair-strong); transform: translateY(-3px); }
.demo .dc-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); }
.demo .dc-title { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.025em; margin: 10px 0 8px; }
.demo .dc-desc { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.demo .dc-mock { margin-top: 4px; }
.demo.wide { grid-column: 1 / -1; }

/* compact chat used in demo cards */
.mini-chat { background: rgba(0,0,0,0.25); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 9px; height: 320px; overflow: hidden; }
.mini-chat .bubble { max-width: 82%; font-size: 13px; padding: 9px 13px; }
.js-reveal .mini-chat .bubble:not(.show), .js-reveal .mini-chat .ppv:not(.show) { display: none; }
.mini-chat .ppv { max-width: 70%; }
.mini-chat .ppv-img { height: 70px; }

/* ---- Safety / anti-flag section ---- */
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.safe-item { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 22px; }
.safe-item .si-ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(127,217,168,0.1); border: 1px solid rgba(127,217,168,0.25); display: flex; align-items: center; justify-content: center; color: var(--good); margin-bottom: 15px; }
.safe-item .si-ic svg { width: 19px; height: 19px; }
.safe-item h4 { font-weight: 500; font-size: 15px; letter-spacing: -0.02em; }
.safe-item p { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.55; }
.delay-mock { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: rgba(0,0,0,0.25); border: 1px solid var(--hair); border-radius: 10px; padding: 11px 13px; }
.delay-mock .dm-lbl { font-size: 12px; color: var(--muted); flex: 1; }
.delay-mock .dm-val { font-family: var(--f-mono); font-size: 12px; color: var(--good); }

@media (max-width: 860px) {
  .demos { grid-template-columns: 1fr; }
  .safe-grid { grid-template-columns: 1fr; }
  .creator-card { flex-direction: row; }
  .mg-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .creator-card { flex-direction: column; align-items: flex-start; }
  .cc-photo { width: 100%; height: 200px; }
  .cc-stats { flex-wrap: wrap; gap: 12px 18px; }
  .demo { padding: 20px; }
  .fan-meta { flex-wrap: wrap; gap: 12px 16px; }
}

/* =============================================================
   Upgrade v4 — Liquid-glass kit (Powder-faithful)
   Warm-dusk backdrop + floating glass panels, soft selects,
   segmented pills, status pills, media gallery. Reused across
   dashboard, feature splits, security memory + AI-media studio.
   ============================================================= */

/* ---- Warm-dusk backdrop wrapper ---- */
/* Wrap any section/mockup whose glass should glow with warmth.
   The mesh is a real painted layer so backdrop-filter has warmth to blur. */
.dusk { position: relative; isolation: isolate; }
.dusk > .dusk-bg {
  position: absolute; inset: -6% -2% -10%; z-index: -1; pointer-events: none; border-radius: 36px;
  background:
    radial-gradient(46% 38% at 22% 78%, rgba(240,169,142,0.42), transparent 62%),
    radial-gradient(40% 34% at 80% 70%, rgba(224,125,90,0.40), transparent 64%),
    radial-gradient(60% 46% at 50% 110%, rgba(200,90,60,0.30), transparent 70%),
    radial-gradient(50% 40% at 70% 14%, rgba(150,120,150,0.16), transparent 66%),
    linear-gradient(180deg, #100c0d 0%, #1a1210 46%, #221512 70%, #0c0809 100%);
  filter: saturate(1.05);
}
.dusk > .dusk-bg::after { /* soft vignette so panels float, edges fade to near-black */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 50% 50%, transparent 52%, rgba(7,7,8,0.55) 86%, var(--bg) 100%);
}

/* ---- Glass panel + sub-cards ---- */
.glass-panel {
  background: rgba(20,18,18,0.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  backdrop-filter: blur(24px) saturate(1.1);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
}
.glass-subcard {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}

/* ---- Soft labeled select (signature element) ---- */
.soft-select { display: flex; flex-direction: column; gap: 7px; }
.soft-select > .ss-lbl {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
}
.soft-field {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px;
  padding: 11px 14px; font-size: 13.5px; color: var(--text); transition: border-color 0.3s, background 0.3s;
}
.soft-field:hover { border-color: var(--hair-strong); background: rgba(255,255,255,0.07); }
.soft-field .sf-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.soft-field .sf-dot.good { background: var(--good); box-shadow: 0 0 7px var(--good); }
.soft-field .sf-dot.warm { background: var(--warm-deep); box-shadow: 0 0 7px var(--warm-deep); }
.soft-field .sf-val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soft-field .sf-chev { flex: none; width: 12px; height: 12px; color: var(--muted); }

/* ---- Status / data pills ---- */
.gpill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 12px; font-size: 12px; color: var(--muted); white-space: nowrap;
}
.gpill .gp-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--good); box-shadow: 0 0 7px var(--good); }
.gpill.warm { color: var(--warm); border-color: rgba(232,132,92,0.4); background: rgba(232,132,92,0.10); }

/* ---- Segmented / tab pill row ---- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid var(--hair); }
.seg .seg-pill {
  font-size: 12.5px; padding: 7px 14px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: 0.3s var(--ease); cursor: pointer; white-space: nowrap;
}
.seg .seg-pill[aria-pressed="true"], .seg .seg-pill.on {
  color: var(--text); background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22); box-shadow: 0 0 0 3px rgba(255,255,255,0.03), 0 6px 18px -8px rgba(0,0,0,0.6);
}

/* ---- KPI (glass variant) ---- */
.gkpi .gk-val { font-size: clamp(1.7rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; }
.gkpi .gk-cap { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 9px; }

/* ---- Glass card grid (cohesion pass: cards float over warm dusk) ---- */
.dusk-cards { position: relative; isolation: isolate; padding: 30px; border-radius: 28px; }
.dusk-cards > .dusk-bg { border-radius: 28px; inset: 0; }
.dusk-cards .card {
  background: rgba(20,18,18,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  border-color: rgba(255,255,255,0.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.dusk-cards .card:hover { background: rgba(28,24,24,0.58); border-color: var(--hair-strong); }
.dusk-cards .card .ico { background: rgba(255,255,255,0.07); }
@media (max-width: 560px) { .dusk-cards { padding: 18px; border-radius: 22px; } }

/* ---- Centered muted caption under a mockup ---- */
.mock-caption {
  text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5;
  margin-top: 20px; max-width: 440px; margin-inline: auto;
}

/* =============================================================
   Rich glass dashboard (index #dashboard) — full product feel
   ============================================================= */
.dash.dash-glass { background: transparent; border: none; box-shadow: none; padding: 0; }
.dash.dash-glass .dash-app {
  background: rgba(16,14,15,0.5);
  -webkit-backdrop-filter: blur(26px) saturate(1.12);
  backdrop-filter: blur(26px) saturate(1.12);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.06);
  grid-template-columns: 218px 1fr;
  min-height: 540px;
}
.dash.dash-glass .dash-side {
  background: rgba(255,255,255,0.02); border-right: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column;
}
.dash.dash-glass .dash-nav { flex: 1; }
.ds-user {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px;
  border-radius: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--hair);
}
.ds-user .ds-ava { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#e08a64,#b35a3c); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #fff; }
.ds-user .ds-meta { min-width: 0; line-height: 1.25; }
.ds-user .ds-meta b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-user .ds-meta span { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }

/* dashboard content grid: chart + settings columns */
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; }
.dash-grid .dg-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash.dash-glass .panel { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.08); }

/* settings rows inside a panel */
.set-rows { display: flex; flex-direction: column; gap: 11px; }
.set-rows .soft-select .ss-lbl { font-size: 9px; }

/* persona media gallery in dashboard */
.persona-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.persona-gallery .pg-cell { aspect-ratio: 3/4; border-radius: 9px; overflow: hidden; border: 1px solid var(--hair); background: linear-gradient(135deg,#2a2120,#15110f); }
.persona-gallery .pg-cell img { width: 100%; height: 100%; object-fit: cover; }
.persona-gallery .pg-cell.gen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: rgba(232,132,92,0.08); border: 1px dashed rgba(232,132,92,0.4); color: var(--warm); font-family: var(--f-mono); font-size: 9px; text-align: center; cursor: pointer; }
.persona-gallery .pg-cell.gen svg { width: 16px; height: 16px; }

/* fan-memory mini list */
.fan-mini { display: flex; flex-direction: column; gap: 8px; }
.fan-mini .fmi-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,0.03); border: 1px solid var(--hair); }
.fan-mini .fmi-ava { width: 28px; height: 28px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#3a2a2a,#1c1416); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.fan-mini .fmi-body { flex: 1; min-width: 0; line-height: 1.25; display: flex; flex-direction: column; gap: 2px; }
.fan-mini .fmi-name { font-size: 12.5px; font-weight: 500; }
.fan-mini .fmi-note { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan-mini .fmi-val { font-family: var(--f-mono); font-size: 11.5px; color: var(--good); flex: none; }

/* behavior/triggers panel inside dashboard reuses .trig + .bh-row */
.dash.dash-glass .trig-row { padding: 9px 2px; }

/* =============================================================
   Feature split — glass mockup column
   ============================================================= */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-split + .feature-split { margin-top: var(--sp-9); }
.feature-split.rev .fs-text { order: 2; }
.feature-split .fs-mock-wrap { position: relative; min-width: 0; }
/* fs-mock-wrap is also reused inside the legacy .split grid (security memory mockup).
   .split items default to min-width:auto and can blow the 1fr track past the container;
   pin to 0 min and cap the panel so it never exceeds its column on mobile. */
.split > .fs-mock-wrap { min-width: 0; max-width: 100%; }
.split > .fs-mock-wrap .glass-panel { max-width: 100%; }
.feature-split .fs-mock {
  padding: 20px; position: relative; z-index: 1;
}
.fs-mock .fsm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fs-mock .fsm-title { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.fs-mock .fsm-body { display: flex; flex-direction: column; gap: 12px; }
.fs-mock .fsm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-mock .pill-wrap { display: flex; flex-wrap: wrap; gap: 7px; }

/* =============================================================
   Security memory mockup
   ============================================================= */
.mem-mock { padding: 20px; }
.mem-mock .mm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mem-toggles { display: flex; flex-direction: column; gap: 2px; }
.mem-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--hair); }
.mem-row:last-child { border-bottom: none; }
.mem-row .mr-lbl { flex: 1; font-size: 13.5px; color: var(--text); }
.mem-row .mr-lbl span { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; }
/* check toggle: a pill switch reusing .tog styling but static state */
.mem-check { width: 38px; height: 22px; border-radius: 999px; flex: none; position: relative; background: var(--warm-deep); transition: background 0.3s; }
.mem-check::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); transform: translateX(16px); transition: transform 0.3s; }
.mem-check.off { background: var(--hair-strong); }
.mem-check.off::after { transform: translateX(0); }
.mem-fan {
  display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 12px;
  border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--hair);
}
.mem-fan .mf-ava { width: 34px; height: 34px; border-radius: 50%; flex: none; background: linear-gradient(135deg,#3a2a2a,#1c1416); border: 1px solid var(--hair); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.mem-fan .mf-body { flex: 1; min-width: 0; }
.mem-fan .mf-name { font-size: 13px; font-weight: 500; }
.mem-fan .mf-note { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mem-forget {
  margin-left: auto; flex: none; font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 10px; transition: 0.3s;
}
.mem-forget:hover { color: var(--text); border-color: var(--hair-strong); }

/* =============================================================
   AI-Media studio — animated switching gallery
   ============================================================= */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.studio.rev .st-text { order: 2; }
.studio-mock { padding: 18px; }
.studio-stage {
  position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--hair); background: linear-gradient(135deg,#2a2120,#14100f);
}
.studio-stage .ss-photo {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease);
}
.studio-stage .ss-photo.on { opacity: 1; }
.studio-stage .ss-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-stage .ss-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.04em; color: var(--text);
  background: rgba(7,7,8,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hair); border-radius: 999px; padding: 5px 11px;
}
.studio-controls { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.studio-controls .sc-segrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.studio-gen {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--cream); color: var(--ink); font-weight: 600; font-size: 13.5px;
  border-radius: 12px; padding: 12px 16px; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.studio-gen:hover { opacity: 0.92; transform: translateY(-1px); }
.studio-gen svg { width: 15px; height: 15px; }
/* anim toggle (functional) */
.anim-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); cursor: pointer; }
.anim-toggle .at-sw { width: 38px; height: 22px; border-radius: 999px; flex: none; position: relative; background: var(--warm-deep); transition: background 0.3s; }
.anim-toggle .at-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); transform: translateX(16px); transition: transform 0.3s; }
.anim-toggle[aria-pressed="false"] .at-sw { background: var(--hair-strong); }
.anim-toggle[aria-pressed="false"] .at-sw::after { transform: translateX(0); }

/* =============================================================
   Responsive — glass kit
   ============================================================= */
@media (max-width: 1080px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .feature-split, .studio { grid-template-columns: 1fr; gap: 32px; }
  .feature-split.rev .fs-text, .studio.rev .st-text { order: 0; }
  .feature-split + .feature-split { margin-top: var(--sp-7); }
  .dash.dash-glass .dash-app { grid-template-columns: 1fr; }
  .dash.dash-glass .dash-side { display: none; }
  .persona-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .fs-mock .fsm-grid2 { grid-template-columns: 1fr; }
  .dusk > .dusk-bg { inset: -2% 0 -4%; border-radius: 24px; }
}

