/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --bg-base: #ffffff;
    --bg-panel: #f8f9fb;
    --bg-card: #ffffff;
    --bg-surface: #f1f3f6;
    --border: #e2e5ea;
    --border-soft: #eef0f3;
    --gold: #a38630;
    --gold-dim: rgba(163,134,48,.07);
    --gold-border: rgba(163,134,48,.20);
    --blue: #2563eb;
    --green: #16a34a;
    --red: #dc2626;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-dim: #9ca3af;
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
    --font-mono: 'DM Mono', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
a.nav-brand { text-decoration: none; }
a.nav-brand:hover { text-decoration: none; }
.nav-logo { width: 24px; height: 24px; object-fit: contain; }
.nav-name {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}
.nav-bracket { color: var(--gold); }
.nav-name-rest { color: var(--text-primary); }

/* Right cluster: anchor links + Log In CTA */
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--gold);
    text-decoration: none;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 16px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    transition: all 0.2s;
}
.nav-cta:hover {
    background: var(--gold);
    color: #fff;
    text-decoration: none;
}

/* Mobile: hide anchor links, keep brand + Log In CTA only */
@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-right { gap: 0; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(163,134,48,.05) 0%, transparent 100%),
        var(--bg-base);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-border);
    background: var(--gold-dim);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.hero-strike {
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
}
.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.btn-hero {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 32px;
    background: var(--gold);
    color: #fff;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-hero:hover {
    background: #8a7228;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(163,134,48,.20);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.section-title {
    font-family: var(--font-sans);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* ── Pains ──────────────────────────────────────────────────────────────── */
.pains {
    padding: 80px 24px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.pains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pain-card:hover {
    border-color: var(--text-dim);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.pain-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--gold-border);
    border-radius: 10px;
    margin-bottom: 14px;
}
.pain-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.pain-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Solution / Features ───────────────────────────────────────────────── */
.solution {
    padding: 80px 24px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: var(--gold-border);
    box-shadow: 0 2px 12px rgba(163,134,48,.06);
}
.feature-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.5;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── How it works ──────────────────────────────────────────────────────── */
.how {
    padding: 80px 24px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.how-steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.how-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.how-step-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}
.how-step-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.how-step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.how-step-content code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--blue);
}

/* ── Code preview (keep dark — it's a code editor) ─────────────────────── */
.code-section {
    padding: 80px 24px;
}
.code-block {
    max-width: 560px;
    margin: 0 auto 20px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    overflow: hidden;
    background: var(--code-bg);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-title {
    font-size: 11px;
    color: #64748b;
    margin-left: 8px;
    font-family: var(--font-mono);
}
.code-content {
    font-family: var(--font-mono);
    font-size: clamp(14px, 2vw, 18px);
    padding: 28px 24px;
    margin: 0;
    text-align: center;
    line-height: 1.5;
    color: var(--code-text);
    overflow-x: auto;
}
.code-fn { color: #c9a84c; }
.code-str { color: #4ade80; }
.code-kw { color: #7dd3fc; }
.code-caption {
    font-size: 13px;
    color: var(--text-dim);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Waitlist ──────────────────────────────────────────────────────────── */
.waitlist {
    padding: 80px 24px 100px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(163,134,48,.04) 0%, transparent 100%),
        var(--bg-panel);
    border-top: 1px solid var(--border);
}
.waitlist-form {
    max-width: 440px;
    margin: 0 auto;
}
.waitlist-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.waitlist-field input,
.waitlist-field select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.waitlist-field input::placeholder { color: var(--text-dim); }
.waitlist-field select { color: var(--text-secondary); cursor: pointer; }
.waitlist-field select option { background: var(--bg-card); color: var(--text-primary); }
.waitlist-field input:focus,
.waitlist-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-dim);
}
.btn-waitlist {
    width: 100%;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-waitlist:hover {
    background: #8a7228;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(163,134,48,.18);
}
.btn-waitlist:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
    box-shadow: none;
}
.waitlist-msg {
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    min-height: 20px;
}
.waitlist-msg.success { color: var(--green); }
.waitlist-msg.error { color: var(--red); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    background: var(--bg-panel);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .pains-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding: 120px 20px 60px; }
    .code-content { font-size: 14px; padding: 20px 16px; }
}
