/* Base */

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

:root {
    --accent: #e51f2d;
    --accent-strong: #c31926;
    --logo-red-light: #ff7d7d;
    --logo-red-mid: #ef4c4f;
    --logo-red-deep: #be1a25;
    --logo-red-edge: #8f1019;
    --ink-950: #16181d;
    --ink-900: #1f232a;
    --ink-800: #2d3139;
    --ink-700: #464c57;
    --ink-600: #616977;
    --ink-500: #7a8393;
    --section-product: #ffffff;
    --section-workflow: #ffffff;
    --section-hero-gradient:
        radial-gradient(138% 104% at 10% -20%, rgba(239, 246, 255, 0.93) 0%, rgba(224, 237, 253, 0.72) 40%, rgba(247, 204, 210, 0.28) 68%, transparent 84%),
        linear-gradient(170deg, #f7fbff 0%, #edf4fe 46%, #e7effb 100%);
    --section-muted-gradient: linear-gradient(180deg, #f4f8fd 0%, #eef4fc 100%);
    --section-conditions: var(--section-muted-gradient);
    --section-demo: var(--section-muted-gradient);
    --section-api: var(--section-muted-gradient);
    --section-faq: #ffffff;
    --line: #e5e8ee;
    --line-strong: #d8dde6;
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --corner-smooth-soft: superellipse(0.65);
    --corner-smooth-medium: superellipse(0.78);
    --shadow-card: 0 18px 42px rgba(19, 24, 33, 0.08);
    --transition: 240ms cubic-bezier(0.2, 0.6, 0.2, 1);
    --gradient-motion-ease: cubic-bezier(0.42, 0, 0.58, 1);
    --section-space: 84px;
    --section-space-mobile: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    color: var(--ink-900);
    line-height: 1.62;
    background:
        radial-gradient(circle at 85% -8%, rgba(229, 31, 45, 0.1), transparent 34%),
        radial-gradient(circle at 8% -4%, rgba(24, 34, 54, 0.08), transparent 32%),
        linear-gradient(180deg, #fbfbfc 0%, #f7f8fa 52%, #f8f9fb 100%);
}

body.contact-popover-open {
    overflow: hidden;
}

body.contact-popover-open .hero::before,
body.contact-popover-open .hero::after,
body.contact-popover-open .bottom-cta-section::before,
body.contact-popover-open .bottom-cta-section::after {
    animation-play-state: paused;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.brand-ai {
    color: var(--accent);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.section-title,
.hero-content h1,
h3,
h4 {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: -0.024em;
}

section {
    padding: var(--section-space) 0;
}

main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

section[id] {
    scroll-margin-top: 94px;
}

/* Progressive enhancement: smooth superellipse corners where supported */
@supports (corner-shape: superellipse(0.5)) {
    .btn-primary,
    .btn-contact,
    .hero-visual,
    .demo-gif,
    .case-card,
    .cases-viewport,
    .video-container,
    .api-demo,
    .contact-popover-panel,
    .contact-field input,
    .contact-field textarea,
    .contact-form-status:not(:empty) {
        corner-shape: var(--corner-smooth-soft);
    }

    .language-select,
    .cases-control-btn,
    .contact-popover-close {
        corner-shape: var(--corner-smooth-medium);
    }
}

@supports not (corner-shape: superellipse(0.5)) and (corner-shape: squircle) {
    .btn-primary,
    .btn-contact,
    .hero-visual,
    .demo-gif,
    .case-card,
    .cases-viewport,
    .video-container,
    .api-demo,
    .contact-popover-panel,
    .contact-field input,
    .contact-field textarea,
    .contact-form-status:not(:empty),
    .language-select,
    .cases-control-btn,
    .contact-popover-close {
        corner-shape: squircle;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 8px 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.navbar.navbar-scrolled {
    background: rgba(251, 252, 254, 0.78);
    border-bottom-color: rgba(219, 224, 232, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(19, 24, 33, 0.06);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 2px 0;
}

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

.logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 46px;
    max-width: 100%;
    aspect-ratio: 4096 / 1488;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    color: var(--ink-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--ink-900);
}

.navbar .btn-contact {
    padding: 9px 15px;
    font-size: 12px;
    line-height: 1.2;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-select {
    -webkit-appearance: none;
    appearance: none;
    min-width: 132px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background-color: #ffffff;
    color: var(--ink-700);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 28px 8px 12px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ink-600) 50%),
        linear-gradient(135deg, var(--ink-600) 50%, transparent 50%);
    background-position:
        calc(100% - 13px) 53%,
        calc(100% - 8px) 53%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.language-select:hover {
    color: var(--ink-900);
    border-color: #c8cfdb;
}

.language-select:focus-visible {
    outline: none;
    border-color: rgba(229, 31, 45, 0.55);
    box-shadow: 0 0 0 3px rgba(229, 31, 45, 0.16);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 13px 24px;
    border: 1px solid transparent;
    color: #ffffff;
    background: linear-gradient(165deg, var(--accent), var(--accent-strong));
    box-shadow: 0 10px 24px rgba(229, 31, 45, 0.26);
    transition: transform var(--transition), border-color var(--transition), color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(195, 25, 38, 0.3);
}

.btn-contact {
    border-radius: var(--radius-sm);
    border-color: #a91d27;
    background:
        radial-gradient(140% 106% at 18% -34%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, #f7656a 0%, #eb4a4f 42%, #da3039 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 16px rgba(229, 31, 45, 0.18),
        0 3px 8px rgba(17, 22, 31, 0.08);
    text-shadow: 0 1px 0 rgba(86, 10, 16, 0.2);
}

.btn-contact:hover {
    transform: translateY(-1px);
    border-color: #9f1a24;
    background:
        radial-gradient(140% 104% at 22% -36%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 54%),
        linear-gradient(145deg, #fa7073 0%, #ef4f53 42%, #dd333d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 10px 18px rgba(229, 31, 45, 0.22),
        0 4px 10px rgba(17, 22, 31, 0.1);
}

.btn-contact:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.92),
        0 0 0 5px rgba(229, 31, 45, 0.26),
        0 12px 20px rgba(229, 31, 45, 0.24);
}

.btn-contact:active {
    transform: translateY(0);
    background:
        radial-gradient(140% 104% at 18% -36%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(148deg, #ee6165 0%, #e5454a 42%, #d52e37 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 6px 12px rgba(229, 31, 45, 0.16),
        0 2px 6px rgba(17, 22, 31, 0.08);
}

.btn-large {
    padding: 13px 24px;
    font-size: 15px;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 96px 0 76px;
    background: var(--section-hero-gradient);
    box-shadow:
        inset 0 98px 162px rgba(255, 255, 255, 0.4),
        inset 0 -112px 178px rgba(229, 31, 45, 0.15);
}

.hero::before,
.bottom-cta-section::before {
    content: '';
    position: absolute;
    inset: -34% -28%;
    z-index: 0;
    background:
        radial-gradient(58% 50% at 16% 24%, rgba(255, 229, 233, 0.78) 0%, rgba(255, 229, 233, 0.78) 28%, rgba(255, 229, 233, 0.18) 56%, transparent 82%),
        radial-gradient(52% 46% at 82% 18%, rgba(121, 168, 225, 0.72) 0%, rgba(121, 168, 225, 0.72) 26%, rgba(121, 168, 225, 0.22) 54%, transparent 82%),
        radial-gradient(60% 56% at 66% 78%, rgba(229, 31, 45, 0.44) 0%, rgba(229, 31, 45, 0.4) 26%, rgba(229, 31, 45, 0.14) 54%, transparent 80%),
        radial-gradient(70% 60% at 44% 44%, rgba(247, 216, 221, 0.38) 0%, rgba(154, 189, 232, 0.28) 44%, rgba(255, 255, 255, 0.1) 66%, transparent 84%);
    background-size: 144% 138%, 156% 150%, 162% 154%, 188% 176%;
    background-position: -22% 0%, 112% -8%, 76% 100%, -58% 34%;
    filter: blur(26px) saturate(1.1) contrast(1.02);
    opacity: 0.56;
    transform: translate3d(-24%, -18%, 0) rotate(-14deg) scale(0.9);
    animation: heroFluidSilhouette 14s linear infinite;
    pointer-events: none;
    transform-origin: 52% 46%;
    border-radius: 56% 44% 52% 48% / 46% 56% 44% 54%;
    will-change: transform, background-position, opacity;
}

.hero::after,
.bottom-cta-section::after {
    content: '';
    position: absolute;
    inset: -40% -34%;
    z-index: 0;
    background:
        radial-gradient(44% 36% at 24% 28%, rgba(255, 246, 248, 0.8) 0%, rgba(255, 246, 248, 0.8) 28%, rgba(255, 246, 248, 0.18) 56%, transparent 82%),
        radial-gradient(38% 34% at 78% 68%, rgba(229, 31, 45, 0.34) 0%, rgba(229, 31, 45, 0.34) 30%, rgba(229, 31, 45, 0.1) 56%, transparent 82%),
        linear-gradient(118deg,
            rgba(255, 255, 255, 0) 24%,
            rgba(255, 255, 255, 0.58) 38%,
            rgba(170, 200, 232, 0.46) 46%,
            rgba(255, 255, 255, 0.76) 50%,
            rgba(248, 172, 178, 0.34) 56%,
            rgba(255, 255, 255, 0) 72%),
        linear-gradient(96deg,
            rgba(255, 255, 255, 0) 42%,
            rgba(149, 185, 227, 0.3) 48%,
            rgba(255, 255, 255, 0.16) 52%,
            rgba(255, 255, 255, 0) 58%);
    background-size: 136% 132%, 130% 126%, 206% 156%, 162% 128%;
    background-position: -8% 6%, 92% 76%, -18% 42%, -18% 46%;
    mix-blend-mode: screen;
    filter: blur(14px) saturate(1.1) contrast(1.03);
    opacity: 0.24;
    transform: translate3d(-26%, -18%, 0) rotate(-18deg) scale(0.86);
    animation: heroCameraSweep 10s linear infinite;
    pointer-events: none;
    transform-origin: 56% 48%;
    border-radius: 44% 56% 58% 42% / 54% 44% 56% 46%;
    will-change: transform, background-position, opacity;
}

.hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 58px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 3.65vw, 3rem);
    line-height: 1.08;
    font-weight: 600;
    color: var(--ink-950);
    max-width: 12.5ch;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.9vw, 1.26rem);
    color: rgba(0, 0, 0, 0.76);
    max-width: 58ch;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    border-radius: var(--radius-lg);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: 0 14px 36px rgba(15, 20, 28, 0.16);
}

.demo-gif {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.hero-metrics {
    position: relative;
    z-index: 1;
    padding-top: 30px;
}

.results-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.result-card {
    padding: 6px 18px 2px;
    text-align: left;
}

.result-value {
    font-size: clamp(0.94rem, 1.45vw, 1.1rem);
    line-height: 1.35;
    font-weight: 600;
    color: var(--ink-950);
    margin-bottom: 0;
}

.result-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(0, 0, 0, 0.66);
}

.result-label:empty {
    display: none;
}

/* Shared section headings */
.section-title {
    font-size: clamp(1.56rem, 2.75vw, 2.24rem);
    line-height: 1.14;
    text-align: left;
    color: var(--ink-950);
    margin-bottom: 30px;
    font-weight: 600;
}

#product .section-title,
#workflow .section-title,
#conditions .section-title,
#demo .section-title,
#api .section-title,
#faq .section-title {
    text-align: left;
}

#product .section-title,
#workflow .section-title {
    padding-left: 22px;
}

.capabilities {
    background: var(--section-product);
}
.workflow {
    background: var(--section-workflow);
}

.features {
    background: var(--section-conditions);
}

.video-demo {
    background: var(--section-demo);
}

.video-demo .section-title {
    max-width: 1020px;
    margin-left: auto;
    margin-right: auto;
}

.api-section {
    background: var(--section-api);
}

.faq-section {
    background: var(--section-faq);
}

/* Card grids */
.features-grid,
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.feature-card,
.workflow-step {
    position: relative;
    padding: 22px 22px 18px;
    background: transparent;
    transition: background-color var(--transition);
}

.feature-card:hover,
.workflow-step:hover {
    background: rgba(255, 255, 255, 0.42);
}

.feature-card h3,
.workflow-step h3 {
    font-size: 1.16rem;
    line-height: 1.28;
    margin-bottom: 12px;
    color: var(--ink-950);
    font-weight: 600;
}

.feature-card p,
.workflow-step > p:not(.step-number) {
    color: var(--ink-600);
}

.feature-icon,
.step-number {
    margin-bottom: 14px;
    color: var(--accent);
    line-height: 1;
}

.feature-icon {
    display: block;
    font-size: 18px;
}

/* Conditions cases */
.cases-gallery {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
    display: grid;
    gap: 12px;
}

.cases-viewport {
    min-width: 0;
    overflow: visible;
}

.cases-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.case-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #dfe7f2;
    box-shadow: 0 12px 26px rgba(19, 24, 33, 0.1);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), opacity var(--transition);
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    border-radius: 0;
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 13, 17, 0.08) 28%, rgba(10, 13, 17, 0.76) 100%);
    transition: background var(--transition);
}

.case-card h3 {
    position: absolute;
    top: 50%;
    left: 18px;
    right: 18px;
    z-index: 1;
    color: #ffffff;
    font-size: 1.14rem;
    line-height: 1.22;
    text-align: left;
    white-space: pre-line;
    transform: translateY(-50%);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
    font-weight: 600;
    transition: transform var(--transition), text-shadow var(--transition);
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
    .cases-gallery:hover .case-card:not(:hover):not(:focus-within) {
        transform: translateY(1px) scale(0.992);
        box-shadow: 0 10px 22px rgba(19, 24, 33, 0.08);
        filter: saturate(0.88) brightness(0.92);
    }

    .case-card:hover,
    .case-card:focus-within {
        transform: translateY(-3px);
        box-shadow: 0 18px 34px rgba(19, 24, 33, 0.17);
        z-index: 1;
    }

    .case-card:hover::after,
    .case-card:focus-within::after {
        background: linear-gradient(180deg, rgba(10, 13, 17, 0.04) 20%, rgba(10, 13, 17, 0.64) 100%);
    }

    .case-card:hover h3,
    .case-card:focus-within h3 {
        transform: translateY(calc(-50% - 2px));
        text-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
    }
}

.cases-controls {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.cases-control-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--ink-800);
    font-size: 1.2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cases-control-btn:hover {
    transform: translateY(-1px);
    border-color: #c3ccda;
    box-shadow: 0 9px 20px rgba(19, 24, 33, 0.12);
}

.cases-control-btn:focus-visible {
    outline: none;
    border-color: rgba(229, 31, 45, 0.56);
    box-shadow: 0 0 0 3px rgba(229, 31, 45, 0.16);
}

.cases-counter {
    min-width: 72px;
    margin: 0;
    text-align: center;
    color: var(--ink-600);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cases-counter [data-cases-current] {
    color: var(--accent-strong);
}

.cases-counter-divider {
    margin: 0 5px;
}

.step-number {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.video-container {
    max-width: 1020px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(15, 20, 28, 0.16);
    background: #0f141c;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* API */
.api-section {
    color: var(--ink-900);
}

.api-section .section-title {
    color: var(--ink-950);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section .section-title {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.api-demo {
    position: relative;
    max-width: 920px;
    margin: 36px auto 0;
    padding: 26px 28px 22px;
    border-radius: var(--radius-lg);
    border: 1px solid #343d4b;
    background: #0f1723;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

.api-demo pre {
    margin: 0;
    font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #cdd4df;
}

.api-demo code {
    color: inherit;
}

.api-demo code span.hl-comment,
.api-demo code .token.comment {
    color: #8894a5 !important;
    -webkit-text-fill-color: #8894a5 !important;
}

.api-demo code span.hl-string,
.api-demo code .token.string {
    color: #91e2a6 !important;
    -webkit-text-fill-color: #91e2a6 !important;
}

.api-demo code span.hl-function,
.api-demo code .token.function,
.api-demo code .token.builtin {
    color: #8dc1ff !important;
    -webkit-text-fill-color: #8dc1ff !important;
}

.api-demo code span.hl-operator,
.api-demo code .token.operator {
    color: #ff8383 !important;
    -webkit-text-fill-color: #ff8383 !important;
}

.api-demo code span.hl-punctuation,
.api-demo code .token.punctuation {
    color: #f4d27b !important;
    -webkit-text-fill-color: #f4d27b !important;
}

/* FAQ */
.faq-list {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 0;
}

.faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0;
}

.faq-item[open] {
    border-bottom-color: var(--line-strong);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 2px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-900);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    padding: 0 2px 14px;
    color: var(--ink-600);
}

/* Bottom CTA */
.bottom-cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 24px;
    background: var(--section-hero-gradient);
    box-shadow:
        inset 0 90px 150px rgba(255, 255, 255, 0.4),
        inset 0 -106px 170px rgba(229, 31, 45, 0.14);
}

.bottom-cta-card {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.bottom-cta-card .section-title {
    max-width: none;
    margin: 0 0 14px;
    font-size: clamp(1.64rem, 2.7vw, 2.14rem);
    line-height: 1.1;
    text-align: center;
}

.bottom-cta-card p {
    max-width: none;
    margin: 0 0 26px;
    color: rgba(0, 0, 0, 0.74);
    font-size: clamp(0.98rem, 1.35vw, 1.08rem);
    line-height: 1.5;
}

.bottom-cta-card .btn-contact {
    min-width: clamp(210px, 32vw, 280px);
}

.contact-popover[hidden] {
    display: grid;
    visibility: hidden;
    pointer-events: none;
}

.contact-popover[hidden] .contact-popover-panel::before,
.contact-popover[hidden] .contact-popover-panel::after {
    animation-play-state: paused;
}

.contact-popover {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow: hidden;
}

.contact-popover-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 19, 30, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.contact-popover-panel {
    --contact-popover-corner-radius: 28px;
    position: relative;
    isolation: isolate;
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    max-height: calc(100svh - 40px);
    overflow: hidden;
    border-radius: var(--contact-popover-corner-radius);
    border: 1px solid rgba(198, 208, 223, 0.92);
    background:
        radial-gradient(108% 82% at 12% -20%, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.93) 22%, rgba(255, 255, 255, 0.34) 33%, rgba(255, 232, 236, 0.34) 43%, transparent 62%),
        radial-gradient(78% 64% at 88% 12%, rgba(170, 196, 228, 0.66) 0%, rgba(170, 196, 228, 0.66) 24%, rgba(170, 196, 228, 0.3) 40%, transparent 68%),
        radial-gradient(82% 68% at 22% 106%, rgba(229, 31, 45, 0.48) 0%, rgba(229, 31, 45, 0.48) 24%, rgba(229, 31, 45, 0.24) 42%, transparent 74%),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fc 48%, #ebf2fa 100%);
    background-size: 150% 150%, 138% 138%, 154% 154%, 100% 100%;
    background-position: 0% 0%, 100% 2%, 18% 100%, 0% 0%;
    box-shadow: 0 26px 66px rgba(11, 16, 25, 0.27);
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    padding: 22px 22px 22px;
    animation: contactPopoverIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.contact-popover-panel::before {
    content: '';
    position: absolute;
    inset: -50% -36%;
    z-index: 0;
    background:
        radial-gradient(48% 34% at 20% 24%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.84) 28%, rgba(255, 255, 255, 0.22) 48%, transparent 74%),
        radial-gradient(42% 30% at 82% 18%, rgba(189, 214, 243, 0.66) 0%, rgba(189, 214, 243, 0.66) 30%, rgba(189, 214, 243, 0.28) 52%, transparent 76%),
        linear-gradient(116deg,
            rgba(255, 255, 255, 0) 23%,
            rgba(255, 255, 255, 0.58) 37%,
            rgba(165, 193, 228, 0.62) 44%,
            rgba(255, 255, 255, 0.82) 47%,
            rgba(253, 183, 190, 0.44) 51%,
            rgba(248, 172, 178, 0.28) 56%,
            rgba(255, 255, 255, 0) 68%);
    background-size: 184% 172%, 176% 168%, 246% 192%;
    background-position: 8% 12%, 98% 8%, 0% 32%;
    mix-blend-mode: screen;
    filter: blur(13px) saturate(1.24) contrast(1.07);
    opacity: 0.8;
    pointer-events: none;
}

.contact-popover-panel::after {
    content: '';
    position: absolute;
    inset: -54% -38%;
    z-index: 0;
    background:
        radial-gradient(54% 50% at 66% 58%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 32%, rgba(255, 255, 255, 0.14) 54%, transparent 72%),
        radial-gradient(46% 46% at 28% 74%, rgba(202, 224, 248, 0.46) 0%, rgba(202, 224, 248, 0.46) 32%, rgba(202, 224, 248, 0.18) 54%, transparent 72%),
        linear-gradient(132deg,
            rgba(255, 255, 255, 0) 26%,
            rgba(189, 214, 243, 0.5) 40%,
            rgba(255, 255, 255, 0.76) 46%,
            rgba(255, 228, 232, 0.48) 50%,
            rgba(248, 172, 178, 0.26) 54%,
            rgba(255, 255, 255, 0.14) 58%,
            rgba(255, 255, 255, 0) 68%);
    background-size: 154% 154%, 162% 162%, 216% 156%;
    background-position: 68% 58%, 30% 76%, -10% 50%;
    mix-blend-mode: screen;
    opacity: 0.74;
    filter: blur(15px) saturate(1.2);
    pointer-events: none;
}

.contact-popover-header {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto 8px;
    padding-right: 52px;
}

.contact-popover-header h2 {
    font-size: clamp(1.24rem, 2.52vw, 1.68rem);
    line-height: 1.15;
    color: var(--ink-950);
}

.contact-popover-close {
    --contact-popover-close-size: 36px;
    --contact-popover-close-icon-length: 14px;
    position: absolute;
    top: calc(var(--contact-popover-corner-radius) - (var(--contact-popover-close-size) / 2));
    right: calc(var(--contact-popover-corner-radius) - (var(--contact-popover-close-size) / 2));
    z-index: 2;
    display: grid;
    place-items: center;
    width: var(--contact-popover-close-size);
    height: var(--contact-popover-close-size);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: #ffffff;
    color: var(--ink-700);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.contact-popover-close::before,
.contact-popover-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--contact-popover-close-icon-length);
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
}

.contact-popover-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.contact-popover-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-popover-close:hover {
    color: var(--ink-900);
    border-color: #c8cfdb;
    transform: translateY(-1px);
}

.contact-popover-close:focus-visible {
    outline: none;
    border-color: rgba(229, 31, 45, 0.55);
    box-shadow: 0 0 0 3px rgba(229, 31, 45, 0.14);
}

.contact-form-wrap {
    position: relative;
    z-index: 1;
    max-width: 660px;
    margin: 0 auto;
    padding-top: 10px;
}

.contact-popover-subtitle {
    margin-bottom: 14px;
    color: var(--ink-600);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-form {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 14px;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-form-grid-secondary {
    gap: 12px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-800);
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    background: #fbfcfe;
    color: var(--ink-900);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.97rem;
    line-height: 1.5;
    padding: 12px 13px;
    transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.contact-field textarea {
    min-height: 124px;
    resize: vertical;
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
    outline: none;
    background-color: #ffffff;
    border-color: rgba(229, 31, 45, 0.55);
    box-shadow: 0 0 0 3px rgba(229, 31, 45, 0.14);
}

.contact-submit {
    -webkit-appearance: none;
    appearance: none;
    margin-top: 6px;
    width: min(100%, 260px);
    justify-self: center;
}

.contact-submit:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
    box-shadow: 0 10px 22px rgba(229, 31, 45, 0.24);
}

.contact-submit:disabled:hover {
    transform: none;
    box-shadow: 0 10px 22px rgba(229, 31, 45, 0.24);
}

.contact-form-status {
    min-height: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-600);
    overflow-wrap: anywhere;
}

.contact-form-status:empty {
    display: none;
}

.contact-form-status:not(:empty) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    border: 1px solid transparent;
}

.contact-form-status[data-tone="success"] {
    color: #0f7b39;
    border-color: rgba(25, 132, 71, 0.34);
    background: rgba(22, 157, 82, 0.1);
}

.contact-form-status[data-tone="error"] {
    color: #b12b2b;
    border-color: rgba(177, 43, 43, 0.3);
    background: rgba(204, 52, 52, 0.1);
}

.contact-form-status[data-tone="info"] {
    color: #385f89;
    border-color: rgba(56, 95, 137, 0.28);
    background: rgba(56, 95, 137, 0.08);
}

.contact-form-status[data-tone="success"]::before {
    content: "OK";
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.contact-form-status[data-tone="error"]::before {
    content: "!";
    font-size: 0.92rem;
    line-height: 1;
}

.contact-form-status[data-tone="info"]::before {
    content: "...";
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.contact-honeypot {
    position: absolute;
    left: -100vw;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    background: transparent;
    color: var(--ink-900);
    border-top: 1px solid var(--line);
    padding: 22px 0;
}

.bottom-cta-section .footer {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    padding: 12px 0 2px;
    border-top: 0;
}

.bottom-cta-section .footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        rgba(118, 135, 160, 0),
        rgba(118, 135, 160, 0.2) 18%,
        rgba(118, 135, 160, 0.2) 82%,
        rgba(118, 135, 160, 0)
    );
}

.footer-minimal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
}

.footer-logo {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}

.footer-contact {
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-contact:hover {
    color: var(--accent);
}

.footer-copy {
    color: var(--ink-500);
    font-size: 0.9rem;
}

/* Motion */
@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

@keyframes contactPopoverIn {
    from {
        transform: translateY(14px) scale(0.98);
    }

    to {
        transform: translateY(0) scale(1);
    }
}

@keyframes heroFluidSilhouette {
    0% {
        transform: translate3d(-24%, -18%, 0) rotate(0deg) scale(0.9);
        background-position: -22% 0%, 112% -8%, 76% 100%, -58% 34%;
    }

    25% {
        transform: translate3d(-16%, -26%, 0) rotate(90deg) scale(0.98);
        background-position: -8% -8%, 100% 2%, 86% 86%, -34% 42%;
    }

    50% {
        transform: translate3d(-2%, -20%, 0) rotate(180deg) scale(1.06);
        background-position: 12% 0%, 86% 8%, 72% 76%, -6% 52%;
    }

    75% {
        transform: translate3d(-14%, -8%, 0) rotate(270deg) scale(0.98);
        background-position: -2% 12%, 94% -4%, 62% 90%, -30% 46%;
    }

    100% {
        transform: translate3d(-24%, -18%, 0) rotate(360deg) scale(0.9);
        background-position: -22% 0%, 112% -8%, 76% 100%, -58% 34%;
    }
}

@keyframes heroCameraSweep {
    0% {
        transform: translate3d(-26%, -18%, 0) rotate(-8deg) scale(0.86);
        background-position: -8% 6%, 92% 76%, -18% 42%, -18% 46%;
    }

    25% {
        transform: translate3d(-16%, -10%, 0) rotate(82deg) scale(0.96);
        background-position: 4% 14%, 84% 64%, 12% 48%, 8% 44%;
    }

    50% {
        transform: translate3d(-6%, -2%, 0) rotate(172deg) scale(1.02);
        background-position: 16% 22%, 74% 54%, 34% 52%, 22% 50%;
    }

    75% {
        transform: translate3d(-18%, -8%, 0) rotate(262deg) scale(0.94);
        background-position: 6% 12%, 86% 68%, 8% 62%, -6% 54%;
    }

    100% {
        transform: translate3d(-26%, -18%, 0) rotate(352deg) scale(0.86);
        background-position: -8% 6%, 92% 76%, -18% 42%, -18% 46%;
    }
}

@media (min-width: 1500px) {
    .hero {
        background:
            radial-gradient(138% 104% at 10% -20%, rgba(239, 246, 255, 0.88) 0%, rgba(224, 237, 253, 0.56) 38%, rgba(247, 204, 210, 0.16) 64%, transparent 84%),
            linear-gradient(170deg, #f7fbff 0%, #edf4fe 46%, #e7effb 100%);
        box-shadow:
            inset 0 98px 162px rgba(255, 255, 255, 0.46),
            inset 0 -112px 178px rgba(229, 31, 45, 0.1);
    }

    .hero::before,
    .bottom-cta-section::before {
        background-size: 154% 146%, 166% 158%, 174% 164%, 198% 184%;
        filter: blur(30px) saturate(1.02) contrast(1);
        opacity: 0.42;
    }

    .hero::after,
    .bottom-cta-section::after {
        background-size: 148% 142%, 142% 136%, 220% 166%, 176% 136%;
        filter: blur(18px) saturate(1.03) contrast(1.01);
        opacity: 0.16;
    }
}

@keyframes gradientDriftPrimary {
    0% {
        transform: translate3d(-18%, -10%, 0) rotate(-10deg) scale(0.94);
    }

    25% {
        transform: translate3d(10%, -24%, 0) rotate(2deg) scale(1.08);
    }

    50% {
        transform: translate3d(24%, 8%, 0) rotate(14deg) scale(1.22);
    }

    75% {
        transform: translate3d(-8%, 24%, 0) rotate(-4deg) scale(1.14);
    }

    100% {
        transform: translate3d(-18%, -10%, 0) rotate(-10deg) scale(0.94);
    }
}

@keyframes gradientDriftSecondary {
    0% {
        transform: translate3d(-14%, -12%, 0) rotate(-14deg) scale(0.96);
    }

    25% {
        transform: translate3d(16%, -10%, 0) rotate(8deg) scale(1.12);
    }

    50% {
        transform: translate3d(24%, 18%, 0) rotate(28deg) scale(1.22);
    }

    75% {
        transform: translate3d(-12%, 24%, 0) rotate(-2deg) scale(1.14);
    }

    100% {
        transform: translate3d(-14%, -12%, 0) rotate(-14deg) scale(0.96);
        opacity: 0.58;
    }
}

@keyframes gradientDriftPrimaryLite {
    0% {
        transform: translate3d(-12%, -10%, 0) rotate(-6deg) scale(0.95);
        background-position: 12% 16%, -12% 42%, -20% 46%;
        opacity: 0.5;
    }

    25% {
        transform: translate3d(10%, -8%, 0) rotate(2deg) scale(1.06);
        background-position: 30% 8%, 4% 34%, 0% 36%;
        opacity: 0.66;
    }

    50% {
        transform: translate3d(16%, 12%, 0) rotate(10deg) scale(1.15);
        background-position: 40% 24%, 16% 48%, 14% 52%;
        opacity: 0.72;
    }

    75% {
        transform: translate3d(-8%, 16%, 0) rotate(-2deg) scale(1.08);
        background-position: 18% 32%, -2% 60%, -8% 62%;
        opacity: 0.58;
    }

    100% {
        transform: translate3d(-12%, -10%, 0) rotate(-6deg) scale(0.95);
        background-position: 12% 16%, -12% 42%, -20% 46%;
        opacity: 0.5;
    }
}

@keyframes gradientDriftSecondaryLite {
    0% {
        transform: translate3d(-10%, -12%, 0) rotate(-12deg) scale(0.96);
        background-position: 76% 72%, -8% 54%, -18% 52%;
        opacity: 0.38;
    }

    25% {
        transform: translate3d(14%, -10%, 0) rotate(10deg) scale(1.1);
        background-position: 64% 54%, 10% 40%, 2% 38%;
        opacity: 0.56;
    }

    50% {
        transform: translate3d(16%, 16%, 0) rotate(22deg) scale(1.18);
        background-position: 86% 78%, 18% 60%, 20% 56%;
        opacity: 0.62;
    }

    75% {
        transform: translate3d(-10%, 14%, 0) rotate(-2deg) scale(1.08);
        background-position: 80% 88%, 2% 68%, -6% 66%;
        opacity: 0.48;
    }

    100% {
        transform: translate3d(-10%, -12%, 0) rotate(-12deg) scale(0.96);
        background-position: 76% 72%, -8% 54%, -18% 52%;
        opacity: 0.38;
    }
}

@keyframes gradientPulsePrimaryLite {
    from {
        opacity: 0.34;
    }

    50% {
        opacity: 0.62;
    }

    to {
        opacity: 0.4;
    }
}

@keyframes gradientPulseSecondaryLite {
    from {
        opacity: 0.2;
    }

    48% {
        opacity: 0.5;
    }

    to {
        opacity: 0.28;
    }
}

@keyframes gradientFadePrimary {
    from {
        opacity: 0.48;
    }

    to {
        opacity: 1;
    }
}

@keyframes gradientFadeSecondary {
    from {
        opacity: 0.22;
    }

    to {
        opacity: 0.92;
    }
}

.hero-content {
    animation: riseIn 0.55s ease-out both;
}

.hero-visual {
    animation: riseIn 0.55s ease-out 90ms both;
}

.feature-card,
.case-card,
.workflow-step,
.result-card,
.api-demo {
    animation: riseIn 0.5s ease-out both;
}

.feature-card:nth-child(2),
.case-card:nth-child(2),
.workflow-step:nth-child(2),
.result-card:nth-child(2) {
    animation-delay: 60ms;
}

.feature-card:nth-child(3),
.case-card:nth-child(3),
.workflow-step:nth-child(3),
.result-card:nth-child(3) {
    animation-delay: 110ms;
}

/* Responsive */
@media (max-width: 1100px) {
    .container {
        width: min(1180px, calc(100% - 34px));
    }

    .hero-main {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-content h1 {
        max-width: 14ch;
    }

    .features-grid,
    .workflow-grid {
        gap: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-card,
    .workflow-step {
        padding: 6px 8px 6px 18px;
    }

    #product .section-title,
    #workflow .section-title {
        padding-left: 18px;
    }
}

@media (max-width: 980px) {
    .nav-content {
        gap: 12px;
        padding: 0;
        flex-wrap: nowrap;
    }

    .nav-links {
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .navbar .btn-contact {
        padding: 9px 15px;
        font-size: 12px;
        line-height: 1.2;
    }

    .navbar .btn-primary {
        width: auto;
    }

    .language-select {
        min-width: 116px;
        font-size: 11px;
        padding: 7px 26px 7px 10px;
        background-position:
            calc(100% - 12px) 53%,
            calc(100% - 7px) 53%;
    }

    section[id] {
        scroll-margin-top: 108px;
    }

    .cases-viewport {
        overflow: hidden;
        border-radius: var(--radius-lg);
        background: #dfe7f2;
        touch-action: pan-y;
    }

    .cases-track {
        display: flex;
        gap: 0;
        transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
        will-change: transform;
    }

    .case-card {
        flex: 0 0 100%;
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    .case-card:hover {
        transform: none;
    }

    .cases-controls {
        display: flex;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .result-card {
        border-bottom: 0;
        padding: 12px 0;
    }

    section {
        padding: var(--section-space-mobile) 0;
    }

}

@media (max-width: 680px) {
    .navbar {
        padding: 6px 0;
    }

    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo {
        padding-top: 0;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo img {
        max-height: 46px;
    }

    .nav-links {
        min-width: auto;
        width: auto;
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .nav-links li {
        display: block;
        min-width: 0;
    }

    .navbar .btn-contact {
        width: auto;
        padding: 8px 12px;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .language-select {
        min-width: 108px;
        width: clamp(104px, 34vw, 132px);
        font-size: 11px;
        font-weight: 600;
        color: var(--ink-700);
        border-color: var(--line-strong);
        background-color: #ffffff;
        padding: 7px 24px 7px 10px;
        background-image:
            linear-gradient(45deg, transparent 50%, var(--ink-600) 50%),
            linear-gradient(135deg, var(--ink-600) 50%, transparent 50%);
        background-position:
            calc(100% - 11px) 53%,
            calc(100% - 7px) 53%;
        background-size: 5px 5px;
    }

    .language-select:hover {
        color: var(--ink-900);
        border-color: #c8cfdb;
    }

    .language-select:focus-visible {
        border-color: rgba(229, 31, 45, 0.55);
        box-shadow: 0 0 0 3px rgba(229, 31, 45, 0.16);
    }

    section[id] {
        scroll-margin-top: 100px;
    }

    .hero {
        padding-top: 108px;
        padding-bottom: 56px;
    }

    .hero::before,
    .bottom-cta-section::before {
        inset: -46% -42%;
        background:
            radial-gradient(56% 44% at 16% 24%, rgba(255, 227, 231, 0.76) 0%, rgba(255, 227, 231, 0.76) 30%, rgba(255, 227, 231, 0.18) 56%, transparent 82%),
            radial-gradient(54% 46% at 82% 20%, rgba(124, 170, 224, 0.74) 0%, rgba(124, 170, 224, 0.74) 28%, rgba(124, 170, 224, 0.24) 56%, transparent 82%),
            radial-gradient(64% 58% at 48% 44%, rgba(245, 214, 220, 0.36) 0%, rgba(154, 191, 232, 0.28) 44%, rgba(255, 255, 255, 0.1) 66%, transparent 84%),
            radial-gradient(50% 46% at 30% 82%, rgba(229, 31, 45, 0.18) 0%, rgba(229, 31, 45, 0.18) 28%, rgba(229, 31, 45, 0.06) 56%, transparent 82%);
        background-size: 146% 140%, 158% 150%, 180% 164%, 168% 158%;
        background-position: -20% 2%, 112% -8%, 74% 104%, -54% 38%;
        filter: blur(16px) saturate(1.16) contrast(1.04);
        opacity: 0.72;
        transform: translate3d(-24%, -18%, 0) rotate(-14deg) scale(0.9);
        transform-origin: 50% 44%;
        border-radius: 58% 42% 50% 50% / 46% 56% 44% 54%;
        animation-duration: 15s;
    }

    .hero::after,
    .bottom-cta-section::after {
        inset: -56% -50%;
        background:
            radial-gradient(46% 38% at 24% 30%, rgba(255, 244, 246, 0.78) 0%, rgba(255, 244, 246, 0.78) 28%, rgba(255, 244, 246, 0.16) 56%, transparent 82%),
            radial-gradient(40% 36% at 76% 68%, rgba(229, 31, 45, 0.34) 0%, rgba(229, 31, 45, 0.34) 30%, rgba(229, 31, 45, 0.1) 56%, transparent 80%),
            linear-gradient(118deg,
                rgba(255, 255, 255, 0) 24%,
                rgba(255, 255, 255, 0.52) 38%,
                rgba(165, 195, 228, 0.42) 46%,
                rgba(255, 255, 255, 0.7) 50%,
                rgba(248, 170, 177, 0.3) 56%,
                rgba(255, 255, 255, 0) 72%),
            linear-gradient(98deg,
                rgba(255, 255, 255, 0) 42%,
                rgba(148, 184, 227, 0.3) 48%,
                rgba(255, 255, 255, 0.16) 52%,
                rgba(255, 255, 255, 0) 58%);
        background-size: 138% 132%, 132% 126%, 198% 152%, 158% 126%;
        background-position: -8% 8%, 88% 78%, -20% 44%, -24% 48%;
        filter: blur(10px) saturate(1.18) contrast(1.05);
        opacity: 0.44;
        transform: translate3d(-28%, -20%, 0) rotate(-20deg) scale(0.84);
        transform-origin: 56% 48%;
        border-radius: 46% 54% 58% 42% / 54% 44% 56% 46%;
        animation-duration: 11s;
    }

    .hero-content h1 {
        font-size: clamp(1.54rem, 6.7vw, 1.98rem);
        line-height: 1.12;
        max-width: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        display: none;
    }

    .btn-primary {
        width: 100%;
    }

    .features-grid,
    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .workflow-step {
        border-right: 0;
    }

    .cases-gallery {
        margin-top: 8px;
        gap: 10px;
    }

    .cases-viewport {
        border-radius: calc(var(--radius-sm) + 2px);
    }

    .case-card {
        aspect-ratio: 16 / 11;
        border-radius: 0;
    }

    .case-card h3 {
        left: 14px;
        right: 14px;
        font-size: 1.08rem;
    }

    .cases-controls {
        gap: 10px;
    }

    .cases-control-btn {
        width: 34px;
        height: 34px;
        font-size: 1.08rem;
    }

    .cases-counter {
        min-width: 64px;
        font-size: 0.78rem;
    }

    .hero-metrics {
        padding-top: 22px;
    }

    .results-grid {
        gap: 12px;
    }

    .result-card {
        border-right: 0;
        border-bottom: 0;
        padding: 10px 0 8px;
    }

    .contact-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .contact-popover {
        padding: 0;
        place-items: stretch;
    }

    .contact-popover-panel {
        width: 100%;
        max-width: 100%;
        --contact-popover-corner-radius: 0px;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-bottom: 0;
        padding: calc(12px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
    }

    .contact-popover-header {
        margin-top: 12px;
        margin-bottom: 4px;
        padding-right: 46px;
    }

    .contact-popover-subtitle {
        margin-bottom: 10px;
        font-size: 0.92rem;
        line-height: 1.4;
    }

    .contact-popover-close {
        top: calc(12px + env(safe-area-inset-top));
        right: 14px;
        --contact-popover-close-size: 34px;
        --contact-popover-close-icon-length: 13px;
    }

    .contact-form-wrap {
        padding-top: 4px;
    }

    .contact-form {
        gap: 10px;
    }

    .contact-field {
        gap: 6px;
    }

    .contact-field label {
        font-size: 0.85rem;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 16px;
        line-height: 1.35;
        padding: 10px 11px;
    }

    .contact-field textarea {
        min-height: 100px;
    }

    .contact-submit {
        margin-top: 2px;
    }

    .video-container,
    .api-demo,
    .hero-visual {
        border-radius: var(--radius-sm);
    }

    .feature-card,
    .workflow-step {
        padding: 16px 0 12px;
    }

    .result-card {
        padding: 10px 0 8px;
    }

    .feature-card,
    .workflow-step {
        padding-left: 16px;
    }

    #product .section-title,
    #workflow .section-title {
        padding-left: 16px;
    }

    .api-demo {
        padding: 18px;
    }

    .api-demo pre {
        font-size: 12px;
    }

    .footer-minimal {
        flex-direction: column;
    }

    .bottom-cta-section .footer {
        margin-top: 52px;
        padding: 10px 0 1px;
    }

    .bottom-cta-section {
        padding: 52px 0 18px;
        background: var(--section-hero-gradient);
    }

    .bottom-cta-card .section-title {
        max-width: none;
        font-size: clamp(1.44rem, 5.6vw, 1.86rem);
        margin-bottom: 12px;
    }

    .bottom-cta-card p {
        margin-bottom: 20px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }

    .nav-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .logo {
        padding-top: 0;
        width: auto;
        justify-content: flex-start;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo img {
        max-height: 46px;
    }

    .nav-links {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 6px;
    }

    .nav-links li {
        min-width: 0;
    }

    .navbar .btn-contact {
        width: auto;
        padding: 7px 10px;
        font-size: 11px;
        line-height: 1.2;
    }

    .language-select {
        min-width: 96px;
        width: clamp(94px, 33vw, 120px);
        font-size: 11px;
        padding: 6px 22px 6px 9px;
        background-position:
            calc(100% - 10px) 53%,
            calc(100% - 6px) 53%;
    }

    section[id] {
        scroll-margin-top: 104px;
    }

    .hero {
        padding-top: 114px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .bottom-cta-card .btn-contact {
        min-width: 0;
        width: 100%;
    }
}

@media (hover: none) and (pointer: coarse) {
    .contact-popover-backdrop {
        background: rgba(13, 19, 30, 0.54);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
