/* =========================================
   VoiceML Landing — Dark Monochrome
   ========================================= */

:root {
    --bg: #0a0a0b;
    --bg-elevated: #141416;
    --surface: #1c1c1f;
    --border: #2a2a2e;
    --text: #fafafa;
    --text-muted: #888890;
    --accent: #fff;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --gradient-start: #1a1a1d;
    --gradient-end: #0a0a0b;

    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
}

/* =========================================
   Noise overlay
   ========================================= */

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    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%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 9999;
}

/* =========================================
   Background waves
   ========================================= */

.bg-waves {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.wave {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--border);
    opacity: 0.3;
}

.wave-1 {
    width: 400px;
    height: 400px;
    animation: pulse-wave 4s var(--ease-out-expo) infinite;
}

.wave-2 {
    width: 600px;
    height: 600px;
    animation: pulse-wave 4s var(--ease-out-expo) infinite 0.5s;
}

.wave-3 {
    width: 800px;
    height: 800px;
    animation: pulse-wave 4s var(--ease-out-expo) infinite 1s;
}

@keyframes pulse-wave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* =========================================
   Main container
   ========================================= */

main {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

/* =========================================
   Beta badge
   ========================================= */

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fade-in 0.8s var(--ease-out-expo) backwards;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* =========================================
   Logo
   ========================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fade-in 0.8s var(--ease-out-expo) 0.1s backwards;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--text);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    animation: fade-in 0.8s var(--ease-out-expo) 0.2s backwards;
}

.hero-subtitle {
    display: block;
    font-size: 0.45em;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 0;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    animation: fade-in 0.8s var(--ease-out-expo) 0.3s backwards;
}

/* =========================================
   Features
   ========================================= */

.features {
    display: flex;
    gap: 1.5rem;
    animation: fade-in 0.8s var(--ease-out-expo) 0.4s backwards;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =========================================
   Countdown
   ========================================= */

.countdown-section {
    animation: fade-in 0.8s var(--ease-out-expo) 0.5s backwards;
}

.countdown-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.countdown-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.countdown-separator {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* =========================================
   Waitlist form
   ========================================= */

.waitlist-form {
    width: 100%;
    animation: fade-in 0.8s var(--ease-out-expo) 0.6s backwards;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]::placeholder {
    color: var(--text-muted);
}

input[type="email"]:focus {
    border-color: var(--text-muted);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

button[type="submit"] {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, opacity 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-text,
.btn-loading,
.btn-success {
    transition: opacity 0.3s, transform 0.3s;
}

.btn-loading,
.btn-success {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

button.loading .btn-text {
    opacity: 0;
    transform: scale(0.8);
}

button.loading .btn-loading {
    opacity: 1;
    transform: scale(1);
}

button.success .btn-text {
    opacity: 0;
    transform: scale(0.8);
}

button.success .btn-loading {
    opacity: 0;
}

button.success .btn-success {
    opacity: 1;
    transform: scale(1);
    color: #22c55e;
}

button.success {
    background: var(--surface);
    border: 1px solid #22c55e;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.form-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.form-message.error {
    color: #ef4444;
}

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

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

footer {
    margin-top: 1rem;
    animation: fade-in 0.8s var(--ease-out-expo) 0.7s backwards;
}

footer p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 480px) {
    body {
        padding: 1.5rem;
    }

    .countdown {
        gap: 0.25rem;
    }

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

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .features {
        gap: 1rem;
    }
}
