/* ═══════════════════════════════════════════════════════
   DOPPEL Landing Page — Styles
   Color palette from the app's dark theme
   ═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ───────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1628;
    /* Matched exactly to logo background */
    --bg-secondary: #0f172a;
    /* slate-900 */
    --bg-card: #1e293b;
    /* slate-800 */
    --border: #334155;
    /* slate-700 */
    --text: #ffffff;
    --text-sub: #94a3b8;
    /* slate-400 */
    --text-muted: #64748b;
    /* slate-500 */
    --primary: #4f46e5;
    /* indigo-600 */
    --primary-light: #6366f1;
    /* indigo-500 */
    --primary-dark: #4338ca;
    /* indigo-700 */
    --pink: #ec4899;
    --cyan: #06b6d4;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background-color: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--cyan);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Utility ────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--pink), var(--primary-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Scroll Animations ──────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(10, 22, 40, 0.85);
    /* rgba version of #0a1628 */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(51, 65, 85, 0.4);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.nav-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text);
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--text);
}

.nav-link--cta {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.nav-link--cta:hover {
    color: var(--bg-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15);
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 20px;
    border-radius: 9999px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-sub);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: inline-block;
}

.hero-logo-img {
    width: 220px;
    height: 220px;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.3)) drop-shadow(0 0 60px rgba(6, 182, 212, 0.2));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), rgba(6, 182, 212, 0.2), transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 1;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* ─── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 9999px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--primary);
    color: var(--text);
}

.btn--primary:hover {
    background: var(--primary-light);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}

.btn--glow {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.3), 0 0 60px rgba(79, 70, 229, 0.1);
}

.btn--glow:hover {
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.5), 0 0 80px rgba(79, 70, 229, 0.2);
}

.btn--outline {
    background: transparent;
    color: var(--text-sub);
    border: 1.5px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--text-sub);
    color: var(--text);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════ */
.features {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-sub);
    font-size: 1.1rem;
    max-width: 540px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
}

.feature-icon--cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.feature-icon--pink {
    background: rgba(236, 72, 153, 0.15);
    color: var(--pink);
}

.feature-icon--gradient {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(6, 182, 212, 0.15));
    color: var(--pink);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════ */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 72px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    color: var(--text-sub);
    font-size: 1rem;
    line-height: 1.7;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--pink), var(--cyan));
    margin-left: 35px;
    border-radius: 2px;
    opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════
   BETA SIGNUP
   ═══════════════════════════════════════════════════════ */
.beta {
    padding: 120px 0;
    position: relative;
}

.beta-card {
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: var(--radius-lg);
    padding: 64px;
    max-width: 580px;
    margin: 0 auto;
    overflow: hidden;
}

.beta-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
    pointer-events: none;
}

.beta-content {
    position: relative;
    z-index: 2;
}

.beta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.beta-subtitle {
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.6;
}

.beta-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-group input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-disclaimer a {
    color: var(--text-sub);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-disclaimer a:hover {
    color: var(--text);
}

/* Success state */
.beta-success {
    text-align: center;
    padding: 32px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scale-in 0.4s ease;
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.beta-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.beta-success p {
    color: var(--text-sub);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
}

/* ═══════════════════════════════════════════════ */
/* LEGAL PAGES (Terms, Privacy)                    */
/* ═══════════════════════════════════════════════ */
.legal-page {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-back:hover {
    color: var(--primary);
}

.legal-content .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, var(--text-sub) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content>p:first-of-type,
.legal-content strong {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.legal-content p {
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 24px;
    font-size: 1.05rem;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content li strong {
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .legal-content .page-title {
        font-size: 2rem;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.97);
        /* match header */
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link--cta {
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-logo-img {
        width: 160px;
        height: 160px;
    }

    .hero-logo-glow {
        width: 200px;
        height: 200px;
    }

    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .how-it-works {
        padding: 80px 0;
    }

    .step {
        gap: 20px;
    }

    .step-number {
        font-size: 2.25rem;
        min-width: 50px;
    }

    .beta {
        padding: 80px 0;
    }

    .beta-card {
        padding: 36px 24px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .beta-title {
        font-size: 2rem;
    }
}

/* Radio buttons custom styling */
.form-group--radio {
    text-align: left;
    margin-bottom: 24px;
}

.radio-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.radio-options {
    display: flex;
    gap: 24px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    user-select: none;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-custom {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    background: rgba(2, 6, 23, 0.5);
}

.radio-option:hover input~.radio-custom {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

.radio-option input:checked~.radio-custom {
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.radio-custom:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.radio-option input:checked~.radio-custom:after {
    display: block;
}

@media (max-width: 480px) {
    .radio-options {
        flex-direction: column;
        gap: 12px;
    }
}

.hero-actions {
    flex-direction: column;
    width: 100%;
    padding: 0 16px;
}

.hero-actions .btn {
    width: 100%;
}
}