/* AnubicidePro: Scarlet Studio theme (colours from data/branding/BRAND.md) */
:root {
  color-scheme: dark;
  --base: #121214;
  --shell: #18181b;
  --panel: #1b1b1f;
  --field: #212126;
  --raise: #292930;
  --line: #2e2e35;
  --line-strong: #44404a;
  --fg: #f2f0f2;
  --muted: #c0bac0;
  --subtle: #a29ca4;
  --red: #b12443;
  --red-hot: #d02f53;
  --accent: #ff8ca1;
  --radius: 14px;
  --wrap: 1140px;
  --font: Bahnschrift, "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--base);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.pro { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 16px/1 var(--font); color: var(--fg);
  border: 1px solid var(--line-strong); background: var(--field);
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .2s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; border-color: #5a5460; background: var(--raise); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(208, 47, 83, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: linear-gradient(180deg, #df3a5f, #bf2a4b); border-color: transparent; box-shadow: 0 14px 38px -10px rgba(208, 47, 83, .85), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 20, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.nav-links a:hover { color: var(--fg); background: var(--panel); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--field); color: var(--fg); cursor: pointer; }
.nav-toggle svg { margin: auto; width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 30%, rgba(177, 36, 67, .38), transparent 70%),
    radial-gradient(500px 300px at 10% 0%, rgba(177, 36, 67, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(27, 27, 31, .8);
  color: var(--muted); font-size: 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 700; margin: 22px 0 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), #ff5a7d 60%, var(--red-hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 20px); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.cta-note { color: var(--subtle); font-size: 14px; line-height: 1.5; }
.cta-note strong { color: var(--fg); font-weight: 600; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--subtle); font-size: 14px; list-style: none; padding: 0; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); }

/* App mock (pure CSS, no game imagery) */
.mock {
  position: relative; border-radius: 18px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #1d1d22, #151518);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 120px -40px rgba(177, 36, 67, .55);
  overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.mock:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; background: var(--shell); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mock-bar img { width: 18px; height: 18px; }
.mock-bar .win { margin-left: auto; display: flex; gap: 14px; color: var(--subtle); letter-spacing: 2px; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.mock-side { border-right: 1px solid var(--line); padding: 12px 8px; display: grid; align-content: start; gap: 4px; }
.mock-side span { font-size: 12px; color: var(--subtle); padding: 7px 10px; border-radius: 6px; }
.mock-side span.on { background: #301b22; color: var(--fg); box-shadow: inset 2px 0 0 var(--red); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mock-title { font-size: 14px; font-weight: 600; }
.pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(61, 220, 132, .12); color: #67e8a0; border: 1px solid rgba(61, 220, 132, .3); display: inline-flex; align-items: center; gap: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.stat b { display: block; font: 600 20px/1.1 var(--mono); }
.stat small { color: var(--subtle); font-size: 11px; }
.feed { background: #0f0f11; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 12px/1.75 var(--mono); color: var(--subtle); height: 132px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.feed::after { content: ""; position: absolute; inset: 0 0 auto; height: 40px; background: linear-gradient(#0f0f11, transparent); }
.feed div { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed .t { color: #6b6570; }
.feed .ok { color: #67e8a0; }
.feed .hl { color: var(--accent); }
.bar { height: 6px; border-radius: 6px; background: var(--raise); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--red), var(--accent)); border-radius: inherit; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, #151518, var(--base)); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 auto; padding: 0; }
.strip li { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip b { display: block; font-size: 30px; font-weight: 700; }
.strip span { color: var(--subtle); font-size: 14px; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--accent); font: 600 13px/1 var(--font); text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #17171a);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(177, 36, 67, .16), transparent 70%);
}
.card:hover { border-color: #4a3540; transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(177, 36, 67, .14); border: 1px solid rgba(255, 140, 161, .22); color: var(--accent);
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; margin-left: 8px; font-size: 11px; vertical-align: middle; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--subtle); font-weight: 500; }
.card.wide { grid-column: span 2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); color: var(--muted); }

/* How it works */
.how { background: linear-gradient(180deg, var(--base), #141416 40%, var(--base)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 700 44px/1 var(--mono); margin-bottom: 18px;
  background: linear-gradient(180deg, var(--accent), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.step code { font: 14px var(--mono); color: var(--fg); background: var(--field); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
.pipeline { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #151518; }
.pipe { padding: 22px 22px 24px; position: relative; border-left: 1px solid var(--line); }
.pipe:first-child { border-left: 0; }
.pipe:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; z-index: 1;
  background: #151518; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg);
}
.pipe small { color: var(--accent); font: 600 12px var(--mono); letter-spacing: .08em; }
.pipe b { display: block; font-size: 17px; margin: 6px 0 4px; }
.pipe span { color: var(--subtle); font-size: 14px; }

/* Pricing */
.price-card {
  max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr;
  border-radius: 20px; overflow: hidden; border: 1px solid #4a3540;
  background: linear-gradient(135deg, #1e1619, #18181b 55%);
  box-shadow: 0 40px 100px -50px rgba(177, 36, 67, .8);
}
.price-main { padding: 40px; }
.price-main h3 { font-size: 26px; }
.price-main .price { font-size: 44px; font-weight: 700; margin: 14px 0 6px; }
.price-main .price span { font-size: 18px; color: var(--subtle); font-weight: 400; }
.price-main ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.price-main li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; }
.price-main li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.device-rule {
  margin-top: 26px; padding: 14px 16px; border-radius: 12px; display: flex; align-items: center; gap: 12px;
  background: rgba(177, 36, 67, .14); border: 1px solid rgba(255, 140, 161, .28); font-weight: 600;
}
.device-rule svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.price-side { padding: 40px; background: rgba(0, 0, 0, .25); border-left: 1px solid var(--line); display: grid; align-content: center; gap: 14px; }
.price-side h4 { margin: 0 0 4px; font-size: 18px; }
.price-side p { color: var(--subtle); font-size: 15px; margin-bottom: 6px; }
.contact {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--line-strong); color: var(--fg); width: 100%;
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.contact:hover { border-color: var(--accent); background: var(--raise); text-decoration: none; }
.contact svg { width: 26px; height: 26px; flex: none; }
.contact .discord { color: #8f9cff; }
.contact .mail { color: var(--accent); }
.contact small { display: block; color: var(--subtle); font-size: 12px; }
.contact b { font-weight: 600; font-size: 15px; word-break: break-all; }
.contact .copied { margin-left: auto; font-size: 12px; color: #67e8a0; opacity: 0; transition: opacity .2s ease; }
.contact.is-copied .copied { opacity: 1; }
.fine { text-align: center; color: var(--subtle); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s ease; }
.faq details[open] { border-color: #4a3540; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-size: 18px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); font-size: 16px; display: grid; gap: 12px; }
.faq .answer ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.kbd { font: 600 14px var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line-strong); border-bottom-width: 2px; color: var(--fg); white-space: nowrap; }
.smartscreen {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  padding: 16px; border-radius: 12px; background: #0f2a43; border: 1px solid #1d4b74; color: #d7e7f7; font-size: 15px;
}
.smartscreen svg { width: 30px; height: 30px; color: #6fb3f2; }
.smartscreen b { color: #fff; }

/* Final CTA */
.final { padding: 0 0 110px; }
.final-box {
  position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 24px;
  background: radial-gradient(600px 300px at 50% 0%, rgba(177, 36, 67, .45), transparent 70%), linear-gradient(180deg, #1c1619, #151518);
  border: 1px solid #4a3540;
}
.final-box img { width: 72px; height: 72px; margin: 0 auto 22px; filter: drop-shadow(0 10px 30px rgba(177, 36, 67, .6)); }
.final-box h2 { font-size: clamp(30px, 4vw, 44px); }
.final-box p { color: var(--muted); margin: 14px auto 30px; max-width: 48ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: #0f0f11; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 14px; color: var(--subtle); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--fg); }
.studio { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.studio img { width: 46px; height: auto; opacity: .95; }
.studio p { color: var(--subtle); font-size: 14px; line-height: 1.5; }
.studio b { color: var(--fg); font-weight: 600; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #77717a; font-size: 13px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.legal .updated { color: var(--subtle); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal ul { color: var(--muted); padding-left: 22px; display: grid; gap: 8px; margin: 0; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal .back { display: inline-flex; margin-top: 44px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lede { max-width: 46ch; }
  .mock { transform: none; max-width: 560px; }
  .mock:hover { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .card.wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe:nth-child(3) { border-left: 0; }
  .pipe:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pipe:nth-child(2)::after { display: none; }
  .price-card { grid-template-columns: 1fr; }
  .price-side { border-left: 0; border-top: 1px solid var(--line); }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; }
  .nav .btn { display: none; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(18, 18, 20, .97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .features { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; }
  .card { padding: 24px; }
  .hero-cta .btn-lg { width: 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe { border-left: 0 !important; border-top: 1px solid var(--line); }
  .pipe:first-child { border-top: 0; }
  .pipe::after { display: none; }
  .price-main, .price-side { padding: 28px 22px; }
  .price-main .price span { display: block; margin-top: 6px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .faq summary { font-size: 17px; padding: 18px 50px 18px 20px; }
  .faq .answer { padding: 0 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
