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

:root {
    --bg-base: #1a1c2b;
    --bg-card: #21243a;
    --bg-input: #2a2d43;
    --red: #e53535;
    --red-hover: #c92a2a;
    --red-glow: rgba(229, 53, 53, 0.3);
    --border: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-label: rgba(255, 255, 255, 0.65);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-base);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(26, 28, 43, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--red);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 7px;
    flex-shrink: 0;
}

.brand-icon span {
    background: #fff;
    border-radius: 2px;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

.brand-name em {
    font-style: normal;
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .15s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav-login {
    background: var(--red);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px var(--red-glow);
    transition: background .2s, box-shadow .2s;
}

.btn-nav-login:hover {
    background: var(--red-hover) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ── hero ── */
.hero {
    padding: 96px 0 72px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-label);
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    max-width: 780px;
    margin: 0 auto 20px;
    letter-spacing: -0.5px;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 72px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 24px var(--red-glow);
    transition: background .2s, box-shadow .2s, transform .1s;
}

.btn-primary:hover {
    background: var(--red-hover);
    box-shadow: 0 8px 30px rgba(229, 53, 53, .5);
}

.btn-primary:active {
    transform: scale(.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: border-color .2s, background .2s;
}

.btn-secondary:hover {
    border-color: var(--red);
    background: rgba(229, 53, 53, .06);
}

/* ── mock dashboard preview ── */
.preview {
    max-width: 920px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.preview-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.preview-stat {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.preview-stat .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.preview-stat .value {
    font-size: 20px;
    font-weight: 700;
}

.preview-stat .value.red {
    color: var(--red);
}

.preview-lower {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
}

.preview-chart {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 140px;
}

.preview-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, var(--red), rgba(229, 53, 53, .25));
    border-radius: 4px 4px 0 0;
}

.preview-list {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.preview-list .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.preview-list .row:last-child {
    border-bottom: none;
}

.preview-list .badge {
    background: rgba(229, 53, 53, .15);
    color: #ff8080;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* ── section heading ── */
.section {
    padding: 88px 0;
}

.section-head {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.section-eyebrow {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ── feature grid ── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: border-color .2s, transform .2s;
}

.feature-card:hover {
    border-color: rgba(229, 53, 53, .4);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(229, 53, 53, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--red);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── how it works ── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 30px 24px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── cta banner ── */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-input));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: var(--red);
    opacity: .12;
    border-radius: 50%;
    filter: blur(60px);
}

.cta-banner h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 28px;
    position: relative;
}

/* ── footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-inner .brand-name {
    font-size: 13px;
}

.footer-copy {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ── responsive ── */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 34px;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .preview-lower {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 64px 0 48px;
    }
}

@media (max-width: 560px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-banner {
        padding: 40px 24px;
    }
}
