:root {
    --bg:        #0a0a0f;
    --surface:   #13131a;
    --surface-2: #1a1a24;
    --border:    #1e1e2e;
    --accent:    #e94560;
    --accent-2:  #f5a623;
    --green:     #22c55e;
    --text:      #f0f0f0;
    --muted:     rgba(255,255,255,.50);
    --muted-2:   rgba(255,255,255,.30);
    --font-display: 'Unbounded', sans-serif;
    --font-body:    'Nunito', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 9px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 4px;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================ */
/* NAV */
/* ============================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 18px;
    letter-spacing: -.3px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    transition: border-color .2s;
}
.nav-cta:hover { border-color: var(--accent); }

@media (max-width: 720px) {
    .nav-links { display: none; }
}

/* ============================================================ */
/* HERO */
/* ============================================================ */

.hero {
    position: relative;
    padding: 96px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    right: -160px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233,69,96,.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.5px;
    margin-bottom: 22px;
}
.hero-title .accent { color: var(--accent); }

.hero-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 15px 28px;
    border-radius: var(--radius-sm);
    transition: transform .15s, opacity .2s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.btn-full { width: 100%; text-align: center; }

.btn-ghost {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.hero-trust {
    font-size: 13px;
    color: var(--muted-2);
}

/* --- Demo card --- */

.hero-demo { display: flex; justify-content: center; }

.demo-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.demo-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 22px;
}
.demo-car { font-size: 13px; font-weight: 700; }
.demo-id  { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.demo-track {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.demo-track-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    transition: background .4s;
}
.demo-track-seg.active { background: var(--accent); }
.demo-track-seg.done   { background: var(--green); }

.demo-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.demo-status-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    transition: color .3s;
}
.demo-status-sum {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--accent-2);
}

.demo-log {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 90px;
}
.demo-log-line {
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    opacity: 0;
    animation: logIn .4s ease forwards;
}
.demo-log-line .dot {
    color: var(--green);
    flex-shrink: 0;
}
@keyframes logIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-title { font-size: 38px; }
    .hero-demo { order: -1; }
}

/* ============================================================ */
/* PROBLEM */
/* ============================================================ */

.problem { padding: 70px 0; border-top: 1px solid var(--border); }

.problem-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 36px;
    align-items: start;
}

.problem-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}
.problem-tag-accent { color: var(--accent-2); }

.problem-list { display: flex; flex-direction: column; gap: 16px; }
.problem-list li {
    font-size: 15px;
    color: var(--muted);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}
.problem-before .problem-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.problem-after .problem-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
.problem-after .problem-list li { color: var(--text); }

.problem-arrow {
    font-size: 24px;
    color: var(--muted-2);
    align-self: center;
    padding-top: 30px;
}

@media (max-width: 720px) {
    .problem-grid { grid-template-columns: 1fr; }
    .problem-arrow { display: none; }
}

/* ============================================================ */
/* SECTION HEAD (shared) */
/* ============================================================ */

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.section-head { margin-bottom: 48px; max-width: 560px; }

/* ============================================================ */
/* HOW IT WORKS — flow */
/* ============================================================ */

.how { padding: 80px 0; border-top: 1px solid var(--border); }

.flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.flow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    position: relative;
}

.flow-icon { font-size: 26px; margin-bottom: 14px; }
.flow-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.flow-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 980px) {
    .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .flow { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* ROLES */
/* ============================================================ */

.roles { padding: 80px 0; border-top: 1px solid var(--border); }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.role-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
}
.role-card-accent {
    border-color: rgba(233,69,96,.35);
    background: linear-gradient(160deg, rgba(233,69,96,.08), var(--surface) 60%);
}

.role-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}

.role-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}

.role-card ul { display: flex; flex-direction: column; gap: 12px; }
.role-card li {
    font-size: 13.5px;
    color: var(--muted);
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.role-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--muted-2);
}

@media (max-width: 880px) {
    .roles-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* PRICING */
/* ============================================================ */

.pricing { padding: 80px 0; border-top: 1px solid var(--border); }
.pricing .section-head { margin: 0 auto 48px; text-align: center; }

.price-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid rgba(233,69,96,.3);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(233,69,96,.08);
}

.price-card-head { text-align: center; margin-bottom: 28px; }

.price-trial {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(34,197,94,.12);
    border: 1px solid rgba(34,197,94,.3);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
}

.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
}
.price-period { font-size: 14px; color: var(--muted); }

.price-note { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; }

.price-divider { height: 1px; background: var(--border); margin: 0 0 28px; }

.price-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.price-features li {
    font-size: 14.5px;
    padding-left: 24px;
    position: relative;
}
.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ============================================================ */
/* FINAL CTA */
/* ============================================================ */

.final-cta { padding: 96px 0; border-top: 1px solid var(--border); }
.final-cta-inner { text-align: center; }
.final-cta h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
}
.final-cta p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 30px;
}

/* ============================================================ */
/* FOOTER */
/* ============================================================ */

.footer { padding: 32px 0 40px; border-top: 1px solid var(--border); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { font-size: 13px; color: var(--muted-2); }
