﻿/* ================================================================
   KEITARO STATS BOT — styles.css
   Modern SaaS 2026 · Mobile-first · CSS variables · No frameworks
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS VARIABLES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Brand colours */
    --clr-accent: #2AABEE;
    --clr-accent-rgb: 42, 171, 238;
    --clr-accent-dark: #1a8ec8;
    --clr-accent-light: #d6f0fc;
    --clr-accent-glow: rgba(42, 171, 238, .20);

    /* Neutrals — light mode */
    --clr-bg: #f5f7fa;
    --clr-bg-rgb: 245, 247, 250;
    --clr-bg-muted: #eef1f6;
    --clr-surface: #ffffff;
    --clr-surface-2: #f0f4f8;
    --clr-border: #dde3ec;
    --clr-text: #0f1923;
    --clr-text-secondary: #4a576a;
    --clr-text-muted: #7f8fa4;

    /* Status */
    --clr-success: #27ae60;
    --clr-danger: #e74c3c;
    --clr-warning: #f39c12;

    /* Typography */
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --text-xs: .75rem;
    --text-sm: .875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;

    /* Spacing */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-pad: clamp(1rem, 4vw, 2rem);
    --header-h: 100px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
    --shadow-accent: 0 6px 24px rgba(42, 171, 238, .30);

    /* Motion */
    --ease-out: cubic-bezier(.22, .68, 0, 1.2);
    --dur-fast: 180ms;
    --dur-base: 280ms;
    --dur-slow: 420ms;
}

/* Dark mode tokens */
[data-theme="dark"] {
    --clr-bg: #0e1520;
    --clr-bg-rgb: 14, 21, 32;
    --clr-bg-muted: #131d2b;
    --clr-surface: #19263a;
    --clr-surface-2: #1f3048;
    --clr-border: #253347;
    --clr-text: #e8edf4;
    --clr-text-secondary: #a0aec0;
    --clr-text-muted: #637080;
    --clr-accent-light: rgba(42, 171, 238, .15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .30);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .40);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .50);
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    color: var(--clr-text);
    background-color: var(--clr-bg);
    background-image: none;
    background-attachment: fixed;
    transition: color var(--dur-base), background-color var(--dur-base);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

img,
video,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

ul,
ol {
    list-style: none;
}

code {
    font-family: 'Courier New', monospace;
    font-size: .9em;
    background: var(--clr-accent-light);
    color: var(--clr-accent-dark);
    padding: .1em .4em;
    border-radius: var(--radius-sm);
}

/* scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: var(--radius-full);
}

/* ----------------------------------------------------------------
   3. UTILITIES
   ---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.container--wide {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: var(--clr-accent);
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    z-index: 9999;
    /* Move further up to stay hidden even with glow/shadow */
    transform: translateY(-200%);
    transition: transform var(--dur-fast);
}

.skip-link:focus-visible,
.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.4);
}

/* Sections */
.section {
    padding-block: clamp(1.25rem, 4vh, 2.5rem);
    position: relative;
}

.section--muted {
    background: transparent;
}

.has-bg-effects {
    position: relative;
    z-index: 1;
}

.particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

/* Scroll-reveal sections */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback: if JS is disabled or reduced-motion, always show */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

.section__header {
    text-align: center;
    margin-bottom: clamp(1rem, 3vh, 2rem);
}

.section__title {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-5xl));
    font-weight: var(--fw-extrabold);
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--clr-text);
    margin-bottom: var(--space-6);
    animation: textPulseGlow 4s ease-in-out infinite alternate;
    position: relative;
    display: inline-block;
}

/* Subtle glow behind the title */
.section__title::after {
    content: "";
    position: absolute;
    inset: -20px -40px;
    background: radial-gradient(circle, rgba(42, 171, 238, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.section__subtitle {
    font-size: clamp(var(--text-base), 1.2vw, var(--text-xl));
    color: var(--clr-text-secondary);
    max-width: 800px;
    margin-inline: auto;
    line-height: var(--lh-snug);
    letter-spacing: 0.01em;
}

/* ----------------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    transition: all var(--dur-base) var(--ease-out);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    background: var(--clr-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(42, 171, 238, .40);
}

.btn--secondary {
    background: var(--clr-surface);
    color: var(--clr-accent);
    border-color: var(--clr-border);
}

.btn--secondary:hover {
    background: var(--clr-accent-light);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

.btn--outline:hover {
    background: var(--clr-accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn--full {
    width: 100%;
}

/* ----------------------------------------------------------------
   5. LOGO BADGE
   ---------------------------------------------------------------- */
.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: #fff;
    font-size: var(--text-sm);
    font-weight: var(--fw-extrabold);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    letter-spacing: .02em;
}

.logo-badge--sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
}

/* ----------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .95);
    /* slightly more opaque to compensate for removed blur */
    border-bottom: 1px solid var(--clr-border);
    transition: background var(--dur-base), border-color var(--dur-base);
}

[data-theme="dark"] .header {
    background: rgba(14, 21, 32, .98);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    height: 100%;
}

/* Brand / logo */
.brand {
    position: relative;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand__logo {
    height: 85px;
    width: auto;
    display: block;
    /* Keep crisp on retina; no filter — logo must be legible on both themes */
    image-rendering: -webkit-optimize-contrast;
}

.brand__name {
    font-weight: var(--fw-bold);
    font-size: var(--text-base);
    color: var(--clr-text);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .brand__name {
        font-size: var(--text-sm);
    }
}

/* Nav */
.header__nav {
    margin-left: auto;
}

.nav__list {
    display: flex;
    gap: var(--space-2);
}

.nav__link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--dur-fast), background var(--dur-fast);
}

.nav__link:hover {
    color: var(--clr-accent);
    background: var(--clr-accent-light);
}

/* Controls */
.header__controls {
    position: relative;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Lang switcher dropdown */
.lang-switcher {
    position: relative;
    user-select: none;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--clr-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--dur-fast) var(--ease-out);
    cursor: pointer;
}

.lang-switcher__toggle:hover {
    background: rgba(42, 171, 238, 0.1);
    border-color: var(--clr-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 171, 238, 0.15);
}

.lang-switcher__arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher__arrow {
    transform: rotate(180deg);
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 140px;
    background: rgba(25, 38, 58, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.lang-switcher.is-open .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-secondary);
    background: transparent;
    transition: all 0.2s ease;
    text-align: left;
    cursor: pointer;
    border: none;
}

.lang-switcher__option:hover {
    background: rgba(42, 171, 238, 0.1);
    color: var(--clr-text);
}

.lang-switcher__option--active {
    background: var(--clr-accent);
    color: #fff;
    pointer-events: none;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
}

.lang-flag svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1023px) {
    .header__controls {
        gap: var(--space-2);
    }

    .lang-switcher__toggle {
        padding: 5px 8px;
        font-size: var(--text-xs);
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .burger {
        width: 32px;
        height: 32px;
    }

    .header__cta {
        display: none !important;
    }
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    font-size: 1rem;
    transition: background var(--dur-fast), transform var(--dur-fast);
}

.theme-toggle:hover {
    background: var(--clr-accent-light);
    transform: rotate(20deg);
}

[data-theme="light"] .theme-toggle__icon--moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: none;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--clr-border);
    transition: background var(--dur-fast);
}

.burger:hover {
    background: var(--clr-surface-2);
}

.burger__line {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--clr-text);
    border-radius: var(--radius-full);
    transition: transform var(--dur-base), opacity var(--dur-base);
}

.burger.is-open .burger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
    opacity: 0;
}

.burger.is-open .burger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Header Responsiveness */
@media (min-width: 1024px) {
    .header__inner {
        justify-content: space-between;
    }

    .header__nav {
        display: flex;
        align-items: center;
        gap: var(--space-10);
        margin-left: auto;
    }

    .header__cta {
        display: none;
    }
}

/* ----------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------- */
.hero {
    padding-top: calc(var(--header-h) + var(--space-8));
    padding-bottom: var(--space-10);
    background: transparent;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: transparent;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr auto;
        gap: var(--space-20);
        text-align: left;
    }

    .hero__content {
        max-width: 680px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--clr-accent);
    margin-bottom: var(--space-8);
    width: fit-content;
    animation: fadeInUp var(--dur-slow) var(--ease-out) both;
}

@media (max-width: 768px) {
    .hero__badge {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
        margin-bottom: var(--space-6);
    }
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--clr-success);
    position: relative;
}

.hero__badge-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--clr-success);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: badgeRipple 2s infinite ease-out;
}

@keyframes badgeRipple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.hero__heading {
    font-size: clamp(var(--text-2xl), 8vw, var(--text-5xl));
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    letter-spacing: -.03em;
    margin-bottom: var(--space-5);
    animation: fadeInUp var(--dur-slow) 80ms var(--ease-out) both;
}

.hero__heading-line {
    display: block;
}

.hero__heading-line--accent {
    color: var(--clr-accent);
    position: relative;
    display: inline-block;
    animation: textPulseGlow 2.5s ease-in-out infinite alternate;
}

@keyframes textPulseGlow {
    0% {
        color: var(--clr-accent);
        text-shadow: 0 0 15px rgba(42, 171, 238, 0.2);
    }

    100% {
        color: #7dd3ff;
        text-shadow: 0 0 20px rgba(125, 211, 255, 0.7), 0 0 35px rgba(125, 211, 255, 0.4);
    }
}

.hero__subheading {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-8);
    animation: fadeInUp var(--dur-slow) 160ms var(--ease-out) both;
}

@media (min-width: 768px) {
    .hero__subheading span {
        display: block;
    }
}

@media (max-width: 767px) {
    .hero__subheading span {
        display: inline;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    animation: fadeInUp var(--dur-slow) 240ms var(--ease-out) both;
}

.hero__social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    animation: fadeInUp var(--dur-slow) 240ms var(--ease-out) both;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero__social-proof {
        justify-content: flex-start;
    }
}

/* Telegram Mockup */
.hero__visual {
    animation: fadeInUp var(--dur-slow) 120ms var(--ease-out) both;
}

.tg-mockup {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 0 6px var(--clr-accent-glow);
    overflow: hidden;
    max-width: 380px;
    margin-inline: auto;
    position: relative;
}

.tg-mockup__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--clr-accent);
    color: #fff;
}

.tg-mockup__avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, .25);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
}

.tg-mockup__name {
    font-weight: var(--fw-semibold);
    display: block;
}

.tg-mockup__status {
    font-size: var(--text-xs);
    opacity: .8;
    display: block;
}

.tg-mockup__body {
    padding: var(--space-4) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background: var(--clr-bg-muted);
    min-height: 220px;
}

.tg-msg {
    position: relative;
    max-width: 95%;
}

.tg-msg--bot {
    background: var(--clr-surface);
    border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    animation: fadeInUp 400ms var(--ease-out) both;
}

.tg-msg--alert {
    border-left: 3px solid var(--clr-danger);
}

.tg-msg__text {
    font-size: var(--text-sm);
    line-height: var(--lh-snug);
    color: var(--clr-text);
}

.tg-msg__time {
    display: block;
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    text-align: right;
    margin-top: var(--space-1);
}

.tg-mockup__footer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--clr-border);
    background: var(--clr-surface);
}

.tg-mockup__input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    background: var(--clr-bg-muted);
}

.tg-mockup__send {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--clr-accent);
    color: #fff;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------------
   8. SOCIAL PROOF STRIP
   ---------------------------------------------------------------- */
.social-proof__label {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--clr-text-secondary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: var(--space-8);
}

.social-proof__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-6) var(--space-10);
}

.logo-placeholder {
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    color: var(--clr-text-secondary);
    letter-spacing: .05em;
    opacity: .85;
    transition: opacity var(--dur-base), color var(--dur-base);
}

.logo-placeholder:hover {
    opacity: 1;
    color: var(--clr-text);
}

/* ----------------------------------------------------------------
   9. FEATURES
   ---------------------------------------------------------------- */
.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    position: relative;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: clamp(var(--space-4), 4vw, var(--space-6));
    transition: box-shadow var(--dur-base), border-color var(--dur-base);
    animation: floatSlow 5s ease-in-out infinite;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
}

.feature-card--highlight {
    background: linear-gradient(135deg, var(--clr-surface) 60%, var(--clr-accent-light));
    border-color: var(--clr-accent);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-4);
    display: block;
    animation: floatIcon 5s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-8px);
    }
}

.feature-card:nth-child(even) .feature-card__icon {
    animation-delay: -2s;
}

.feature-card:nth-child(3n) .feature-card__icon {
    animation-delay: -1s;
}

.feature-card__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2);
    color: var(--clr-text);
}

.feature-card__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-normal);
}

.feature-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--clr-accent-light);
    color: var(--clr-accent);
    box-shadow: 0 4px 12px rgba(42, 171, 238, .2);
}

@media (max-width: 480px) {
    .feature-card__badge {
        position: static;
        margin-bottom: var(--space-3);
        width: fit-content;
    }
}

/* ----------------------------------------------------------------
   10. HOW IT WORKS
   ---------------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    counter-reset: steps;
}

.step {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    animation: floatIcon 6s ease-in-out infinite alternate;
}

.step:nth-child(even) {
    animation-delay: -3s;
}

.step__number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: #fff;
    font-size: var(--text-lg);
    font-weight: var(--fw-extrabold);
    box-shadow: var(--shadow-accent);
}

.step__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-2);
    color: var(--clr-text);
}

.step__desc {
    font-size: var(--text-base);
    color: var(--clr-text-secondary);
}

/* ----------------------------------------------------------------
   11. INTEGRATIONS
   ---------------------------------------------------------------- */
.integrations__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .integrations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .integrations__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.integration-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: clamp(var(--space-4), 4vw, var(--space-6));
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: box-shadow var(--dur-base);
    animation: floatSlow 5s ease-in-out infinite;
    will-change: transform;
}

.integration-card:nth-child(even) {
    animation-delay: -2.5s;
}

.integration-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
}

.integration-card--main {
    border-color: var(--clr-accent);
}

.integration-card__logo {
    width: 48px;
    height: 48px;
    background: var(--clr-accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-card--main .integration-card__logo {
    background: var(--clr-accent);
}

.integration-card__logo-text {
    font-size: var(--text-xs);
    font-weight: var(--fw-extrabold);
    color: var(--clr-accent);
}

.integration-card--main .integration-card__logo-text {
    color: #fff;
}

.integration-card__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
}

.integration-card__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
}

.integration-card__tag {
    align-self: flex-start;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.integration-card__tag--required {
    background: var(--clr-accent);
    color: #fff;
}

.integration-card__tag--soon {
    background: var(--clr-surface-2);
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
}

/* ----------------------------------------------------------------
   12. PRICING
   ---------------------------------------------------------------- */
.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
}

.pricing__toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
    color: var(--clr-text-secondary);
}

.pricing__save-badge {
    display: inline-block;
    background: var(--clr-success);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    padding: 2px var(--space-2);
    border-radius: var(--radius-full);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--clr-border);
    border-radius: var(--radius-full);
    transition: background var(--dur-base);
    flex-shrink: 0;
}

.toggle-switch[aria-checked="true"] {
    background: var(--clr-accent);
}

.toggle-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-base) var(--ease-out);
    pointer-events: none;
}

.toggle-switch[aria-checked="true"] .toggle-switch__thumb {
    transform: translateX(22px);
}

/* Pricing grid */
.pricing__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: stretch;
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .pricing__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Period-based layout: 3 equal PRO cards */
.pricing__grid--periods {
    margin-bottom: 0;
}

.pricing-card {
    position: relative;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: clamp(var(--space-5), 5vw, var(--space-8));
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    transition: box-shadow var(--dur-base);
    animation: floatSlow 5s ease-in-out infinite;
    will-change: transform;
}

.pricing-card:nth-child(even) {
    animation-delay: -3.5s;
}

.pricing-card:nth-child(3n) {
    animation-delay: -2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card--popular {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 2px var(--clr-accent), var(--shadow-lg);
    background: linear-gradient(160deg, var(--clr-surface) 70%, var(--clr-accent-light));
}

.pricing-card__popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    white-space: nowrap;
    letter-spacing: .04em;
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: var(--fw-extrabold);
    color: var(--clr-text);
}

.pricing-card__price-wrap {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-block: var(--space-2);
}

.pricing-card__currency {
    font-size: var(--text-xl);
    color: var(--clr-text-secondary);
}

.pricing-card__price {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: var(--fw-extrabold);
    color: var(--clr-text);
    transition: all var(--dur-base);
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.pricing-card__feature span:first-child {
    width: 18px;
    text-align: center;
    font-weight: var(--fw-bold);
    flex-shrink: 0;
}

.pricing-card__feature--yes span:first-child {
    color: var(--clr-success);
}

.pricing-card__feature--no span:first-child {
    color: var(--clr-danger);
}

.pricing-card__feature--no span:last-child {
    color: var(--clr-text-muted);
    text-decoration: line-through;
}

/* Comparison table */
.comparison-table-wrap {
    margin-top: var(--space-8);
}

.comparison-table__title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: var(--space-6);
}

.comparison-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--clr-border);
    text-align: center;
}

.comparison-table th {
    background: var(--clr-surface-2);
    font-weight: var(--fw-bold);
    color: var(--clr-text);
    font-size: var(--text-base);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: var(--fw-medium);
}

.comparison-table tr:hover td {
    background: var(--clr-bg-muted);
}

.comparison-table th:nth-child(3) {
    color: var(--clr-accent);
}

.comparison-table td:nth-child(3) {
    font-weight: var(--fw-semibold);
    color: var(--clr-accent);
}

/* ----------------------------------------------------------------
   13. TESTIMONIALS — CAROUSEL
   ---------------------------------------------------------------- */
.testimonials__carousel-wrap {
    position: relative;
    padding: 0 var(--space-6);
}

.testimonials__marquee {
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    padding: var(--space-4) 0;
    cursor: grab;
    user-select: none;
    transition: transform 0.5s cubic-bezier(.22, .68, 0, 1.2);
}

.testimonials__track.is-dragging {
    cursor: grabbing;
    transition: none;
}

.testimonial-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex: 0 0 320px;
    min-height: 220px;
    transition: box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    opacity: 0.6;
    transform: scale(0.94);
}

.testimonial-card.is-active {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 1px var(--clr-accent), 0 12px 40px rgba(42, 171, 238, 0.18);
    opacity: 1;
    transform: scale(1);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--clr-accent);
    opacity: 0.85;
}

.testimonial-card.is-active:hover {
    opacity: 1;
}

.testimonial-card__stars {
    display: flex;
    gap: 2px;
    color: var(--clr-accent);
    font-size: var(--text-sm);
}

.testimonial-card__quote {
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-normal);
    flex: 1;
}

.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card__name {
    font-weight: var(--fw-semibold);
    font-size: var(--text-sm);
    display: block;
    color: var(--clr-accent);
}

.testimonial-card__role {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

/* Navigation Arrows */
.testimonials__nav {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.testimonials__btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base), transform var(--dur-fast);
    font-size: 1.1rem;
}

.testimonials__btn:hover {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
    color: #fff;
    transform: scale(1.08);
}

/* Dots */
.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.testimonials__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--clr-border);
    cursor: pointer;
    transition: background var(--dur-base), transform var(--dur-fast);
}

.testimonials__dot.is-active {
    background: var(--clr-accent);
    transform: scale(1.4);
}



/* ----------------------------------------------------------------
   14. FAQ
   ---------------------------------------------------------------- */
.faq__list {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Removed duplicate tg-mockup definition */

.faq-item {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--dur-base);
}

.faq-item:has(.faq-item__question[aria-expanded="true"]) {
    border-color: var(--clr-accent);
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--clr-text);
    text-align: left;
    transition: color var(--dur-fast);
}

.faq-item__question:hover {
    color: var(--clr-accent);
}

.faq-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    border: 2px solid var(--clr-border);
    color: var(--clr-text-muted);
    font-style: normal;
    transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base);
}

.faq-item__icon::after {
    content: '+';
    font-size: var(--text-lg);
    line-height: 1;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
    border-color: var(--clr-accent);
    color: var(--clr-accent);
}

.faq-item__answer {
    padding: 0 var(--space-6) var(--space-5);
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
    line-height: var(--lh-normal);
}

/* ----------------------------------------------------------------
   15. FINAL CTA
   ---------------------------------------------------------------- */
.final-cta {
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind text */
.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%,
            rgba(42, 171, 238, .07) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.final-cta__inner {
    max-width: 960px;
    position: relative;
    z-index: 1;
}

.final-cta__heading {
    font-size: clamp(var(--text-xl), 3.2vw, var(--text-3xl));
    font-weight: var(--fw-extrabold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
    letter-spacing: -.02em;
    color: var(--clr-text);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .final-cta__heading {
        white-space: normal;
    }
}

.final-cta__subheading {
    font-size: var(--text-lg);
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-8);
}

@media (max-width: 480px) {
    .hero__heading {
        margin-bottom: var(--space-6);
    }
}

.final-cta .btn--primary {
    background: var(--clr-accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(42, 171, 238, .35);
}

.final-cta .btn--primary:hover {
    background: var(--clr-accent-dark);
    box-shadow: 0 8px 36px rgba(42, 171, 238, .5);
}

/* Dark mode: slightly brighter border */
[data-theme="dark"] .final-cta {
    background: transparent;
}

/* Animated arrow */
.final-cta__arrow {
    display: flex;
    justify-content: center;
    margin: 20px 0 8px;
    color: var(--clr-accent);
    opacity: .75;
    animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: .6;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ----------------------------------------------------------------
   16. FOOTER
   ---------------------------------------------------------------- */
.footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding-top: var(--space-12);
    padding-bottom: var(--space-10);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer__logo-name {
    font-weight: var(--fw-bold);
    color: var(--clr-text);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--clr-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--lh-snug);
}

.footer__support {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.footer__email {
    color: var(--clr-accent);
    font-weight: var(--fw-medium);
    transition: opacity var(--dur-fast);
}

.footer__email:hover {
    opacity: .75;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-lg);
    color: var(--clr-text-secondary);
    transition: color var(--dur-fast);
}

.footer__link:hover {
    color: var(--clr-accent);
}

.footer__left-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer__nav {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer__socials-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__socials-title {
    font-size: 0.7rem;
    font-weight: var(--fw-bold);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: .12em;
    text-shadow: 0 0 8px rgba(42, 171, 238, 0.4);
    opacity: 0.9;
}

.footer__socials {
    display: flex;
    flex-direction: row;
    gap: var(--space-5);
    align-items: center;
}

.footer__social-link svg {
    width: clamp(24px, 5vw, 32px);
    height: clamp(24px, 5vw, 32px);
    transition: color var(--dur-fast), transform var(--dur-fast);
    color: var(--clr-text-secondary);
}

.footer__social-link:hover svg {
    color: var(--clr-accent);
    transform: translateY(-2px);
}

.footer__newsletter-label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-3);
    color: var(--clr-text);
}

.newsletter-form__group {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.newsletter-form__input {
    flex: 1;
    min-width: 180px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-muted);
    color: var(--clr-text);
    font-size: var(--text-sm);
    font-family: var(--font-base);
    outline: none;
    transition: border-color var(--dur-fast);
}

.newsletter-form__input:focus {
    border-color: var(--clr-accent);
}

.newsletter-form__input.is-error {
    border-color: var(--clr-danger);
}

.newsletter-form__error {
    font-size: var(--text-xs);
    color: var(--clr-danger);
    margin-top: var(--space-2);
}

.newsletter-form__success {
    font-size: var(--text-xs);
    color: var(--clr-success);
    margin-top: var(--space-2);
}

/* Footer bottom */
.footer__bottom {
    border-top: 1px solid var(--clr-border);
    padding-block: var(--space-5);
}

.footer__bottom-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer__copy,
.footer__disclaimer {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

/* ----------------------------------------------------------------
   17. KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------
   18. MEDIA QUERIES — TABLET (≥ 640px)
   ---------------------------------------------------------------- */
@media (min-width: 640px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integrations__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__actions {
        flex-wrap: nowrap;
    }

    .steps {
        gap: var(--space-10);
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* ----------------------------------------------------------------
   19. MEDIA QUERIES — DESKTOP (≥ 1024px)
   ---------------------------------------------------------------- */
@media (min-width: 1024px) {
    .header__logo-name {
        display: inline;
    }

    .hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }

    .tg-mockup {
        max-width: none;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .integrations__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing__grid--periods {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }

    /* Compact cards when 4-up */
    .pricing__grid--periods .pricing-card {
        padding: var(--space-6);
        gap: var(--space-4);
    }

    .pricing__grid--periods .pricing-card__price {
        font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .step__number {
        margin-bottom: var(--space-2);
    }

    .footer__inner {
        grid-template-columns: 1.5fr 1fr;
        align-items: flex-start;
    }

    .footer__nav {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: var(--space-24);
        text-align: left;
    }

    .footer__socials {
        display: flex;
        flex-direction: row;
        gap: var(--space-8);
        margin-top: 0;
    }

    .footer__links {
        flex-direction: column;
    }

    /* burger hidden on desktop */
    .burger {
        display: none;
    }
}

/* ----------------------------------------------------------------
   20. MOBILE NAV
   ---------------------------------------------------------------- */
@media (max-width: 1023px) {

    .header.is-menu-open .header__controls .lang-switcher,
    .header.is-menu-open .header__controls .theme-toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .burger {
        display: flex;
        z-index: 1100;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        background: var(--clr-bg);
        padding: 120px var(--space-6) var(--space-10);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: var(--space-12);
        overflow-y: auto;
    }

    .header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: var(--space-6);
        width: 100%;
    }

    .nav__link {
        width: 100%;
        text-align: center;
        font-size: 1.75rem;
        font-weight: var(--fw-bold);
        padding: var(--space-3);
        color: var(--clr-text);
        text-transform: none;
        letter-spacing: -0.02em;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .nav__link:hover {
        color: var(--clr-accent);
        transform: scale(1.05);
    }
}

@media (max-width: 400px) {
    .lang-switcher__sep {
        display: none;
    }

    .lang-switcher {
        gap: 0;
    }
}

/* ----------------------------------------------------------------
   21. RESPONSIVE LOGO
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
    .brand__name {
        font-size: var(--text-sm);
    }

    .brand__logo {
        height: 70px;
        /* Increased height for mobile */
    }
}

/* ----------------------------------------------------------------
   22. SCROLL REVEAL
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------------------------------------------
   23. PREMIUM ANIMATIONS
   ---------------------------------------------------------------- */

/* === KEYFRAMES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    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 float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(.5deg);
    }

    66% {
        transform: translateY(-5px) rotate(-.5deg);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.01);
    }
}

@keyframes orbPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .35;
    }

    50% {
        transform: scale(1.2);
        opacity: .55;
    }
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

@keyframes shimmerBorder {
    0% {
        border-color: var(--clr-accent);
        box-shadow: 0 0 0 2px var(--clr-accent), 0 0 16px rgba(42, 171, 238, .3);
    }

    50% {
        border-color: #59d0ff;
        box-shadow: 0 0 0 2px #59d0ff, 0 0 32px rgba(89, 208, 255, .5);
    }

    100% {
        border-color: var(--clr-accent);
        box-shadow: 0 0 0 2px var(--clr-accent), 0 0 16px rgba(42, 171, 238, .3);
    }
}

@keyframes priceBounce {

    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.06);
    }

    70% {
        transform: scale(.97);
    }
}

@keyframes badgePop {
    0% {
        transform: translateX(-50%) scale(.8);
        opacity: 0;
    }

    60% {
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: var(--shadow-accent);
    }

    50% {
        box-shadow: 0 8px 40px rgba(42, 171, 238, .6);
    }
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* === HERO ANIMATED BG ORBS === */
.has-bg-effects {
    position: relative;
    isolation: isolate;
    background: transparent !important;
}

.has-bg-effects::before,
.has-bg-effects::after {
    content: '';
    position: absolute;
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: -1;
}

.has-bg-effects::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42, 171, 238, .18) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation: orbPulse 6s ease-in-out infinite;
}

.has-bg-effects::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(42, 171, 238, .12) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    animation: orbPulse 8s ease-in-out infinite reverse;
}

.has-bg-effects .particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

/* === FEEDBACK SECTION === */
.feedback {
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-block: var(--space-16);
    border-top: 1px solid var(--clr-border);
}

.feedback__inner {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    text-align: left;
    background: var(--clr-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.feedback-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.feedback-form__input,
.feedback-form__textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-muted);
    color: var(--clr-text);
    font-size: var(--text-sm);
    font-family: var(--font-base);
    outline: none;
    transition: border-color var(--dur-fast);
}

.feedback-form__textarea {
    resize: vertical;
}

.feedback-form__input:focus,
.feedback-form__textarea:focus {
    border-color: var(--clr-accent);
}

.feedback-form__actions {
    margin-top: var(--space-2);
    display: flex;
    justify-content: flex-end;
}

.feedback-form__label {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--clr-text-secondary);
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: var(--space-1);
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1;
}

.star-rating .star {
    cursor: pointer;
    color: var(--clr-border);
    transition: color var(--dur-fast), transform var(--dur-fast);
    user-select: none;
}

.star-rating .star:hover,
.star-rating .star:hover~.star,
.star-rating input:checked~.star {
    color: #f5c518;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

.star-rating .star:hover {
    transform: scale(1.15);
}

.star-rating input:checked+.star {
    animation: starPulse 0.4s var(--ease-out);
}

@keyframes starPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.feedback-form__success {
    text-align: center;
    color: var(--clr-success);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    padding: var(--space-6);
}

/* === FLOATING MOCKUP === */
.hero__visual {
    animation: fadeInRight 0.7s 0.3s var(--ease-out) both;
}

.tg-mockup {
    animation: floatSlow 5s ease-in-out infinite;
    will-change: transform;
}

/* Extra glow on mockup */
.tg-mockup {
    box-shadow:
        var(--shadow-lg),
        0 0 0 6px var(--clr-accent-glow),
        0 24px 64px rgba(42, 171, 238, .15);
    transition: box-shadow var(--dur-slow);
}

.tg-mockup:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 0 8px rgba(42, 171, 238, .25),
        0 32px 80px rgba(42, 171, 238, .25);
}

/* === STAGGERED CARD ENTRANCE === */
.feature-card,
.pricing-card,
.integration-card,
.testimonial-card,
.step {
    --stagger-delay: 0ms;
    animation-delay: var(--stagger-delay);
}

/* Feature cards hover — deeper glow */
.feature-card {
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(42, 171, 238, .18), var(--shadow-md);
    border-color: var(--clr-accent);
}

.feature-card__icon {
    display: inline-block;
    transition: transform 0.4s var(--ease-out);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.25) rotate(-5deg);
}

/* === POPULAR PRICING CARD SHIMMER === */
.pricing-card--popular {
    animation: shimmerBorder 3s ease-in-out infinite;
    overflow: hidden;
}

.pricing-card--popular::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(42, 171, 238, .08) 50%,
            transparent 70%);
    background-size: 400px 100%;
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

.pricing-card--popular .pricing-card__popular-badge {
    animation: badgePop 0.6s var(--ease-out) both;
}

/* Pricing card hover */
.pricing-card {
    transition: box-shadow 0.35s ease;
}

.pricing-card:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, .14), 0 0 0 1px var(--clr-accent);
}

.pricing-card--popular:hover {
    box-shadow: 0 0 0 2px var(--clr-accent), 0 24px 56px rgba(42, 171, 238, .30);
}

/* Price bounce on card hover */
.pricing-card:hover .pricing-card__price {
    animation: priceBounce 0.4s var(--ease-out) both;
    color: var(--clr-accent);
}

/* === BUTTON GLOW + RIPPLE === */
.btn--primary {
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s ease-in-out infinite;
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%);
    background-size: 300% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease;
    border-radius: inherit;
    pointer-events: none;
}

.btn--primary:hover::after {
    background-position: 0% 0;
}

.btn--primary:hover {
    animation: none;
    box-shadow: 0 10px 36px rgba(42, 171, 238, .55);
}

/* === STEP NUMBERS BOUNCE === */
.step__number {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    position: relative;
}

.step:hover .step__number {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 8px 28px rgba(42, 171, 238, .45);
}

/* Connecting line between steps — removed */
.steps {
    position: relative;
}

.steps::before {
    content: none;
}

/* === INTEGRATION CARD HOVER === */
.integration-card {
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.integration-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .12);
    border-color: var(--clr-accent);
}

.integration-card--main:hover {
    box-shadow: 0 14px 36px rgba(42, 171, 238, .22);
}

/* === LOGO ANIMATION IN INTEGRATION CARDS === */
.integration-card__logo {
    transition: transform 0.4s var(--ease-out), background 0.4s ease;
}

.integration-card:hover .integration-card__logo {
    transform: scale(1.15) rotate(-8deg);
    background: var(--clr-accent);
}

.integration-card:hover .integration-card__logo-text {
    color: #fff;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
    transition: box-shadow 0.35s ease;
}

.testimonial-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

/* Hover accent left border */
.testimonial-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--clr-accent);
    border-radius: var(--radius-full);
    transform: scaleY(0);
    transition: transform 0.35s var(--ease-out);
    transform-origin: center;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover::before {
    transform: scaleY(1);
}

/* Avatar bounce */
.testimonial-card__avatar {
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.testimonial-card:hover .testimonial-card__avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(42, 171, 238, .3);
}

/* === FAQ ANIMATED CHEVRON === */
.faq-item__question {
    transition: color var(--dur-fast), background var(--dur-fast);
}

.faq-item__icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.4s var(--ease-out);
    margin-left: auto;
    flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out);
}

.faq-item__icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.faq-item__question[aria-expanded="true"] {
    color: var(--clr-accent);
}

/* === FAQ ANSWER SMOOTH SLIDE === */
.faq-item__answer {
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), opacity 0.35s ease;
    max-height: 0;
    opacity: 0;
}

.faq-item__answer:not([hidden]) {
    max-height: 500px;
    opacity: 1;
}

.faq-item__answer[hidden] {
    display: block !important;
    visibility: hidden;
}

/* === SECTION HEADER UNDERLINE ANIMATION === */
.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-accent), #59d0ff);
    border-radius: var(--radius-full);
    transition: transform 0.5s var(--ease-out);
}

.is-visible .section__title::after,
.section__title:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* === HERO BADGE PULSE RING === */
.hero__badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--clr-accent);
    opacity: 0;
    animation: ping 2.5s cubic-bezier(0, 0, .2, 1) infinite 1s;
    pointer-events: none;
}

.hero__badge {
    position: relative;
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: .4;
    }

    75%,
    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* === SOCIAL PROOF LOGOS HOVER === */
.logo-placeholder {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.logo-placeholder:hover {
    opacity: 1 !important;
    transform: scale(1.08);
    filter: grayscale(0);
    color: var(--clr-accent);
}

/* === LOADING DOTS (typing indicator in mockup) === */
.tg-typing {
    display: flex;
    gap: 4px;
    padding: var(--space-3) var(--space-4);
    background: var(--clr-surface);
    border-radius: 4px var(--radius-md) var(--radius-md) var(--radius-md);
    width: fit-content;
    align-self: flex-start;
}

.tg-typing__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-accent);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.tg-typing__dot:nth-child(2) {
    animation-delay: .16s;
}

.tg-typing__dot:nth-child(3) {
    animation-delay: .32s;
}

/* === GRADIENT HEADER SCROLL GLOW === */
.header.is-scrolled {
    box-shadow: 0 4px 32px rgba(42, 171, 238, .12);
}

/* === STAGGER UTILITY CLASSES (set by JS) === */
.stagger-1 {
    animation-delay: 60ms !important;
}

.stagger-2 {
    animation-delay: 120ms !important;
}

.stagger-3 {
    animation-delay: 180ms !important;
}

.stagger-4 {
    animation-delay: 240ms !important;
}

.stagger-5 {
    animation-delay: 300ms !important;
}

.stagger-6 {
    animation-delay: 360ms !important;
}

/* === FINAL CTA GLOW ORB (::before) === */
.final-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(42, 171, 238, .15) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbPulse 5s ease-in-out infinite;
    pointer-events: none;
}

/* ================================================================
   24. CURSOR GLOW
   ================================================================ */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(42, 171, 238, .10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s linear;
    will-change: transform;
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* ================================================================
   25. SCROLL PROGRESS BAR
   ================================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-accent), #59d0ff, var(--clr-accent));
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
    z-index: 10000;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    box-shadow: 0 0 8px rgba(42, 171, 238, .6);
    transition: width 0.1s linear;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* ================================================================
   26. PARTICLE CANVAS
   ================================================================ */
.hero__particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

/* ================================================================
   27. WORD-BY-WORD HERO HEADING REVEAL
   ================================================================ */
.hero__heading .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(24px);
    animation: wordReveal 0.6s var(--ease-out) forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   28. SPLIT TEXT — CHAR REVEAL
   ================================================================ */
.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(16px) rotate(3deg);
    animation: charReveal 0.4s var(--ease-out) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* ================================================================
   29. RIPPLE ON CLICK
   ================================================================ */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    background: rgba(255, 255, 255, .35);
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================================================================
   30. MAGNETIC BUTTON — subtle tilt (JS-controlled via style)
   ================================================================ */
.btn {
    will-change: transform;
}

/* ================================================================
   31. 3D TILT CARD
   ================================================================ */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
    will-change: transform;
}

.tilt-card__inner {
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
}

/* ================================================================
   32. COUNTER NUMBER
   ================================================================ */
.counter-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ================================================================
   33. ENHANCED SECTION TRANSITIONS
   ================================================================ */

/* Alternating slide directions */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: none;
}

/* ================================================================
   34. GRADIENT TEXT (Removed due to inline-block conflict)
   ================================================================ */


/* ================================================================
   35. GLOWING STEP NUMBERS
   ================================================================ */
.step__number {
    animation: stepGlow 3s ease-in-out infinite alternate;
}

@keyframes stepGlow {
    from {
        box-shadow: var(--shadow-accent);
    }

    to {
        box-shadow: 0 0 20px rgba(42, 171, 238, .7), 0 0 40px rgba(42, 171, 238, .3);
    }
}

/* ================================================================
   36. HOVER CARD SPOTLIGHT (mouse-position glow via inline style)
   ================================================================ */
.card-spotlight {
    position: relative;
    overflow: hidden;
}

.card-spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(42, 171, 238, .10),
            transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.card-spotlight:hover::after {
    opacity: 1;
}

/* ================================================================
   37. ANIMATED GRADIENT HERO BACKGROUND
   ================================================================ */
.hero {
    background: linear-gradient(160deg,
            var(--clr-bg) 0%,
            var(--clr-accent-light) 50%,
            var(--clr-bg) 100%);
    background-size: 400% 400%;
    animation: heroBgShift 12s ease infinite;
}

[data-theme="dark"] .hero {
    background: linear-gradient(160deg,
            var(--clr-bg) 0%,
            rgba(42, 171, 238, .10) 50%,
            var(--clr-bg) 100%);
    background-size: 400% 400%;
    animation: heroBgShift 12s ease infinite;
}

@keyframes heroBgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ================================================================
   38. FEATURE CARD HIGHLIGHT STRIPE
   ================================================================ */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), #59d0ff);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
    transform-origin: left;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

/* ================================================================
   39. SOCIAL PROOF MARQUEE-STYLE FADE
   ================================================================ */
.social-proof__logos {
    animation: fadeInUp 0.8s 0.2s var(--ease-out) both;
}

.social-proof__logo-item {
    opacity: 0;
    animation: logoFadeIn 0.6s var(--ease-out) forwards;
}

.social-proof__logo-item:nth-child(1) {
    animation-delay: 0.3s;
}

.social-proof__logo-item:nth-child(2) {
    animation-delay: 0.45s;
}

.social-proof__logo-item:nth-child(3) {
    animation-delay: 0.6s;
}

.social-proof__logo-item:nth-child(4) {
    animation-delay: 0.75s;
}

.social-proof__logo-item:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.9);
    }

    to {
        opacity: .5;
        transform: translateY(0) scale(1);
    }
}

/* ================================================================
   40. DARK MODE AURORA HERO
   ================================================================ */
[data-theme="dark"] .hero {
    background: linear-gradient(125deg,
            #0e1520 0%,
            #0a1628 25%,
            #0d1f35 50%,
            #091420 75%,
            #0e1520 100%);
    background-size: 400% 400%;
    animation: auroraShift 16s ease infinite;
}

@keyframes auroraShift {
    0% {
        background-position: 0% 50%;
    }

    33% {
        background-position: 100% 30%;
    }

    66% {
        background-position: 50% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Aurora blobs in dark mode */
[data-theme="dark"] .hero::before {
    background: radial-gradient(ellipse, rgba(42, 171, 238, .22) 0%, rgba(89, 208, 255, .08) 40%, transparent 70%);
    animation: orbPulse 7s ease-in-out infinite;
    width: 600px;
    height: 600px;
}

[data-theme="dark"] .hero::after {
    background: radial-gradient(ellipse, rgba(100, 60, 220, .18) 0%, rgba(42, 171, 238, .06) 40%, transparent 70%);
    animation: orbPulse 9s ease-in-out infinite reverse;
    width: 450px;
    height: 450px;
    bottom: -50px;
    left: -80px;
}

/* ================================================================
   41. GLASSMORPHISM CARDS (dark mode)
   ================================================================ */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .integration-card {
    background: rgba(25, 38, 58, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(42, 171, 238, .15);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .integration-card:hover {
    border-color: rgba(42, 171, 238, .5);
    box-shadow: 0 16px 40px rgba(42, 171, 238, .15), 0 0 0 1px rgba(42, 171, 238, .3);
}

[data-theme="dark"] .pricing-card {
    background: rgba(25, 38, 58, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(42, 171, 238, .12);
}

[data-theme="dark"] .pricing-card--popular {
    background: linear-gradient(160deg, rgba(25, 38, 58, .9) 60%, rgba(42, 171, 238, .12));
    border-color: rgba(42, 171, 238, .6);
    box-shadow: 0 0 0 1px rgba(42, 171, 238, .4), 0 0 40px rgba(42, 171, 238, .12), var(--shadow-lg);
}

/* ================================================================
   42. NEON GLOW TEXT (dark mode)
   ================================================================ */
[data-theme="dark"] .hero__heading-line--accent {
    animation: darkNeonPulseGlow 2.5s ease-in-out infinite alternate;
}

@keyframes darkNeonPulseGlow {
    0% {
        color: var(--clr-accent);
        text-shadow: 0 0 10px rgba(42, 171, 238, 0.4), 0 0 20px rgba(42, 171, 238, 0.2);
    }

    100% {
        color: #8ce0ff;
        text-shadow: 0 0 15px rgba(140, 224, 255, 0.8), 0 0 30px rgba(140, 224, 255, 0.5), 0 0 45px rgba(140, 224, 255, 0.3);
    }
}

[data-theme="dark"] .section__title {
    animation: darkNeonPulseGlow 3s ease-in-out infinite alternate;
    color: var(--clr-text);
    /* Fallback base color */
}

[data-theme="dark"] .step__number {
    box-shadow: var(--shadow-accent), 0 0 24px rgba(42, 171, 238, .4);
}

/* ================================================================
   43. ANIMATED BORDER ON HIGHLIGHTED FEATURE CARD
   ================================================================ */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

[data-theme="dark"] .feature-card--highlight {
    border: 1px solid transparent;
    background:
        linear-gradient(rgba(25, 38, 58, 1), rgba(25, 38, 58, 1)) padding-box,
        conic-gradient(from var(--angle), var(--clr-accent), #59d0ff, #9f60ff, var(--clr-accent)) border-box;
    animation: rotateBorder 4s linear infinite, shimmerBorder 3s ease-in-out infinite, floatSlow 5s ease-in-out infinite;
}

@keyframes rotateBorder {
    to {
        --angle: 360deg;
    }
}

/* ================================================================
   44. ENHANCED SCROLL TIMELINE (view-timeline where supported)
   ================================================================ */


/* ================================================================
   45. SECTION DIVIDERS — wave animation
   ================================================================ */
.section::before {
    content: none;
}

/* Glowing top border on alternating sections */
.section--muted {
    position: relative;
}

.section--muted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
    opacity: .3;
}

/* ================================================================
   46. PULSE RING ON FEATURE BADGE
   ================================================================ */
.feature-card__badge {
    animation: badgePulseFull 2s ease-in-out infinite;
}

@keyframes badgePulseFull {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(42, 171, 238, .4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(42, 171, 238, 0);
    }
}

/* ================================================================
   47. TILT PERSPECTIVE ON MOCKUP
   ================================================================ */
.hero__visual {
    perspective: 1200px;
}

.tg-mockup {
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s ease;
}

/* ================================================================
   48. ENHANCED BUTTON STATES
   ================================================================ */
.btn--primary:active {
    transform: scale(0.96) translateY(1px) !important;
    transition: transform 0.1s ease;
}

.btn--outline:hover {
    box-shadow: 0 0 20px rgba(42, 171, 238, .35), 0 8px 20px rgba(0, 0, 0, .15);
}

/* ================================================================
   49. ANIMATED COUNTER SECTION
   ================================================================ */
.hero__social-proof {
    position: relative;
}

.hero__social-proof::before {
    content: '';
    position: absolute;
    inset: -8px -16px;
    border-radius: var(--radius-md);
    background: rgba(42, 171, 238, .05);
    border: 1px solid rgba(42, 171, 238, .1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero__social-proof:hover::before {
    opacity: 1;
}

/* ================================================================
   50. MOBILE RESPONSIVE FEATURES GRID
   ================================================================ */
@media (max-width: 639px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   51. TESTIMONIALS MARQUEE
   ================================================================ */

/* Section wrapper — normal layout */
.testimonials {
    overflow: hidden;
    /* clip marquee edges */
}

/* Full-width marquee container */
.testimonials__marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: var(--space-4);
    max-width: 100vw;
    /* Premium fade-out effect on edges */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    padding-block: var(--space-2);
}

/* Hide the old gradient fade divs — using mask-image now */
.testimonials__fade {
    display: none;
}

.testimonials__fade--left {
    left: 0;
    background: linear-gradient(to right, var(--clr-bg) 0%, transparent 100%);
}

.testimonials__fade--right {
    right: 0;
    background: linear-gradient(to left, var(--clr-bg) 0%, transparent 100%);
}

/* The scrolling belt  flex row */
.testimonials__marquee {
    display: flex;
    width: max-content;
    /* Increased duration for 3 sets to keep it smooth */
    animation: marquee-scroll 60s linear infinite;
    will-change: transform;
}

.testimonials__marquee:hover,
.testimonials__marquee:focus-within {
    animation-play-state: paused;
}

/* Each track is one full set of cards */
.testimonials__track {
    display: flex;
    gap: clamp(1.5rem, 2vw, 2.5rem);
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Individual card */
.testimonial-card {
    flex: 0 0 clamp(320px, 24vw, 480px);
    width: clamp(320px, 24vw, 480px);
    background: rgba(25, 38, 58, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
    cursor: default;
    list-style: none;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(42, 171, 238, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(42, 171, 238, 0.4);
    background: rgba(25, 38, 58, 0.6);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(42, 171, 238, 0.15);
}

/* Stars */
.testimonial-card__stars {
    color: #f5c518;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.testimonial-card__stars::before {
    content: "★★★★★";
}

.testimonial-card__stars[data-rating="4"]::before {
    content: "★★★★☆";
}

/* Quote */
.testimonial-card__quote {
    flex: 1;
}

.testimonial-card__quote p {
    font-size: var(--text-sm);
    line-height: var(--lh-normal);
    color: var(--clr-text-secondary);
}

/* Footer: avatar + name */
.testimonial-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--clr-surface-2);
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card__avatar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    opacity: 0.8;
}

.testimonial-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-card__name {
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--clr-accent);
}

.testimonial-card__role {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

/* ---- The keyframe animation ---- */
/* With 3 sets of cards, we scroll by exactly 1/3 of the total width 
   to reach the start of the second set seamlessly. */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* Removed prefers-reduced-motion override to force the marquee animation */

/* Mobile: narrow cards */
@media (max-width: 600px) {
    .testimonial-card {
        flex: 0 0 260px;
        width: 260px;
        padding: var(--space-4);
    }

    .testimonials__fade {
        width: 40px;
    }
}

/* ================================================================
   52. DEV BANNER  active development notice
   ================================================================ */

.dev-banner {
    position: relative;
    z-index: 200;
    width: 100%;
    background: linear-gradient(90deg,
            rgba(10, 14, 26, 0.97) 0%,
            rgba(18, 26, 48, 0.97) 50%,
            rgba(10, 14, 26, 0.97) 100%);
    border-bottom: 1px solid rgba(42, 171, 238, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 40px 6px 12px;
    overflow: hidden;
    /* pulsing glow on the border */
    animation: dev-banner-glow 3s ease-in-out infinite;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    max-height: 60px;
}

.dev-banner.is-hidden {
    opacity: 0;
    max-height: 0;
    padding: 0;
    pointer-events: none;
    border: none;
}

/* ambient glow line along the bottom border */
@keyframes dev-banner-glow {

    0%,
    100% {
        box-shadow: inset 0 -1px 0 rgba(42, 171, 238, 0.25), 0 2px 20px rgba(42, 171, 238, 0.06);
    }

    50% {
        box-shadow: inset 0 -1px 0 rgba(42, 171, 238, 0.6), 0 2px 30px rgba(42, 171, 238, 0.18);
    }
}

/* scanning light sweep */
.dev-banner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(90deg, transparent, rgba(42, 171, 238, 0.08), transparent);
    animation: dev-banner-sweep 4s linear infinite;
    pointer-events: none;
}

@keyframes dev-banner-sweep {
    from {
        left: -120px;
    }

    to {
        left: 100%;
    }
}

/* Inner flex row */
.dev-banner__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Bouncing lightning icon */
.dev-banner__icon {
    font-size: 1.1rem;
    display: inline-block;
    animation: dev-icon-bounce 1.4s cubic-bezier(.36, .07, .19, .97) infinite;
    filter: drop-shadow(0 0 6px rgba(42, 171, 238, 0.8));
    flex-shrink: 0;
}

@keyframes dev-icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-5px);
    }

    40% {
        transform: translateY(0);
    }

    60% {
        transform: translateY(-3px);
    }

    80% {
        transform: translateY(0);
    }
}

/* Text */
.dev-banner__text {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    margin: 0;
    /* subtle pulse on the text colour */
    animation: dev-text-pulse 3s ease-in-out infinite;
}

@keyframes dev-text-pulse {

    0%,
    100% {
        color: rgba(255, 255, 255, 0.65);
    }

    50% {
        color: rgba(255, 255, 255, 0.92);
    }
}

/* "Beta" badge */
.dev-banner__badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(42, 171, 238, 0.15);
    border: 1px solid rgba(42, 171, 238, 0.4);
    color: #2AABEE;
    white-space: nowrap;
    animation: dev-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes dev-badge-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(42, 171, 238, 0.3);
        border-color: rgba(42, 171, 238, 0.4);
    }

    50% {
        box-shadow: 0 0 12px 2px rgba(42, 171, 238, 0.25);
        border-color: rgba(42, 171, 238, 0.8);
    }
}

/* Close button */
.dev-banner__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.dev-banner__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
    .dev-banner__text {
        font-size: 0.72rem;
        text-align: center;
    }
}