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

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f172a;
    color: #ffffff;
}

/* ===== Top nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #eab308);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 16px;
}

.logo-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

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

.nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #ffffff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== Buttons ===== */
.btn {
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.big {
    padding: 12px 24px;
    font-size: 15px;
}

.btn.primary {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.45);
}

.btn.primary:hover {
    background: #4f46e5;
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.6);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
    background: rgba(148, 163, 184, 0.16);
}

/* ===== Hero layout ===== */
.hero {
    padding-top: 90px;
    /* space for fixed nav */
    padding-bottom: 60px;
}

.hero-content {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 40px 24px 20px;
}

.hero-left h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-top: 16px;
    margin-bottom: 18px;
}

.hero-left .accent {
    color: #6366f1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
}

.hero-text {
    font-size: 15px;
    color: #cbd5f5;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 22px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.metric {
    min-width: 180px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.metric-label {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 13px;
}

/* ===== Hero right preview ===== */
.hero-right {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 420px;
    padding: 22px 22px 18px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #4f46e5, #1e293b 55%, #020617 100%);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.7);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
}

.preview-chip {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.preview-stat {
    padding: 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.7);
}

.preview-label {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-bottom: 4px;
}

.preview-value {
    font-size: 15px;
    font-weight: 600;
}

.preview-value.positive {
    color: #22c55e;
}

.preview-chart {
    position: relative;
    height: 120px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.3), rgba(56, 189, 248, 0.28));
    overflow: hidden;
}

.preview-line,
.preview-line.soft {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 60px;
    border-radius: 999px;
    border: 2px solid rgba(79, 70, 229, 0.9);
    transform: translateY(40px) rotate(-2deg);
}

.preview-line.soft {
    top: 38px;
    border-color: rgba(129, 140, 248, 0.6);
    transform: translateY(50px) rotate(1deg);
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #e5e7eb;
    opacity: 0.85;
}

.preview-foot-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.preview-foot-value {
    text-align: right;
}

/* ===== Features ===== */
.features {
    max-width: 1120px;
    margin: 10px auto 0;
    padding: 20px 24px 10px;
}

.features h2,
.how h2 {
    font-size: 1.8rem;
    margin-bottom: 18px;
}

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

.feature-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 13px;
    color: #cbd5f5;
}

/* ===== How it works ===== */
.how {
    max-width: 1120px;
    margin: 12px auto 0;
    padding: 10px 24px 20px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-step {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.step-number {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.how-step h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.how-step p {
    font-size: 13px;
    color: #cbd5f5;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 14px 24px 18px;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: -1;
    }

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

    .nav-links {
        display: none;
    }
}