:root {
    --primary: #667EEA;
    --primary-dark: #5a67d8;
    --accent: #f97316;
    --bg: #0f172a;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --light: #f9fafb;
    --border: #e5e7eb;
    --radius: 10px;
    --primary-light: #eef2ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #ffffff;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Header ── */
header {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.logo-mark {
    width: 32px; height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #b3c0f7, #667EEA);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.nav-links { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--primary-dark); }

.nav-cta { display: flex; gap: 0.75rem; align-items: center; }

.btn {
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-out;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
    padding: 3.5rem 0 3rem;
    background: radial-gradient(circle at top left, #eef2ff, #ffffff);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0,3fr) minmax(0,2.5fr);
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: #020617;
}

.hero-highlight { color: var(--primary-dark); }

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }

.badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-dot {
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--primary);
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hero-note { font-size: 0.8rem; color: var(--text-muted); }

/* Hero side card */
.hero-card {
    background: #0b1220;
    color: #e5e7eb;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.3rem;
    box-shadow: 0 24px 60px rgba(15,23,42,0.65);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(102,126,234,0.3), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-card-title { font-size: 0.9rem; font-weight: 600; color: #e5e7eb; }

.hero-card-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(148,163,184,0.4);
    color: #cbd5f5;
}

.hero-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.metric {
    background: rgba(15,23,42,0.9);
    border-radius: 12px;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(148,163,184,0.4);
}

.metric-label { font-size: 0.7rem; color: #9ca3af; margin-bottom: 0.15rem; }
.metric-value { font-size: 0.95rem; font-weight: 600; color: #e5e7eb; }

.hero-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9ca3af;
    position: relative;
    z-index: 1;
}

.hero-card-status { display: inline-flex; align-items: center; gap: 0.35rem; }

.status-dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

/* ── Sections ── */
section { padding: 3rem 0; }

.section-header { text-align: center; margin-bottom: 2rem; }

.section-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; }

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto;
}

/* ── Feature cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.5rem;
}

.feature-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.2rem 1.1rem;
    background: #fff;
    transition: box-shadow 0.18s, transform 0.18s;
}

.feature-card:hover {
    box-shadow: 0 8px 28px rgba(102,126,234,0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 36px; height: 36px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.feature-title { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.3rem; }
.feature-text { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.feature-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

/* ── Split layout ── */
.split {
    display: grid;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1.6fr);
    gap: 2rem;
    align-items: center;
}

.list { list-style: none; display: grid; gap: 0.7rem; margin-top: 0.75rem; }

.list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.list-bullet {
    margin-top: 0.25rem;
    width: 7px; height: 7px;
    border-radius: 999px;
    background: var(--primary);
    flex-shrink: 0;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.pill {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

.card-muted {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #f9fafb;
    padding: 1.2rem 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-muted strong { color: var(--text-main); }

/* ── Dashboard preview card ── */
.dashboard-preview {
    background: #0b1220;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 16px 48px rgba(15,23,42,0.5);
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(102,126,234,0.25), transparent 60%);
    pointer-events: none;
}

.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.dp-title { font-size: 0.85rem; font-weight: 600; color: #e5e7eb; }

.dp-badge {
    font-size: 0.68rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(102,126,234,0.25);
    border: 1px solid rgba(102,126,234,0.5);
    color: #a5b4fc;
}

.dp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    position: relative;
    z-index: 1;
}

.dp-stat {
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}

.dp-stat-label { font-size: 0.68rem; color: #9ca3af; margin-bottom: 0.1rem; }
.dp-stat-value { font-size: 0.92rem; font-weight: 700; color: #e5e7eb; }
.dp-stat-value span { font-size: 0.7rem; font-weight: 400; color: #22c55e; margin-left: 0.3rem; }

.dp-bar-section { position: relative; z-index: 1; }
.dp-bar-label { font-size: 0.7rem; color: #9ca3af; margin-bottom: 0.35rem; }

.dp-bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.dp-bar-name { font-size: 0.72rem; color: #cbd5e1; width: 80px; flex-shrink: 0; }

.dp-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(148,163,184,0.15);
    border-radius: 999px;
    overflow: hidden;
}

.dp-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #667EEA, #a5b4fc);
}

.dp-bar-pct { font-size: 0.68rem; color: #9ca3af; width: 28px; text-align: right; flex-shrink: 0; }

/* ── Table ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.92rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

thead { background: var(--primary-light); }

thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border);
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:nth-child(even) { background: #f9fafb; }

tbody td { padding: 0.75rem 1rem; color: var(--text-muted); }
tbody td strong { color: var(--text-main); }

tbody tr:hover { background: var(--primary-light); transition: background 0.15s ease-out; }

/* ── CTA ── */
.cta {
    background: radial-gradient(circle at top, #5a67d8, #020617);
    color: #e5e7eb;
    padding: 3rem 0 3.5rem;
}

.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-title { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.6rem; }
.cta-subtitle { font-size: 0.95rem; color: #cbd5f5; margin-bottom: 1.5rem; }

.cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 0.8rem;
}

.cta-input {
    min-width: 220px;
    max-width: 320px;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.7);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
}

.cta-input::placeholder { color: #9ca3af; }
.cta-note { font-size: 0.75rem; color: #9ca3af; }

/* ── Footer ── */
footer {
    border-top: 1px solid #020617;
    background: #020617;
    color: #6b7280;
    padding: 1.2rem 0;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: #9ca3af; }
.footer-links a:hover { color: #e5e7eb; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .hero-grid, .features-grid, .split { grid-template-columns: minmax(0,1fr); }
    .hero { padding-top: 2.5rem; }
    .hero-card { margin-top: 0.5rem; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.9rem; }
    .features-grid { grid-template-columns: minmax(0,1fr); }
    .hero-card-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dp-stats { grid-template-columns: 1fr; }
}
.btn-mobile {
    display: none;
    color: var(--primary-dark);
}

.btn-desktop {
    display: inline-flex;
}

@media (max-width: 900px) {
    .btn-mobile {
        display: block;
    }
    .btn-desktop {
        display: none;
    }
}