/* ===========================
   Mobile-First Design System
   =========================== */
:root {
    --bg: #06060e;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(120, 100, 255, 0.5);
    --text: #f0f0f5;
    --text-muted: #8888a0;
    --accent-start: #7b5cff;
    --accent-end: #42a0ff;
    --accent-warm: #ff6b6b;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   Entrance Animations
   =========================== */
.anim-fade {
    opacity: 0;
    transform: translateY(18px);
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Canvas Background
   =========================== */
#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===========================
   Header
   =========================== */
.header {
    position: relative;
    z-index: 10;
    padding: 1.25rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text);
}

.logo svg {
    color: var(--accent-start);
}

/* ===========================
   Main Content
   =========================== */
.main {
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
}

/* ===========================
   Hero Section (Mobile First)
   =========================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-start);
    border: 1px solid rgba(123, 92, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(123, 92, 255, 0.08);
    margin-bottom: 1.75rem;
}

.badge.anim-fade {
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) forwards, 
               pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(123, 92, 255, 0.3); }
    50% { border-color: rgba(123, 92, 255, 0.6); }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}



.hero-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

/* ===========================
   Waitlist Card
   =========================== */
.waitlist-card {
    width: 100%;
    max-width: 440px;
    margin-bottom: 2.5rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

input[type="email"] {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

input[type="email"]::placeholder {
    color: #555568;
}

input[type="email"]:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.15);
}

.btn-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(123, 92, 255, 0.5);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

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

.hidden { display: none !important; }

.form-message {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    animation: msg-in 0.3s ease;
}

/* Honeypot trap — invisible to human users, bots fill it automatically */
.hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.form-message.success {
    background: rgba(46, 213, 115, 0.08);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.form-message.error {
    background: rgba(255, 71, 87, 0.08);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

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

/* ===========================
   Success State
   =========================== */
.success-state {
    text-align: center;
    padding: 0.75rem 0;
    animation: msg-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.2), rgba(46, 213, 115, 0.2));
    border: 2px solid rgba(46, 213, 115, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2ed573;
    margin: 0 auto 1rem;
    box-shadow: 0 0 24px rgba(46, 213, 115, 0.2);
    animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes success-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.success-state h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.success-state p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ===========================
   Social Proof
   =========================== */
.social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    border: 2px solid var(--bg);
    margin-left: -8px;
}

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

.social-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

/* ===========================
   Features Grid
   =========================== */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-3px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.85rem;
    color: var(--accent-start);
    opacity: 0.85;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ===========================
   Footer
   =========================== */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #444;
    border-top: 1px solid var(--border);
}

/* =====================================================
   Responsive — Tablet & Desktop Enhancements
   ===================================================== */
@media (min-width: 640px) {
    .hero { padding-top: 5rem; }

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

    .waitlist-form {
        flex-direction: row;
    }

    .btn-submit {
        width: auto;
        white-space: nowrap;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .header { padding: 1.5rem 3rem; }
    .main { padding: 0 3rem; }

    .hero { padding-top: 7rem; }
    .hero-title { font-size: 3.75rem; letter-spacing: -2px; }
    .hero-desc { font-size: 1.05rem; }
}
