/* ================================
   Self-Hosted Fonts (GDPR Compliant)
   ================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('../fonts/spacegrotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================================
   Reset & Base Styles
   ================================ */

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

:root {
    /* Color Palette - Warm Ember Theme */
    --color-bg: #000000;
    --color-bg-secondary: #0a0806;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b8a89a;
    --color-accent: #ff6b35;
    --color-accent-hover: #c1440e;
    --color-gradient-start: #c1440e;
    --color-gradient-end: #ffbf00;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', var(--font-body);

    /* Effects */
    --glass-bg: rgba(10, 8, 6, 0.6);
    --glass-border: rgba(255, 107, 53, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);
    --shadow-glow-hover: 0 0 60px rgba(255, 107, 53, 0.25);
}

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

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ================================
   3D Particle Canvas
   ================================ */

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at top, #0a0806 0%, #000000 100%);
}

/* ================================
   Container & Layout
   ================================ */

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   Hero Section
   ================================ */

.hero {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

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

/* Urgency Badge */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    margin-bottom: var(--spacing-lg);
    font-size: 0.9rem;
    color: #fca5a5;
    animation: pulse 2s ease-in-out infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.badge-text {
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

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

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    opacity: 0.5;
    border-radius: 2px;
    margin: var(--spacing-lg) auto;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ================================
   Trust Badges
   ================================ */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: var(--color-text-primary);
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
}

/* ================================
   Waitlist Form
   ================================ */

.waitlist-form-container {
    margin-bottom: var(--spacing-xl);
}

.waitlist-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    max-width: 600px;
    margin: 0 auto var(--spacing-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.waitlist-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.waitlist-form:hover::before,
.waitlist-form:focus-within::before {
    opacity: 1;
}

.waitlist-form:focus-within {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2),
                0 0 40px rgba(255, 107, 53, 0.15);
}

.waitlist-form:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2),
                0 0 40px rgba(255, 107, 53, 0.15);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    outline: none;
}

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

.form-input:hover {
    background: rgba(255, 255, 255, 0.07);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.submit-btn {
    width: 100%;
    min-height: 52px;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3),
                0 0 40px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4),
                0 0 60px rgba(255, 107, 53, 0.3);
}

.submit-btn:active {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3),
                0 0 40px rgba(255, 107, 53, 0.2);
}

.submit-btn:focus {
    outline: 3px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1.3rem;
}

.submit-btn:hover .btn-arrow {
    opacity: 1;
}

.form-message {
    margin-top: var(--spacing-sm);
    font-size: 0.95rem;
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: 8px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    display: block;
    color: var(--color-success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message.error {
    display: block;
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
}

.privacy-icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

/* ================================
   Social Proof
   ================================ */

.social-proof {
    margin-bottom: var(--spacing-xl);
}

.proof-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.proof-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    background: linear-gradient(135deg, #c1440e, #ffbf00);
    margin-left: -12px;
    transition: transform 0.3s ease;
}

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

.avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-bg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.proof-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

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

/* ================================
   Value Props
   ================================ */

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: calc(var(--spacing-2xl) + 1.5rem);
}

.value-prop {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--spacing-lg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-prop:hover::before {
    opacity: 1;
}

.value-prop:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.2),
                0 0 40px rgba(255, 107, 53, 0.15);
}

.prop-icon-container {
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    padding: var(--spacing-md);
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-prop:hover .prop-icon-container {
    background: rgba(255, 107, 53, 0.2);
}

.prop-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.prop-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.prop-text p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.prop-stat {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   Consent Checkbox
   ================================ */

.consent-field {
    margin-top: var(--spacing-xs);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.consent-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.consent-checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    margin-top: 2px;
}

.consent-checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-checkbox:checked ~ .consent-checkmark {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.consent-checkbox:checked ~ .consent-checkmark::after {
    display: block;
}

.consent-checkbox:focus ~ .consent-checkmark {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.consent-label:hover .consent-checkmark {
    border-color: rgba(255, 107, 53, 0.5);
}

.consent-text {
    flex: 1;
}

.consent-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.consent-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ================================
   Footer
   ================================ */

.footer {
    text-align: center;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-2xl);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

/* ================================
   Cookie Consent Banner
   ================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--spacing-md) var(--spacing-lg);
    animation: slideUp 0.3s ease;
}

.cookie-banner[hidden] {
    display: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 200px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.cookie-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.cookie-accept {
    background: var(--color-accent);
    color: white;
    border: none;
}

.cookie-accept:hover {
    background: var(--color-accent-hover);
}

.cookie-decline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
}

/* ================================
   Animations
   ================================ */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Loading State
   ================================ */

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text::after {
    content: '';
    margin-left: 8px;
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   Accessibility - Reduced Motion
   ================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    #particle-canvas {
        opacity: 0.3;
    }

    .fade-in {
        opacity: 1;
        animation: none;
    }
}

/* ================================
   Focus Styles (Accessibility)
   ================================ */

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

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

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }

    .hero {
        padding: var(--spacing-xl) 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .trust-badges {
        gap: var(--spacing-xs);
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .badge-icon {
        width: 14px;
        height: 14px;
    }

    .waitlist-form {
        padding: var(--spacing-md);
    }

    .value-props {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .form-group {
        gap: 0.75rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
    }

    .proof-item {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .urgency-badge {
        font-size: 0.8rem;
        padding: 6px var(--spacing-sm);
    }

    .footer-nav {
        gap: var(--spacing-md);
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .consent-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .value-prop {
        padding: var(--spacing-md);
    }

    .prop-text h3 {
        font-size: 1.2rem;
    }

    .trust-badges {
        flex-direction: column;
        align-items: stretch;
    }

    .trust-badge {
        justify-content: center;
    }
}

/* ================================
   Print Styles
   ================================ */

@media print {
    #particle-canvas {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .waitlist-form,
    .submit-btn {
        display: none;
    }
}

/* ================================
   High Contrast Mode
   ================================ */

@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
    }

    .form-input,
    .value-prop,
    .waitlist-form {
        border-width: 2px;
    }
}
