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

:root {
    --bg:      #0f172a;
    --bg2:     #1e293b;
    --bg3:     #273549;
    --border:  rgba(255,255,255,0.08);
    --text:    #f1f5f9;
    --text2:   #94a3b8;
    --text3:   #64748b;
    --accent:  #10b981;
    --accent2: #34d399;
    --radius:  10px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

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

/* ── Nav ── */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    height: 64px;
    background: rgba(15,23,42,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 20px; font-weight: 700; letter-spacing: -0.4px;
    color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500;
    border: none; cursor: pointer;
    transition: all .15s ease;
}
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent2); color: #0f172a; }
.btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 12px; }
.btn-outline-light { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline-light:hover { background: rgba(255,255,255,0.06); }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 100px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: var(--accent2);
    padding: 5px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 40px; justify-content: center;
    margin-top: 60px; flex-wrap: wrap;
}

.hero-stat-item { text-align: center; }
.hero-stat-num { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.hero-stat-label { font-size: 13px; color: var(--text3); margin-top: 2px; }

/* ── Decorative grid bg ── */
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

/* ── Features ── */
.section {
    padding: 80px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent); margin-bottom: 12px;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700; letter-spacing: -0.8px;
    color: var(--text); margin-bottom: 14px;
}

.section-subtitle {
    font-size: 17px; color: var(--text2);
    max-width: 520px; line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

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

.feature-card:hover {
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px; height: 44px;
    background: rgba(16,185,129,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

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

.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p  { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ── Dashboard preview ── */
.preview-wrap {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    margin-top: 48px;
}

.preview-bar {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 20px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ef4444; }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: #10b981; }

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

.preview-kpi {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px; padding: 16px;
}
.preview-kpi-label { font-size: 11px; color: var(--text3); margin-bottom: 6px; }
.preview-kpi-val   { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.preview-kpi-val.green  { color: var(--accent); }
.preview-kpi-val.red    { color: #f87171; }
.preview-kpi-val.blue   { color: #60a5fa; }

.preview-bars { display: flex; flex-direction: column; gap: 10px; }
.preview-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text3); }
.preview-bar-row span:first-child { width: 90px; flex-shrink: 0; }
.preview-bar-bg { flex: 1; height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.preview-bar-fill { height: 100%; border-radius: 3px; }

/* ── CTA section ── */
.cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid var(--border);
    padding: 80px 5%;
    text-align: center;
}

.cta-section h2 { font-size: clamp(26px,4vw,38px); font-weight:700; letter-spacing:-0.8px; margin-bottom:14px; }
.cta-section p  { font-size:17px; color:var(--text2); margin-bottom:32px; }

/* ── Footer ── */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 32px 5%;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

footer .logo { font-size: 16px; font-weight: 700; }
footer .logo span { color: var(--accent); }
footer p { font-size: 13px; color: var(--text3); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .preview-kpis { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 24px; }
    footer { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .preview-kpis { grid-template-columns: 1fr; }
}
