/* ==========================================================================
   Hexatec AI — Landing page
   Faithful recreation of the original Tilda template with a modern,
   responsive frosted-glass theme. Font: Figtree. Dark navy palette.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Colors (from original template) */
    --color-bg: #040210;             /* page background (dark navy) */
    --color-bg-2: #09062c;           /* contact card background */
    --color-navy: #1e2264;           /* mobile menu panel */
    --color-primary: #3772fe;        /* accent blue */
    --color-primary-light: #517fee;  /* hover blue */
    --color-text: #ffffff;
    --color-text-soft: rgba(255, 255, 255, 0.7);
    --color-text-body: #edf2ff;
    --color-your: #b38ef8;           /* "Your data" purple */
    --color-external: #53b6b3;       /* "External data" teal */
    --color-border-input: #53516b;   /* form input borders */
    --color-line: rgba(255, 255, 255, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 18px;

    /* Gradients */
    --grad-text: linear-gradient(0.901turn, rgba(55, 114, 254, 1) 0%, rgba(109, 152, 255, 1) 100%);
    --grad-divider: linear-gradient(0.5turn, rgba(255, 255, 255, 1) 0%, rgba(55, 114, 254, 0) 100%);
    --grad-footer: linear-gradient(0.75turn, rgba(120, 160, 255, 1) 0%, rgba(55, 114, 254, 0) 100%);

    /* Typography */
    --font-sans: 'Figtree', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1200px;
    --gutter: 20px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: 0.3s ease;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 90px;
    overflow-x: clip;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

a,
button,
summary {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

h1, h2, h3 {
    line-height: 1.1;
    font-weight: 600;
}

.material-symbols-outlined {
    font-size: 35px;
    font-weight: 300;
}

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

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    background: var(--color-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    z-index: 1000;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

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

/* ---------- Shared elements ---------- */

/* Frosted-glass card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* Outline pill / eyebrow badge */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    height: 37px;
    border: 1px solid var(--color-primary);
    border-radius: 100px;
    margin-bottom: 26px;
}

.pill span {
    font-size: 16px;
    font-weight: 400;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Section title */
.section-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1;
    color: var(--color-text);
}

.text-accent {
    color: #79a1ff;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius);
    transition: background-color var(--transition), transform var(--transition),
                box-shadow var(--transition), opacity var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
}

.btn-secondary .material-symbols-outlined {
    font-size: 24px;
}

.btn-sm {
    height: 41px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    height: 60px;
    font-size: 20px;
}

/* Big hero CTA button (base #517fee with #3772fe resting overlay) */
.btn-hero {
    position: relative;
    height: 58px;
    padding: 0 32px;
    font-size: 18px;
    color: #fff;
    background-color: var(--color-primary-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.btn-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-primary);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.btn-hero:hover::after {
    opacity: 0;
}

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

.btn-hero .btn-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.btn-hero .btn-arrow {
    width: 19px;
    height: 10px;
    transition: transform var(--transition), opacity var(--transition);
}

.btn-hero:hover .btn-arrow {
    transform: translateX(2px);
    opacity: 0.4;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-top: 30px;
}

.nav-glass {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    height: 73px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(4, 2, 16, 0.35);
    /* Original bar bg image (commented): Rec_header.png */
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
}

.nav-logo img {
    display: block;
}

.nav-side {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-side a {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.55;
    transition: color var(--transition);
}

.nav-side a:hover {
    color: var(--color-primary);
}

.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 16, 0.4);
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-menu.open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--color-navy);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.mobile-links a {
    display: block;
    padding: 15px 0;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
}

.mobile-login {
    margin-top: -14px;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Original hero bg image (change here if needed) */
    background-image: url('bg1.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: var(--color-bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 2, 16, 0.55) 0%, rgba(4, 2, 16, 0.2) 45%, rgba(4, 2, 16, 0.85) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: clamp(36px, 6.5vw, 85px);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1;
    color: #fff;
    margin-bottom: 30px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-body);
    max-width: 660px;
    margin-bottom: 45px;
}

/* ==========================================================================
   Sections (shared spacing)
   ========================================================================== */
section {
    padding: clamp(60px, 8vw, 110px) 0;
    position: relative;
}

/* ==========================================================================
   About
   ========================================================================== */

.about::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -95px;
    transform: translateX(-50%) translateY(80%);
    width: 1200px;
    height: 781px;
    background: url('img_2c.png') center/contain no-repeat;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 4, 25, 1) 0%, transparent 100%);
    mask-image: radial-gradient(circle, rgba(0, 4, 25, 1) 0%, transparent 100%);
    pointer-events: none;
}

.about {
    background: #000D54;
    background: radial-gradient(circle,rgba(0, 4, 25, 1) 25%, rgba(4, 2, 16, 1) 100%);
    padding-top: clamp(70px, 9vw, 120px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 157px;
}

.about-lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
}

.about-lead .text-accent {
    display: block;
    margin-top: 12px;
}

.about-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 60px;
}

.about-media img {
    width: 100%;
    height: auto;
}

.about-points {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-points-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 600;
    margin: 52px auto;
}

.about-points-text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}

.feature-card {
    padding: 34px;
    transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(81, 127, 238, 0.55);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 25px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-soft);
}

.feature-card-wide {
    grid-column: 1 / -1;
    max-width: 480px;
}

/* ==========================================================================
   Benefits / Stats
   ========================================================================== */
.benefits {
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* soft glow behind stats */
.hero-actions {
    display: flex;
    justify-content: center;
}

.benefits::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -200px;
    transform: translateX(-50%);
    /* width: 1453px; */
    /* height: 800px; */
    width: 100%;
    height: 100vw;
    background: url('Img_blur.png') center/contain no-repeat;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 4, 25, 1) 0%, transparent 70%);
    mask-image: radial-gradient(circle, rgba(0, 4, 25, 1) 0%, transparent 70%);
    opacity: 0.9;
    pointer-events: none;
}

.stats-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
}

.stat-num {
    font-size: clamp(60px, 7vw, 84px);
    font-weight: 400;
    line-height: 1;
    color: #fff;
}

.stat-unit {
    font-size: 22px;
    font-weight: 400;
    vertical-align: super;
}

.stat-word {
    font-size: 22px;
    font-weight: 400;
    color: #fff;
}

.stat-desc {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-soft);
}

.stat-divider {
    width: 2px;
    height: 233px;
    background: var(--grad-divider);
    justify-self: center;
}

/* ==========================================================================
   Data
   ========================================================================== */
.data {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.data-glow {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1346px;
    height: 1374px;
    /* Original data glow image (change here if needed) */
    background: url('bg_4.svg') center/contain no-repeat;
    filter: blur(50px);
    opacity: 0.8;
    pointer-events: none;
}

.data-inner {
    position: relative;
    z-index: 1;
}

.data-lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    max-width: 760px;
    margin: 22px auto 40px;
}

.data-labels {
    display: flex;
    justify-content: center;
    gap: clamp(180px, 30vw, 420px);
    margin-bottom: 10px;
}

.data-label {
    font-size: 35px;
    font-weight: 500;
    line-height: 1.1;
}

.data-label-your {
    color: var(--color-your);
}

.data-label-external {
    color: var(--color-external);
}

.data-scheme img {
    margin: 0 auto;
    width: min(1107px, 100%);
}

.data-scheme-mobile {
    display: none;
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review {
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review blockquote p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text-soft);
}

.review figcaption {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    margin-top: auto;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.faq-head {
    position: sticky;
    top: 130px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--color-primary);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 4px;
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    list-style: none;
    transition: color var(--transition);
}

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

.faq-icon {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1px;
    background: #fff;
    border-radius: 100px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    padding: 0 4px 30px;
}

.faq-answer p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
    position: relative;
    text-align: center;
    overflow: hidden;
    padding-bottom: 190px;
}

.cta::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -95px;
    transform: translateX(-50%);
    width: 1200px;
    height: 781px;
    background: url('6ff8da06.png') center/contain no-repeat;
    -webkit-mask-image: linear-gradient(rgba(0, 4, 25, 1) 65%, transparent 85%);
    mask-image: linear-gradient(rgba(0, 4, 25, 1) 65%, transparent 85%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.cta-lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    margin: 22px auto 40px;
    max-width: 740px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: clamp(30px, 5vw, 70px);
    background-color: var(--color-bg-2);
    border-radius: var(--radius-xl);
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*
.contact-logo {
    margin-bottom: 40px;
}
*/

.contact-title {
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
}

.contact-sub {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    height: 60px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    background: transparent;
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius);
    padding: 0 18px;
    transition: border-color var(--transition);
}

.contact-form textarea {
    height: auto;
    min-height: 110px;
    padding: 16px 18px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-check a {
    color: var(--color-primary);
}

.form-check a:hover {
    color: var(--color-primary-light);
}

.form-note {
    font-size: 15px;
    color: #7ce38b;
    min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background: var(--color-bg);
    padding-top: 60px;
    overflow: hidden;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand .brand img {
    margin-bottom: 22px;
}

.footer-addr {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 16px;
}

.footer-mail {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-mail:hover {
    color: #fff;
}

.footer-title {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    margin-bottom: 18px;
    text-transform: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #fff;
    transition: color var(--transition);
}

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

.social-list a {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.social-list a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid transparent;
    /* Literal gradient (not var()): var() inside border-image fails in Safari */
    border-image: linear-gradient(0.75turn, rgba(120, 160, 255, 1) 0%, rgba(55, 114, 254, 0) 100%) 1;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

/* ==========================================================================
   Scroll reveal animations (recreating Tilda t-animate)
   fadein / fadeinright / fadeinleft / fadeindown / fadeinup
   distance 100px, duration ~1s
   ========================================================================== */
[data-anim] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

[data-anim="fadein"] {
    transform: none;
}

[data-anim="fadeinup"] {
    transform: translateY(100px);
}

[data-anim="fadeindown"] {
    transform: translateY(-100px);
}

[data-anim="fadeinleft"] {
    transform: translateX(-100px);
}

[data-anim="fadeinright"] {
    transform: translateX(100px);
}

[data-anim-delay="1"] {
    transition-delay: 0.15s;
}

[data-anim-delay="2"] {
    transition-delay: 0.3s;
}

[data-anim].anim-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid,
    .contact-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-head {
        position: static;
    }

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

@media (max-width: 768px) {
    :root {
        /* Cheaper backdrop blur for low-end mobile GPUs */
        --glass-blur: 12px;
    }

    .nav-side {
        display: none;
    }

    .nav-burger {
        display: flex;
        width: 44px;
        height: 44px;
    }

    .nav-glass {
        height: 60px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .site-header {
        padding-top: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .mobile-menu-panel {
        padding-top: max(40px, calc(env(safe-area-inset-top) + 16px));
        padding-right: max(32px, env(safe-area-inset-right));
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    /* Mobile image variants (smaller files, same images) */
    .hero {
        background-image: url('bg1-mobile.webp');
    }

    .about::before {
        background-image: url('img_2c-mobile.webp');
    }

    .benefits::before {
        background-image: url('Img_blur-mobile.webp');
    }

    .cta::before {
        background-image: url('6ff8da06-mobile.webp');
    }

    .hero-inner {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        margin-bottom: 64px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .feature-card,
    .review {
        padding: 26px;
    }

    .feature-card-wide {
        max-width: none;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-divider {
        width: 200px;
        height: 2px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(55, 114, 254, 0));
        justify-self: center;
    }

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

    .cta {
        padding-bottom: 110px;
    }

    .data-labels {
        gap: 30px;
    }

    .data-scheme-desktop {
        display: none;
    }

    .data-scheme-mobile {
        display: block;
        width: min(624px, 100%);
    }

    .data-label {
        font-size: 26px;
    }

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

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .data-labels {
        flex-direction: column;
        gap: 8px;
    }

    .pill {
        height: 32px;
        padding: 0 20px;
    }

    .pill span {
        font-size: 13px;
    }

    /* Tighter type scale for narrow phones */
    .hero-title {
        font-size: clamp(31px, 9vw, 36px);
        letter-spacing: -0.5px;
    }

    .section-title {
        font-size: clamp(26px, 7.5vw, 30px);
    }

    .stat-num {
        font-size: clamp(48px, 14vw, 60px);
    }

    .feature-card h3 {
        font-size: 22px;
    }

    .contact-sub {
        font-size: 18px;
    }
}

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

    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
