@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f131d;
    color: #dfe2f1;
    overflow-x: hidden;
}

.font-headline {
    font-family: 'Manrope', sans-serif;
}

/* ===== HERO BACKGROUND ===== */
.hero-bg {
    background:
        radial-gradient(circle at 25% 15%, rgba(128, 213, 203, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 75% 85%, rgba(156, 242, 232, 0.12) 0%, transparent 55%);
}

.grid-bg {
    background-image:
        linear-gradient(rgba(128, 213, 203, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 213, 203, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: gridPan 40s linear infinite;
}

@keyframes gridPan {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 48px 48px;
    }
}

/* ===== FLOATING ORBS ===== */
.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: .5;
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #80d5cb 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #9cf2e8 0%, transparent 70%);
    bottom: -120px;
    right: -80px;
    animation: orbFloat2 22s ease-in-out infinite;
    opacity: .35;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #c0c6db 0%, transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 25s ease-in-out infinite;
    opacity: .25;
}

@keyframes orbFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(80px, 60px) scale(1.15);
    }
}

@keyframes orbFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-100px, -40px) scale(1.1);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-40%, -55%) scale(1.2);
    }
}

/* ===== WAVEFORM (matches frontend login banner) ===== */
.auth-waveform {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 96px;
    max-width: 720px;
    margin: 0 auto;
}

.auth-waveform__bar {
    flex: 1;
    border-radius: 2px;
    background: linear-gradient(to top, #0f766e, #80d5cb);
    height: var(--h);
    transform-origin: bottom;
    animation: wave-bounce var(--dur, 1s) ease-in-out infinite alternate;
    opacity: 0.8;
}

@keyframes wave-bounce {
    0% {
        transform: scaleY(0.25);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.7);
        opacity: 0.7;
    }

    100% {
        transform: scaleY(1);
        opacity: 0.9;
    }
}

/* ===== TEXT GRADIENT — ANIMATED SHIMMER ===== */
.text-gradient {
    background: linear-gradient(90deg, #80d5cb 0%, #9cf2e8 25%, #c0c6db 50%, #9cf2e8 75%, #80d5cb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #80d5cb 0%, #9cf2e8 100%);
    color: #003733;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left .6s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(128, 213, 203, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

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

/* ===== CARD HOVER ===== */
.card-hover {
    transition: border-color .35s ease, transform .35s ease, background-color .35s ease, box-shadow .35s ease;
    position: relative;
}

.card-hover:hover {
    border-color: rgba(128, 213, 203, 0.4);
    background-color: #1c1f2a;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6), 0 0 0 1px rgba(128, 213, 203, .15);
}

.card-hover .feature-icon {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.card-hover:hover .feature-icon {
    transform: scale(1.1) rotate(-6deg);
}

/* ===== HEADER ON SCROLL ===== */
.header-scrolled {
    background-color: rgba(15, 19, 29, 0.92) !important;
    border-bottom-color: rgba(128, 213, 203, 0.15) !important;
}

/* ===== NAV LINK UNDERLINE ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #80d5cb, #9cf2e8);
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(.9);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: .08s;
}

.stagger-2 {
    transition-delay: .16s;
}

.stagger-3 {
    transition-delay: .24s;
}

.stagger-4 {
    transition-delay: .32s;
}

.stagger-5 {
    transition-delay: .40s;
}

.stagger-6 {
    transition-delay: .48s;
}

/* ===== HERO ENTRANCE ===== */
.hero-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp .9s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-fade-up.delay-1 {
    animation-delay: .1s;
}

.hero-fade-up.delay-2 {
    animation-delay: .25s;
}

.hero-fade-up.delay-3 {
    animation-delay: .4s;
}

.hero-fade-up.delay-4 {
    animation-delay: .55s;
}

.hero-fade-up.delay-5 {
    animation-delay: .7s;
}

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

/* ===== STEP NUMBER PULSE ===== */
.step-badge {
    animation: stepPulse 2.5s ease-in-out infinite;
}

.step-badge.delay-1 {
    animation-delay: .4s;
}

.step-badge.delay-2 {
    animation-delay: .8s;
}

@keyframes stepPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(128, 213, 203, .5);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(128, 213, 203, 0);
    }
}

/* ===== PRICING POPULAR GLOW ===== */
.glow-card {
    position: relative;
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(128, 213, 203, .6), rgba(156, 242, 232, .2), rgba(128, 213, 203, .6));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderShimmer 4s linear infinite;
    pointer-events: none;
}

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

    100% {
        background-position: 200% 50%;
    }
}

/* ===== LANGUAGE PILLS ===== */
.lang-pill {
    transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
}

.lang-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(128, 213, 203, 0.5);
    background-color: rgba(128, 213, 203, 0.08);
}

/* ===== STAT COUNTER ===== */
.stat-value {
    display: inline-block;
    transition: transform .3s ease;
}

.stat-card:hover .stat-value {
    transform: scale(1.08);
}

/* ===== SOCIAL ICONS ===== */
.social-icon {
    transition: transform .25s ease, border-color .25s ease, color .25s ease, background-color .25s ease;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(-4deg);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e18;
}

::-webkit-scrollbar-thumb {
    background: #313540;
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #80d5cb;
}

/* ===== LEGAL PAGES (terms / privacy) ===== */
.legal-content {
    color: #bdc9c6;
    line-height: 1.75;
}

.legal-content h2 {
    color: #dfe2f1;
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}

.legal-content h3 {
    color: #dfe2f1;
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #80d5cb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #9cf2e8;
}

.legal-content strong {
    color: #dfe2f1;
    font-weight: 600;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-scale,
    .hero-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
}
