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

:root {
    --bg: #ffffff;
    --bg-warm: #fafaf8;
    --surface: #f5f5f3;
    --surface-hover: #ededeb;
    --border: #e5e5e3;
    --border-subtle: #eeeeec;
    --text: #1a1a1a;
    --text-secondary: #5c5c5c;
    --text-dim: #8c8c8c;
    --accent: #6366f1;
    --accent-soft: rgba(99, 102, 241, 0.08);
    --accent-bright: #4f46e5;
    --accent-text: #4338ca;
    --green: #059669;
    --green-soft: rgba(5, 150, 105, 0.08);
    --green-text: #047857;
    --red: #dc2626;
    --red-soft: rgba(220, 38, 38, 0.07);
    --amber: #d97706;
    --amber-soft: rgba(217, 119, 6, 0.07);
    --font: "Instrument Sans", -apple-system, sans-serif;
    --mono: "JetBrains Mono", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- NAV ---- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

    .logo img {
        display: block;
    }

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

    .nav-links a {
        font-size: 14px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: var(--text);
        }

        .nav-links a.btn-nav {
            padding: 8px 18px;
            border-radius: 8px;
            background: var(--accent);
            border: none;
            color: white;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-family: var(--font);
        }

            .nav-links a.btn-nav:hover {
                background: var(--accent-bright);
                color: white;
            }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
}

    .hero::before {
        content: "";
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 900px;
        height: 600px;
        background: radial-gradient( ellipse, rgba(99, 102, 241, 0.06), transparent 65% );
        pointer-events: none;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border-radius: 100px;
    background: var(--green-soft);
    border: 1px solid rgba(5, 150, 105, 0.15);
    font-size: 13px;
    color: var(--green-text);
    font-weight: 500;
    margin-bottom: 32px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
}

    .pulse-dot::after {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 1px solid var(--green);
        animation: pulse 2s ease infinite;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    max-width: 820px;
    color: var(--text);
    position: relative;
    animation: fadeInUp 0.8s ease 0.1s both;
}

    .hero h1 .gradient {
        background: linear-gradient( 135deg, var(--accent) 0%, var(--green) 100% );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-top: 24px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- WAITLIST FORM ---- */
.waitlist-form {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

    .waitlist-form input {
        padding: 14px 18px;
        border-radius: 10px;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 15px;
        width: 300px;
        font-family: var(--font);
        outline: none;
        transition: all 0.2s;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

        .waitlist-form input::placeholder {
            color: var(--text-dim);
        }

        .waitlist-form input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

.btn-primary {
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

    .btn-primary:hover {
        background: var(--accent-bright);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    }

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

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

    .hero-cta .btn-primary {
        text-decoration: none;
        display: inline-block;
    }

.btn-secondary {
    padding: 14px 28px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

    .btn-secondary:hover {
        border-color: var(--text-dim);
        background: var(--surface);
    }

.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    color: var(--text-dim);
    font-size: 13px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.avatar-stack {
    display: flex;
}

    .avatar-stack span {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 2px solid var(--bg);
        margin-left: -8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 600;
        color: white;
    }

        .avatar-stack span:first-child {
            margin-left: 0;
        }

        .avatar-stack span:nth-child(1) {
            background: #6366f1;
        }

        .avatar-stack span:nth-child(2) {
            background: #f59e0b;
        }

        .avatar-stack span:nth-child(3) {
            background: #10b981;
        }

        .avatar-stack span:nth-child(4) {
            background: #ec4899;
        }

/* ---- MOCKUP (stays dark for contrast) ---- */
.mockup-section {
    padding: 0 24px 120px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.mockup {
    max-width: 960px;
    width: 100%;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #27272a;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: #71717a;
    font-family: var(--mono);
}

.mockup-body {
    padding: 32px;
}

.mockup-chat {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-msg {
    display: flex;
    gap: 14px;
    max-width: 700px;
    animation: chatIn 0.4s ease both;
}

    .chat-msg.user {
        align-self: flex-end;
        flex-direction: row-reverse;
    }

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.chat-msg.ai .chat-avatar {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    overflow: hidden;
}

.chat-msg.user .chat-avatar {
    background: #27272a;
    color: #a1a1aa;
}

.chat-bubble {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
}

.chat-msg.ai .chat-bubble {
    background: #18181b;
    color: #a1a1aa;
    border: 1px solid #1c1c1f;
}

.chat-msg.user .chat-bubble {
    background: rgba(99, 102, 241, 0.15);
    color: #fafafa;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.chat-bubble strong {
    color: #fafafa;
    font-weight: 600;
}

.chat-bubble .metric {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: #34d399;
    background: rgba(52, 211, 153, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

    .chat-bubble .metric.down {
        color: #f87171;
        background: rgba(248, 113, 113, 0.1);
    }

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- FEATURES ---- */
.features-section {
    padding: 120px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 560px;
    margin-bottom: 64px;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.feature-card {
    background: var(--bg);
    padding: 40px 32px;
    transition: background 0.3s;
}

    .feature-card:hover {
        background: var(--bg-warm);
    }

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
    background: var(--accent-soft);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.how-section {
    padding: 120px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.steps {
    display: flex;
    gap: 48px;
    position: relative;
}

    .steps::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 28px;
        right: 28px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--green));
        opacity: 0.2;
        border-radius: 1px;
    }

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    color: var(--text);
}

.step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 260px;
    margin: 0 auto;
}

/* ---- EXAMPLE INSIGHTS ---- */
.insights-section {
    padding: 120px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.insight-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    .insight-card:hover {
        border-color: #ccc;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    }

.insight-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.insight-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

    .insight-text strong {
        color: var(--text);
    }

.insight-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--mono);
    padding: 4px 10px;
    border-radius: 6px;
}

    .insight-tag.up {
        background: var(--green-soft);
        color: var(--green-text);
    }

    .insight-tag.down {
        background: var(--red-soft);
        color: var(--red);
    }

    .insight-tag.info {
        background: var(--accent-soft);
        color: var(--accent-text);
    }

    .insight-tag.warn {
        background: var(--amber-soft);
        color: var(--amber);
    }

/* ---- PRICING ---- */
.pricing-section {
    padding: 120px 24px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 56px;
    text-align: left;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.pricing-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    position: relative;
}

.pricing-card.featured::before {
    content: "Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 999px;
}

.pricing-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--text);
}

.pricing-price span {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-dim);
}

.pricing-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 42px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: "✓";
    color: var(--green);
    font-weight: 700;
    margin-right: 10px;
}

.pricing-cta {
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.2s;
    font-family: var(--font);
}

.pricing-cta.primary {
    background: var(--accent);
    color: white;
}

.pricing-cta.primary:hover {
    background: var(--accent-bright);
}

.pricing-cta.secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.pricing-cta.secondary:hover {
    border-color: var(--text-dim);
    background: var(--surface);
}

.pricing-footer {
    margin-top: 48px;
    text-align: center;
}

.pricing-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pricing-signup {
    display: inline-block;
    text-decoration: none;
    padding: 14px 32px !important;
    font-size: 15px !important;
}

.pricing-demo-link {
    margin-top: 16px !important;
    font-size: 14px !important;
    color: var(--text-secondary) !important;
}

.pricing-demo-link a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.pricing-demo-link a::after {
    content: " →";
    transition: transform 0.2s;
    display: inline-block;
}

.pricing-demo-link a:hover {
    color: var(--accent-bright);
}

.pricing-demo-link a:hover::after {
    transform: translateX(3px);
}

@media (max-width: 760px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- CTA ---- */
.cta-section {
    padding: 120px 24px;
    text-align: center;
    background: var(--bg-warm);
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 64px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
}

    .cta-box::before {
        content: "";
        position: absolute;
        top: -80%;
        left: -30%;
        right: -30%;
        height: 300px;
        background: radial-gradient( ellipse, rgba(99, 102, 241, 0.06), transparent 65% );
        pointer-events: none;
    }

    .cta-box h2 {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: -0.03em;
        margin-bottom: 12px;
        position: relative;
        color: var(--text);
    }

    .cta-box p {
        color: var(--text-secondary);
        font-size: 16px;
        margin-bottom: 32px;
        position: relative;
    }

.cta-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    position: relative;
}

    .cta-form input {
        padding: 14px 18px;
        border-radius: 10px;
        background: var(--bg);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 15px;
        width: 280px;
        font-family: var(--font);
        outline: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

        .cta-form input::placeholder {
            color: var(--text-dim);
        }

        .cta-form input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }

/* ---- FOOTER ---- */
footer {
    padding: 40px 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--text-dim);
}

    footer a {
        color: var(--text-secondary);
        text-decoration: none;
    }

        footer a:hover {
            color: var(--text);
        }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        gap: 32px;
    }

        .steps::before {
            display: none;
        }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .waitlist-form,
    .cta-form {
        flex-direction: column;
        align-items: center;
    }

        .waitlist-form input,
        .cta-form input {
            width: 100%;
            max-width: 320px;
        }

    nav {
        padding: 14px 20px;
    }

    .nav-links a:not(.btn-nav) {
        display: none;
    }
}
