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

:root {
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --bg-muted: #f4f4f5;
    --border: #e4e4e7;
    --border-light: #f4f4f5;
    --text: #111111;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    --text-accent: #3b82f6;
    --btn-bg: #111111;
    --btn-text: #ffffff;
    --btn-hover: #27272a;
    --focus-ring: rgba(59, 130, 246, 0.15);
    --focus-border: #3b82f6;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-md: rgba(0, 0, 0, 0.10);
    --critical-color: #ef4444;
    --improvements-color: #eab308;
    --minor-color: #22c55e;
    --code-bg: #f4f4f5;
    --code-border: #e4e4e7;
    --code-text: #5149E6;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --font-sans: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;
    --main-color: #5149E6;
    --main-color-light: #6264F0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111113;
        --bg-subtle: #18181b;
        --bg-muted: #27272a;
        --border: #3f3f46;
        --border-light: #27272a;
        --text: #f4f4f5;
        --text-secondary: #a1a1aa;
        --text-muted: #71717a;
        --text-accent: #60a5fa;
        --btn-bg: #f4f4f5;
        --btn-text: #09090b;
        --btn-hover: #e4e4e7;
        --shadow: rgba(0, 0, 0, 0.40);
        --shadow-md: rgba(0, 0, 0, 0.50);
        --critical-color: #f87171;
        --improvements-color: #facc15;
        --minor-color: #4ade80;
        --code-bg: #18181b;
        --code-border: #3f3f46;
        --code-text: #5149E6;
        --main-color: #5149E6;
        --main-color-light: #6264F0;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: var(--font-mono);
    font-size: 0.82em;
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--code-text);
}

/* NAV */
nav {
    position: fixed;
    inset: 10px 10px auto 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--btn-bg) !important;
    color: var(--btn-text) !important;
    padding: 0.38rem 0.9rem !important;
    border-radius: var(--radius-sm) !important;
}

/* HERO */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 9rem 2rem 4rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.28rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--minor-color);
    border-radius: 50%;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    color: var(--main-color);
}

h1 em {
    font-style: italic;
    color: var(--main-color-light);
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    max-width: 560px;
    color: var(--text);
}

h4 em {
    font-style: italic;
    color: var(--text-secondary);
}

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.68rem 1.3rem;
    border-radius: var(--radius);
    font-size: 0.86rem;
    font-weight: 500;
    transition: opacity 0.15s;
}

.btn-primary:hover {
    opacity: 0.82;
}

.btn-ghost {
    font-size: 0.86rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
    transition: color 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text);
}

/* HERO PREVIEW */
.demo-wrap {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

.hero-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px var(--shadow);
}

.hero-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    border-radius: inherit;
}

/* SECTIONS */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 1.5rem;
}

section {
    max-width: 1020px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem;
}

.sect-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.25rem;
}

.step-num {
    font-size: 2.8rem;
    color: var(--border);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feat-card {
    background: var(--bg-subtle);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: background 0.15s;
}

.feat-card:hover {
    background: var(--bg-muted);
}

.feat-icon {
    width: 26px;
    height: 26px;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.feat-title {
    font-size: 0.875rem;
    font-weight: 500;
}

.feat-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* CTA */
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.45rem;
}

.cta-inner p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.68rem 1.3rem;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
    background: var(--bg-muted);
    border-color: var(--text-secondary);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1020px;
    margin: 0 auto;
}

.site-footer p,
.site-footer a {
    font-size: 0.76rem;
    color: var(--text-muted);
}

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

@media (max-width: 680px) {
    nav {
        inset: 8px 8px auto 8px;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }

    .hero {
        padding: 7.5rem 1.25rem 3rem;
    }

    .demo-wrap {
        padding: 0 1rem 4rem;
    }

    .hero-preview {
        border-radius: calc(var(--radius-lg) - 4px);
    }

    .cta-inner {
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}
