/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #111111;
    --color-surface-elevated: #1a1a1a;
    --color-accent: #F5332C;
    --color-accent-hover: #ff4a43;
    --color-text-primary: #ffffff;
    --color-text-secondary: #888888;
    --color-text-muted: #666666;
    --color-border: #222222;
    --color-border-light: #333333;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.25rem;
    /* 20px */
    --font-size-xl: 2rem;
    /* 32px */
    --font-size-2xl: 2.5rem;
    /* 40px */
    --font-size-3xl: 3rem;
    /* 48px */

    /* Spacing */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2.5rem;
    /* 40px */
    --space-xl: 3.75rem;
    /* 60px */
    --space-2xl: 5rem;
    /* 80px */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows & Effects */
    --glow-accent: 0 0 60px rgba(245, 51, 44, 0.3);
    --glow-accent-strong: 0 0 80px rgba(245, 51, 44, 0.5);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-outline {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 51, 44, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* Cursor hover states */
.cursor-hover .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.logo {
    width: 48px;
    height: auto;
    margin: 0 auto var(--space-md);
}

.logo svg {
    width: 100%;
    height: 100%;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: var(--font-size-xs);
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
}

.headline {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.subtext {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================================================
   EMAIL FORM
   ===================================================== */
.waitlist-form {
    width: 100%;
    max-width: 420px;
    margin-bottom: var(--space-md);
}

.email-form {
    width: 100%;
}

.input-wrapper {
    position: relative;
    display: flex;
    gap: var(--space-xs);
    padding: 6px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
    z-index: 1;
}

/* Animated border effect */
.input-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: calc(var(--radius-lg) + 1px);
    background: conic-gradient(from var(--border-angle, 0deg),
            transparent 60%,
            var(--color-accent) 80%,
            transparent 100%);
    z-index: -1;
    animation: rotateBorder 3s linear infinite;
}

.input-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    z-index: -1;
}

@keyframes rotateBorder {
    from {
        --border-angle: 0deg;
    }

    to {
        --border-angle: 360deg;
    }
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.input-wrapper:focus-within {
    border-color: var(--color-border-light);
}

.input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    outline: none;
}

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

.btn-primary {
    padding: 12px 24px;
    background: var(--color-accent);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(245, 51, 44, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 51, 44, 0.5);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(245, 51, 44, 0.3);
}

.form-message {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    text-align: center;
    min-height: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.form-message.success,
.form-message.error {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #22c55e;
}

.form-message.error {
    color: var(--color-accent);
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    background-color: var(--color-surface);
    background-size: cover;
    background-position: center;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.social-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.social-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* =====================================================
   COUNTDOWN
   ===================================================== */
.countdown-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-size: var(--font-size-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.countdown-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.countdown-separator {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin-top: -16px;
}

.countdown-label-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.countdown-label-text svg {
    color: var(--color-text-secondary);
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */
.video-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.video-card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.video-dots {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 6px;
}

.video-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    opacity: 0.5;
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 2;
}

.play-button {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--glow-accent);
}

.play-button svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.play-button:hover {
    transform: scale(1.08);
    box-shadow: var(--glow-accent-strong);
}

.video-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.video-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 51, 44, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Circular rings effect */
.video-card::before,
.video-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(245, 51, 44, 0.2);
    pointer-events: none;
}

.video-card::before {
    width: 160px;
    height: 160px;
}

.video-card::after {
    width: 240px;
    height: 240px;
    border-color: rgba(245, 51, 44, 0.1);
}

/* =====================================================
   FAQ SECTION
   ===================================================== */
.faq-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-xs);
}

.section-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--color-border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: transparent;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-align: left;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--color-text-secondary);
    transition: transform var(--transition-base);
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: translateY(-50%);
}

.faq-icon::after {
    top: 0;
    left: 50%;
    width: 1.5px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer p {
    padding: 0 var(--space-sm) var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.footer-heading {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    /* Grey/Muted */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
}

.footer-links a {
    color: var(--color-text-primary);
    /* White */
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
    /* Red */
}

.footer-separator {
    color: var(--color-text-muted);
}

.footer-copyright {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.footer-brand {
    color: var(--color-text-primary);
    font-weight: 500;
}

.cmd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 10px;
    vertical-align: middle;
    margin-left: 2px;
}

/* =====================================================
   VIDEO MODAL
   ===================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    z-index: 1;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    font-weight: 300;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.modal-close:hover {
    opacity: 1;
}

.video-container {
    width: 100%;
    height: 100%;
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 640px) {
    :root {
        --font-size-2xl: 2rem;
        --font-size-xl: 1.5rem;
    }

    .container {
        padding: var(--space-lg) var(--space-sm);
    }

    .input-wrapper {
        flex-direction: column;
        gap: var(--space-xs);
        padding: var(--space-xs);
    }

    .input-wrapper input {
        text-align: center;
    }

    .btn-primary {
        width: 100%;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-value {
        font-size: var(--font-size-lg);
    }

    .video-card {
        aspect-ratio: 4 / 3;
    }

    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-button svg {
        width: 22px;
        height: 22px;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .footer-separator {
        display: none;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.waitlist-form,
.social-proof,
.countdown-section,
.video-section,
.faq-section {
    animation: fadeInUp 0.6s ease forwards;
}

.waitlist-form {
    animation-delay: 0.1s;
}

.social-proof {
    animation-delay: 0.2s;
}

.countdown-section {
    animation-delay: 0.3s;
}

.video-section {
    animation-delay: 0.4s;
}

.faq-section {
    animation-delay: 0.5s;
}