:root {
    --bg-primary: #050509;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #12121e;
    --bg-card: rgba(18, 18, 32, 0.7);
    --text-primary: #f0f0f5;
    --text-secondary: #9a9ab0;
    --text-tertiary: #5a5a72;
    --accent-primary: #6366f1;
    --accent-secondary: #a855f7;
    --accent-tertiary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
    --accent-gradient-vivid: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    --border-color: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

/* ============ PRELOADER ============ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.loader {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
    position: relative;
}

.loader::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 3px solid transparent;
    border-top-color: var(--accent-secondary);
    border-right-color: var(--accent-tertiary);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

.loader::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 3px solid transparent;
    border-top-color: var(--accent-tertiary);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

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

.loader-text {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.3em;
    animation: pulse 2s ease-in-out infinite;
}

/* ============ CURSOR GLOW ============ */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    will-change: transform;
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}

/* ============ CONTAINER ============ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 9, 0.6);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 9, 0.92);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-full {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.logo-full:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 12px rgba(99, 102, 241, 0.6));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-menu-cta {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-base);
    border-radius: 2px;
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    top: -15%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    top: 50%;
    right: -15%;
    animation-delay: 7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s backwards;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

.gradient-text {
    background: var(--accent-gradient-vivid);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards, gradientShift 4s ease infinite;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s backwards;
}

/* Hero Social Proof */
.hero-social-proof {
    margin-top: 3rem;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s backwards;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 60px);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-cta .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-social-proof {
        margin-top: 2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

.hero-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-primary);
    margin-left: -8px;
}

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

.hero-users-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============ BUTTONS ============ */
.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary:hover .btn-icon {
    transform: scale(1.15);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    will-change: transform;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-3px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 7px;
    background: var(--accent-primary);
    border-radius: 3px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============ METRICS TICKER ============ */
.metrics-ticker {
    padding: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
}

.metrics-ticker::before,
.metrics-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.metrics-ticker::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.metrics-ticker::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    width: max-content;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    padding: 1.125rem 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0 2rem;
}

.ticker-item strong {
    background: var(--accent-gradient-vivid);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.05rem;
}

.ticker-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ SECTION STYLES ============ */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    padding: 0.4rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    background: var(--bg-secondary);
}

/* iPhone Mockup Showcase */
.iphone-showcase {
    margin-bottom: 5rem;
    padding: 3rem 0;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.iphone-showcase::-webkit-scrollbar {
    display: none;
}

.iphone-carousel {
    display: flex;
    gap: 2rem;
    animation: carousel-scroll 20s linear infinite;
    width: max-content;
}

.iphone-carousel:hover {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 6)); }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.5s ease;
    z-index: -1;
}

.product-card:hover .card-glow {
    opacity: 0.3;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(99, 102, 241, 0.1);
}

.product-card.featured {
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(168, 85, 247, 0.04));
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--accent-gradient);
    color: white;
    padding: 0.35rem 0.875rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.product-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-icon {
    transform: scale(1.08) rotate(3deg);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.product-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-primary);
    transform: translateY(-50%);
}

.product-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.product-link:hover {
    color: var(--accent-secondary);
    gap: 0.75rem;
}

/* ============ METRICS SECTION ============ */
.metrics-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.metrics-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-icon-wrap {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.metric-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient-vivid);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ SOCIAL PROOF BAR ============ */
.social-proof-bar {
    padding: 1.5rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--glass-border);
}

.social-proof-bar .container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-proof-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.social-proof-logos {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-proof-item {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.social-proof-item:hover {
    opacity: 1;
    color: var(--accent-primary);
}

/* Social proof separator dots */
.social-proof-item:not(:last-child)::after {
    content: '·';
    margin-left: 1.5rem;
    color: var(--text-tertiary);
    opacity: 0.3;
}

@media (max-width: 768px) {
    .social-proof-bar .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-proof-logos {
        gap: 0.5rem 1rem;
    }

    .social-proof-item {
        font-size: 0.8rem;
    }

    .social-proof-item:not(:last-child)::after {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .social-proof-logos {
        gap: 0.25rem 0.75rem;
    }

    .social-proof-item {
        font-size: 0.75rem;
    }

    .social-proof-item:not(:last-child)::after {
        margin-left: 0.75rem;
    }
}

/* ============ PROCESS SECTION ============ */
.process-section {
    background: var(--bg-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

.process-line {
    position: absolute;
    top: 52px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3), rgba(6, 182, 212, 0.3));
    z-index: 0;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.process-step-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient-vivid);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.process-step:hover .process-step-number {
    opacity: 0.6;
}

.process-step-icon {
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s ease;
}

.process-step:hover .process-step-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.process-step-icon svg {
    color: var(--accent-primary);
}

.process-step h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.process-cta {
    text-align: center;
}

/* ============ FAQ SECTION ============ */
.faq-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.faq-item.active {
    border-color: rgba(99, 102, 241, 0.25);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* FAQ CTA */
.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.faq-cta-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* ============ CTA BANNER ============ */
.cta-banner {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
}

.cta-banner-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.cta-banner-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cta-banner-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

/* Meteors Animation */
.meteors-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.meteor {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 10px 2px rgba(99, 102, 241, 0.6),
        0 0 20px 4px rgba(99, 102, 241, 0.3);
    animation: meteor-fall linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 120px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.4) 50%, rgba(168, 85, 247, 0.8) 100%);
    border-radius: 50%;
}

@keyframes meteor-fall {
    0% { transform: translateY(0) translateX(0) rotate(-45deg); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(100vh) translateX(-100vh) rotate(-45deg); opacity: 0; }
}

.meteor:nth-child(1) { left: 10%; animation-duration: 3s; animation-delay: 0s; }
.meteor:nth-child(2) { left: 25%; animation-duration: 2.5s; animation-delay: 0.5s; }
.meteor:nth-child(3) { left: 40%; animation-duration: 3.5s; animation-delay: 1s; }
.meteor:nth-child(4) { left: 55%; animation-duration: 2.8s; animation-delay: 0.3s; }
.meteor:nth-child(5) { left: 70%; animation-duration: 3.2s; animation-delay: 1.5s; }
.meteor:nth-child(6) { left: 85%; animation-duration: 2.6s; animation-delay: 0.8s; }
.meteor:nth-child(7) { left: 15%; animation-duration: 3.8s; animation-delay: 2s; }
.meteor:nth-child(8) { left: 30%; animation-duration: 2.4s; animation-delay: 1.2s; }
.meteor:nth-child(9) { left: 45%; animation-duration: 3.1s; animation-delay: 0.6s; }
.meteor:nth-child(10) { left: 60%; animation-duration: 2.9s; animation-delay: 1.8s; }
.meteor:nth-child(11) { left: 75%; animation-duration: 3.3s; animation-delay: 0.4s; }
.meteor:nth-child(12) { left: 90%; animation-duration: 2.7s; animation-delay: 1.3s; }
.meteor:nth-child(13) { left: 20%; animation-duration: 3.6s; animation-delay: 0.9s; }
.meteor:nth-child(14) { left: 50%; animation-duration: 2.5s; animation-delay: 1.6s; }
.meteor:nth-child(15) { left: 80%; animation-duration: 3.4s; animation-delay: 0.7s; }

/* Contact Title Animation */
.contact-title {
    position: relative;
    z-index: 1;
}

.title-word {
    display: inline-block;
    margin: 0 0.25rem;
}

.title-word.highlighted {
    background: var(--accent-gradient-vivid);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    position: relative;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-icon {
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.contact-method:hover .method-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

.method-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.method-content h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.method-content a,
.method-content p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.method-content a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-full {
    width: 100%;
    margin-top: 0.75rem;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Scroll-triggered animations */
.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-right {
    animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-text {
    display: inline-block;
}

/* Navbar slide in */
.navbar {
    animation: slideInFromTop 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Sparkles */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(99, 102, 241, 0.4);
    animation: sparkle-twinkle 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle-twinkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 9, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu-cta {
        list-style: none;
        margin-top: 0.5rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu-cta-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        background: var(--accent-gradient);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
        transition: all 0.3s ease;
    }

    .nav-menu-cta-btn:active {
        transform: scale(0.98);
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .process-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .metric-number {
        font-size: 2rem;
    }

    .product-card {
        padding: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        -webkit-appearance: none;
        border-radius: var(--radius-sm);
    }

    .form-group textarea {
        min-height: 120px;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .btn-full {
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        min-height: 48px;
    }

    .contact-method {
        padding: 0.5rem 0;
    }
}

/* ============ IPHONE CAROUSEL OVERRIDES ============ */
.iphone-carousel .app-screenshot {
    background: none !important;
}

.iphone-carousel .app-screenshot::before,
.iphone-carousel .app-screenshot::after {
    display: none !important;
}

.iphone-carousel .status-bar,
.iphone-carousel .app-content {
    display: none !important;
}

/* ============ LANGUAGE SWITCHER ============ */
.language-switcher {
    position: relative;
    margin-right: 0.75rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.lang-icon {
    width: 1.125rem;
    height: 1.125rem;
    stroke: currentColor;
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-arrow {
    width: 0.625rem;
    height: 0.625rem;
    transition: transform 0.3s ease;
}

.language-switcher.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 170px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.language-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-base);
    text-align: left;
}

.lang-option:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--accent-primary);
}

.lang-flag {
    font-size: 1.125rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .language-switcher {
        margin-right: 0.5rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
    }

    .lang-text {
        display: none;
    }
}

/* ============ FORM NOTIFICATIONS ============ */
.form-notification {
    margin-bottom: 1.25rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.form-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.form-notification.success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.form-notification.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.form-notification.success .notification-icon {
    background: rgba(34, 197, 94, 0.15);
}

.form-notification.error .notification-icon {
    background: rgba(239, 68, 68, 0.15);
}

.notification-message {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Per-field validation errors */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-group.has-error label {
    color: #ef4444;
}

.field-error {
    display: block;
    color: #ef4444;
    font-size: 0.775rem;
    margin-top: 0.35rem;
    padding-left: 0.25rem;
    opacity: 0;
    transform: translateY(-4px);
    animation: fieldErrorIn 0.3s ease forwards;
}

@keyframes fieldErrorIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ============ NAV CTA BUTTON ============ */
.nav-cta-btn {
    padding: 0.5rem 1.25rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
    font-family: inherit;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

@media (max-width: 968px) {
    .nav-cta-btn {
        display: none;
    }
}

/* ============ TRUST BADGES ============ */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-badge svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ============ WHATSAPP FLOATING BUTTON ============ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 9996;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: whatsapp-ring 3s ease-in-out infinite;
}

@keyframes whatsapp-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0; }
}

.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1) !important;
    border-color: rgba(37, 211, 102, 0.2) !important;
}

.whatsapp-icon svg {
    color: #25d366 !important;
}

/* ============ STICKY MOBILE CTA BAR ============ */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 5, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

.mobile-cta-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.mobile-cta-btn:active {
    transform: scale(0.98);
}

.mobile-cta-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: block;
    }

    /* Adjust floating buttons to sit above the CTA bar */
    .whatsapp-float {
        bottom: 80px;
        left: 16px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .chatbot-btn {
        bottom: 80px;
    }

    /* Add padding to footer so CTA bar doesn't cover content */
    .footer {
        padding-bottom: 5rem;
    }
}

