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

:root {
    --color-sky-top: #4a6fa5;
    --color-sky-mid: #7ba3c9;
    --color-sky-bottom: #d4a574;
    --color-warm: #e8a87c;
    --color-sunset: #c97b4b;
    --color-dark: #1a1a1a;
    --color-text: #1a1a1a;
    --color-text-light: #f5f0eb;
    --color-muted: #6b6b6b;
    --font-sans: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'Space Mono', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background: #f5f0eb;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-cta {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-cta:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-sky-top);
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    filter: url(#old-tv) saturate(1.1) contrast(1.05);
    object-fit: cover;
}

/* Scanlines overlay */
.hero-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    animation: flicker 0.1s infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-shadow: 0 2px 40px rgba(0,0,0,0.15);
}

.hero-small {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-large {
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin: 0.1em 0;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: bob 2s ease-in-out infinite;
}

.hero-scroll span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* Intro */
.intro {
    padding: 120px 40px 40px;
    background: #f5f0eb;
}

.intro-content {
    max-width: 720px;
    margin: 0 auto;
}

.intro-lead {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.intro-content em {
    font-style: italic;
    color: var(--color-sunset);
}

.intro-reject {
    font-size: 1.8rem !important;
    font-weight: 700;
    color: var(--color-text) !important;
    margin-top: 48px !important;
}

/* Features */
.features {
    padding: 0px 40px 100px;
    background: var(--color-bg);
}

.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
    min-height: 500px;
}

.feature-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.feature-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: url(#old-tv) saturate(1.1) contrast(1.05);
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.feature-card-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.feature-icon {
    width: 48px;
    height: 48px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 3.75rem;
    line-height: 1.1;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card p {
    font-size: 1.5rem;
    color: white;
    line-height: 1.5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

/* Statement */
.statement {
    padding: 100px 40px;
    background: var(--color-dark);
}

.statement-content {
    max-width: 900px;
    margin: 0 auto;
}

blockquote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-light);
    text-align: center;
    position: relative;
}

.quote-mark {
    color: var(--color-warm);
    font-size: 1.5em;
    line-height: 0;
    vertical-align: -0.2em;
}

/* Manifesto */
.manifesto {
    padding: 80px 40px;
    background: #f5f0eb;
}

.principle {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 0;
}

.principle-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-sunset);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.principle h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.principle p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.principle p:last-child {
    margin-bottom: 0;
}

.terminal {
    background: var(--color-dark);
    padding: 24px 28px;
    border-radius: 8px;
    margin: 28px 0;
    font-family: var(--font-mono);
}

.terminal code {
    color: var(--color-text-light);
    font-size: 1rem;
}

code.brand {
    font-family: var(--font-sans);
    font-variant: small-caps;
    font-weight: 600;
    font-size: 1em;
    background: none;
    padding: 0;
    color: inherit;
    letter-spacing: 0.03em;
}

.terminal-comment {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Combined CTA + Waitlist Section */
.cta-waitlist {
    position: relative;
    overflow: hidden;
}

.cta-waitlist-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-waitlist-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: url(#old-tv) saturate(1.1) contrast(1.05);
}

.cta-waitlist-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 120px 40px 80px;
    text-align: center;
}

.cta-tagline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.cta-tagline:first-child {
    opacity: 0.85;
}

/* Waitlist */
.waitlist-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.waitlist-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: 16px;
}

.waitlist-intro h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.waitlist-intro > p {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0,0,0,0.15);
}

.waitlist-form-container {
    background: rgba(255,255,255,0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.waitlist-form {
    margin-bottom: 16px;
}

.waitlist-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

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

.waitlist-form input {
    flex: 1;
    padding: 14px 16px;
    background: #f5f0eb;
    border: 2px solid transparent;
    border-radius: 6px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.waitlist-form input::placeholder {
    color: #999;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--color-sky-top);
    background: white;
}

.waitlist-form button {
    padding: 14px 24px;
    background: var(--color-dark);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.waitlist-form button:hover {
    background: #333;
}

.form-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 24px;
}

.waitlist-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.waitlist-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--color-muted);
}

@media (max-width: 800px) {
    .waitlist-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .waitlist-input-row {
        flex-direction: column;
    }

    .waitlist-form button {
        width: 100%;
    }
}

/* Footer */
.footer {
    padding: 40px;
    background: var(--color-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer .logo {
    color: #666;
}

.footer .logo:hover {
    color: var(--color-text-light);
}

.footer-copy {
    color: #444;
    font-size: 0.9rem;
}

/* ==========================================
   Subpage Styles
   ========================================== */

.page-content {
    padding-top: 100px; /* Account for fixed nav */
}

.page-header {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--color-sky-top), var(--color-sky-mid));
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 40px;
    background: #f5f0eb;
}

.content-block {
    max-width: 720px;
    margin: 0 auto 60px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.content-block p {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Responsive
   ========================================== */

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

    .intro,
    .manifesto,
    .waitlist,
    .statement,
    .cta-section,
    .page-header,
    .content-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .principle {
        padding: 48px 0;
    }

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

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

    .page-header {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .content-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
