/* Landing Page Styles — LOGIQ by DuffLabs */

:root {
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --logiq-deep: #001a33;
    --logiq-blue: #003c71;
    --logiq-accent: #00b4d8;
    --logiq-glow: #8b5cf6;
    --logiq-surface: #f8fafc;
}

html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; overflow-x: hidden; font-family: var(--font-body); }

/* ── Navbar override ── */
.nav-login-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.4rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
    font-family: var(--font-body);
}
.nav-login-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ── Hero Section ── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #001a33 0%, #003c71 25%, #005baa 50%, #0078d4 75%, #003c71 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Grain overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    z-index: 0;
}

/* Floating orbs — bigger, brighter, more dynamic */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.4), transparent 65%);
    top: -200px; right: -150px;
    animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb-2 {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(0,180,216,0.35), transparent 65%);
    bottom: -150px; left: -100px;
    animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 65%);
    top: 35%; left: 10%;
    animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.08); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.92); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(30px, -50px) scale(1.15); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

/* ── Staggered Hero Reveal — blur + scale + fade ── */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(8px);
    animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay, 0) * 0.2s + 0.3s);
}
@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 60px rgba(139, 92, 246, 0.3), 0 0 120px rgba(0, 180, 216, 0.15);
}
.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* Coming Soon badge */
.badge-coming-soon {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--logiq-glow), #6366f1);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(139,92,246,0.4), 0 0 60px rgba(139,92,246,0.15);
    animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(139,92,246,0.4), 0 0 60px rgba(139,92,246,0.15); }
    50% { box-shadow: 0 0 30px rgba(139,92,246,0.6), 0 0 80px rgba(139,92,246,0.25); }
}

/* Beta badge */
.badge-beta {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    border-radius: 100px;
    background: #f59e0b;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Hero CTA */
.hero-cta {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 0.9rem 2.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px rgba(139,92,246,0.4);
}
.hero-cta:hover::before { opacity: 1; }

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Container ── */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--logiq-blue);
    margin: 0 0 3rem;
    letter-spacing: -0.01em;
}

/* ── Features Section ── */
.features-section {
    padding: 5rem 0;
    background: var(--logiq-surface);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--logiq-accent), var(--logiq-glow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,60,113,0.12);
    border-color: rgba(0,180,216,0.3);
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 14px;
    color: #4f46e5;
    transition: transform 0.3s, background 0.3s;
}
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}
.feature-card p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* ── How it works ── */
.how-section {
    padding: 5rem 0;
    background: #fff;
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
}
.step {
    text-align: center;
    flex: 0 1 180px;
}
.step-number {
    width: 48px; height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--logiq-blue), #005baa);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,60,113,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,60,113,0.3);
}
.step h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.4rem;
}
.step p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.step-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-top: 0.6rem;
    flex-shrink: 0;
}

/* ── Waitlist Section ── */
.waitlist-section {
    padding: 5rem 0;
    background: #0f172a;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.waitlist-section::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.waitlist-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.waitlist-card h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}
.waitlist-card > p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 0 0 2rem;
}
.waitlist-input-row {
    display: flex;
    gap: 0.5rem;
}
.waitlist-input-row input[type="email"] {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.waitlist-input-row input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.waitlist-input-row input[type="email"]:focus {
    border-color: var(--logiq-accent);
    background: rgba(255,255,255,0.1);
}

.btn-waitlist {
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, var(--logiq-glow), #6366f1);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.btn-waitlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}

.waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
}
.waitlist-consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--logiq-glow);
}
.waitlist-consent a { color: rgba(255,255,255,0.55); }
.waitlist-consent a:hover { color: #fff; }

#wl-msg {
    margin-top: 1rem;
    font-size: 0.9rem;
}
.wl-success { color: #86efac; }
.wl-error { color: #fca5a5; }

/* Waitlist confirmation modal */
.wl-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.wl-modal {
    background: #fff; border-radius: 16px; max-width: 440px; width: 100%;
    padding: 2.5rem 2rem; text-align: center; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.wl-modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.wl-modal h3 { margin: 0 0 0.75rem; font-size: 1.3rem; color: #1e293b; }
.wl-modal p { margin: 0 0 0.75rem; font-size: 0.9rem; color: #475569; line-height: 1.6; }
.wl-modal .wl-modal-email { font-weight: 700; color: #0078d4; }
.wl-modal .wl-modal-spam {
    background: #fef9c3; border: 1px solid #fde047; border-radius: 10px;
    padding: 0.85rem 1rem; margin: 1rem 0; font-size: 0.85rem; color: #854d0e;
    line-height: 1.5;
}
.wl-modal .wl-modal-close {
    display: inline-block; margin-top: 1rem; padding: 0.6rem 2rem;
    background: var(--logiq-accent, #0078d4); color: #fff; border: none;
    border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.wl-modal .wl-modal-close:hover { opacity: 0.9; }

/* ── Beta variant ── */
.hero-beta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 70vh;
}
.beta-info-section {
    padding: 4rem 0;
    background: var(--logiq-surface);
}
.beta-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
}
.beta-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}
.beta-card ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
}
.beta-card li {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* ── Footer ── */
.landing-footer {
    text-align: center;
    padding: 2rem;
    background: #f1f5f9;
    font-size: 0.8rem;
    color: #64748b;
}
.landing-footer a {
    color: #64748b;
    text-decoration: none;
}
.landing-footer a:hover { color: var(--logiq-blue); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { flex-wrap: wrap; gap: 1.5rem; }
    .step-arrow { display: none; }
    .step { flex: 0 1 140px; }
    .waitlist-input-row { flex-direction: column; }
    .waitlist-input-row .btn-waitlist { width: 100%; }
}
@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.75rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .hero-section { padding: 5rem 1.25rem 3rem; }
}
