/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

:root {
    --blue:    #0f2ca8;
    --blue-lt: #1a3fd4;
    --accent:  #00d4ff;
    --dark:    #080e1f;
    --dark2:   #0d1530;
    --mid:     #1a2545;
    --text:    #e8eeff;
    --muted:   #7a8db8;
    --white:   #ffffff;
    --green:   #00e59b;
    --orange:  #ff8c42;
    --purple:  #9b5de5;
}

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(600px circle at 30% 40%, rgba(16,44,168,0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.1s ease;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: rgba(8,14,31,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-login-btn {
    padding: 9px 22px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.nav-login-btn:hover {
    background: var(--blue-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16,44,168,0.4);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 60px 60px;
    gap: 60px;
}

.hero-left {
    flex: 1;
    max-width: 540px;
    animation: fadeUp 0.8s ease both;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeUp 0.8s 0.2s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16,44,168,0.2);
    border: 1px solid rgba(16,44,168,0.4);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    font-weight: 500;
}

.badge-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

.title-accent {
    background: linear-gradient(135deg, var(--accent), var(--blue-lt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(16,44,168,0.4);
}

.btn-primary:hover {
    background: var(--blue-lt);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16,44,168,0.5);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* ===== DASHBOARD MOCKUP ===== */
.dashboard-mockup {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--dark2);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 40px 80px rgba(0,0,0,0.5),
        0 0 60px rgba(16,44,168,0.15);
    overflow: visible;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    border-radius: 20px 20px 0 0;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-title {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
    padding-right: 52px;
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mockup-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeUp 0.6s ease both;
}

.mockup-card.blue   { background: rgba(16,44,168,0.25); animation-delay: 0.3s; }
.mockup-card.green  { background: rgba(0,229,155,0.12); animation-delay: 0.4s; }
.mockup-card.orange { background: rgba(255,140,66,0.12); animation-delay: 0.5s; }
.mockup-card.purple { background: rgba(155,93,229,0.12); animation-delay: 0.6s; }

.mc-label { font-size: 10px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.mc-value { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }

.mc-bar {
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.mc-bar-fill {
    height: 100%;
    border-radius: 2px;
    animation: barGrow 1.2s ease both;
}
@keyframes barGrow {
    from { width: 0 !important; }
}
.blue   .mc-bar-fill { background: var(--accent); animation-delay: 0.6s; }
.green  .mc-bar-fill { background: var(--green); animation-delay: 0.7s; }
.orange .mc-bar-fill { background: var(--orange); animation-delay: 0.8s; }
.purple .mc-bar-fill { background: var(--purple); animation-delay: 0.9s; }

/* Chart */
.mockup-chart {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 14px;
}

.chart-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 60px;
}

.cb {
    flex: 1;
    height: var(--h);
    background: rgba(16,44,168,0.4);
    border-radius: 4px 4px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: background 0.2s;
    animation: barGrow 1s ease both;
}

.cb.active { background: var(--blue-lt); }
.cb span   { font-size: 9px; color: var(--muted); margin-top: 4px; transform: translateY(16px); }

/* Floating badges */
.float-badge {
    position: absolute;
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    white-space: nowrap;
    animation: floatBadge 3s ease-in-out infinite;
}

.float-1 { 
    top: -16px; right: -20px;
    color: var(--green);
    animation-delay: 0s;
}
.float-2 { 
    bottom: 30px; left: -30px;
    color: var(--text);
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ===== FEATURES ===== */
.features {
    position: relative;
    z-index: 1;
    padding: 80px 60px 100px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.features-header {
    text-align: center;
    margin-bottom: 52px;
}

.features-eyebrow {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.features-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.25s ease;
    cursor: default;
}

.feature-card:hover {
    background: rgba(16,44,168,0.15);
    border-color: rgba(16,44,168,0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.fc-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
    .hero-left { max-width: 100%; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .features { padding: 60px 24px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .navbar { padding: 16px 24px; }
    .dashboard-mockup { max-width: 100%; }
}

@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .mockup-cards { grid-template-columns: 1fr 1fr; }
}