:root {
    --color-primary: #7C3AED;
    --color-accent: #06B6D4;
    --color-bg: #0A0A0F;
    --color-bg-card: #13131A;
    --color-bg-card-hover: #1A1A24;
    --color-text: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-border: rgba(124, 58, 237, 0.2);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --section-padding: 120px 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    background-image: radial-gradient(rgba(124, 58, 237, 0.25) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 32px;
    font-family: var(--font-body);
    font-weight: 500;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.waitlist-form input {
    padding: 14px 20px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-card);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 300px;
    outline: none;
    transition: border-color 0.2s;
}

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

.waitlist-form button {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-primary));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.waitlist-form button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.waitlist-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Shared Section Styles */
.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 64px;
}

/* Card Grid */
.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.card-icon {
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

/* Split Layout */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split-body {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    padding-left: 28px;
    position: relative;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* Terminal */
.terminal {
    background: #0D0D14;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.4);
}

.terminal-bar {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background: #151520;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2A2A3A;
}

.terminal-dot:first-child { background: #EF4444; }
.terminal-dot:nth-child(2) { background: #F59E0B; }
.terminal-dot:nth-child(3) { background: #22C55E; }

.terminal-body {
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    overflow-x: auto;
}

.term-prompt { color: var(--color-accent); }
.term-warn { color: #F59E0B; }
.term-accent { color: var(--color-primary); }
.term-success { color: #22C55E; }

/* Steps */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 64px;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.step-line {
    height: 2px;
    flex: 1;
    max-width: 80px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-top: 24px;
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    top: -3px;
    right: 0;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Features Grid */
.card-grid--2x3 {
    grid-template-columns: repeat(3, 1fr);
}

.feature-card:nth-child(odd) {
    border-color: rgba(124, 58, 237, 0.2);
}

.feature-card:nth-child(even) {
    border-color: rgba(6, 182, 212, 0.2);
}

.feature-card:nth-child(odd):hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.feature-card:nth-child(even):hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
}

/* Vision */
#vision {
    position: relative;
}

#vision::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: -1;
    left: -9999px;
    right: -9999px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

.vision-content {
    text-align: center;
}

.vision-body {
    max-width: 680px;
    margin: 0 auto 64px;
}

.vision-body p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* CTA */
#cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.2) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

#cta .section-sub {
    margin-bottom: 32px;
}

/* Footer */
#footer {
    padding: 40px 24px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.footer-contact {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

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

.footer-copy {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Staggered card animations */
.fade-in.card:nth-child(1) { transition-delay: 0s; }
.fade-in.card:nth-child(2) { transition-delay: 0.1s; }
.fade-in.card:nth-child(3) { transition-delay: 0.2s; }
.fade-in.card:nth-child(4) { transition-delay: 0.3s; }
.fade-in.card:nth-child(5) { transition-delay: 0.4s; }
.fade-in.card:nth-child(6) { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 1024px) {
    .card-grid--2x3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .card-grid--2x3 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .step-line {
        width: 2px;
        height: 40px;
        max-width: none;
        margin-top: 0;
    }

    .step-line::after {
        top: auto;
        bottom: 0;
        right: -3px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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