/* CSS Variables */
:root {
    /* Breakpoints (for reference; media queries use raw values) */
    --bp-xs: 360px;
    --bp-sm: 480px;
    --bp-md: 620px;
    --bp-lg: 768px;
    --bp-xl: 900px;
    --bp-2xl: 1024px;
    --bp-3xl: 1200px;

    /* Trustworthy palette (navy + clean blues/teal) */
    /* Fintech-style trustworthy blues (2026) */
    --primary-color: #048cfc;   /* action/links */
    --dark-bg: #081a2a;         /* deep navy */
    --light-bg: #ffffff;
    --accent-blue: #05478a;     /* deep trust blue */
    --accent-teal: #5694de;     /* supportive blue (kept name for compatibility) */
    --accent-success: #28a745;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #b4bdc6;
    --card-bg: rgba(26, 39, 58, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.4s;
    --section-pad-y: 96px;
    --section-scroll-offset: 110px; /* fixed header offset for anchors */

    /* Fonts */
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Main page scrollbar (match site palette) */
html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(25, 146, 255, 0.90) rgba(255, 255, 255, 0.07);
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1992ff, var(--primary-color));
    border-radius: 999px;
    border: 3px solid rgba(6, 15, 26, 0.85);
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3aa7ff, #1992ff);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    /* Safe area for notched devices */
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
}

/* Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--dark-bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: blob-float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--accent-teal);
    bottom: -50px;
    left: -50px;
    animation-duration: 25s;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: 40%;
    left: 30%;
    animation-duration: 30s;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

section {
    /* Consistent section spacing (no forced 100vh blocks) */
    min-height: auto;
    display: block;
    padding: var(--section-pad-y) 0;
}

/* When jumping to anchors, keep section content below fixed header */
main > section {
    scroll-margin-top: var(--section-scroll-offset);
}

main {
    padding-top: clamp(70px, 12vw, 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

h1, h2, h3 {
    font-weight: 700;
    font-family: var(--font-display);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

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

.dark-bg {
    background-color: transparent;
    color: var(--text-light);
}

.light-bg {
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    color: var(--text-dark);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-light);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 26px;
    white-space: nowrap; /* keep CTA text on one line */
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    background-color: rgba(6, 15, 26, 0.55);
    color: var(--text-light);
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        7px 7px 14px rgba(0, 0, 0, 0.62),
        -5px -5px 12px rgba(255, 255, 255, 0.06),
        inset 1px 1px 1px rgba(255, 255, 255, 0.10),
        inset -1px -1px 1px rgba(0, 0, 0, 0.55);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
    text-decoration: none;
    user-select: none;
}

.cta-btn:hover {
    border-color: rgba(4, 140, 252, 0.28);
    transform: translateY(-1px);
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.66),
        -6px -6px 14px rgba(255, 255, 255, 0.07),
        inset 1px 1px 1px rgba(255, 255, 255, 0.12),
        inset -1px -1px 1px rgba(0, 0, 0, 0.55);
}

.cta-btn:active {
    transform: translateY(0px);
    box-shadow:
        inset 7px 7px 14px rgba(0, 0, 0, 0.62),
        inset -5px -5px 12px rgba(255, 255, 255, 0.06);
}

.cta-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(4, 140, 252, 0.28),
        7px 7px 14px rgba(0, 0, 0, 0.62),
        -5px -5px 12px rgba(255, 255, 255, 0.06),
        inset 1px 1px 1px rgba(255, 255, 255, 0.10),
        inset -1px -1px 1px rgba(0, 0, 0, 0.55);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header */
.header {
    position: fixed;
    top: clamp(10px, 2vw, 20px);
    /* Centered pill, not full-width */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(980px, calc(100% - 24px));
    z-index: 1000;
    background: rgba(11, 22, 38, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* Exact 10px from the OUTER border edge:
       1px border + 9px padding = 10px */
    padding: 9px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.header .container {
    /* Override global container padding inside header */
    padding: 0;
    max-width: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative !important;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1px;
    position: relative !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    flex: 0 0 auto;
    display: block;
    width: 22px;
    height: 22px;
    /* Keep it crisp on dark backgrounds */
    filter: none;
    opacity: 0.92;
    transition: filter 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.header .logo-img {
    /* 22px * 1.9 = 41.8px */
    width: 41.8px;
    height: 41.8px;
    /* Match section title color (white) */
    filter:
        brightness(0) invert(1)
        /* Subtle "thickness" (not an outline) */
        drop-shadow(0 0 1.1px rgba(255, 255, 255, 0.55));
    opacity: 0.98;
    margin-left: 10px;
}

.header .logo:hover .logo-img {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 0 1.1px rgba(255, 255, 255, 0.55))
        drop-shadow(0 0 10px rgba(25, 146, 255, 0.40))
        drop-shadow(0 0 24px rgba(4, 140, 252, 0.28));
    transform: translateY(-1px);
}

.footer .logo-img {
    /* Match header logo size */
    width: 41.8px;
    height: 41.8px;
    filter: brightness(0) invert(1);
    opacity: 0.98;
    cursor: pointer;
}

.footer .footer-logo:hover .logo-img {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 0 10px rgba(25, 146, 255, 0.36))
        drop-shadow(0 0 24px rgba(4, 140, 252, 0.24));
    transform: translateY(-1px);
}

/* Extra safety: glow even if hovering directly on the image */
.footer .logo-img:hover {
    filter:
        brightness(0) invert(1)
        drop-shadow(0 0 10px rgba(25, 146, 255, 0.36))
        drop-shadow(0 0 24px rgba(4, 140, 252, 0.24));
}

.logo-text {
    display: inline-block;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    position: relative !important;
    margin-top: 0;
    /* If navbar content ever overflows, scroll it with themed scrollbar */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(25, 146, 255, 0.90) rgba(255, 255, 255, 0.07);
    scrollbar-gutter: stable;
}

.nav-links::-webkit-scrollbar {
    height: 10px;
}

.nav-links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1992ff, var(--primary-color));
    border-radius: 999px;
    border: 2px solid rgba(6, 15, 26, 0.85);
}

.nav-links::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3aa7ff, #1992ff);
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative !important;
    display: flex;
    align-items: center;
    line-height: 1;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active {
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 9999px;
}

/* Header CTA should not get "active link" styling */
.nav-links a.pricing-cta,
.nav-links a.pricing-cta:hover,
.nav-links a.pricing-cta.active {
    color: var(--text-light) !important;
    text-transform: none;
    letter-spacing: 0.2px;
}

.nav-links a.pricing-cta::after,
.nav-links a.pricing-cta.active::after {
    display: none !important;
}

/* Neumorphic Button */
.neumorphic-btn {
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    padding: 17px 30px !important;
    border-radius: 9999px;
    border: none;
    box-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.2),
        -3px -3px 6px rgba(0, 136, 204, 0.2),
        inset 1px 1px 2px rgba(0, 0, 0, 0.1),
        inset -1px -1px 2px rgba(255, 255, 255, 0.05);
    color: var(--text-light) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    margin-right: 0 !important;
}

.neumorphic-btn:hover {
    background: #036fcb;
    box-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.25),
        -4px -4px 8px rgba(0, 136, 204, 0.25),
        inset -1px -1px 2px rgba(255, 255, 255, 0.1),
        inset 1px 1px 2px rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
    color: var(--text-light) !important;
}

.neumorphic-btn:active {
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.2),
        inset -3px -3px 6px rgba(255, 255, 255, 0.05);
    transform: translateY(2px);
}

.neumorphic-btn.active {
    background: var(--primary-color);
    color: var(--text-light) !important;
    box-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.2),
        -2px -2px 4px rgba(0, 136, 204, 0.2),
        inset 1px 1px 2px rgba(0, 0, 0, 0.1),
        inset -1px -1px 2px rgba(255, 255, 255, 0.05);
}

.neumorphic-btn.active::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative !important;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    /* Hero and everything below moved 100px up (was 230px top padding) */
    padding: 130px 0 85px;
    margin-top: 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    justify-items: center;
    position: relative;
    /* Add outer breathing room so the pill doesn't hit viewport edges */
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    padding: clamp(22px, 4vw, 40px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
    overflow: hidden;
}

.hero-container::before {
    /* glass highlight */
    content: '';
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(900px 260px at 20% 20%, rgba(4,140,252,0.18), transparent 60%),
        radial-gradient(900px 260px at 80% 30%, rgba(86,148,222,0.14), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.00));
    opacity: 0.9;
    pointer-events: none;
}

.hero-container > * {
    position: relative;
    z-index: 1;
}

/* Hero container: keep static (no hover/active lift) */
.hero-container:hover,
.hero-container:active {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transform: none;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    max-width: 820px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 41px;
}

.hero-content > * {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2rem, 5.2vw, 3.7rem);
    line-height: 1.08;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    text-wrap: balance;
}

.hero-content h1 .word-boring,
.hero-content h1 .word-dumb {
    display: inline-block;
}

/* "Скучные" = визуально скучно: блекло, почти монохромно */
.hero-content h1 .word-boring {
    background: linear-gradient(180deg, rgba(180,189,198,0.95) 0%, rgba(180,189,198,0.55) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgba(180,189,198,0.35);
    text-underline-offset: 0.22em;
    text-decoration-thickness: 2px;
    filter: saturate(0.35) contrast(0.98);
}

/* "Тупые" = проблемно/опасно: теплый акцент + волнистое подчеркивание */
.hero-content h1 .word-dumb {
    /* Pale, muted yellow accent */
    background: linear-gradient(180deg, rgba(246, 222, 150, 0.95) 0%, rgba(214, 190, 120, 0.70) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: rgba(246, 222, 150, 0.45);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 2px;
    text-shadow: 0 0 18px rgba(246, 222, 150, 0.10);
}

.hero-lead {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 39px;
    width: 100%;
    max-width: 62ch;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: var(--text-muted);
    justify-content: center;
    margin-inline: auto;
}

.hero-lead__text {
    font-size: calc(1em + 2px);
    line-height: 1.35;
    text-wrap: balance;
}

.hero-lead__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.hero-lead__cta::before,
.hero-lead__cta::after {
    content: '';
    height: 1px;
    width: clamp(28px, 9vw, 84px);
    background: linear-gradient(90deg, rgba(180,189,198,0.0), rgba(180,189,198,0.35), rgba(4,140,252,0.55));
    opacity: 0.9;
}

.hero-lead__cta::after {
    background: linear-gradient(90deg, rgba(4,140,252,0.55), rgba(180,189,198,0.35), rgba(180,189,198,0.0));
}

.hero-lead__cta:hover::before {
    background: linear-gradient(90deg, rgba(180,189,198,0.0), rgba(180,189,198,0.25), rgba(4,140,252,0.85));
}

.hero-lead__cta:hover::after {
    background: linear-gradient(90deg, rgba(4,140,252,0.85), rgba(180,189,198,0.25), rgba(180,189,198,0.0));
}

@media (max-width: 800px) {
    .hero-lead__cta .cta-btn--inline.pricing-cta {
        padding: 13px 40px !important;
        font-size: 1.05rem !important;
        min-height: 52px !important;
    }
}

.cta-btn--inline {
    font-size: 1.1125rem;
    padding: 14px 44px;
    font-weight: 700;
    letter-spacing: 0.2px;
    position: relative;
    /* CTA-colored background (trustworthy blue) */
    background-color: var(--primary-color);
    background-image: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(0,0,0,0.10));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.58),
        -3px -3px 7px rgba(255, 255, 255, 0.10),
        inset 1px 1px 1px rgba(255, 255, 255, 0.22),
        inset -1px -1px 1px rgba(0, 0, 0, 0.26);
}

.cta-btn--inline:hover {
    background-color: #036fcb;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.62),
        -3px -3px 8px rgba(255, 255, 255, 0.12),
        inset 1px 1px 1px rgba(255, 255, 255, 0.24),
        inset -1px -1px 1px rgba(0, 0, 0, 0.26);
}

.cta-btn--inline:active {
    background-color: #0366be;
    box-shadow:
        inset 5px 5px 10px rgba(0, 0, 0, 0.58),
        inset -3px -3px 8px rgba(255, 255, 255, 0.10);
}

.cta-btn--inline.pulse {
    /* keep a lighter pulse so it doesn't fight the text */
    animation: pulse-animation 2.4s ease-in-out infinite;
}

.hero-placeholder {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-bg) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-mockup {
    background: #142338;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.ui-header {
    background: #0e1b2d;
    padding: 10px 15px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.ui-messages {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.msg.received {
    background: #0e1b2d;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.sent {
    background: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Features */
.features {
    padding: var(--section-pad-y) 0;
    background: transparent; /* same as main page background */
}

/* Safety: if #features ever has light-bg, neutralize it */
#features.light-bg {
    background-color: transparent;
    backdrop-filter: none;
}

.features-grid {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Medium: 2×2 so four cards fit without overflow */
@media (max-width: 1300px) and (min-width: 769px) {
    .features-grid {
        flex-wrap: wrap;
    }
    .feature-card {
        flex: 1 1 calc(50% - 15px);
        min-width: 260px;
        max-width: 100%;
    }
}

.features-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.feature-card {
    flex: 1;
    min-width: 290px;
    padding: 40px;
    background: rgba(26, 39, 58, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 30px;
    text-align: center;
    transition: var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 15px rgba(0,0,0,0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 18px rgba(0,0,0,0.3);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
}

.features .section-title {
    color: var(--text-light);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Bot Types */
.bot-types {
    padding: var(--section-pad-y) 0;
}

.bot-types > .container {
    position: relative;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.bot-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-speed);
}

.bot-tab.active {
    background: var(--primary-color);
    /* Match the header CTA fill (blue + subtle highlight) */
    background-image:
        linear-gradient(145deg, rgba(255,255,255,0.22), rgba(0,0,0,0.12)),
        radial-gradient(180px 60px at 30% 30%, rgba(255,255,255,0.25), transparent 70%);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4);
}

/* Inactive tab hover: slightly dimmer (no bright "active" look) */
.bot-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(180, 189, 198, 0.88);
    box-shadow: none;
    filter: brightness(0.96);
}

.tabs-content {
    background: rgba(26, 39, 58, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 50px;
    min-height: 300px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.tabs-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.tabs-actions .cta-btn {
    flex-shrink: 0;
    margin-top: 15px;
}

.bot-content {
    display: none;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bot-content.active {
    display: block;
}

.bot-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 0 18px rgba(4, 140, 252, 0.18);
}

.bot-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.bot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bot-features li {
    position: relative;
    padding-left: 25px;
}

.bot-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    border-radius: 9999px;
}

/* Cases */
.cases {
    padding: var(--section-pad-y) 0;
    overflow: hidden;
}

/* Safety: if #cases ever has light-bg, neutralize it */
#cases.light-bg {
    background-color: transparent;
    backdrop-filter: none;
}

.cases-container {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2 rows on large screens (7 logos = 4 + 3); rows with fewer items stay centered */
.logos-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    position: relative;
}

/* So that 4 fit per row on large screens; second row (3 items) is then centered */
.logos-cloud .cloud-logo {
    flex: 0 0 auto;
}

.cloud-logo {
    position: static;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: var(--transition-speed);
    cursor: default;
}

.cloud-logo:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .cloud-logo {
        font-size: 0.8rem;
    }
}

/* Testimonials */
.testimonials {
    padding: var(--section-pad-y) 0;
}

.works {
    padding: var(--section-pad-y) 0;
}

.works-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
}

.work-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(16px, 3vw, 22px);
    padding: clamp(14px, 2.5vw, 18px);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
    will-change: transform;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: rgba(25, 146, 255, 0.32);
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.34),
        0 0 0 3px rgba(25, 146, 255, 0.10);
}

.work-card:hover .work-tag {
    border-color: rgba(25, 146, 255, 0.22);
}

.work-card:focus-within {
    outline: none;
    border-color: rgba(25, 146, 255, 0.40);
    box-shadow:
        0 22px 70px rgba(0, 0, 0, 0.34),
        0 0 0 3px rgba(25, 146, 255, 0.16);
}

.work-head {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.work-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    font-size: 1.1rem;
}

.work-title {
    font-weight: 900;
    letter-spacing: -0.2px;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 12px;
}

.work-sub {
    margin-top: 0;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.35;
}

.work-bot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    font-size: 0.9rem;
}

.work-bot-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    text-underline-offset: 0.18em;
}

.work-bot-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(25, 146, 255, 0.55);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 15, 26, 0.38);
    color: rgba(255, 255, 255, 0.80);
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    white-space: nowrap;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
    .work-card,
    .work-tag {
        transition: none !important;
    }
    .work-card:hover {
        transform: none !important;
    }
}

.works-actions {
    margin-top: 24px;
    display: grid;
    justify-items: center;
    padding-top: 10px;
}

.works-actions .cta-btn {
    margin-top: 10px;
}

/* Works: 3 cols → 2 cols at tablet → 1 col on mobile */
@media (max-width: 1100px) and (min-width: 601px) {
    .works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 900px) {
    .works-grid { grid-template-columns: 1fr; }
}

.testimonials-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25);
}

.testimonial-head {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    place-items: center;
}

.testimonial-avatar-emoji {
    font-size: 20px;
    line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transform: translateY(0.5px);
}

.testimonial-avatar-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.testimonial-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.testimonial-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.testimonial-name {
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-light);
    line-height: 1.1;
}

.testimonial-role {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-stars {
    margin-top: 4px;
    display: inline-flex;
    gap: 2px;
}

.testimonial-stars .star {
    font-size: 0.95rem;
    line-height: 1;
}

.testimonial-stars .star--filled {
    color: #ffd166;
    text-shadow: 0 0 14px rgba(255, 209, 102, 0.22);
}

.testimonial-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    font-weight: 500;
    font-size: calc(1em + 1px);
}

@media (max-width: 620px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    /* 3 reviews on small screens */
    .testimonial-card--hide-sm { display: none; }
}

/* Pricing */
.pricing {
    padding: var(--section-pad-y) 0;
}

.pricing > .container {
    /* Sections are flex globally; ensure pricing can grow full width */
    flex: 1;
    width: 100%;
}

.pricing-card {
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: clamp(28px, 5vw, 54px);
    padding-right: clamp(28px, 5vw, 54px);
    position: relative;
    overflow: visible; /* allow sticker to hang off */
}

.pricing-title {
    margin-top: -20px;
    margin-bottom: 58px;
}

.pricing-points {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 100%;
}

.pricing-points li {
    background: rgba(6, 15, 26, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 12px 12px 12px 42px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 650;
    position: relative;
    min-height: 48px;
    display: flex;
    align-items: center;
}

/* Ensure the text is shifted right (in case of overrides) */
.pricing-points li,
.pricing-point li {
    padding-left: 45px !important;
}

.pricing-points li::before {
    content: '✓';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 23px;
    height: 23px;
    border-radius: 9999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 1rem;
}

.pricing-price {
    /* Layout only (no visual styling) */
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.pricing-price::before {
    content: none;
}

.pricing-price::after {
    content: none;
}

@media (max-width: 900px) {
    .pricing-points { grid-template-columns: 1fr; }
    .pricing-points li { min-height: auto; }
}

.price-old {
    color: #eef2f8;
    font-weight: 800;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #eef2f8;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 8px 12px;
    border-radius: 9999px;
    position: relative;
    z-index: 1;
}

.price-arrow {
    font-family: var(--font-display);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.75);
    /* Draw a controllable arrow (not a glyph) – vertical on all screens */
    font-size: 0;
    line-height: 0;
    position: relative;
    z-index: 1;
    margin: 8px 0 14px;
    width: 22px;
    height: 44px;
}

.price-arrow::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 12px);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 9999px;
}

.price-arrow::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid rgba(255, 255, 255, 0.78);
}

.price-new {
    position: relative;
    top: -10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.7rem, 6vw, 3.9rem);
    letter-spacing: -1px;
    /* Readable on CTA-colored pill */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    line-height: 1;
    border-radius: 9999px;
    overflow: hidden; /* keep hover shine inside the pill */
    /* Add contrast so it never "looks" transparent on a bright panel */
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.28),
        0 0 14px rgba(0, 0, 0, 0.24),
        0 0 28px rgba(4, 140, 252, 0.20);
    position: relative;
    z-index: 1;
    animation: none;
    isolation: isolate;
    transition: transform 0.22s ease, filter 0.22s ease;
    will-change: transform;
    filter:
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.14))
        drop-shadow(0 0 34px rgba(207, 215, 230, 0.14));
}

/* Premium highlight behind the new price */
.price-new::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
    transform: translateX(-140%) rotate(10deg);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.price-new::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: calc(100% + 18px);
    height: calc(100% + 6px);
    border-radius: 9999px;
    border: none;
    background: linear-gradient(145deg, #3aa7ff, var(--primary-color), #036fcb);
    box-shadow:
        /* outer neu */
        10px 10px 22px rgba(0, 0, 0, 0.42),
        -10px -10px 22px rgba(255, 255, 255, 0.06),
        /* inner glass */
        inset 2px 2px 2px rgba(255, 255, 255, 0.16),
        inset -2px -2px 2px rgba(0, 0, 0, 0.30),
        0 0 0 1px rgba(0, 0, 0, 0);
    opacity: 1;
    z-index: -1;
    pointer-events: none;
}

@keyframes price-new-aura {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}

@keyframes price-new-shine {
    0% { transform: translateX(-140%) rotate(10deg); opacity: 0; }
    20% { opacity: 0.75; }
    100% { transform: translateX(140%) rotate(10deg); opacity: 0; }
}

/* Extra nice hover animation for the price pill */
.pricing-card:hover .price-new,
.price-new:hover {
    transform: translateY(-1px) scale(1.01);
    filter:
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.16))
        drop-shadow(0 0 36px rgba(207, 215, 230, 0.16))
        drop-shadow(0 0 26px rgba(4, 140, 252, 0.18));
}

.pricing-card:hover .price-new::after,
.price-new:hover::after {
    animation: price-new-aura 1.15s ease-in-out infinite;
}

.pricing-card:hover .price-new::before,
.price-new:hover::before {
    opacity: 1;
    animation: price-new-shine 1.25s ease-out 1;
}

.pricing-timer {
    /* Discount sticker – compact position on all screens */
    position: absolute;
    top: -18px;
    right: clamp(-28px, -4vw, -33px);
    text-align: center;
    padding: 8px 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Simplified palette: blue-only sticker */
    background: linear-gradient(145deg, #048cfc, #05478a);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
    transform: rotate(4deg);
    transform-origin: top right;
    z-index: 2;
    overflow: hidden;
    animation: pricing-sticker-glow 1.6s ease-in-out infinite;
}

.pricing-timer::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
    transform: translateX(-120%) rotate(8deg);
    animation: pricing-sticker-shine 2.4s linear infinite;
    pointer-events: none;
    opacity: 0.9;
}

.timer-label {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    animation: pricing-label-pulse 1.1s ease-in-out infinite;
    text-shadow:
        0 0 14px rgba(255, 255, 255, 0.22),
        0 0 22px rgba(4, 140, 252, 0.22);
}

.timer-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(0, 0, 0, 0.18);
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.95);
    min-width: auto;
}

.pricing-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.pricing-card .pricing-actions .cta-btn {
    margin-top: 15px;
}

/* Pricing warm-up */
.pricing-warm {
    margin: 12px auto 22px;
    max-width: 980px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* Simplified palette: blue-silver glass */
    background:
        radial-gradient(700px 140px at 20% 0%, rgba(4, 140, 252, 0.16), transparent 62%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.32),
        0 0 26px rgba(4, 140, 252, 0.12);
    position: relative;
    z-index: 0;
    isolation: isolate;
    overflow: hidden;
    animation: pricing-warm-breathe 2.4s ease-in-out infinite;
}

.pricing-warm strong {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(4, 140, 252, 0.20);
}

@keyframes pricing-warm-breathe {
    0%, 100% { transform: translateZ(0) scale(1); }
    50% { transform: translateZ(0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-warm,
    .pricing-warm::before,
    .pricing-warm::after {
        animation: none !important;
    }
}

.pricing-cta {
    background-color: var(--primary-color);
    background-image:
        linear-gradient(145deg, rgba(255,255,255,0.22), rgba(0,0,0,0.12)),
        radial-gradient(180px 60px at 30% 30%, rgba(255,255,255,0.25), transparent 70%);
    /* Make the button ~40px wider overall */
    padding-left: 64px;
    padding-right: 64px;
    /* Slightly bigger CTA */
    font-size: calc(1em + 1px);
    min-height: 56px; /* +5px vs ~51px */
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 14px 34px rgba(4, 140, 252, 0.18),
        6px 6px 14px rgba(0, 0, 0, 0.50),
        -4px -4px 12px rgba(255, 255, 255, 0.08),
        inset 1px 1px 1px rgba(255, 255, 255, 0.22),
        inset -1px -1px 1px rgba(0, 0, 0, 0.26);
    /* Smooth "jiggle" (no vertical movement) */
    animation: pricing-cta-float 1.9s linear infinite;
    will-change: transform;
    transform-origin: center;
}

.pricing-cta:hover {
    /* Neumorphic hover + nicer blue */
    /* Stop the jiggle and force a straight CTA on hover */
    animation: none !important;
    background-color: #1992ff;
    background-image:
        linear-gradient(145deg, rgba(255,255,255,0.26), rgba(0,0,0,0.10)),
        radial-gradient(200px 70px at 30% 30%, rgba(255,255,255,0.30), transparent 70%);
    box-shadow:
        0 12px 30px rgba(25, 146, 255, 0.20),
        12px 12px 24px rgba(0, 0, 0, 0.62),
        -10px -10px 22px rgba(255, 255, 255, 0.07),
        inset 2px 2px 2px rgba(255, 255, 255, 0.24),
        inset -2px -2px 2px rgba(0, 0, 0, 0.40);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px) scale(1.01) rotate(0deg);
}

.pricing-cta:active {
    animation: none !important;
    transform: translateY(0) scale(1.0) rotate(0deg);
    box-shadow:
        inset 10px 10px 22px rgba(0, 0, 0, 0.60),
        inset -8px -8px 18px rgba(255, 255, 255, 0.07);
}

@keyframes pricing-holo {
    0%, 100% { transform: translateX(-14%) rotate(12deg); opacity: 0.75; }
    50% { transform: translateX(14%) rotate(12deg); opacity: 0.95; }
}

@keyframes pricing-price-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes pricing-cta-float {
    /* Smooth wave-like jiggle (no Y movement) */
    0%     { transform: translate3d(0, 0, 0) rotate(0deg); }
    12.5%  { transform: translate3d(-1.2px, 0, 0) rotate(-0.45deg); }
    25%    { transform: translate3d(-2.0px, 0, 0) rotate(-0.7deg); }
    37.5%  { transform: translate3d(-1.2px, 0, 0) rotate(-0.45deg); }
    50%    { transform: translate3d(0, 0, 0) rotate(0deg); }
    62.5%  { transform: translate3d(1.2px, 0, 0) rotate(0.45deg); }
    75%    { transform: translate3d(2.0px, 0, 0) rotate(0.7deg); }
    87.5%  { transform: translate3d(1.2px, 0, 0) rotate(0.45deg); }
    100%   { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes pricing-label-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pricing-sticker-glow {
    0%, 100% { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35), 0 0 0 rgba(4, 140, 252, 0); }
    50% { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35), 0 0 26px rgba(4, 140, 252, 0.32); }
}

@keyframes pricing-sticker-shine {
    0% { transform: translateX(-120%) rotate(8deg); }
    100% { transform: translateX(120%) rotate(8deg); }
}

@media (max-width: 620px) {
    .pricing > .container {
        padding: 0 10px;
    }
    .timer-value { font-size: 1rem; }
    .pricing-points li { font-size: calc(1rem - 2px); }
    .pricing-cta { padding-left: 48px; padding-right: 48px; }
}

@media (max-width: 480px) {
    .pricing-cta { padding-left: 44px; padding-right: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-price::before,
    .price-new,
    .price-new::before,
    .price-new::after,
    .pricing-timer,
    .pricing-timer::after,
    .timer-label,
    .pricing-cta {
        animation: none !important;
    }
}

/* Order Form */
.order {
    /* Keep the whole "contact us" section within one viewport */
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(70px, 8vh, 100px) 0;
}

.order-card .pricing-cta {
    /* Order CTA: no jiggle/animations, hover only; max border-radius (pill) */
    animation: none !important;
    border-radius: 9999px !important;
}

.header .pricing-cta {
    /* Header CTA should match order CTA (hover only) */
    animation: none !important;
}

.order-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 39, 58, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(28px, 4.8vh, 52px);
    border-radius: 10px;
    position: relative;
    top: -50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.order-card .section-title {
    /* section-title has a huge global margin; tighten here */
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}

.order-card > p {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 1rem;
}

.discount-sticker {
    position: absolute;
    top: -15px;
    right: -15px;
    /* Match pricing discount sticker */
    background: linear-gradient(145deg, #048cfc, #05478a);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.92);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    transform: rotate(5deg);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.35);
    font-size: 0.95rem;
}

.order-form {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Order: push submit button (and content below) down */
.order-form button[type="submit"] {
    margin-top: 20px;
}

/* Order CTAs: make submit + Telegram identical sizes; max border-radius (pill) */
.order-card .order-form button[type="submit"].cta-btn--inline.pricing-cta,
.order-card .telegram-direct-btn.cta-btn--inline.pricing-cta {
    width: 100%;
    min-height: 63px;
    padding-left: 44px !important;
    padding-right: 44px !important;
    border-radius: 9999px !important;
}

.order-card .telegram-direct-btn .icon {
    display: inline-flex;
    line-height: 1;
    transform: translateY(0.5px);
}

.form-group input, .form-group textarea {
    width: 100%;
    /* More comfortable spacing (better UX on touch) */
    padding: 17px 21px;
    background: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 9999px;
    color: white;
    font-family: inherit;
    font-size: 0.98rem;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow:
        inset 1px 1px 1px rgba(255, 255, 255, 0.06),
        inset -1px -1px 1px rgba(0, 0, 0, 0.45);
}

.form-group textarea {
    border-radius: 22px;
    height: clamp(92px, 12vh, 130px);
    resize: none;
}

/* Order card form fields: larger size, pill radius, placeholder 25px from left; width unchanged */
.order-card .form-group input {
    border-radius: 9999px !important;
    height: 63px !important;
    min-height: 63px !important;
    padding: 18px 44px 18px 25px !important;
    box-sizing: border-box;
}

.order-card .form-group textarea {
    /* border-radius set by JS (smaller as rows grow so text isn't clipped) */
    min-height: 100px !important;
    max-height: 280px !important; /* cap so it fits in card; scroll after */
    padding: 18px 44px 18px 25px !important;
    box-sizing: border-box;
    overflow-y: auto;
    resize: none;
}

/* Order textarea scrollbar styling (match site palette) */
.order-card textarea#task {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(25, 146, 255, 0.90) rgba(255, 255, 255, 0.07);
    scrollbar-gutter: stable;
}

.order-card textarea#task::-webkit-scrollbar {
    width: 10px;
}

.order-card textarea#task::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.order-card textarea#task::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1992ff, var(--primary-color));
    border-radius: 999px;
    border: 2px solid rgba(6, 15, 26, 0.85);
}

.order-card textarea#task::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3aa7ff, #1992ff);
}

.form-group input:hover, .form-group textarea:hover {
    border-color: rgba(4, 140, 252, 0.55);
    box-shadow:
        0 0 0 3px rgba(4, 140, 252, 0.12),
        inset 1px 1px 1px rgba(255, 255, 255, 0.06),
        inset -1px -1px 1px rgba(0, 0, 0, 0.45);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(25, 146, 255, 0.95);
    box-shadow:
        0 0 0 3px rgba(4, 140, 252, 0.18),
        inset 1px 1px 1px rgba(255, 255, 255, 0.06),
        inset -1px -1px 1px rgba(0, 0, 0, 0.45);
}

.order-separator {
    margin: 18px 0;
    color: var(--text-muted);
    position: relative;
}

.order-separator::before, .order-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.order-separator::before { left: 0; }
.order-separator::after { right: 0; }

/* Telegram CTA now uses the same classes as `.pricing-cta`.
   Keep this class as a hook, but don't override styling when it also has `.pricing-cta`. */
.telegram-direct-btn:not(.pricing-cta) { }

/* Telegram button: remove fill, keep border */
.telegram-direct-btn.pricing-cta {
    background: none;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    border-width: 3px; /* +2px vs base 1px */
    border-color: var(--primary-color); /* match CTA blue (not grey) */
}

.telegram-direct-btn.pricing-cta:hover {
    background: none;
    background-color: transparent;
    background-image: none;
    box-shadow: 0 0 0 3px rgba(25, 146, 255, 0.18);
    border-color: #1992ff;
    transform: translateY(-1px);
}

.telegram-direct-btn.pricing-cta:active {
    background: none;
    background-color: transparent;
    background-image: none;
    box-shadow: 0 0 0 2px rgba(25, 146, 255, 0.14);
    border-color: #1992ff;
    transform: translateY(0);
}

/* Short viewports (landscape phones, split-screen) */
@media (max-height: 760px) {
    .hero { padding: 80px 0 60px; margin-top: 24px; }
    .order { padding: 48px 0; }
    .order-card { padding: 26px; border-radius: 10px; }
    .order-card .section-title { margin-bottom: 12px; font-size: 1.55rem; }
    .order-card > p { margin-bottom: 12px; font-size: 0.95rem; }
    .order-form { gap: 12px; }
    .form-group input, .form-group textarea { padding: 11px 14px; font-size: 0.95rem; }
    .form-group textarea { height: 88px; }
    .order-separator { margin: 12px 0; }
    .telegram-direct-btn:not(.pricing-cta) { padding: 11px 12px; }
    .discount-sticker { top: -10px; right: -10px; padding: 7px 12px; font-size: 0.85rem; }
}

/* Doc pages (dogovor-oferta, privacy-policy) — same layout as main, glassmorphic content */
.doc-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.doc-section {
    flex: 1;
    padding: clamp(100px, 14vw, 140px) 0 clamp(80px, 12vw, 120px);
    margin-top: 40px;
}

.doc-section .container {
    max-width: min(800px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(20px, 5vw, 40px);
    padding-right: clamp(20px, 5vw, 40px);
}

.doc-glass {
    background: rgba(26, 39, 58, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(20px, 4vw, 28px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: clamp(32px, 5vw, 56px);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.doc-glass::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background:
        radial-gradient(800px 240px at 15% 10%, rgba(4, 140, 252, 0.08), transparent 55%),
        radial-gradient(800px 240px at 85% 20%, rgba(86, 148, 222, 0.06), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.doc-text {
    position: relative;
    z-index: 1;
    padding: clamp(24px, 4vw, 40px);
    margin: 0;
    background: rgba(6, 15, 26, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: clamp(14px, 2.5vw, 20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.doc-body {
    position: relative;
    z-index: 1;
}

.doc-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.doc-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-body h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 2rem 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.doc-body h2:first-of-type {
    margin-top: 0;
}

.doc-body p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1rem 0;
}

.doc-body ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.doc-body li {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.35rem;
}

@media (max-width: 768px) {
    .doc-section { padding: 80px 0 60px; margin-top: 24px; }
    .doc-glass { padding: 28px 24px; border-radius: 20px; }
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #060f1a;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    :root { --section-pad-y: 80px; }
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-info a {
    color: white;
}

.footer-info {
    display: grid;
    gap: 14px;
    justify-items: center;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 2px 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    letter-spacing: -0.1px;
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.footer-contact:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-contact-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

.footer-contact-text {
    line-height: 1.2;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay for staggered animations in grids */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }

.cases-grid .case-item:nth-child(1) { transition-delay: 0.1s; }
.cases-grid .case-item:nth-child(2) { transition-delay: 0.2s; }
.cases-grid .case-item:nth-child(3) { transition-delay: 0.3s; }
.cases-grid .case-item:nth-child(4) { transition-delay: 0.4s; }
.cases-grid .case-item:nth-child(5) { transition-delay: 0.5s; }
.cases-grid .case-item:nth-child(6) { transition-delay: 0.6s; }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.5rem; }
    .cases-grid { grid-template-columns: 1fr 1fr; }
    .tabs-content { padding: 40px; }
}

/* Wide screens: tighten max-width for very large displays */
@media (min-width: 1400px) {
    .container { max-width: min(1200px, 85vw); }
}

@media (max-width: 768px) {
    .nav-links { gap: 10px; }
    .header .logo-img { width: 32px; height: 32px; }
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
    /* Mobile order: put "Поддержка" (🛠, 3rd card) under "Конверсия" (📈, 4th card) */
    .features-grid .feature-card:nth-child(3) { order: 4; }
    .features-grid .feature-card:nth-child(4) { order: 3; }
    .feature-card {
        width: 100%;
        max-width: 400px;
    }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    /* Keep nav visible on mobile (no burger menu) */
    .nav-links {
        display: flex;
        gap: 12px;
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .nav-links a {
        font-size: 0.9rem;
        letter-spacing: 0.8px;
    }
    .neumorphic-btn { margin-right: 0 !important; }
    .mobile-menu-btn { display: none !important; }
    .bot-features { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; align-items: center; }
}

@media (max-width: 620px) {
    /* Reduce hero rounding before it becomes a pill/circle */
    .hero-container { border-radius: 26px !important; }
    /* Ensure CTA always stays one line on narrow screens */
    .cta-btn--inline {
        padding: 12px 28px;
        font-size: 1.02rem;
    }
}

@media (max-width: 480px) {
    .order-card { padding: 24px; }
    .tabs-content { padding: 24px; }
    .cases-grid { grid-template-columns: 1fr; }
    /* Prevent hero pill from becoming a "circle" on very small screens */
    .hero-container { border-radius: 22px !important; }
    .cta-btn--inline {
        padding: 12px 24px;
        font-size: 0.98rem;
    }
    .work-tags { gap: 6px; }
    .work-tag { white-space: normal; padding: 6px 8px; font-size: 0.8rem; }
    .discount-sticker { top: -12px; right: -12px; padding: 6px 12px; font-size: 0.85rem; }
    .pricing-timer { top: -14px; right: -20px; padding: 6px 8px; }
    .tabs-nav { gap: 8px; margin-bottom: 32px; }
    .bot-tab { padding: 10px 18px; font-size: 0.9rem; }
}

/* Extra-small phones (320–360px) */
@media (max-width: 360px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .hero-container { padding: 18px; width: min(1200px, calc(100% - 24px)); }
    .hero-content h1 { font-size: 1.75rem; }
    .hero-lead { font-size: 0.95rem; }
    .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
    .header { width: min(980px, calc(100% - 16px)); top: 8px; }
    .nav-links a { font-size: 0.82rem; }
    .order-card { padding: 20px; }
    .pricing-card { padding-left: 20px; padding-right: 20px; }
    .feature-card { padding: 28px 20px; }
    .work-head { grid-template-columns: 40px 1fr; gap: 10px; }
    .work-icon { width: 40px; height: 40px; font-size: 1rem; }
    .testimonial-head { grid-template-columns: 40px 1fr; }
    .testimonial-avatar { width: 40px; height: 40px; }
}

/* Force pricing CTA sizing (override global CTA mobile rules) */
.cta-btn--inline.pricing-cta {
    padding: 14px 74px !important; /* +60px width vs 44px */
    font-size: calc(1.1125rem + 4px) !important;
    min-height: 56px !important;
}

@media (max-width: 620px) {
    .cta-btn--inline.pricing-cta {
        padding: 12px 58px !important;
        font-size: calc(1.02rem + 4px) !important;
        min-height: 56px !important;
    }
}

@media (max-width: 480px) {
    .cta-btn--inline.pricing-cta {
        padding: 12px 54px !important;
        font-size: calc(0.98rem + 4px) !important;
        min-height: 56px !important;
    }
}

/* Header CTA: keep compact (revert sizing bump) */
.header .cta-btn--inline.pricing-cta {
    padding: 12px 26px !important;
    font-size: 1.05rem !important;
    min-height: 49px !important;
    margin-right: -7px;
}

/* Order card: max border-radius (pill) on submit + Telegram CTAs */
#order-form .cta-btn,
.order-card .telegram-direct-btn.cta-btn,
.order-card .cta-btn {
    border-radius: 9999px !important;
}
