:root {
    --bg: #0a0a0b;
    --bg-elevated: #131316;
    --bg-card: #17171b;
    --text: #f4f4f5;
    --text-muted: #9a9aa3;
    --text-faint: #555560;
    --accent: #ff3b5c;
    --accent-soft: rgba(255, 59, 92, 0.12);
    --border: #232328;
    --border-soft: #1c1c20;
    --radius: 14px;
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, sans-serif;
    font-feature-settings: "ss01", "cv11", "cv02";
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 59, 92, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 59, 92, 0.06), transparent 70%);
    background-attachment: fixed;
    min-height: 100vh;
}

a { color: var(--text); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    max-width: 1140px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: center;
}

.nav-links .primary {
    background: var(--text);
    color: var(--bg);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links .primary:hover {
    background: var(--accent);
    color: var(--text);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 60px 24px 80px;
    max-width: 760px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    margin-bottom: 36px;
    box-shadow:
        0 30px 80px -20px rgba(255, 59, 92, 0.30),
        0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: clamp(40px, 7vw, 68px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.030em;
    margin-bottom: 22px;
}

.hero h1 .accent {
    background: linear-gradient(120deg, #ff3b5c 0%, #ff8b5c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lede {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

kbd {
    display: inline-block;
    padding: 1px 7px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.85em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    color: var(--text);
    line-height: 1.4;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px -6px rgba(255, 255, 255, 0.10);
}

.cta:hover {
    transform: translateY(-2px);
    color: var(--bg);
    box-shadow: 0 12px 28px -6px rgba(255, 59, 92, 0.4);
    background: linear-gradient(120deg, #ffffff 0%, #ffe9ed 100%);
}

.cta svg { stroke: currentColor; }

.fineprint {
    color: var(--text-faint);
    font-size: 13px;
    margin-top: 18px;
}

.muted { color: var(--text-muted); }

/* ── Demo placeholder frame ──────────────────────────────────────────────── */

.demo {
    max-width: 880px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.demo-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}

.demo-window-bar {
    background: var(--bg-elevated);
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    gap: 8px;
}

.demo-window-bar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.demo-window-bar .red    { background: #ff5f57; }
.demo-window-bar .yellow { background: #febc2e; }
.demo-window-bar .green  { background: #28c840; }

.demo-body {
    padding: 60px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-keys {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: center;
}

.demo-keys kbd { font-size: 13px; padding: 4px 9px; }
.demo-keys .arrow { color: var(--text-faint); font-size: 18px; }
.demo-keys .step  { padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); }

/* ── Features grid ───────────────────────────────────────────────────────── */

.features {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature {
    padding: 28px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
    border-color: rgba(255, 59, 92, 0.5);
    transform: translateY(-2px);
}

.feature-glyph {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.feature h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────────────────── */

.how {
    max-width: 720px;
    margin: 0 auto 100px;
    padding: 0 24px;
}

.how h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 22px;
    letter-spacing: -0.02em;
}

.how ol {
    list-style: none;
    counter-reset: step;
}

.how li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 44px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 15px;
}

.how li:last-child { border-bottom: none; }

.how li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 14px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.how li strong { color: var(--text); font-weight: 600; }

/* ── Bottom CTA block ────────────────────────────────────────────────────── */

.cta-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 100px;
    padding: 60px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.cta-block h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.cta-block p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border-soft);
    padding: 36px 24px;
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    max-width: 1140px;
    margin: 60px auto 0;
}

footer p { margin: 4px 0; }
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .features { grid-template-columns: 1fr; }
    .hero { padding-top: 36px; }
    .hero-icon { width: 96px; height: 96px; }
    .demo-body { padding: 36px 18px; }
    .demo-keys { font-size: 12px; gap: 8px; }
    .nav-links a:not(.primary) { display: none; }
    .cta-block { padding: 40px 18px; }
    .cta-block h2 { font-size: 24px; }
}
