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

:root {
    --bg: #FAFAF9;
    --card: #FFFFFF;
    --border: rgba(0,0,0,0.04);
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #D97706;
    --accent-hover: #b45309;
    --blue: #2563EB;
    --success: #16A34A;
    --surface-dark: #1E1E1E;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-narrow {
    max-width: 680px;
    margin: 0 auto;
}

/* === Typography === */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

.text-secondary { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250,250,249,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--text);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 1px; transition: 0.2s; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(0,0,0,0.15);
}
.btn-outline:hover { border-color: rgba(0,0,0,0.3); }

.btn-full { width: 100%; }

/* === Sections === */
.section {
    padding: 100px 0;
}

.section-alt {
    background: white;
}

/* === Hero === */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-headline { margin-bottom: 20px; }

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Stats === */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Steps === */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.step { text-align: center; }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* === Architecture === */
.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 24px;
    flex-wrap: wrap;
}

.arch-node {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 100px;
}

.arch-node-highlight {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.arch-icon { font-size: 1.5rem; margin-bottom: 6px; }
.arch-node span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); }

.arch-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.arch-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Cards === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: var(--shadow-lg); }
.card p { color: var(--text-secondary); font-size: 0.95rem; }

/* === Patent === */
.patent-block { text-align: center; }

/* === Pricing === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: start;
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    position: relative;
}

.pricing-card-highlight {
    background: var(--card);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0 8px;
    letter-spacing: -0.02em;
}

.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

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

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

/* === Waitlist === */
.waitlist-block { text-align: center; }

.waitlist-form {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--card);
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-form input:focus { border-color: var(--accent); }

.waitlist-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--success);
    min-height: 1.4em;
}

/* === Footer === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* === Scroll Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Mobile === */
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .hero { padding: 120px 0 64px; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(250,250,249,0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }
    .nav-toggle { display: block; }

    .stats-row { grid-template-columns: 1fr; gap: 16px; }
    .steps { grid-template-columns: 1fr; gap: 32px; }
    .cards-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); }

    .waitlist-form { flex-direction: column; }

    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}
