:root {
    color-scheme: dark;
    --bg: #0C0C0F;
    --surface: #161619;
    --surface-2: #1E1E23;
    --line: #2A2A31;
    --line-soft: #222228;
    --text: #F2F2F4;
    --muted: #9C9CAB;
    --dim: #6A6A77;
    --violet: #8B5CF6;
    --violet-bright: #A78BFA;
    --lilac: #C9BCFD;
    --violet-deep: #6D28D9;
    --glow: rgba(139, 92, 246, 0.38);
    --glow-soft: rgba(167, 139, 250, 0.22);
    --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background:
        radial-gradient(70% 50% at 78% -8%, rgba(139, 92, 246, 0.16), transparent 62%),
        radial-gradient(60% 40% at 10% 4%, rgba(109, 40, 217, 0.12), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-size: 16px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .brand, .display {
    font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
    letter-spacing: -0.015em;
}

a { color: var(--violet-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--lilac); }

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

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

.grad {
    background: linear-gradient(108deg, var(--lilac) 0%, var(--violet-bright) 45%, var(--violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- equalizer motif ---------- */
@keyframes eqbar { 0%, 100% { transform: scaleY(0.22); } 50% { transform: scaleY(1); } }

.brand-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 17px; margin-right: 9px; }
.brand-eq i {
    width: 3px; border-radius: 1.5px; height: 100%;
    background: linear-gradient(180deg, var(--lilac), var(--violet));
    transform-origin: bottom; transform: scaleY(0.5);
    animation: eqbar 1s ease-in-out infinite;
}
.brand-eq i:nth-child(1) { animation-duration: 0.95s; animation-delay: -0.1s; }
.brand-eq i:nth-child(2) { animation-duration: 1.25s; animation-delay: -0.45s; }
.brand-eq i:nth-child(3) { animation-duration: 0.8s;  animation-delay: -0.7s; }
.brand-eq i:nth-child(4) { animation-duration: 1.1s;  animation-delay: -0.25s; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(12, 12, 15, 0.72);
    border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: 0.2px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--lilac); }
.nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    padding: 8px 16px; border-radius: 9px; font-size: 13.5px;
    box-shadow: 0 2px 12px var(--glow);
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.08); }

/* ---------- hero ---------- */
.hero { padding: clamp(46px, 8vw, 92px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--lilac);
    border: 1px solid rgba(167, 139, 250, 0.28);
    background: rgba(139, 92, 246, 0.08);
    padding: 6px 13px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 8px var(--violet-bright); }

.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.35rem); font-weight: 800; line-height: 1.0; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 30em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 15.5px; font-weight: 700;
    padding: 13px 24px; border-radius: 12px; cursor: pointer; border: none;
    transition: transform 0.1s, box-shadow 0.2s, filter 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-deep) 100%);
    color: #fff; box-shadow: 0 6px 22px var(--glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); color: #fff; box-shadow: 0 12px 32px var(--glow), 0 0 22px var(--glow-soft), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet-bright); color: var(--lilac); }
.btn-lg { font-size: 16.5px; padding: 15px 30px; }

/* ---------- hero panel mock (signature) ---------- */
.panel-mock {
    position: relative;
    background: linear-gradient(180deg, rgba(30, 26, 46, 0.92) 0%, rgba(18, 16, 26, 0.94) 100%);
    border: 1px solid rgba(139, 92, 246, 0.34);
    border-radius: 20px; padding: 18px;
    box-shadow: 0 26px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 0 40px rgba(139,92,246,0.14);
}
.panel-mock::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%);
}
.pm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 2px; }
.pm-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 14px; letter-spacing: 0.5px; }
.pm-title span { color: var(--lilac); }
.pm-live { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pm-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px #22C55E; animation: livePulse 1.8s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.pm-tabs { display: flex; gap: 5px; background: rgba(0,0,0,0.28); border-radius: 11px; padding: 4px; margin-bottom: 14px; }
.pm-tab { flex: 1; text-align: center; padding: 9px 6px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pm-tab.active { background: linear-gradient(135deg, var(--violet-deep), var(--violet)); color: #fff; box-shadow: 0 2px 10px var(--glow); }

.pm-input {
    min-height: 56px; border: 1px solid var(--line); background: rgba(0,0,0,0.32);
    border-radius: 11px; padding: 13px 14px; margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace; font-size: 13.5px; color: var(--text);
    display: flex; align-items: center; flex-wrap: wrap;
}
.pm-input .label { color: var(--dim); margin-right: 7px; }
.pm-caret { display: inline-block; width: 8px; height: 17px; background: var(--violet-bright); margin-left: 2px; vertical-align: middle; animation: caret 1s steps(1) infinite; }
@keyframes caret { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

.pm-btn {
    width: 100%; text-align: center; border-radius: 11px; padding: 13px;
    font-weight: 800; font-size: 14.5px; color: #fff;
    background: linear-gradient(180deg, var(--violet) 0%, var(--violet-deep) 100%);
    border: 1px solid rgba(201, 188, 253, 0.4);
    box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.pm-btn .bits { display: inline-flex; align-items: center; gap: 5px; }
.pm-dur { font-family: 'JetBrains Mono', monospace; font-weight: 500; opacity: 0.85; font-size: 12.5px; }

.pm-eq { display: flex; align-items: flex-end; gap: 3px; height: 50px; margin-top: 16px; padding: 0 2px; }
.pm-eq i {
    flex: 1; min-width: 2px; border-radius: 2px; height: 100%;
    background: linear-gradient(180deg, var(--lilac), var(--violet) 75%, var(--violet-deep));
    transform-origin: bottom; transform: scaleY(0.3);
    animation: eqbar 1.1s ease-in-out infinite;
}
.pm-eq i:nth-child(8n+1) { animation-duration: 0.92s; animation-delay: -0.05s; }
.pm-eq i:nth-child(8n+2) { animation-duration: 1.32s; animation-delay: -0.5s; }
.pm-eq i:nth-child(8n+3) { animation-duration: 0.78s; animation-delay: -0.2s; }
.pm-eq i:nth-child(8n+4) { animation-duration: 1.5s;  animation-delay: -0.9s; }
.pm-eq i:nth-child(8n+5) { animation-duration: 1.04s; animation-delay: -0.35s; }
.pm-eq i:nth-child(8n+6) { animation-duration: 0.86s; animation-delay: -0.65s; }
.pm-eq i:nth-child(8n+7) { animation-duration: 1.22s; animation-delay: -0.15s; }
.pm-eq i:nth-child(8n+8) { animation-duration: 0.96s; animation-delay: -0.8s; }

.pm-foot { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; font-size: 11.5px; color: var(--dim); }
.pm-foot .chip { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.bits-glyph { flex-shrink: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 8vw, 90px) 0; }
.section-divider { border-top: 1px solid var(--line-soft); }
.kicker {
    font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-bright);
    text-align: center; margin-bottom: 12px;
}
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 700; text-align: center; margin-bottom: 14px; }
.lead { text-align: center; color: var(--muted); max-width: 34em; margin: 0 auto 46px; font-size: 1.06rem; }

/* ---------- two ways to play ---------- */
.play-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.play-card {
    position: relative; overflow: hidden;
    border-radius: 18px; padding: 30px 28px 32px;
    background: linear-gradient(180deg, rgba(34, 28, 52, 0.6) 0%, rgba(18, 16, 26, 0.6) 100%);
    border: 1px solid rgba(139, 92, 246, 0.26);
    transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}
.play-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.5); box-shadow: 0 18px 44px rgba(0,0,0,0.4), 0 0 26px var(--glow-soft); }
.play-card .tag {
    display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac);
    background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(167,139,250,0.25);
    border-radius: 999px; padding: 3px 10px; margin-bottom: 16px;
}
.play-card .pc-icon { font-size: 30px; line-height: 1; display: block; margin-bottom: 14px; }
.play-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.play-card p { color: var(--muted); font-size: 0.98rem; }
.play-card p .hi { color: var(--text); font-weight: 600; }
.play-card.is-generate { border-color: rgba(167, 139, 250, 0.42); background: linear-gradient(180deg, rgba(45, 33, 71, 0.66) 0%, rgba(20, 17, 30, 0.66) 100%); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 18px; }
.feature {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 15px; padding: 24px 22px;
    transition: transform 0.15s, border-color 0.18s, box-shadow 0.18s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 12px 28px rgba(0,0,0,0.32), 0 0 16px var(--glow-soft); }
.feature .f-icon { font-size: 24px; display: block; margin-bottom: 13px; }
.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.step {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 15px; padding: 22px 24px;
}
.step-num {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px;
    background: linear-gradient(150deg, var(--violet-bright) 0%, var(--violet) 55%, var(--violet-deep) 100%);
    color: #0C0C0F; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255,255,255,0.45);
}
.step-body h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { color: var(--muted); font-size: 0.97rem; }

/* ---------- cta band ---------- */
.cta-band { padding: clamp(54px, 8vw, 84px) 0; }
.cta-inner {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 22px; padding: clamp(40px, 6vw, 64px) 28px;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.3) 0%, rgba(139, 92, 246, 0.16) 100%);
    border: 1px solid rgba(167, 139, 250, 0.32);
}
.cta-inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: var(--muted); max-width: 30em; margin: 0 auto 30px; font-size: 1.06rem; }
.cta-eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 30px; margin-bottom: 26px; }
.cta-eq i { width: 4px; border-radius: 2px; height: 100%; background: linear-gradient(180deg, var(--lilac), var(--violet)); transform-origin: bottom; transform: scaleY(0.3); animation: eqbar 1.1s ease-in-out infinite; }
.cta-eq i:nth-child(odd) { animation-duration: 0.9s; }
.cta-eq i:nth-child(3n) { animation-delay: -0.4s; }
.cta-eq i:nth-child(3n+1) { animation-delay: -0.7s; }

/* ---------- legal ---------- */
.legal { padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 8vw, 84px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 6px; }
.legal .updated { color: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 13px; margin-bottom: 34px; }
.legal h2 { font-size: 1.3rem; font-weight: 700; margin: 36px 0 11px; }
.legal h2 .num { color: var(--violet-bright); margin-right: 9px; font-family: 'JetBrains Mono', monospace; }
.legal p { color: #C7C7D1; margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 22px; color: #C7C7D1; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--text); }
.legal a { font-weight: 600; }
.callout {
    background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.26);
    border-radius: 13px; padding: 16px 18px; margin: 22px 0; color: #C7C7D1; font-size: 0.97rem;
}
.callout-pre {
    border-left: 3px solid var(--violet); background: rgba(139,92,246,0.06);
    border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 26px 0; color: var(--muted); font-size: 0.95rem;
}

/* ---------- setup extras ---------- */
.setup-cta { text-align: center; margin: 40px 0 8px; }
.setup-note { text-align: center; color: var(--dim); font-size: 13.5px; margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 24px; padding: 36px 0; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; font-family: 'Bricolage Grotesque', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--lilac); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .panel-mock { max-width: 420px; margin: 0 auto; width: 100%; }
    .play-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav-links { gap: 14px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .hero { padding-top: 36px; }
    .step { padding: 18px; gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .pm-eq i, .cta-eq i, .brand-eq i { transform: scaleY(0.6); }
    .pm-caret { opacity: 1; }
}
