/* StarkGen — purple/black gym look
   Fonts: Big Shoulders Display (stencil-like sports signage) + Barlow (body) */

:root {
  --ink: #0d0a14;        /* page background: purple-black */
  --iron: #161120;       /* panels */
  --plate: #221a31;      /* raised surfaces, inputs */
  --rubber: #2e2442;     /* borders */
  --volt: #9d4dff;       /* main purple */
  --volt-hi: #b77bff;    /* hover */
  --lilac: #dcc4ff;      /* light accent */
  --chalk: #f3eff8;      /* main text */
  --steel: #a39bb3;      /* secondary text */
  --ok: #5ee3a1;
  --warn: #ffb547;
  --bad: #ff6b81;

  --display: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-chip: 999px;
  --r-panel: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- scattered gym icons (background layer) ---------- */
.gym-icons {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.gym-icons svg {
  position: absolute;
  color: var(--volt);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.page { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .02em;
  color: var(--chalk); text-decoration: none; line-height: 1;
}
.logo svg { width: 30px; height: 30px; color: var(--volt); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.logo:hover { color: var(--chalk); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--steel); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--chalk); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-chip); border: 2px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--volt); color: #fff; }
.btn-primary:hover { background: var(--volt-hi); color: #fff; }
.btn-ghost { border-color: var(--rubber); color: var(--chalk); background: transparent; }
.btn-ghost:hover { border-color: var(--volt); color: #fff; }
.btn-big { padding: 16px 30px; font-size: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px);
  align-items: center; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 9vw, 110px);
}
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 128px); line-height: .86; letter-spacing: -.005em;
  margin: 0 0 24px;
}
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--volt); }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--steel); max-width: 34ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .small { color: var(--steel); font-size: 15px; margin-top: 18px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

/* hero demo frame */
.demo {
  position: relative; background: var(--iron); border: 1px solid var(--rubber);
  border-radius: 22px; padding: 14px; box-shadow: 0 30px 80px -30px rgba(157, 77, 255, .55);
  max-width: 420px; justify-self: center; width: 100%;
}
.demo-screen {
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: radial-gradient(120% 80% at 70% 10%, #3a1d66 0%, #160e24 55%, #0d0a14 100%);
}
.demo-screen svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-chips { position: absolute; left: 12px; right: 12px; bottom: 54px; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-chips span {
  background: rgba(13, 10, 20, .78); border: 1px solid rgba(220, 196, 255, .35);
  color: var(--lilac); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
}
.demo-bar { position: absolute; left: 12px; right: 12px; bottom: 18px; height: 22px; display: flex; align-items: center; gap: 10px; }
.demo-bar svg { width: 18px; height: 18px; color: #fff; fill: currentColor; stroke: none; }
.demo-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.demo-track i { display: block; height: 100%; width: 0; background: var(--volt); animation: play 6s linear infinite; }
@keyframes play { to { width: 100%; } }
.scene .zoom { transform-origin: 60% 55%; animation: push 6s ease-in-out infinite; }
@keyframes push { 0% { transform: scale(1); } 100% { transform: scale(1.12); } }
.scene .glow { animation: glow 1.5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .35; } to { opacity: .95; } }
@media (prefers-reduced-motion: reduce) {
  .demo-track i, .scene .zoom, .scene .glow { animation: none; }
  .demo-track i { width: 40%; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 5.5vw, 64px); line-height: .95; margin: 0 0 14px;
}
h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; margin: 0 0 8px; text-transform: uppercase; }
.section-intro { color: var(--steel); max-width: 56ch; margin: 0 0 40px; font-size: 18px; }

/* steps (a real sequence, so numbered) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.steps li { padding: 28px 28px 30px 0; border-top: 3px solid var(--rubber); counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-weight: 900; font-size: 72px; line-height: 1;
  color: var(--volt); margin-bottom: 10px;
}
.steps li:first-child { border-top-color: var(--volt); }
.steps p { color: var(--steel); margin: 0; max-width: 32ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* filter showcase */
.filter-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.filter-group h3 { display: flex; align-items: center; gap: 10px; }
.filter-group h3 svg { width: 26px; height: 26px; color: var(--volt); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.filter-group p { color: var(--steel); margin: 0 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row span {
  border: 1px solid var(--rubber); background: var(--iron); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 15px;
}
@media (max-width: 760px) { .filter-groups { grid-template-columns: 1fr; } }

/* who it's for */
.for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.for-grid > div { background: var(--iron); border: 1px solid var(--rubber); border-radius: var(--r-panel); padding: 26px; }
.for-grid svg { width: 34px; height: 34px; color: var(--lilac); margin-bottom: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.for-grid p { color: var(--steel); margin: 0; }
@media (max-width: 860px) { .for-grid { grid-template-columns: 1fr; } }

/* diamond-plate band */
.plate-band {
  background-color: #120d1b;
  background-image:
    linear-gradient(135deg, rgba(157,77,255,.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(157,77,255,.07) 25%, transparent 25%),
    linear-gradient(45deg, rgba(157,77,255,.07) 25%, transparent 25%),
    linear-gradient(315deg, rgba(157,77,255,.07) 25%, transparent 25%);
  background-size: 22px 22px;
  border-top: 1px solid var(--rubber); border-bottom: 1px solid var(--rubber);
}

/* pricing */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pack {
  background: var(--iron); border: 2px solid var(--rubber); border-radius: var(--r-panel);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.pack.best { border-color: var(--volt); }
.pack .tag {
  position: absolute; top: -13px; left: 24px; background: var(--volt); color: #fff;
  font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.pack .credits { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .9; }
.pack .credits small { font-size: 22px; font-weight: 700; color: var(--steel); margin-left: 6px; }
.pack .price { font-size: 26px; font-weight: 700; }
.pack ul { list-style: none; padding: 0; margin: 4px 0 18px; color: var(--steel); }
.pack li { padding: 4px 0 4px 24px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 3px; background: var(--volt); border-radius: 2px; }
.pack .btn { margin-top: auto; }
.price-note { color: var(--steel); margin-top: 22px; font-size: 15px; }
@media (max-width: 860px) { .packs { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rubber); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; line-height: .8; color: var(--volt); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--steel); margin: 12px 0 0; max-width: 64ch; }

/* final cta */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(44px, 7vw, 92px); }
.final-cta p { color: var(--steel); margin: 0 auto 28px; max-width: 46ch; }

/* footer */
footer { border-top: 1px solid var(--rubber); padding: 36px 0 44px; color: var(--steel); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
footer a { color: var(--steel); }
footer a:hover { color: var(--chalk); }
footer .ai-note { flex-basis: 100%; font-size: 14px; }

/* ---------- auth page ---------- */
.auth-card {
  max-width: 440px; margin: clamp(24px, 6vw, 72px) auto; background: var(--iron); border: 1px solid var(--rubber);
  border-radius: 20px; padding: clamp(24px, 5vw, 40px);
}
.auth-card h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 46px; line-height: .95; margin: 0 0 8px; }
.auth-card > p { color: var(--steel); margin: 0 0 26px; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; }
.btn-google:hover { background: #ece8f3; color: #1f1f1f; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--steel); margin: 22px 0; font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rubber); }
label.field { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=email] {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--rubber); background: var(--plate);
  color: var(--chalk); font: inherit;
}
input[type=email]:focus { border-color: var(--volt); outline: none; }
.auth-card form .btn { width: 100%; margin-top: 12px; }
.fine { color: var(--steel); font-size: 14px; margin-top: 20px; }
.notice { border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 15px; }
.notice.ok { background: rgba(94, 227, 161, .1); border: 1px solid rgba(94, 227, 161, .4); color: #c9f7df; }
.notice.err { background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .45); color: #ffd0d8; }
.notice.info { background: rgba(157, 77, 255, .12); border: 1px solid rgba(157, 77, 255, .45); color: var(--lilac); }

/* ---------- app (generator) ---------- */
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.app-bar .right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--plate); border: 1px solid var(--rubber);
  border-radius: 999px; padding: 8px 16px; font-weight: 700;
}
.credit-pill svg { width: 18px; height: 18px; color: var(--volt); fill: currentColor; stroke: none; }
.link-btn { background: none; border: 0; color: var(--steel); cursor: pointer; padding: 8px; font-weight: 500; }
.link-btn:hover { color: var(--chalk); }

#banner:not(:empty) { margin-bottom: 18px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 48px; }
@media (max-width: 960px) { .studio { grid-template-columns: 1fr; } }
.studio h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: .92; margin: 4px 0 26px; }

.block { margin-bottom: 30px; }
.block > h2 { font-size: 26px; margin: 0 0 4px; font-weight: 800; }
.block > .hint { color: var(--steel); margin: 0 0 14px; font-size: 15px; }

.drop {
  display: block;
  border: 2px dashed var(--rubber); border-radius: var(--r-panel); background: var(--iron);
  padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.drop:hover, .drop.over { border-color: var(--volt); background: #1b1428; }
.drop svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--volt); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { display: block; font-size: 18px; }
.drop span { color: var(--steel); font-size: 15px; }
.drop.has-photo { padding: 14px; display: flex; gap: 16px; align-items: center; text-align: left; }
.drop.has-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.drop.has-photo svg { display: none; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.options.tight { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: 12px;
  background: var(--iron); border: 2px solid var(--rubber); cursor: pointer; transition: border-color .12s, background-color .12s;
}
.opt label b { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.opt label b svg { width: 20px; height: 20px; flex: none; color: var(--volt); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.opt label small { color: var(--steel); font-size: 13.5px; line-height: 1.35; }
.opt label em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--warn); }
.opt input:checked + label { border-color: var(--volt); background: #1e1530; }
.opt input:focus-visible + label { outline: 3px solid var(--lilac); outline-offset: 2px; }
.opt label:hover { border-color: #4a3a66; }

.summary {
  position: sticky; top: 18px; background: var(--iron); border: 1px solid var(--rubber); border-radius: 18px; padding: 18px;
}
.summary .frame {
  background: var(--plate); border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  margin-bottom: 14px; aspect-ratio: 9 / 16; max-height: 360px; margin-left: auto; margin-right: auto;
}
.summary .frame img { width: 100%; height: 100%; object-fit: cover; }
.summary .frame .empty { color: var(--steel); font-size: 14px; padding: 16px; text-align: center; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 15px; }
.summary dt { color: var(--steel); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary .btn { width: 100%; }
.summary .cost-line { text-align: center; color: var(--steel); font-size: 14px; margin-top: 10px; }

/* videos */
.videos-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; padding-bottom: 60px; }
.vcard { background: var(--iron); border: 1px solid var(--rubber); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; }
.vcard .media { aspect-ratio: 9 / 16; background: var(--plate); display: grid; place-items: center; max-height: 380px; }
.vcard .media.square { aspect-ratio: 1; }
.vcard .media.wide { aspect-ratio: 16 / 9; }
.vcard video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vcard .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.vcard .meta .tags { color: var(--steel); font-size: 14px; }
.vcard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status.queued, .status.running { background: rgba(157, 77, 255, .18); color: var(--lilac); }
.status.done { background: rgba(94, 227, 161, .15); color: var(--ok); }
.status.failed { background: rgba(255, 107, 129, .15); color: var(--bad); }
.vcard .err { color: #ffc2cc; font-size: 13.5px; }
.spinner { width: 46px; height: 46px; color: var(--volt); animation: spin 1.6s linear infinite; fill: none; stroke: currentColor; stroke-width: 1.8; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.empty-state { color: var(--steel); background: var(--iron); border: 1px dashed var(--rubber); border-radius: var(--r-panel); padding: 28px; text-align: center; grid-column: 1 / -1; }

/* modal */
dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--ink); color: var(--chalk);
  border: 1px solid var(--rubber); border-radius: 20px; padding: clamp(20px, 4vw, 32px);
}
dialog::backdrop { background: rgba(8, 5, 14, .78); }
dialog h2 { font-size: 40px; }
dialog .packs { margin: 18px 0; }
dialog .pack { cursor: pointer; padding: 22px 20px; }
dialog .pack input { position: absolute; opacity: 0; }
dialog .pack:has(input:checked) { border-color: var(--volt); background: #1e1530; }
dialog .pack:has(input:focus-visible) { outline: 3px solid var(--lilac); outline-offset: 2px; }
dialog .pack .credits { font-size: 48px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--steel); font-size: 14.5px; margin: 6px 0 18px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--volt); flex: none; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.close-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; color: var(--steel); font-size: 28px; cursor: pointer; line-height: 1; padding: 6px 10px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: calc(100vw - 32px);
  background: var(--plate); border: 1px solid var(--volt); color: var(--chalk); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}

/* ---------- legal pages ---------- */
.legal { max-width: 760px; padding-top: 20px; padding-bottom: 80px; }
.legal h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 72px); line-height: .92; margin: 10px 0 8px; }
.legal .updated { color: var(--steel); margin: 0 0 30px; }
.legal h2 { font-size: 30px; margin: 40px 0 10px; }
.legal p, .legal li { color: #d8d1e3; }
.legal ul { padding-left: 22px; }
.legal .draft { background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .45); color: #ffe2b8; padding: 12px 16px; border-radius: 12px; font-size: 15px; }

@media (max-width: 520px) {
  .app-bar { padding-top: 14px; padding-bottom: 14px; }
  .app-bar .logo { font-size: 24px; }
  .app-bar .logo svg { width: 24px; height: 24px; }
  .app-bar .right { gap: 6px; width: 100%; justify-content: space-between; }
  .app-bar .right .btn { padding: 8px 14px; font-size: 15px; }
  .credit-pill { padding: 7px 12px; font-size: 15px; }
  .link-btn { padding: 6px; font-size: 15px; }
  .options.tight { grid-template-columns: 1fr 1fr; }
}
.nav-links a, .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .nav .logo { font-size: 24px; }
  .nav .logo svg { width: 24px; height: 24px; }
  .nav-links { gap: 12px; }
  .nav-links .btn { padding: 9px 14px; font-size: 15px; }
  .hero h1 { font-size: 64px; }
}
