/* ── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e8e8e8;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-cta:hover {
    color: #2563eb;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}

.nav-link:hover {
    color: #1a1a1a;
}

.nav-logout-form {
    display: inline;
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 96px 48px 80px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: #0f0f0f;
    margin-bottom: 20px;
}

.hero-title-accent {
    color: #3b82f6;
}

.hero-subtitle {
    font-size: 17px;
    color: #555;
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ── Primary button ─────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary--large {
    padding: 18px 48px;
    font-size: 17px;
    border-radius: 10px;
}

/* ── Dashboard preview image ────────────────────────────────────────────── */
.hero-visual {
    flex: 1.1;
    min-width: 0;
}

.dashboard-preview-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    object-position: top left;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    display: block;
    transition: box-shadow 0.2s, transform 0.2s;
}

.hero-visual a:hover .dashboard-preview-img {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

/* ── Features ───────────────────────────────────────────────────────────── */
.features {
    background: #f9f9f9;
    padding: 80px 48px;
}

.features-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f0f0f;
    margin-bottom: 48px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px 24px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

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

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
    padding: 80px 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    padding: 0 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #0f0f0f;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
}

.step-arrow {
    font-size: 24px;
    color: #d1d5db;
    padding-top: 12px;
    flex-shrink: 0;
    align-self: center;
}

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
    background: #0f0f0f;
    color: #fff;
    text-align: center;
    padding: 80px 48px;
}

.cta-banner h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 16px;
    color: #a0a0a0;
    margin-bottom: 36px;
}

.cta-banner .btn-primary {
    background: #ffffff;
    color: #0f0f0f;
}

.cta-banner .btn-primary:hover {
    background: #e8e8e8;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    padding: 24px 48px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }

    .hero {
        flex-direction: column;
        padding: 60px 20px 48px;
        gap: 40px;
    }

    .features {
        padding: 60px 20px;
    }

    .how-it-works {
        padding: 60px 20px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .cta-banner {
        padding: 60px 20px;
    }
}
