/* ============================================
   IAVA Landing Page - Styles
   ============================================ */

/* CSS Reset & Variables */
:root {
    /* Colors */
    --color-surface: #08081a;
    --color-surface-light: #0d0d24;
    --color-primary: #4361ee;
    --color-accent: #7b5cfa;
    --color-white: #FFFFFF;
    --color-subtitle: #8b8fa8;
    --color-elements: rgba(255, 255, 255, 0.04);
    --color-cards: rgba(255, 255, 255, 0.03);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #8684FF 0%, #51A2FF 100%);
    --gradient-text: linear-gradient(90deg, #8684FF 0%, #51A2FF 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-gap: 120px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   Typography
   ============================================ */
.section-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.section-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-subtitle);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-inner {
    /* uses .container for side padding */
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 860px;
    margin: 0 auto;
    padding: 12px 20px 12px 16px;
    background: rgba(8, 8, 26, 0.88);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-icon {
    width: 52px;
    height: 52px;
    display: block;
    margin: -10px 0;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile overlay — hidden on desktop */
.mobile-menu {
    display: none;
}

.mobile-menu-backdrop {
    display: none;
}

.nav-link {
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-subtitle);
    border-radius: 100px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-actions .btn {
    padding: 9px 20px;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-family);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.btn-primary-gradient {
    background: #2934FF !important;
    background-image: none !important;
    color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(41, 52, 255, 0.35);
}

.btn-primary-gradient:hover {
    background: #1e27e0 !important;
    background-image: none !important;
    box-shadow: 0 8px 32px rgba(41, 52, 255, 0.5);
}

.btn-white {
    background: var(--color-white);
    color: #000000;
}

.btn-white-outline {
    background: transparent;
    border: 1px solid var(--color-border-light);
    color: var(--color-white);
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Mobile header domain label */
.mobile-header-domain {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.06em;
    pointer-events: none;
    white-space: nowrap;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   Sections Base
   ============================================ */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header .section-title {
    margin-bottom: 16px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Glow orbs */
.hero-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.28;
}

.hero-orb-left {
    top: -100px;
    left: -150px;
    background: radial-gradient(circle, #8684FF 0%, transparent 70%);
}

.hero-orb-right {
    top: -80px;
    right: -150px;
    background: radial-gradient(circle, #7b5cfa 0%, transparent 70%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 44fr 56fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
}

.hero-title {
    font-size: 62px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-subtitle);
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-cta-note {
    font-size: 13px;
    color: var(--color-subtitle);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

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

.social-proof-avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
    object-fit: cover;
    filter: blur(2px);
}

.social-proof-avatars img:not(:first-child) {
    margin-left: -10px;
}

.social-proof-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-proof-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
}

.social-proof-label {
    font-size: 12px;
    color: var(--color-subtitle);
}

.hero-bg-logo {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 58%;
    height: auto;
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Dark blob background behind dashboard — matches Figma */
.hero-right::before {
    content: '';
    position: absolute;
    width: 88%;
    height: 88%;
    bottom: -8%;
    left: 6%;
    background: radial-gradient(ellipse at 50% 50%, #0c0c24 0%, #09091e 55%, transparent 100%);
    border-radius: 50%;
    transform: scaleX(1.15);
    filter: blur(8px);
    z-index: 0;
}

.hero-mockup-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    box-shadow:
        0 0 0 1px rgba(67, 97, 238, 0.15),
        0 24px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(67, 97, 238, 0.12);
}

.hero-mockup-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Dashboard Section
   ============================================ */
.dashboard-section {
    background: linear-gradient(180deg, var(--color-surface) 0%, #0a0a20 50%, var(--color-surface) 100%);
}

/* ============================================
   Dashboard Tabs
   ============================================ */
.dashboard-tabs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 4px;
}

.dashboard-tab {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-family);
    color: var(--color-subtitle);
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: var(--color-white);
}

.dashboard-tab.active {
    background: transparent;
    color: #ffffff;
    border: 1px solid #2934FF;
    box-shadow: 0 0 12px rgba(41, 52, 255, 0.25);
}

.dashboard-tab-desc {
    font-size: 16px;
    color: var(--color-subtitle);
    text-align: center;
    line-height: 1.6;
    transition: opacity 0.25s ease;
}

.dashboard-tab-image {
    width: 100%;
    max-width: 760px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

.dashboard-tab-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .dashboard-tabs-wrapper {
        gap: 20px;
    }

    /* single row — 4 tabs dividem a largura igualmente */
    .dashboard-tabs {
        display: flex;
        flex-direction: row;
        width: 100%;
        border-radius: 100px;
        padding: 4px;
        gap: 4px;
    }

    .dashboard-tab {
        flex: 1;
        border-radius: 100px;
        padding: 8px 4px;
        font-size: clamp(9px, 2.5vw, 12px);
        white-space: nowrap;
        text-align: center;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-tab.active {
        border-radius: 100px;
    }

    .dashboard-tab-image {
        max-width: 100%;
        border-radius: 10px;
    }
}

/* ============================================
   Features Grid
   ============================================ */
.features-section {
    background: var(--color-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--color-elements);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(67, 97, 238, 0.35);
    transform: translateY(-3px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-subtitle);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: var(--color-surface);
}

.cta-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 64px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px rgba(67, 97, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 80px rgba(67, 97, 238, 0.08);
}

.cta-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-subtitle);
    margin-bottom: 36px;
}

.cta-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.cta-note {
    font-size: 13px;
    color: var(--color-subtitle);
}

.cta-checklist {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.cta-checklist span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    opacity: 0.75;
}

.cta-disclaimer {
    font-size: 12px;
    color: var(--color-subtitle);
    opacity: 0.7;
    line-height: 1.5;
}


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

/* Tablet (768px - 1099px) */
@media (max-width: 1099px) {
    .container {
        padding: 0 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-badge {
        align-self: center;
    }

    .hero-cta-group {
        align-items: center;
    }

    .social-proof {
        justify-content: center;
    }

    .hero-right {
        max-width: 600px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 34px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 36px;
    }

    .cta-card {
        padding: 48px 36px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }

    /* Header */
    .header {
        padding: 12px 0;
    }

    .nav {
        padding: 10px 14px 10px 12px;
        border-radius: 16px;
        max-width: 100%;
    }

    /* Hide desktop links */
    .nav-links {
        display: none;
    }

    /* Hide desktop CTA */
    .nav-actions {
        display: none;
    }

    /* Domain label centered in mobile header */
    .mobile-header-domain {
        display: block;
    }

    .nav {
        position: relative;
    }

    /* Hamburger */
    .mobile-menu-btn {
        display: flex;
        z-index: 10001;
        position: relative;
        width: 28px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
    }

    /* Backdrop */
    .mobile-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Slide-in drawer from the right */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: #0e0e22;
        border-left: 1px solid var(--color-border);
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
        overflow: hidden;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    /* Menu header: logo + close */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--color-border);
        border-radius: 8px;
        color: var(--color-subtitle);
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.12);
        color: var(--color-white);
    }

    /* Nav links */
    .mobile-menu-nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 12px 12px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 500;
        color: var(--color-subtitle);
        border-radius: 10px;
        transition: background 0.18s ease, color 0.18s ease;
        text-decoration: none;
        min-height: 52px;
    }

    .mobile-nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-white);
        opacity: 1;
    }

    /* Staggered entrance */
    .mobile-menu.active .mobile-nav-link:nth-child(1) { animation: slideInRight 0.35s cubic-bezier(0.16,1,0.3,1) 0.08s both; }
    .mobile-menu.active .mobile-nav-link:nth-child(2) { animation: slideInRight 0.35s cubic-bezier(0.16,1,0.3,1) 0.14s both; }
    .mobile-menu.active .mobile-nav-link:nth-child(3) { animation: slideInRight 0.35s cubic-bezier(0.16,1,0.3,1) 0.20s both; }

    @keyframes slideInRight {
        from { opacity: 0; transform: translateX(20px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* Footer: CTA */
    .mobile-menu-footer {
        padding: 20px;
        border-top: 1px solid var(--color-border);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .mobile-menu-note {
        font-size: 12px;
        color: var(--color-subtitle);
        text-align: center;
        opacity: 0.7;
    }

    .mobile-menu .btn {
        min-height: 48px;
        font-size: 15px;
    }

    /* Hero */
    .hero {
        padding-top: 88px;
        padding-bottom: 48px;
        min-height: auto;
    }

    .hero-grid {
        gap: 32px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-orb {
        width: 300px;
        height: 300px;
        opacity: 0.2;
    }

    .hero-mockup-card {
        border-radius: 10px;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 48px;
    }

    .btn-lg {
        min-height: 52px;
        padding: 14px 28px;
    }

    /* Sections */
    .section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Features — 2 cols on larger phones */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 14px;
    }

    .feature-title {
        font-size: 15px;
    }

    /* CTA */
    .cta-card {
        padding: 36px 20px;
        border-radius: 16px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-checklist {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* Very small phones — features back to 1 col */
@media (max-width: 400px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 30px;
    }
}

/* Small Mobile (< 375px) */
@media (max-width: 374px) {
    .section-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }
}

/* ============================================
   Legal Pages (Privacy, Terms)
   ============================================ */
.legal-page {
    padding-top: 160px;
    padding-bottom: 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 16px;
}

.legal-updated {
    font-size: 14px;
    color: var(--color-subtitle);
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 16px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-subtitle);
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-subtitle);
    margin-bottom: 12px;
    list-style-type: disc;
}

.legal-section li:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-section a:hover {
    opacity: 0.8;
}

.legal-section strong {
    color: var(--color-white);
    font-weight: 600;
}

@media (max-width: 767px) {
    .legal-page {
        padding-top: 100px;
    }

    .legal-title {
        font-size: 32px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section p,
    .legal-section li {
        font-size: 15px;
    }
}

/* ============================================
   Lead Capture Modal
   ============================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop.active .modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 472px;
    margin: auto;
    background: #13131f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 28px 28px;
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-subtitle);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
}

.modal-header {
    display: none;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-subtitle);
    line-height: 1.5;
}

.modal-field {
    margin-bottom: 16px;
}

.modal-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 8px;
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-white);
    background: #1c1c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.modal-field input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.modal-field input:focus,
.modal-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.modal-field input.error,
.custom-select-trigger.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.modal-select-wrapper {
    position: relative;
}

/* Native select hidden — replaced by custom dropdown via JS */
.modal-select-wrapper select {
    display: none;
}

.select-arrow {
    display: none;
}

/* Custom Select Dropdown */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-family);
    font-size: 15px;
    color: var(--color-white);
    background: #1c1c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-select-trigger.is-placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.custom-select-trigger.is-open,
.custom-select-trigger:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.custom-select-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.custom-select-trigger.is-open .custom-select-icon {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1c1c2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    z-index: 500;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.custom-select-options.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.15s ease;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.custom-select-option.is-selected {
    color: var(--color-primary);
    background: rgba(67, 97, 238, 0.08);
}

.custom-select-option.is-disabled {
    color: rgba(255, 255, 255, 0.28);
    cursor: default;
}

.custom-select-option.is-disabled:hover {
    background: transparent;
}

/* Tracker multi-select pills */
.label-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.tracker-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.tracker-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    user-select: none;
}

.tracker-pill:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.8);
}

.tracker-pill.is-selected {
    background: rgba(67, 97, 238, 0.18);
    border-color: var(--color-primary);
    color: #fff;
}

.tracker-pills.error .tracker-pill {
    border-color: #ef4444;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.modal-actions .btn {
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 10px;
}

.modal-btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 16px;
    gap: 16px;
}

.modal-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

.modal-success p {
    font-size: 15px;
    color: var(--color-subtitle);
    line-height: 1.5;
}

.modal-success .btn {
    margin-top: 8px;
    padding: 12px 40px;
    font-size: 15px;
}

/* Modal Mobile — full screen */
@media (max-width: 767px) {
    .modal-backdrop {
        align-items: flex-start;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-box {
        max-width: 100%;
        width: 100%;
        min-height: 100dvh;
        border-radius: 0;
        padding: 72px 20px 0;
        margin: 0;
        overflow-y: visible;
        transform: translateX(100%);
        display: flex;
        flex-direction: column;
    }

    .modal-backdrop.active .modal-box {
        transform: translateX(0);
    }

    .modal-box.modal-box--success {
        padding: 0;
        height: 100dvh;
        justify-content: center;
        align-items: center;
    }

    .modal-box.modal-box--success #modalForm {
        display: none;
    }

    .modal-box.modal-box--success .modal-success {
        flex: none;
        width: 100%;
        padding: 20px 20px env(safe-area-inset-bottom, 24px);
    }

    .modal-close {
        top: 16px;
        right: 16px;
    }

    #modalForm {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .modal-success {
        flex: 1;
        justify-content: center;
        padding-bottom: env(safe-area-inset-bottom, 24px);
    }

    .modal-actions {
        position: sticky;
        bottom: 0;
        margin-top: auto;
        padding: 16px 0 24px;
        background: #13131f;
    }
}

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

/* --- Keyframes --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(52px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.28; transform: scale(1); }
    50%       { opacity: 0.13; transform: scale(1.14); }
}

@keyframes glowBreath {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(67, 97, 238, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            0 24px 80px rgba(67, 97, 238, 0.08);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(67, 97, 238, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.10),
            0 24px 80px rgba(67, 97, 238, 0.24);
    }
}

@keyframes textShimmer {
    0%   { background-position: 0%   center; }
    100% { background-position: 200% center; }
}

@keyframes btnShine {
    0%   { left: -80%; }
    100% { left: 160%; }
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(67, 97, 238, 0.0); }
    50%       { box-shadow: 0 0 0 6px rgba(67, 97, 238, 0.15); }
}

/* --- Hero entrance (staggered) --- */
.hero-badge     { animation: fadeInDown 0.55s cubic-bezier(0.16,1,0.3,1) both; }
.hero-title     { animation: fadeInUp   0.65s cubic-bezier(0.16,1,0.3,1) 0.10s both; }
.hero-subtitle  { animation: fadeInUp   0.65s cubic-bezier(0.16,1,0.3,1) 0.22s both; }
.hero-cta-group { animation: fadeInUp   0.65s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
.social-proof   { animation: fadeInUp   0.65s cubic-bezier(0.16,1,0.3,1) 0.46s both; }

.hero-mockup-card          { animation: fadeInRight 0.85s cubic-bezier(0.16,1,0.3,1) 0.18s both; }
.hero-mockup-card.floating { animation: float 6.5s ease-in-out infinite; }

/* --- Hero badge subtle pulse --- */
.hero-badge { animation: fadeInDown 0.55s cubic-bezier(0.16,1,0.3,1) both, badgePulse 3s ease-in-out 1s infinite; }

/* --- Orb slow pulse --- */
.hero-orb-left  { animation: orbPulse  9s ease-in-out infinite; }
.hero-orb-right { animation: orbPulse 11s ease-in-out 3s infinite; }

/* --- CTA card glow breathing --- */
.cta-card { animation: glowBreath 4s ease-in-out infinite; }

/* --- Gradient text shimmer --- */
.gradient-text {
    background: linear-gradient(90deg, #8684FF 0%, #51A2FF 40%, #a8d4ff 55%, #51A2FF 70%, #8684FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

/* --- Button shine sweep on hover --- */
.btn-primary-gradient {
    overflow: hidden;
    position: relative;
}

.btn-primary-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.btn-primary-gradient:hover::after {
    animation: btnShine 0.55s ease forwards;
}

/* --- Feature card enhanced hover + animated gradient border --- */
.feature-card {
    isolation: isolate;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #8684FF 0%, #51A2FF 50%, #8684FF 100%);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    animation: borderShift 2s linear infinite paused;
}

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

.feature-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.feature-card:hover {
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(134, 132, 255, 0.14);
}

/* Hero canvas */
#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Typewriter cursor */
.typewriter-cursor {
    color: #8684FF;
    font-weight: 300;
    margin-left: 2px;
    animation: cursorBlink 0.75s step-end infinite;
    transition: opacity 0.5s ease;
}

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

/* Clip-path reveal for scroll sections */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    clip-path: inset(0 0 16% 0);
    transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1), clip-path 0.65s cubic-bezier(0.16,1,0.3,1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0% 0);
}

.feature-card {
    opacity: 0;
    transform: translateY(28px) rotate(2deg);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

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

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #8684FF, #51A2FF);
    z-index: 10000;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
    transition: width 0.08s linear;
}

/* Ripple on buttons */
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

/* Feature Icon hover — scale, rotate, stroke glow */
.feature-icon {
    transition: background 0.3s ease, border-color 0.3s ease,
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(134, 132, 255, 0.18);
    border-color: rgba(134, 132, 255, 0.5);
    transform: scale(1.14) rotate(10deg);
    box-shadow: 0 0 24px rgba(134, 132, 255, 0.35);
}

.feature-icon svg * {
    transition: stroke 0.3s ease;
}

.feature-card:hover .feature-icon svg * {
    stroke: #9b99ff;
}

/* Active nav link for current section */
.nav-link--active {
    color: var(--color-white) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* CTA checklist items — stagger transition ready */
.cta-checklist span {
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16,1,0.3,1);
}

/* Feature card position for ::after gradient border */
.feature-card {
    position: relative;
}
