:root {
    /* Colors */
    --bg-main: #0B0F19; /* Deep indigo/black, more premium than pure black */
    --bg-card: rgba(18, 24, 43, 0.6);
    --bg-card-hover: rgba(26, 35, 61, 0.8);
    --bg-input: rgba(0, 0, 0, 0.4);
    --bg-input-focus: rgba(0, 0, 0, 0.5);
    --bg-header: rgba(11, 15, 25, 0.6);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-dark: #000000;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 165, 116, 0.3);
    
    --brand-primary: #D4A574; /* Legal Gold/Amber */
    --brand-secondary: #B8860B; /* Dark Goldenrod */
    --brand-tertiary: #8B6508; 
    --brand-glow-strong: rgba(212, 165, 116, 0.3);
    --brand-glow-mid: rgba(212, 165, 116, 0.2);
    --brand-glow-light: rgba(212, 165, 116, 0.1);
    --brand-glow-subtle: rgba(212, 165, 116, 0.08);
    --brand-glow-trace: rgba(212, 165, 116, 0.03);

    --shadow-heavy: 0 20px 80px rgba(0, 0, 0, 0.5);
    --shadow-mid: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 4px 14px rgba(212, 165, 116, 0.2);
    --shadow-glow: 0 0 40px rgba(212, 165, 116, 0.05);
    --shadow-glow-large: 0 0 60px rgba(212, 165, 116, 0.03);
    
    /* Gradients */
    --gradient-glow: linear-gradient(135deg, var(--brand-primary) 0%, var(--text-primary) 100%);
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    --gradient-bg-radial: radial-gradient(ellipse at 50% -20%, var(--brand-glow-subtle), transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.03), transparent 50%);
    --gradient-waitlist: linear-gradient(180deg, transparent, var(--brand-glow-trace) 50%, transparent);

    /* Typography Sizes */
    --font-main: 'Inter', -apple-system, system-ui, sans-serif;
    --fs-xs: 0.85rem;
    --fs-sm: 0.9rem;
    --fs-base: 0.95rem;
    --fs-md: 1rem;
    --fs-lg: 1.05rem;
    --fs-xl: 1.1rem;
    --fs-2xl: 1.25rem;
    --fs-3xl: 1.75rem;
    --fs-hq: 2.2rem;
    --fs-4xl: 2.5rem;
    --fs-4xl-mobile: 2.2rem;
    --fs-5xl: 3rem;
    --fs-6xl: 3.5rem;
    --fs-7xl: 4.5rem;
    --fs-7xl-mobile: 2.8rem;
    --fs-super: 5rem;
    
    /* Typography Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Line Heights & Letter Spacing */
    --lh-tight: 1.1;
    --lh-base: 1.6;
    --ls-tight: -0.04em;
    --ls-base: -0.02em;

    /* Border Radius */
    --br-sm: 4px;
    --br-md: 8px;
    --br-lg: 12px;
    --br-xl: 16px;
    --br-2xl: 20px;
    --br-full: 99px;

    /* Spacing System (Padding, Margin, Gaps) */
    --space-tiny: 2px;
    --space-min: 4px;
    --space-2xs: 6px;
    --space-xs: 8px;
    --space-s-mid: 10px;
    --space-sm: 12px;
    --space-m-mid: 14px;
    --space-md: 16px;
    --space-l-mid: 20px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 40px;
    --space-3xl: 48px;
    --space-4xl: 60px;
    --space-5xl: 64px;
    --space-section: 80px;
    --space-hero-bot: 120px;
    --space-hero: 140px;
    --space-page-header: 180px;

    /* Max Widths */
    --mw-brand-col: 320px;
    --mw-sm: 500px;
    --mw-md: 600px;
    --mw-lg: 640px;
    --mw-xl: 650px;
    --mw-content: 760px;
    --mw-container: 1200px;

    /* Layout Specifics */
    --layout-full: 100%;
    --layout-half: 50%;
    --layout-zero: 0;
    --input-min-h: 36px;
    --icon-size: 48px;
    --select-bg-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: var(--layout-zero);
    padding: var(--layout-zero);
    -webkit-font-smoothing: antialiased;
    background-image: var(--gradient-bg-radial);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: var(--layout-zero);
        transform: translateY(var(--space-md));
    }
    to {
        opacity: 1;
        transform: translateY(var(--layout-zero));
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        filter: blur(var(--space-2xl));
    }
    50% {
        opacity: 0.6;
        filter: blur(var(--space-section));
    }
    100% {
        opacity: 0.3;
        filter: blur(var(--space-2xl));
    }
}

/* Typography elements */
h1, h2, h3, h4 {
    margin: var(--layout-zero);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-base);
}

p {
    margin: var(--layout-zero);
    line-height: var(--lh-base);
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-gold {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Base layouts */
.container {
    max-width: var(--mw-container);
    margin: var(--layout-zero) auto;
    padding: var(--layout-zero) var(--space-lg);
}

/* Header */
.site-header {
    position: fixed;
    top: var(--layout-zero);
    left: var(--layout-zero);
    right: var(--layout-zero);
    z-index: 1000;
    padding: var(--space-md) var(--layout-zero);
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-base);
    display: flex;
    align-items: center;
    gap: var(--space-s-mid);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--br-md);
    font-weight: var(--fw-medium);
    font-size: var(--fs-base);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    font-weight: var(--fw-semibold);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px var(--space-l-mid) var(--brand-glow-strong);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(212, 165, 116, 0.4);
    background: var(--brand-glow-light);
}

.btn-glow {
    position: relative;
    background: transparent;
    color: var(--text-primary);
}

.btn-glow::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.btn-glow::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: var(--br-md);
    background: var(--bg-main);
    z-index: -1;
}

.btn-glow:hover::before {
    opacity: 1;
    filter: blur(var(--space-min));
}

/* Hero Section */
.hero {
    padding: var(--space-hero) var(--layout-zero) var(--space-3xl);
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-2xs) var(--space-md);
    background: var(--brand-glow-light);
    border: 1px solid var(--brand-glow-mid);
    border-radius: var(--br-full);
    color: var(--brand-primary);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s ease-out;
}

.hero h1 {
    font-size: var(--fs-7xl);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-lg);
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero p {
    font-size: var(--fs-2xl);
    color: var(--text-secondary);
    max-width: var(--mw-xl);
    margin: var(--layout-zero) auto var(--space-2xl);
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.demo-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, var(--brand-glow-subtle), transparent 70%);
    z-index: -1;
    animation: pulseGlow 8s infinite;
}

/* Features - Bento grid */
.features {
    padding: var(--space-3xl) var(--layout-zero) var(--space-3xl);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-5xl);
}

.section-header h2 {
    font-size: var(--fs-5xl);
    margin-bottom: var(--space-md);
}

.section-header p {
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    max-width: var(--mw-md);
    margin: var(--layout-zero) auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-l-mid);
    grid-auto-rows: minmax(300px, auto);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--br-xl);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-mid);
}

.bento-large {
    grid-column: span 2;
}

.bento-icon {
    width: var(--space-3xl);
    height: var(--space-3xl);
    border-radius: var(--br-lg);
    background: var(--brand-glow-light);
    border: 1px solid var(--brand-glow-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--space-l-mid);
    color: var(--brand-primary);
    margin-bottom: var(--space-lg);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    background: var(--brand-glow-mid);
    transform: scale(1.05);
    box-shadow: 0 0 var(--space-l-mid) var(--brand-glow-mid);
}

.bento-card h3 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: var(--fs-base);
}

/* Waitlist section */
.waitlist-section {
    padding: var(--space-3xl) var(--layout-zero) var(--space-section);
    background: var(--gradient-waitlist);
}

.waitlist-card {
    max-width: var(--mw-lg);
    margin: var(--layout-zero) auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--br-2xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-glow-large), var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.waitlist-card::before {
    content: "";
    position: absolute;
    top: var(--layout-zero);
    left: var(--layout-zero);
    right: var(--layout-zero);
    height: 3px;
    background: var(--gradient-primary);
}

.form-row {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
    text-align: left;
    flex: 1;
}

.form-group label {
    display: flex;
    align-items: flex-end;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    font-weight: var(--fw-medium);
    min-height: var(--input-min-h);
}

.form-input {
    width: var(--layout-full);
    padding: var(--space-m-mid) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--br-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-select {
    width: var(--layout-full);
    padding: var(--space-m-mid) var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--br-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: all 0.2s;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    background-size: var(--select-bg-size);
}

.form-select option {
    background: var(--bg-main);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 2px var(--brand-glow-mid);
}

.btn-submit {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--fs-md);
    border-radius: var(--br-md);
    width: var(--layout-full);
    margin-top: var(--space-md);
}

/* Footer */
footer {
    padding: var(--space-section) var(--layout-zero) var(--space-2xl);
    border-top: 1px solid var(--border-subtle);
    font-size: var(--fs-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: var(--space-md);
    max-width: var(--mw-brand-col);
}

.footer-col h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    font-size: var(--fs-md);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

/* Base styles for inner pages */
.page-header {
    padding: var(--space-page-header) var(--layout-zero) var(--space-2xl);
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.page-header h1 {
    font-size: var(--fs-6xl);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-md);
    animation: fadeUp 0.6s ease-out both;
}

.page-header p {
    color: var(--text-secondary);
    font-size: var(--fs-xl);
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.content {
    padding: var(--space-section) var(--layout-zero);
    max-width: var(--mw-content);
    margin: var(--layout-zero) auto;
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.content h2 {
    font-size: var(--fs-3xl);
    margin: var(--space-3xl) var(--layout-zero) var(--space-lg);
    color: var(--brand-primary);
}

.content h3 {
    font-size: var(--fs-2xl);
    margin: var(--space-xl) var(--layout-zero) var(--space-md);
    color: var(--text-primary);
}

.content ul {
    color: var(--text-secondary);
    line-height: var(--lh-base);
    margin-bottom: var(--space-l-mid);
    padding-left: var(--space-l-mid);
}

.content li {
    margin-bottom: var(--space-xs);
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--br-xl);
    padding: var(--space-3xl);
    text-align: center;
    margin-top: var(--space-5xl);
    box-shadow: var(--shadow-mid);
}

.error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-page-header) var(--space-lg) var(--space-section);
    position: relative;
    min-height: 60vh;
}

.error-content .error-icon {
    color: var(--brand-primary);
    margin-bottom: var(--space-xl);
    opacity: 0.8;
    animation: fadeUp 0.6s ease-out both;
}

.error-content h1 {
    font-size: var(--fs-super);
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-md);
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.error-content p {
    font-size: var(--fs-2xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: var(--mw-sm);
    animation: fadeUp 0.6s ease-out 0.2s both;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-hero-bot) var(--layout-zero) var(--space-xl);
    }

    .hero h1 {
        font-size: var(--fs-7xl-mobile);
    }

    .hero p {
        font-size: var(--fs-xl);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-cta .btn {
        width: var(--layout-full);
        max-width: 280px;
    }

    .section-header h2 {
        font-size: var(--fs-hq);
    }

    .features {
        padding: var(--space-xl) var(--layout-zero);
    }
    
    .waitlist-section {
        padding: var(--space-xl) var(--layout-zero) var(--space-4xl);
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .bento-large {
        grid-column: span 1;
    }

    .bento-card {
        padding: var(--space-lg);
    }

    .waitlist-card {
        padding: var(--space-xl) var(--space-lg);
    }

    .form-row {
        flex-direction: column;
        gap: var(--layout-zero);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .nav-links {
        display: none;
    }

    .page-header {
        padding: var(--space-hero) var(--space-l-mid) var(--space-2xl);
    }

    .page-header h1 {
        font-size: var(--fs-4xl);
    }

    .content {
        padding: var(--space-2xl) var(--space-l-mid);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--fs-hero-tiny);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}
