:root {
    --bg: #fafafa;
    --bg-secondary: #f0f0f0;
    --text: #1a1a1a;
    --text-muted: #666;
    --accent: #0066cc;
    --border: #ddd;
    --code-bg: #e8e8e8;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0a;
        --bg-secondary: #141414;
        --text: #e8e8e8;
        --text-muted: #888;
        --accent: #4da3ff;
        --border: #2a2a2a;
        --code-bg: #1a1a1a;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.nav-brand {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text);
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

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

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

/* Hero */
.hero {
    padding: 120px 48px;
    max-width: 800px;
}

.hero-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
}

/* Sections */
.section {
    padding: 80px 48px;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.status-tag {
    display: inline-block;
    font-size: 10px;
    padding: 4px 8px;
    margin-left: 12px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 2px;
    vertical-align: middle;
    letter-spacing: 1px;
}

.section-intro {
    font-size: 20px;
    max-width: 700px;
    margin-bottom: 48px;
}

.subsection-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 64px;
    margin-bottom: 24px;
}

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

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

.stat-card {
    background: var(--bg-secondary);
    padding: 32px;
    border: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Prose */
.prose {
    max-width: 700px;
}

.prose p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.prose ul {
    margin: 20px 0;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

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

/* Tradeoff Table */
.tradeoff-table {
    margin: 32px 0;
    max-width: 700px;
}

.tradeoff-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.tradeoff-approach {
    color: var(--text);
    font-weight: 600;
}

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

/* Features */
.features {
    display: grid;
    gap: 48px;
    max-width: 700px;
}

.feature h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent);
}

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

/* Architecture Diagram */
.arch-diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 48px;
    overflow-x: auto;
}

.arch-diagram pre {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
}

.tech-item {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.tech-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--accent);
}

.tech-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Scaling Table */
.scaling-table {
    overflow-x: auto;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.scaling-table-inner {
    display: inline-block;
    min-width: 100%;
}

.scaling-header,
.scaling-row {
    display: grid;
    grid-template-columns: 160px repeat(5, minmax(80px, 1fr));
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.scaling-table-wide .scaling-header,
.scaling-table-wide .scaling-row {
    grid-template-columns: 140px repeat(6, minmax(70px, 1fr));
}

.scaling-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    background: var(--bg);
}

.scaling-row span:first-child {
    color: var(--text-muted);
    font-size: 13px;
    position: sticky;
    left: 0;
    background: var(--bg);
    padding-right: 8px;
}

.scaling-row span {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    white-space: nowrap;
}

.scaling-row .highlight {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 900px) {
    .scaling-header,
    .scaling-row {
        grid-template-columns: 120px repeat(5, minmax(70px, 1fr));
        gap: 8px;
        font-size: 12px;
    }

    .scaling-table-wide .scaling-header,
    .scaling-table-wide .scaling-row {
        grid-template-columns: 110px repeat(6, minmax(60px, 1fr));
    }

    .scaling-header {
        font-size: 10px;
    }

    .scaling-row span,
    .scaling-row span:first-child {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .scaling-header,
    .scaling-row {
        grid-template-columns: 100px repeat(5, minmax(55px, 1fr));
        gap: 6px;
        padding: 10px 0;
    }

    .scaling-table-wide .scaling-header,
    .scaling-table-wide .scaling-row {
        grid-template-columns: 90px repeat(6, minmax(50px, 1fr));
    }

    .scaling-header {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .scaling-row span,
    .scaling-row span:first-child {
        font-size: 11px;
    }
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin-bottom: 24px;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 180px repeat(4, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    min-width: 600px;
}

.comparison-header {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.comparison-row span:first-child {
    color: var(--text-muted);
}

.comparison-row span {
    font-size: 14px;
}

.comparison-row .highlight {
    color: var(--accent);
    font-weight: 600;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* Economics Example */
.economics-example {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 800px;
}

@media (max-width: 768px) {
    .economics-example {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.economics-column h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.economics-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.economics-row.total {
    font-weight: 600;
    color: var(--text);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 700px;
}

.team-member h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    color: var(--text-muted);
}

/* Looking For */
.looking-for {
    display: grid;
    gap: 16px;
    max-width: 500px;
}

.looking-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.looking-role {
    font-weight: 600;
}

.looking-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Milestones */
.milestones {
    list-style: none;
    max-width: 500px;
}

.milestones li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.milestones li::before {
    content: "→ ";
    color: var(--accent);
}

/* Contact */
.contact-info p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

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

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Pain Points */
.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 900px;
}

.pain-point h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.pain-point p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Comparison Visual */
.comparison-visual {
    margin-top: 48px;
    max-width: 600px;
}

.comparison-item {
    margin-bottom: 24px;
}

.comparison-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comparison-bar {
    height: 32px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.bar-them {
    width: 100%;
    background: var(--text-muted);
    opacity: 0.3;
}

.bar-us {
    width: 5.75%;
    background: var(--accent);
}

.comparison-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* Use Cases Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 900px;
}

.use-case {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.use-case h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--accent);
}

.use-case p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* How It Works Steps */
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1000px;
}

.how-step {
    position: relative;
}

.step-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--border);
    margin-bottom: 16px;
    line-height: 1;
}

.how-step h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
}

.how-step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* Waitlist Section */
.section-highlight {
    background: var(--bg-secondary);
}

.waitlist-form {
    max-width: 500px;
    margin-bottom: 48px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row input {
    flex: 1;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}

.form-row input::placeholder {
    color: var(--text-muted);
}

.form-row input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.waitlist-info {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.info-value {
    font-size: 14px;
    color: var(--text);
}

/* Contact Links */
.contact-links {
    margin-top: 32px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
}

.text-link:hover {
    text-decoration: underline;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-container h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: var(--text);
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
    text-align: center;
}

.btn-oauth {
    margin-bottom: 12px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 24px;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #ff4444;
    color: white;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: #44aa44;
    color: white;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 48px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 20px 24px;
    }

    .nav-links {
        gap: 16px;
        font-size: 13px;
    }

    .hero {
        padding: 80px 24px;
    }

    .section {
        padding: 60px 24px;
    }

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

    .btn {
        text-align: center;
    }

    .footer {
        padding: 32px 24px;
    }

    .tradeoff-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .looking-item {
        flex-direction: column;
        gap: 4px;
    }

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

    .form-row .btn {
        text-align: center;
    }

    .waitlist-info {
        flex-direction: column;
        gap: 24px;
    }

    .pain-points,
    .use-cases-grid,
    .how-steps {
        grid-template-columns: 1fr;
    }
}
