/* Buzzer Knockout — marketing site.
   Warm "ember" theme matched to the app (AppTheme default palette). Privacy-
   clean: no external fonts, no analytics, no cookies. */

:root {
    --bg:        #150d06;
    --bg-2:      #1f1409;
    --surface:   #2a1b0f;
    --surface-2: #34230f;
    --line:      rgba(255, 173, 102, 0.14);
    --orange:    #ff6b35;
    --amber:     #fcbf49;
    --gold:      #ffd700;
    --copper:    #c7521c;
    --green:     #2ecc71;
    --text:      #fdf3e9;
    --text-dim:  rgba(253, 243, 233, 0.62);
    --maxw:      1080px;
    --r:         20px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                 "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Warm vignette + two ember glows, like the app's hero. */
    background-image:
        radial-gradient(900px 600px at 78% -8%, rgba(255, 107, 53, 0.20), transparent 60%),
        radial-gradient(700px 520px at 8% 8%, rgba(252, 191, 73, 0.10), transparent 55%),
        linear-gradient(180deg, #1f1409 0%, #150d06 38%, #110a05 100%);
    background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Type ---- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.eyebrow {
    font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--amber);
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; }

/* ---- Nav ---- */
header.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(21, 13, 6, 0.6);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 16px rgba(255,107,53,0.4); }
.brand b { color: var(--orange); }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 0.93rem; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.lang { font-size: 0.82rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text-dim); }
.lang:hover { color: var(--text); border-color: var(--orange); }
@media (max-width: 720px) { .nav-links a:not(.lang) { display: none; } }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1rem; padding: 15px 26px; border-radius: 16px;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn-primary {
    color: #fff; background: linear-gradient(135deg, var(--orange), var(--copper));
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,107,53,0.45); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); transform: translateY(-2px); }
.btn .sub { font-size: 0.72rem; font-weight: 600; opacity: 0.85; display: block; line-height: 1; }
.btn .lead { display: block; line-height: 1.1; }

/* ---- Hero ---- */
.hero { padding: 84px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
.hero h1 .grad {
    background: linear-gradient(105deg, var(--orange), var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { margin-top: 22px; font-size: 1.18rem; color: var(--text-dim); max-width: 36ch; }
.hero .cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .meta { margin-top: 26px; display: flex; gap: 22px; color: var(--text-dim); font-size: 0.9rem; flex-wrap: wrap; }
.hero .meta b { color: var(--text); }

/* Phone mock with floating target-time chip */
.phone {
    position: relative; justify-self: center;
    width: min(300px, 78vw); aspect-ratio: 9 / 19.5;
    border-radius: 44px; padding: 12px;
    background: linear-gradient(160deg, #3a2715, #1a1107);
    box-shadow: 0 40px 90px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,180,110,0.12);
    animation: float 6s var(--ease) infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; }
.phone::after {
    content: ""; position: absolute; inset: 0; border-radius: 44px;
    box-shadow: 0 0 120px 10px rgba(255, 107, 53, 0.25); pointer-events: none;
}
.chip {
    position: absolute; right: -18px; top: 64px; z-index: 3;
    background: rgba(42,27,15,0.92); border: 1px solid var(--line);
    border-radius: 16px; padding: 12px 16px; text-align: center;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5); animation: float 6s var(--ease) infinite reverse;
}
.chip small { display: block; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.chip .t { font-size: 1.9rem; font-weight: 800; color: var(--amber); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding-top: 52px; text-align: center; }
    .hero p.lede { margin-inline: auto; } .hero .cta, .hero .meta { justify-content: center; }
}

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-top: 12px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
    position: relative; background: linear-gradient(165deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 24px;
}
.step::before {
    counter-increment: s; content: counter(s);
    font-family: ui-monospace, monospace; font-size: 0.9rem; font-weight: 700;
    color: #150d06; background: var(--amber); width: 34px; height: 34px;
    display: grid; place-items: center; border-radius: 10px; margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; } .step p { color: var(--text-dim); margin-top: 8px; font-size: 0.96rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Mode cards */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode {
    border: 1px solid var(--line); border-radius: var(--r); padding: 26px;
    background: var(--surface); transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.mode:hover { transform: translateY(-4px); }
.mode .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.mode h3 { font-size: 1.35rem; } .mode p { color: var(--text-dim); margin-top: 8px; }
.mode.solo .ic    { background: rgba(252,191,73,0.16); } .mode.solo:hover    { border-color: var(--amber); }
.mode.classic .ic { background: rgba(255,107,53,0.16); } .mode.classic:hover { border-color: var(--orange); }
.mode.knockout .ic{ background: rgba(231,76,60,0.16); }  .mode.knockout:hover{ border-color: #e74c3c; }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feat .ic { font-size: 1.4rem; } .feat h3 { font-size: 1.08rem; margin-top: 12px; }
.feat p { color: var(--text-dim); font-size: 0.92rem; margin-top: 6px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Online band */
.band {
    border: 1px solid var(--line); border-radius: 28px; padding: 48px;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255,107,53,0.16), transparent 60%),
        linear-gradient(165deg, var(--surface), var(--bg-2));
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center;
}
.band h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.band p { color: var(--text-dim); margin-top: 14px; }
.codebox { text-align: center; }
.codebox .label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.codebox .code {
    font-family: ui-monospace, monospace; font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800;
    letter-spacing: 0.18em; color: var(--amber); margin-top: 6px;
    text-shadow: 0 0 30px rgba(252,191,73,0.4);
}
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 32px; } }

/* CTA */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 5vw, 3rem); }
.final p { color: var(--text-dim); margin: 14px auto 30px; max-width: 44ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-dim); font-size: 0.9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 760px; }
.legal .back { color: var(--text-dim); font-size: 0.9rem; }
.legal .back:hover { color: var(--orange); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 18px 0 6px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; color: var(--amber); }
.legal p, .legal li { color: var(--text-dim); margin-top: 10px; }
.legal ul { margin-top: 10px; padding-left: 22px; }
.legal a.inl { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.legal .addr { color: var(--text); line-height: 1.7; }
.legal .note { font-size: 0.85rem; font-style: italic; opacity: 0.8; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone, .chip { animation: none; }
}
