/* ============================================================
   BEATBREAK PRO — marketing site
   Cinematic dark theme. Brand tokens from the app's promo renderer.
   ============================================================ */

/* ---- self-hosted type ---- */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --amber: #ff8a1f;
  --amber-2: #ffb35b;
  --cyan: #4aa8e8;
  --sand: #f6d7a1;
  --green: #35c26a;

  --void: #06070a;
  --panel: #0e1218;
  --panel-2: #141a22;
  --ink: #f3f7fb;
  --dim: rgba(229, 236, 244, .64);
  --faint: rgba(229, 236, 244, .40);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);

  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --wrap: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* signature ground: amber + cyan glow, scanlines */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(58vw 58vw at 16% 4%, rgba(255, 138, 31, .16), transparent 58%),
    radial-gradient(52vw 52vw at 88% 96%, rgba(74, 168, 232, .13), transparent 58%),
    var(--void);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 4px);
}
/* fine film grain */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- type */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-weight: 700; font-size: 12.5px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--amber), transparent); }
.section-head { text-align: center; }
.section-head .eyebrow { justify-content: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: .94; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1; text-transform: uppercase; }
h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.lead { color: var(--dim); font-size: clamp(1.05rem, 1.7vw, 1.28rem); line-height: 1.6; max-width: 48ch; }
.amber { color: var(--amber); }
.grad {
  background: linear-gradient(100deg, var(--amber) 20%, var(--amber-2) 55%, var(--cyan) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------- wordmark */

.wordmark { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; display: inline-flex; align-items: center; line-height: 1; }
.wordmark .pro { color: var(--amber); }
.wordmark .mark { width: 1.2em; height: 1.2em; margin-right: .5ch; }

/* ---------------------------------------------------------- buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 26px;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; overflow: hidden;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: #2a1200; box-shadow: 0 8px 30px -10px rgba(255, 138, 31, .75); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(255, 138, 31, .9); transform: translateY(-2px); }
/* sheen sweep on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-primary .price { font-weight: 700; opacity: .82; font-variant-numeric: tabular-nums; }
.btn-ghost { background: rgba(255, 255, 255, .045); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.btn-sm { padding: 11px 17px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(229, 236, 244, .82); border: 1px solid var(--line-2); border-radius: 7px; padding: 9px 15px; white-space: nowrap;
  background: rgba(255, 255, 255, .02);
}

/* ---------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(14px); background: rgba(6, 7, 10, .66); border-bottom: 1px solid var(--line); transition: background .2s; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.site-header .wordmark { font-size: 1.16rem; }
.nav { display: flex; gap: 28px; margin-left: 26px; }
.nav a { position: relative; font-size: .95rem; color: var(--dim); transition: color .16s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--amber); transition: width .22s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ---------------------------------------------------------- sections + reveal */

section { padding: 104px 0; position: relative; }
.section-head { max-width: 660px; margin: 0 auto 60px; }
.section-head .lead { margin: 20px auto 0; }

/* reveal is a progressive enhancement: only hide when JS is active (html.js),
   so content is always visible without/ before JS. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.stagger.is-visible > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------------------------------------------------- hero */

.hero { padding: 96px 0 70px; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.orb-a { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; top: -12vw; left: -8vw; background: radial-gradient(circle, rgba(255, 138, 31, .5), transparent 68%); animation: drift 20s ease-in-out infinite; }
.orb-b { width: 42vw; height: 42vw; max-width: 660px; max-height: 660px; bottom: -18vw; right: -8vw; background: radial-gradient(circle, rgba(74, 168, 232, .42), transparent 68%); animation: drift 26s ease-in-out infinite reverse; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5%, 4%); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

.hero-copy { max-width: 800px; }
.hero-copy .lead { margin: 24px 0 20px; }
.hero-wave { width: 100%; max-width: 420px; height: 46px; margin: 6px 0 30px; display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-family: var(--mono); font-size: 12.5px; letter-spacing: .03em; color: var(--faint); }
.hero-note .g { color: var(--green); }
.hero-shot { margin-top: 56px; position: relative; }
.hero-shot::before { /* floor glow */
  content: ""; position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%);
  width: 70%; height: 120px; border-radius: 50%; filter: blur(50px); z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 138, 31, .34), transparent 70%);
}

/* ---------------------------------------------------------- framed product shots */

.shot { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #0b0e13; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 90px -34px rgba(255, 138, 31, .14); }
.shot > img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; background: linear-gradient(180deg, #161c24, #11151b); border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a424c; }
.browser-bar .dot.r { background: #ff5f57; } .browser-bar .dot.y { background: #febc2e; } .browser-bar .dot.g { background: #28c840; }
.browser-url { margin-left: 8px; flex: 1; max-width: 340px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 6px; padding: 5px 14px; }
.shots-stack { display: grid; gap: 26px; max-width: 1040px; margin: 0 auto; }

/* ---------------------------------------------------------- features */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.feature::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(160deg, rgba(255, 138, 31, .55), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .28s var(--ease); pointer-events: none;
}
.feature.cyan::before { background: linear-gradient(160deg, rgba(74, 168, 232, .55), transparent 42%); }
.feature:hover { transform: translateY(-4px); }
.feature:hover::before { opacity: 1; }
.feature .ic { width: 40px; height: 40px; margin-bottom: 18px; color: var(--amber); }
.feature.cyan .ic { color: var(--cyan); }
.feature h3 { margin-bottom: 9px; }
.feature p { color: var(--dim); font-size: .98rem; margin: 0; }

/* ---------------------------------------------------------- autopilot spotlight */

.spotlight { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 138, 31, .03), transparent 40%); }
.spotlight-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.tech-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 24px; }
.tech-list li { display: flex; align-items: baseline; gap: 11px; font-size: .99rem; }
.tech-list li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: .35em; background: var(--amber); border-radius: 2px; box-shadow: 0 0 8px rgba(255, 138, 31, .7); }
.tech-list li:nth-child(even)::before { background: var(--cyan); box-shadow: 0 0 8px rgba(74, 168, 232, .7); }
.spotlight-shot { align-self: center; }

/* ---------------------------------------------------------- pricing */

.pricing-card {
  position: relative; max-width: 540px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 22px; padding: 40px;
  box-shadow: 0 50px 130px -55px rgba(255, 138, 31, .4);
}
.pricing-card::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; background: linear-gradient(160deg, rgba(255, 138, 31, .6), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.price-row { display: flex; align-items: baseline; gap: 13px; }
.price-big { font-family: var(--display); font-weight: 900; font-size: 3.6rem; letter-spacing: -.04em; line-height: 1; }
.price-tag { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.price-sub { color: var(--dim); margin: 11px 0 26px; }
.incl { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.incl li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; }
.incl .tick { flex: 0 0 20px; height: 20px; margin-top: 2px; color: var(--green); }
.incl .soon { color: var(--faint); }
.pricing-card .btn { margin-bottom: 13px; }
.pricing-foot { text-align: center; font-size: .9rem; color: var(--faint); }
.pricing-foot a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------- faq */

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); font-size: 1.35rem; transition: transform .18s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--dim); }
.faq .answer p { margin: 0; }
.faq .answer a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------- finale */

.finale { text-align: center; }
.finale .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 50px 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--dim); font-size: .95rem; transition: color .16s; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { color: var(--faint); font-size: .85rem; font-family: var(--mono); letter-spacing: .03em; }

/* ---------------------------------------------------------- legal / doc pages */

.doc { max-width: 780px; margin: 0 auto; padding: 64px 0 90px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 8px; }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 36px; }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: none; letter-spacing: -.01em; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--dim); }
.doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.back { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.back:hover { color: var(--ink); }

/* success / download page */
.success { max-width: 620px; margin: 0 auto; padding: 84px 0; text-align: center; }
.success h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.02; margin: 4px 0 12px; }
.success .lead { margin: 0 auto; max-width: 44ch; }
.s-badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px; border: 1px solid var(--line-2); }
.s-badge svg { width: 30px; height: 30px; }
.s-badge.ok { color: var(--green); background: radial-gradient(circle, rgba(53, 194, 106, .18), rgba(53, 194, 106, .03)); border-color: rgba(53, 194, 106, .4); box-shadow: 0 0 46px -8px rgba(53, 194, 106, .5); }
.s-badge.warn { color: var(--amber); background: radial-gradient(circle, rgba(255, 138, 31, .16), rgba(255, 138, 31, .03)); border-color: rgba(255, 138, 31, .4); }
.s-badge.dim { color: var(--dim); background: rgba(255, 255, 255, .03); }
.s-card { max-width: 460px; margin: 34px auto 0; padding: 26px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px -55px rgba(255, 138, 31, .4); }
.s-sub { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--faint); }
.success .steps { text-align: left; max-width: 460px; margin: 30px auto 0; display: grid; gap: 13px; }
.success .steps li { color: var(--dim); }
.licence-box { display: flex; align-items: center; gap: 10px 12px; margin: 18px auto 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .03); flex-wrap: wrap; justify-content: center; }
.licence-label { flex-basis: 100%; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.licence-key { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink); word-break: break-all; text-align: center; }
.licence-copy { font-family: var(--mono); font-size: 12px; color: var(--amber); background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.licence-copy:hover { background: rgba(255, 138, 31, .08); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 74px 0; }
  .hero { padding: 64px 0 50px; }
  .nav, .header-cta .btn-ghost { display: none; }
  .nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: rgba(6, 7, 10, .98); border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; width: 42px; height: 38px; align-items: center; justify-content: center; cursor: pointer; }
  .header-cta { margin-left: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
