/* =================================================================
   Apollero — stylesheet
   1. Tokens
   2. Base
   3. Layout helpers
   4. Buttons
   5. Header & navigation
   6. Hero
   7. Why / Services / Process / Stack
   8. Pricing
   9. FAQ
   10. Contact
   11. Footer
   12. Scroll-reveal animations
   ================================================================= */

/* 1. Tokens ------------------------------------------------------ */
:root {
    --ink:        #0a1524;
    --ink-soft:   #16243a;
    --body:       #4a5a70;
    --muted:      #6b7c92;
    --line:       #e2e8f0;
    --line-soft:  #eef2f7;
    --surface:    #ffffff;
    --bg:         #f6f8fb;
    --accent:     #1d5bff;
    --accent-ink: #1146d6;
    --accent-sub: #e8efff;
    --success:    #0f9d76;
    --danger:     #d63a3a;

    --radius:     14px;
    --radius-sm:  10px;
    --radius-lg:  22px;

    --shadow-sm:  0 1px 2px rgba(10, 21, 36, .05);
    --shadow:     0 4px 20px -6px rgba(10, 21, 36, .12);
    --shadow-lg:  0 24px 60px -22px rgba(10, 21, 36, .28);

    --container:  1180px;
    --gutter:     24px;

    --ease:       cubic-bezier(.16, 1, .3, 1);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            Helvetica, Arial, sans-serif;
}

/* 2. Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.021em;
    line-height: 1.15;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.9rem); letter-spacing: -.033em; }
h2 { font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.75rem); letter-spacing: -.028em; }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--ink);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. Layout helpers ---------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 8vw, 116px) 0; }
.section--tint { background: var(--bg); border-block: 1px solid var(--line-soft); }
.section--dark {
    background: var(--ink);
    color: rgba(255, 255, 255, .74);
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, .66); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: currentColor;
    opacity: .55;
}
.section--dark .eyebrow { color: #8fb0ff; }

.lede { font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); color: var(--body); }

/* 4. Buttons ------------------------------------------------------ */
.btn {
    --btn-bg: var(--accent);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 26px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* Without an explicit size the icon stretches once the button goes full-width. */
.btn svg { flex: none; width: 18px; height: 18px; }

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px rgba(29, 91, 255, .65);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover {
    background: var(--surface);
    border-color: #c9d4e3;
    box-shadow: var(--shadow);
}

.btn--light {
    --btn-bg: rgba(255, 255, 255, .08);
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(6px);
}
.btn--light:hover {
    background: rgba(255, 255, 255, .16);
    box-shadow: none;
}

.btn--sm { padding: 11px 18px; font-size: .93rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* 5. Header ------------------------------------------------------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: transparent;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-stuck {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 24px -12px rgba(10, 21, 36, .3);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 1.16rem;
    letter-spacing: -.02em;
    color: #fff;
    transition: color .35s var(--ease);
}
.header.is-stuck .brand { color: var(--ink); }
.brand__mark { flex: none; width: 32px; height: 32px; }
.brand__mark circle { transition: fill .35s var(--ease); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    display: block;
    padding: 9px 14px;
    font-size: .95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    border-radius: 8px;
    transition: color .25s ease, background-color .25s ease;
}
.nav__link:hover,
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .1); }
.header.is-stuck .nav__link { color: var(--body); }
.header.is-stuck .nav__link:hover,
.header.is-stuck .nav__link.is-active { color: var(--ink); background: var(--bg); }

.header__cta { display: flex; align-items: center; gap: 12px; }
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    transition: color .35s var(--ease);
}
.header.is-stuck .header__phone { color: var(--ink); }
.header__phone svg { width: 16px; height: 16px; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 9px;
    cursor: pointer;
}
.header.is-stuck .burger { border-color: var(--line); }
.burger span {
    display: block;
    width: 18px;
    height: 1.7px;
    margin: 4px auto;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s ease, background-color .35s var(--ease);
}
.header.is-stuck .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.7px) rotate(-45deg); }

/* 6. Hero --------------------------------------------------------- */
.hero {
    position: relative;
    padding: clamp(140px, 17vw, 190px) 0 clamp(72px, 8vw, 104px);
    background: radial-gradient(120% 90% at 78% 6%, rgba(29, 91, 255, .22) 0%, transparent 60%),
                linear-gradient(165deg, #0d1c30 0%, #0a1524 55%, #08111d 100%);
    background-color: var(--ink);
    color: rgba(255, 255, 255, .74);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(90% 70% at 50% 22%, #000 0%, transparent 78%);
}
.hero::after {
    content: "";
    position: absolute;
    top: -22%;
    right: -12%;
    width: 60vw;
    height: 60vw;
    max-width: 780px;
    max-height: 780px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 91, 255, .38) 0%, rgba(29, 91, 255, 0) 66%);
    filter: blur(10px);
    animation: float 16s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-40px, 34px, 0) scale(1.08); }
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: center;
}

.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead {
    font-size: clamp(1.05rem, .98rem + .42vw, 1.24rem);
    color: rgba(255, 255, 255, .72);
    max-width: 56ch;
    margin-bottom: 34px;
}
.hero .eyebrow { color: #8fb0ff; }

.hero__note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .55);
}
.dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: #2ee6a8;
    box-shadow: 0 0 0 0 rgba(46, 230, 168, .7);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 9px rgba(46, 230, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

/* Hero card */
.hero__card {
    padding: 30px;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}
.hero__card h2 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
}
.hero__card > p {
    font-size: .95rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 22px;
}
.hero__checklist { display: grid; gap: 13px; margin-bottom: 26px; }
.hero__checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .96rem;
    color: rgba(255, 255, 255, .84);
}
.hero__checklist svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #2ee6a8; }

.hero__card-actions { display: flex; flex-direction: column; gap: 12px; }

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: clamp(56px, 6vw, 84px);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat { padding: 26px 24px; background: #0b1727; }
.stat__value {
    display: block;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -.03em;
    color: #fff;
    line-height: 1.1;
}
.stat__label {
    font-size: .88rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.4;
}

/* 7. Cards, services, process, stack ------------------------------ */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    border-color: #cfdcf0;
    box-shadow: var(--shadow);
}
.card p { font-size: .97rem; margin-bottom: 0; }
.card h3 { margin-bottom: .55em; }

.card__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    color: var(--accent);
    background: var(--accent-sub);
    border-radius: 12px;
}
.card__icon svg { width: 23px; height: 23px; }

.card__tag {
    display: inline-block;
    margin-bottom: 14px;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Services */
.service {
    padding: 28px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s ease;
}
.service:hover {
    transform: translateY(-4px);
    border-color: #cfdcf0;
    box-shadow: var(--shadow);
}
.service h3 { font-size: 1.08rem; }
.service p { font-size: .94rem; color: var(--muted); margin: 0; }

/* Process */
.process { counter-reset: step; display: grid; gap: 26px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process__item { position: relative; padding-top: 30px; }
.process__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, .14);
}
.process__item::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(29, 91, 255, .18);
}
.process__step {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: #8fb0ff;
}
.process__item h3 { font-size: 1.14rem; margin: 8px 0 6px; }
.process__meta {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 600;
    color: #cfe0ff;
    background: rgba(29, 91, 255, .18);
    border-radius: 100px;
}
.process__item p { font-size: .94rem; color: rgba(255, 255, 255, .62); margin: 0; }

/* Stack chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 9px 16px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: transform .3s var(--ease), border-color .3s ease, color .3s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* 8. Pricing ------------------------------------------------------ */
.pricing-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pricing-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pricing {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    text-align: left;
}
.pricing th, .pricing td {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
.pricing thead th {
    position: relative;
    padding-top: 52px;              /* room for the badge, so every plan name lines up */
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.pricing tbody tr:last-child th,
.pricing tbody tr:last-child td { border-bottom: 0; }

.pricing__rowlabel {
    width: 200px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg);
    white-space: nowrap;
}
.pricing__corner { background: var(--bg); border-bottom-color: var(--line); }

.pricing__plan { font-size: 1.18rem; color: var(--ink); margin: 0 0 4px; }
.pricing__tagline { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.pricing__price { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.pricing__note { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.pricing td { font-size: .95rem; color: var(--ink-soft); }

.pricing__features { display: grid; gap: 9px; }
.pricing__features li {
    position: relative;
    padding-left: 22px;
    font-size: .92rem;
    color: var(--body);
    line-height: 1.45;
}
.pricing__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .48em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.is-featured { background: linear-gradient(180deg, rgba(29, 91, 255, .045), rgba(29, 91, 255, .02)); }
.pricing thead .is-featured { box-shadow: inset 0 3px 0 var(--accent); }

.badge {
    position: absolute;
    top: 18px;
    left: 22px;
    padding: 4px 11px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    border-radius: 100px;
}

.pricing-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: var(--bg);
    border-top: 1px solid var(--line);
}
.pricing-hint {
    margin-top: 14px;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
}

/* 9. FAQ ---------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.faq__item[open] { border-color: #cfdcf0; box-shadow: var(--shadow-sm); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
    content: "";
    flex: none;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__a { padding: 0 22px 22px; font-size: .97rem; color: var(--body); }
.faq__a p { margin: 0; }

/* 10. Contact ----------------------------------------------------- */
.contact {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.contact__aside p { color: rgba(255, 255, 255, .68); font-size: 1rem; }
.contact__list { display: grid; gap: 20px; margin-top: 32px; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row svg { flex: none; width: 20px; height: 20px; color: #8fb0ff; margin-top: 3px; }
.contact__row span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.contact__row a, .contact__row strong {
    font-size: 1.02rem;
    font-weight: 600;
    color: #fff;
}
.contact__row a:hover { color: #8fb0ff; }

.calendly-cta {
    margin-top: 32px;
    padding: 22px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
}
.calendly-cta__label {
    margin: 0 0 14px;
    font-size: .92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
}

.form {
    padding: clamp(26px, 3vw, 38px);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--full { grid-column: 1 / -1; }

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--ink);
}
.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: .97rem;
    color: var(--ink);
    background: #fbfcfe;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7c92' stroke-width='1.8' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 91, 255, .13);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa8ba; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--danger); background: #fff7f7; }
.field__error { display: none; margin-top: 6px; font-size: .82rem; color: var(--danger); }
.field.has-error .field__error { display: block; }

.form__hp {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.form__alert {
    display: none;
    padding: 15px 18px;
    margin-bottom: 22px;
    font-size: .94rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}
.form__alert.is-visible { display: block; }
.form__alert--ok { color: #0a6d52; background: #e8f9f2; border-color: #b9e8d7; }
.form__alert--err { color: #94232a; background: #fdeceb; border-color: #f6cdc9; }

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 11. Footer ------------------------------------------------------ */
.footer {
    padding: 60px 0 32px;
    background: #08111d;
    color: rgba(255, 255, 255, .55);
    font-size: .93rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer h3 {
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 16px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, .72); }
.footer__links a:hover { color: #fff; }
.footer .brand { margin-bottom: 14px; }
.footer__about { max-width: 40ch; }
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    padding-top: 24px;
    font-size: .87rem;
    color: rgba(255, 255, 255, .4);
}

/* 12. Scroll-reveal ----------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="scale"] { transform: scale(.955); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 200;
    height: 2px;
    width: 100%;
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--accent), #57d3ff);
    pointer-events: none;
}

/* Responsive ------------------------------------------------------ */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 20ch; }
    .grid--4, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    html { scroll-padding-top: 76px; }
    .header__inner { height: 68px; }
    .burger { display: block; }
    .header__phone span { display: none; }

    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        margin: 0;
        padding: 14px var(--gutter) 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { padding: 13px 12px; font-size: 1rem; color: var(--ink); border-radius: 9px; }
    .nav__link:hover, .nav__link.is-active { background: var(--bg); color: var(--ink); }

    .stats { grid-template-columns: repeat(2, 1fr); }
    .form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .grid--3, .grid--2, .grid--4, .process { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; }
    .header__cta .btn { width: auto; }
    .card, .service { padding: 26px 22px; }
}

/* Motion preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
}

/* Print ------------------------------------------------------------ */
@media print {
    .header, .progress, .hero::after, .form, .footer { display: none !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    body { color: #000; }
}
