/* ============ Reset & tokens ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: rgba(99, 102, 241, .15); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; -webkit-tap-highlight-color: rgba(99, 102, 241, .15); }
/* Prevent long words/URLs from creating horizontal scroll on narrow screens */
h1, h2, h3, h4, p, li, a, span, strong, em { overflow-wrap: anywhere; word-break: normal; }

:root {
    --bg: #07070b;
    --bg-2: #0d0d14;
    --bg-3: #15151f;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);

    --fg: #ededf2;
    --fg-muted: #a3a3b2;
    --fg-dim: #6f6f80;

    --accent: #6366f1;
    --accent-2: #22d3ee;
    --accent-glow: rgba(99, 102, 241, 0.45);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.55);

    --content-w: 1180px;
    --gap: 1.25rem;

    --t-fast: 160ms ease;
    --t: 240ms cubic-bezier(.2,.7,.2,1);
    --t-slow: 480ms cubic-bezier(.2,.7,.2,1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--fg);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar { width: 0; height: 0; display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 1.25rem; }

/* ============ Typography ============ */
h1, h2, h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hl {
    background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .94rem;
    line-height: 1;
    transition: transform var(--t-fast), background var(--t), box-shadow var(--t), border-color var(--t);
    will-change: transform;
    white-space: nowrap;
}
.btn-sm { padding: .6rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 8px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22); }
.btn-ghost {
    background: var(--panel);
    color: var(--fg);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--panel-strong); border-color: var(--line-strong); }
.btn:active { transform: translateY(0) scale(.98); }

/* ============ Header ============ */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding: .9rem 0;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    background: rgba(7, 7, 11, 0.72);
    border-bottom: 1px solid transparent;
    transition: background var(--t), border-color var(--t);
    will-change: background-color;
    contain: layout style;
}
.site-header.scrolled {
    background: rgba(7, 7, 11, 0.88);
    border-bottom-color: var(--line);
}
@media (max-width: 720px) {
    .site-header {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(7, 7, 11, 0.88);
    }
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem;
}
.brand {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
}
.brand-logo {
    width: 36px; height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.brand-name {
    display: inline-flex;
    align-items: baseline;
    gap: .12em;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}
.brand-novaia {
    background: linear-gradient(
        100deg,
        #4a4d5a 0%,
        #7d8294 12%,
        #c9ccd6 24%,
        #f4f6fb 38%,
        #ffffff 48%,
        #ffffff 52%,
        #f4f6fb 62%,
        #c9ccd6 76%,
        #7d8294 88%,
        #4a4d5a 100%
    );
    background-size: 250% 100%;
    background-position: 200% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: novaiaShimmer 3.2s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(220, 230, 255, .15));
}
.brand-web {
    font-weight: 800;
    font-size: .78em;
    letter-spacing: 0.02em;
    color: var(--fg);
    opacity: .85;
    transform: translateY(-2px);
}
@keyframes novaiaShimmer {
    0%   { background-position: 200% 50%; }
    50%  { background-position: 0% 50%; }
    100% { background-position: -200% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-novaia { animation: none; background-position: 50% 50%; }
}
.brand-footer .brand-name { font-size: 1.2rem; }
.brand-footer .brand-web { font-size: .76em; }

@media (max-width: 720px) {
    .brand-name { font-size: 1.25rem; }
}

.primary-nav { display: flex; gap: 1.6rem; }
.nav-item {
    color: var(--fg-muted);
    font-size: .92rem;
    font-weight: 500;
    transition: color var(--t-fast);
    position: relative;
}
.nav-item:hover { color: var(--fg); }
.nav-item::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--accent);
    transition: width var(--t);
}
.nav-item:hover::after { width: 100%; }
.nav-item-active { color: var(--fg); }
.nav-item-active::after { width: 100%; background: var(--accent-2); }

.header-cta { display: flex; align-items: center; gap: .6rem; }

.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform var(--t), opacity var(--t-fast); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: 64px 0 auto 0;
    background: rgba(7, 7, 11, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.25rem 1.6rem;
    display: none;
    flex-direction: column;
    gap: .35rem;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform var(--t), opacity var(--t);
    pointer-events: none;
}
.mobile-nav.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-item {
    padding: .9rem 1rem;
    border-radius: 12px;
    color: var(--fg);
    font-size: 1.05rem;
    font-weight: 500;
    transition: background var(--t-fast);
}
.mobile-item:hover, .mobile-item:active { background: var(--panel-strong); }
.mobile-cta { color: var(--accent-2); }

/* ============ Hero ============ */
.hero {
    position: relative;
    padding: 9rem 0 5.5rem;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 45%, transparent 75%);
}
.hero-glow {
    position: absolute;
    top: -180px; left: 50%;
    width: 720px; height: 720px;
    transform: translate3d(-50%, 0, 0);
    background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
    opacity: .55;
    will-change: transform;
    pointer-events: none;
}

.hero-inner { position: relative; text-align: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: .82rem;
    color: var(--fg-muted);
    margin-bottom: 1.6rem;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero-title {
    font-size: clamp(2.1rem, 5.6vw, 4.4rem);
    margin-bottom: 1.25rem;
}
.hero-sub {
    color: var(--fg-muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    max-width: 640px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3.5rem;
}
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.hero-metrics li { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.hero-metrics strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.hero-metrics span { font-size: .8rem; color: var(--fg-dim); }

/* ============ Logos / Stack ============ */
.logos {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.logos-label {
    text-align: center;
    color: var(--fg-dim);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 1.25rem;
}
.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%
    );
}
.logos-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 3.4rem;
    animation: logosScroll 55s linear infinite;
    animation-play-state: paused;
    will-change: transform;
}
.logos-track.ready { animation-play-state: running; }
.logos-track.ready:hover { animation-play-state: paused; }
@keyframes logosScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .logos-track { animation: none; transform: none; }
}

/* Logo items rendered as <img> from simpleicons CDN — greyscale by default,
   official brand colors on hover. If an image 404s, JS removes the node so
   no gap is left in the marquee. */
.tech-logo {
    flex: 0 0 auto;
    height: 34px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.6) opacity(.55);
    transition: filter var(--t-fast), transform var(--t-fast);
    cursor: default;
}
.tech-logo:hover {
    filter: none;
    transform: scale(1.15);
}

.logos-row {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 2rem 2.6rem;
    color: var(--fg-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.logos-row span { transition: color var(--t-fast); }
.logos-row span:hover { color: var(--fg); }

/* ============ Section base ============ */
section[id] { scroll-margin-top: 100px; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-label {
    display: inline-block;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--accent-2);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    margin-bottom: .85rem;
}
.section-sub {
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.04rem;
}

.grid { display: grid; gap: 1.25rem; }
.grid-services { grid-template-columns: repeat(4, 1fr); }
.grid-innovations { grid-template-columns: repeat(3, 1fr); }
.grid-projects { grid-template-columns: repeat(2, 1fr); }
.grid-pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

/* ============ Services ============ */
.services {
    padding: 6rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 700px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--t), border-color var(--t), background var(--t);
    position: relative;
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-strong); }
.card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), var(--accent-glow), transparent 40%);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}
.card:hover::before { opacity: .25; }
.card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.12));
    color: var(--accent-2);
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--fg-muted); font-size: .95rem; margin-bottom: 1rem; }
.ticks { display: flex; flex-direction: column; gap: .35rem; }
.ticks li {
    font-size: .88rem;
    color: var(--fg-muted);
    padding-left: 1.35rem;
    position: relative;
}
.ticks li::before {
    content: "";
    position: absolute; left: 0; top: .35rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(34,211,238,.18);
    border: 1px solid var(--accent-2);
}
.ticks li::after {
    content: "";
    position: absolute; left: 4px; top: .58rem;
    width: 6px; height: 3px;
    border-left: 2px solid var(--accent-2);
    border-bottom: 2px solid var(--accent-2);
    transform: rotate(-45deg);
}

/* ============ Innovations ============ */
.innovations {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.innovations::before {
    content: "";
    position: absolute;
    top: -20%; left: 50%;
    width: 900px; height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(34,211,238,.10), transparent 60%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}
.innov-card {
    position: relative;
    padding-top: 2.15rem;
}
.innov-card .card-icon {
    background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(99,102,241,.10));
    color: var(--accent-2);
}
.card-badge-new {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #07070b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(34,211,238,.4);
}

/* ============ Steps (used by sur-mesure.html & lite.html) ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: step;
}
.step {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    transition: border-color var(--t), background var(--t);
}
.step:hover { border-color: var(--line-strong); background: var(--panel-strong); }
.step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
    letter-spacing: -0.04em;
}
.step-body h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step-body p { color: var(--fg-muted); font-size: .92rem; margin-bottom: .8rem; }
.step-time {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(34,211,238,.1);
    color: var(--accent-2);
    font-size: .76rem;
    font-weight: 500;
}

/* ============ Process (home) ============ */
.process {
    position: relative;
    padding: 7rem 0 6rem;
    background: #050509;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
}
.process-glow {
    position: absolute;
    top: -160px; left: 50%;
    transform: translateX(-50%);
    width: 1100px; height: 520px;
    background: radial-gradient(ellipse at center, rgba(34,211,238,.45) 0%, rgba(59,130,246,.22) 35%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}
.process-head { text-align: center; max-width: 760px; margin: 0 auto 5rem; }
.process-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.02;
    background: linear-gradient(180deg, #ffffff 0%, #c9cad6 55%, #6b6c7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.4rem;
}
.process-sub {
    color: var(--fg-muted);
    font-size: 1.02rem;
    max-width: 480px;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    margin-top: 1rem;
}
.process-step {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
}
.process-text {
    position: relative;
    padding: 1rem 0 1rem 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.process-bignum {
    position: absolute;
    left: -10px;
    bottom: -40px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14rem;
    font-weight: 700;
    line-height: .8;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.04);
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}
.process-text h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.process-text p {
    color: var(--fg-muted);
    font-size: 1rem;
    max-width: 440px;
    line-height: 1.55;
}

.process-code { position: relative; }
.code-window {
    background: linear-gradient(180deg, #0e0e16 0%, #08080d 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04) inset,
        0 30px 60px rgba(0,0,0,.55),
        0 0 0 1px rgba(0,0,0,.3);
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Menlo', ui-monospace, monospace;
}
.code-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.code-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.code-dot-r { background: #ec6a5e; }
.code-dot-y { background: #f4bf4f; }
.code-dot-g { background: #62c454; }
.code-file {
    margin-left: .7rem;
    color: #7d7e8a;
    font-size: .82rem;
    letter-spacing: .01em;
}
.code-body {
    margin: 0;
    padding: 1.2rem 1.4rem 1.5rem;
    font-size: .92rem;
    line-height: 1.7;
    color: #d6d7e0;
    white-space: pre;
    overflow-x: auto;
}
.code-line {
    display: block;
    min-height: 1.7em;
}
.cl-n {
    display: inline-block;
    width: 1.6em;
    color: #4a4b58;
    user-select: none;
    text-align: right;
    margin-right: 1rem;
}
.cl-c { color: #6c7080; font-style: italic; }
.cl-k { color: #c084fc; }
.cl-p { color: #38bdf8; font-weight: 500; }
.cl-s { color: #22d3ee; }
.cl-fn { color: #facc15; }
.cl-ok { color: #22d3ee; font-weight: 600; }
.cl-dim { color: #3a3b48; }
.cl-caret {
    display: inline-block;
    width: 9px;
    background: #d6d7e0;
    color: transparent;
    animation: caret 1s steps(2) infinite;
}
.code-body-term .code-line { font-size: .92rem; }
@keyframes caret {
    50% { opacity: 0; }
}

/* ---- Process: scroll-in animations ---- */
.process { perspective: 1400px; }

.process-head .process-title,
.process-head .process-sub {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.process-head .process-sub { transition-delay: 140ms; }
.process-head.is-visible .process-title,
.process-head.is-visible .process-sub {
    opacity: 1;
    transform: translateY(0);
}

.process-step .process-text {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1000ms cubic-bezier(.2,.8,.2,1), transform 1000ms cubic-bezier(.2,.8,.2,1);
    will-change: transform, opacity;
}
.process-step .process-code {
    opacity: 0;
    transform: translateX(80px) rotateY(-18deg) scale(.92);
    transform-origin: left center;
    transition: opacity 1100ms cubic-bezier(.2,.8,.2,1) 180ms,
                transform 1100ms cubic-bezier(.2,.8,.2,1) 180ms;
    will-change: transform, opacity;
}
.process-step.is-visible .process-text {
    opacity: 1;
    transform: translateX(0);
}
.process-step.is-visible .process-code {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1);
}

/* Bigger, more visible numbers with a scale-in + glow */
.process-bignum {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.12);
    text-shadow: 0 0 60px rgba(34,211,238,0.08);
    opacity: 0;
    transform: translateY(60px) scale(.7);
    transition: opacity 900ms cubic-bezier(.2,.7,.2,1) 220ms,
                transform 1100ms cubic-bezier(.2,.8,.2,1) 220ms;
    will-change: transform, opacity;
}
.process-step.is-visible .process-bignum {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Typewriter cursor: blinks at current typing position */
.tw-caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 1px;
    background: var(--accent-2);
    box-shadow: 0 0 6px rgba(34,211,238,.7);
    vertical-align: -2px;
    animation: twBlink .9s steps(2) infinite;
}
.tw-caret.tw-caret-done { animation-duration: 1.4s; opacity: .8; }
@keyframes twBlink {
    50% { opacity: 0; }
}

/* Cyan scan line that travels down the code body while typing */
.code-body { position: relative; }
.code-window.is-typing .code-body::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.7) 50%, transparent 100%);
    box-shadow: 0 0 12px rgba(34,211,238,.6);
    animation: codeScan 2s cubic-bezier(.4,.1,.4,.9) forwards;
    pointer-events: none;
    opacity: 0;
}
@keyframes codeScan {
    0%   { opacity: 0; transform: translateY(0); }
    8%   { opacity: 1; }
    88%  { opacity: 1; transform: translateY(100%); }
    100% { opacity: 0; transform: translateY(100%); }
}

/* Subtle hover lift on the code window once it has typed */
.code-window {
    transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease;
}
.process-step.is-visible:hover .code-window {
    transform: translateY(-4px);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 40px 80px rgba(0,0,0,.65),
        0 0 0 1px rgba(34,211,238,.18),
        0 0 40px rgba(34,211,238,.12);
}

@media (prefers-reduced-motion: reduce) {
    .process-head .process-title,
    .process-head .process-sub,
    .process-step .process-text,
    .process-step .process-code,
    .process-bignum {
        opacity: 1 !important;
        transform: none !important;
    }
    .code-window.is-typing .code-body::after { display: none; }
    .tw-caret { animation: none; opacity: 1; }
}

/* ============ Projects ============ */
.projects {
    padding: 6rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 1100px;
}
.project {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    color: inherit;
}
.project:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.grid-projects, .grid-projects-3 { align-items: stretch; }
.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1440 / 900;
    overflow: hidden;
    background: var(--bg-3);
    border-bottom: 1px solid var(--line);
    contain: strict;
    container-type: inline-size;
}
.project-thumb-inner {
    position: absolute;
    top: 0; left: 0;
    width: 1440px;
    height: 900px;
    transform: scale(calc(100cqw / 1440px));
    transform-origin: top left;
    pointer-events: none;
}
.project-thumb-inner iframe {
    width: 100%; height: 100%;
    border: 0;
    background: #fff;
    pointer-events: none;
}
/* Clickable transparent overlay above iframe to block hover/scroll capture */
.project-thumb::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 2;
    cursor: pointer;
}
.project-tag {
    position: absolute; top: 1rem; left: 1rem; z-index: 2;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
    color: #fff; font-size: .76rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,.15);
}
.project-meta {
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-meta h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.project-meta p { color: var(--fg-muted); font-size: .92rem; margin: 0; }
.projects-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* ============ Testimonials ============ */
.testimonials {
    padding: 6rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}
.rating-line {
    display: inline-flex; align-items: center; gap: .65rem;
    margin-top: .9rem;
    padding: .5rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars svg { width: 16px; height: 16px; }
.rating-text { color: var(--fg-muted); font-size: .9rem; }
.rating-text strong { color: var(--fg); font-weight: 600; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.t-card {
    position: relative;
    display: block;
    padding: 1.6rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: inherit;
    transition: transform var(--t), border-color var(--t), background var(--t);
}
.t-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--panel-strong);
}
a.t-card { cursor: pointer; }
.t-link-icon {
    position: absolute; top: 1.1rem; right: 1.1rem;
    color: var(--fg-dim);
    transition: color var(--t-fast), transform var(--t-fast);
}
a.t-card:hover .t-link-icon { color: var(--accent-2); transform: translate(2px, -2px); }

.t-stars { display: flex; gap: 2px; margin-bottom: .85rem; }
.t-stars svg { width: 14px; height: 14px; }

.t-quote {
    color: var(--fg);
    font-size: .96rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.t-author {
    display: flex; align-items: center; gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.t-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--av1, var(--accent)), var(--av2, #4f46e5));
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.t-author-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.t-author-text strong { font-size: .94rem; font-weight: 600; color: var(--fg); }
.t-author-text span { font-size: .8rem; color: var(--fg-dim); }

/* Google review card (clickable) */
a.t-card-stats {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: flex-start;
    background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(34,211,238,.05));
    border-color: var(--line-strong);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}
a.t-card-stats:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.08));
    box-shadow: 0 20px 50px rgba(99,102,241,.22);
}
.t-stats-google {
    margin-bottom: 1rem;
    display: inline-grid; place-items: center;
    width: 48px; height: 48px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.5);
}
.t-google-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 .35rem;
    letter-spacing: -0.01em;
}
.t-google-sub {
    color: var(--fg-muted);
    font-size: .9rem;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}
.t-google-stars {
    display: flex; align-items: center; gap: 3px;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    width: 100%;
}
.t-google-stars svg { width: 14px; height: 14px; flex-shrink: 0; }
.t-google-cta-text {
    margin-left: auto;
    color: var(--accent-2);
    font-size: .88rem;
    font-weight: 600;
    transition: transform var(--t-fast);
}
a.t-card-stats:hover .t-google-cta-text { transform: translateX(3px); }

/* ============ Pricing ============ */
.pricing { padding: 6rem 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: border-color var(--t), transform var(--t), background var(--t);
    position: relative;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-strong); }
.plan-featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(99,102,241,.07), var(--panel));
    box-shadow: 0 30px 60px rgba(99,102,241,.18);
}
.plan-featured:hover { border-color: var(--accent); }
.plan-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    padding: .35rem .8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px var(--accent-glow);
}
.plan-name { font-size: 1.2rem; margin-bottom: .35rem; }
.plan-scarcity {
    display: inline-flex; align-items: center; gap: .35rem;
    margin-bottom: .9rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 68, 68, .15), rgba(234, 88, 12, .1));
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fecaca;
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.2;
}
.plan-scarcity svg { color: #f97316; flex-shrink: 0; animation: scarcityPulse 1.6s ease-in-out infinite; }
.plan-scarcity strong { color: #fff; font-weight: 700; }
@keyframes scarcityPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
    .plan-scarcity svg { animation: none; }
}
.plan-desc { color: var(--fg-muted); font-size: .9rem; margin-bottom: 1.2rem; }
.plan-price { margin-bottom: 1.4rem; }
.plan-price strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: .2rem;
}
.plan-price strong small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--fg-muted);
    letter-spacing: 0;
    margin-left: .15rem;
}
.plan-price span { color: var(--fg-dim); font-size: .85rem; }
.plan-feats { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.6rem; flex: 1; }
.plan-feats li {
    color: var(--fg-muted);
    font-size: .92rem;
    padding-left: 1.4rem;
    position: relative;
}
.plan-feats li::before {
    content: "+";
    position: absolute; left: 0; top: 0;
    color: var(--accent-2);
    font-weight: 600;
}
.pricing-note {
    text-align: center;
    margin-top: 2.2rem;
    color: var(--fg-muted);
    font-size: .92rem;
}
.pricing-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.pricing-aside {
    text-align: center;
    margin-top: 2.5rem;
    color: var(--fg-dim);
    font-size: .82rem;
}
.pricing-aside a {
    color: var(--accent-2);
    margin-left: .35rem;
    transition: color var(--t-fast);
}
.pricing-aside a:hover { color: var(--fg); }

.plan-note {
    color: var(--fg-dim);
    font-size: .8rem;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: -.4rem;
}

/* ============ Page hero (sub-pages: tarifs, etc.) ============ */
.page-hero {
    position: relative;
    padding: 8.5rem 0 3.5rem;
    overflow: hidden;
    isolation: isolate;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.page-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(180deg, #fff 0%, #c9cad6 60%, #6b6c7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-hero-sub {
    color: var(--fg-muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}
.page-hero .hero-actions { justify-content: center; }

/* ============ Tariffs (à-la-carte rows) ============ */
.tariffs {
    padding: 5rem 0;
}
.tariffs-alt {
    background: var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.tariff-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.tariff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--t), background var(--t), transform var(--t);
}
.tariff-row:hover {
    border-color: var(--line-strong);
    background: var(--panel-strong);
    transform: translateY(-1px);
}
.tariff-row-highlight {
    border-color: rgba(99, 102, 241, .55);
    background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(34,211,238,.04));
}
.tariff-row-highlight:hover { border-color: var(--accent); }
.tariff-info h3 {
    font-size: 1.05rem;
    margin-bottom: .3rem;
    font-weight: 600;
}
.tariff-info p {
    color: var(--fg-muted);
    font-size: .9rem;
    margin: 0;
}
.tariff-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.tariff-badge {
    display: inline-block;
    margin-left: .55rem;
    padding: .18rem .6rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .25);
    color: var(--accent-2);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    vertical-align: 2px;
}
.tariff-aside {
    text-align: center;
    margin-top: 2.2rem;
    color: var(--fg-dim);
    font-size: .9rem;
}
.tariff-aside a {
    color: var(--accent-2);
    margin-left: .35rem;
    transition: color var(--t-fast);
}
.tariff-aside a:hover { color: var(--fg); }

/* ============ Pricing comparison modal ============ */
.pricing-actions {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(5, 5, 9, 0.88);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease-out, visibility 0s linear 180ms;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem;
    overflow-y: auto;
    will-change: opacity;
}
.compare-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease-out, visibility 0s linear 0s;
}
.compare-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(180deg, #0e0e16 0%, #0a0a12 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translate3d(0, 24px, 0) scale(.96);
    opacity: 0;
    transition: transform 320ms cubic-bezier(.2, .8, .2, 1) 30ms,
                opacity 240ms ease-out 30ms;
    will-change: transform, opacity;
}
.compare-modal.is-open .compare-modal-inner {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

/* Pause heavy background animations while modal is open (perf) */
body.modal-open .logos-track { animation-play-state: paused; }
body.modal-open .code-window.is-typing .code-body::after { animation-play-state: paused; }
body.modal-open .process-bignum { will-change: auto; transform: none !important; }
.compare-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--fg-muted);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.compare-close:hover {
    background: var(--panel-strong);
    color: var(--fg);
    border-color: var(--line-strong);
}

.compare-head { text-align: center; margin-bottom: 2rem; }
.compare-head h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin: .9rem 0 .4rem;
    letter-spacing: -0.02em;
}
.compare-head p { color: var(--fg-muted); font-size: .95rem; }

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.compare-card {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.compare-card-featured {
    border-color: rgba(99, 102, 241, .45);
    background: linear-gradient(180deg, rgba(99,102,241,.06), rgba(34,211,238,.03));
    box-shadow: 0 0 0 1px rgba(99,102,241,.12), 0 20px 50px rgba(0,0,0,.3);
}
.compare-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    padding: .25rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    white-space: nowrap;
}
.compare-card-head h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: .3rem;
}
.compare-card-tag { color: var(--fg-muted); font-size: .85rem; margin-bottom: .6rem; }
.compare-card-included {
    display: inline-block;
    margin-bottom: .8rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .22);
    color: var(--accent-2);
    font-size: .72rem;
    line-height: 1.3;
    font-weight: 500;
}
.compare-card-included a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.compare-card-included a:hover { color: var(--fg); }
.compare-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--fg);
}
.compare-card-price strong { font-size: 1.5rem; }
.compare-card-price small { color: var(--fg-dim); font-size: .82rem; margin-left: .15rem; font-weight: 500; }

.compare-section { border-top: 1px solid var(--line); padding-top: .9rem; }
.compare-label {
    display: block;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--fg-dim);
    margin-bottom: .55rem;
    font-weight: 600;
}
.compare-section ul { display: flex; flex-direction: column; gap: .35rem; }
.compare-section li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--fg-muted);
}
.compare-section li.ok { color: var(--fg); }
.compare-section li.ko { color: var(--fg-dim); }
.compare-section li::before {
    position: absolute;
    left: 0; top: .05rem;
    width: 16px; height: 16px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
}
.compare-section li.ok::before {
    content: "✓";
    background: rgba(34,211,238,.15);
    color: var(--accent-2);
}
.compare-section li.ko::before {
    content: "×";
    background: rgba(255,255,255,.04);
    color: var(--fg-dim);
    font-size: .9rem;
}
.compare-section li strong { color: var(--fg); font-weight: 600; }

.compare-card-foot {
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--fg-dim);
    text-align: center;
}

.compare-cta {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 980px) {
    .compare-grid { grid-template-columns: 1fr; }
    .compare-modal-inner { padding: 2rem 1.2rem 1.5rem; }
}

/* ============ FAQ ============ */
.faq {
    padding: 6rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.3rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    gap: 1rem;
    transition: background var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--panel-strong); }
.chev { color: var(--fg-muted); transition: transform var(--t); flex-shrink: 0; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--fg-muted); font-size: .95rem; }

/* ============ CTA ============ */
.cta { padding: 6rem 0; }
.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--bg-3) 0%, #1a1a28 100%);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}
.cta-card::before {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), transparent 40%, var(--accent-2));
    z-index: -1;
    opacity: .4;
}
.cta-grid {
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.8) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,.8) 0%, transparent 70%);
}
.cta-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 1rem 0 .9rem; }
.cta-sub { color: var(--fg-muted); margin-bottom: 2rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }

.cta-divider {
    display: flex; align-items: center; gap: 1rem;
    max-width: 360px;
    margin: 1.6rem auto 1.2rem;
    color: var(--fg-dim);
}
.cta-divider::before, .cta-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.cta-divider span {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 500;
}

.cta-start-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 16px 36px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* ============ Footer ============ */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    padding: 3rem 0 2.2rem;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.brand-footer .brand-logo { width: 30px; height: 30px; }
.footer-tag { color: var(--fg-dim); font-size: .88rem; margin-top: .6rem; }
.footer-contact {
    margin-top: .4rem;
    font-size: .88rem;
    color: var(--fg-muted);
}
.footer-contact a {
    color: var(--fg);
    transition: color var(--t-fast);
}
.footer-contact a:hover { color: var(--accent-2); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; }
.footer-nav a { color: var(--fg-muted); font-size: .9rem; transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--fg); }
.footer-right { text-align: right; }
.footer-copy { color: var(--fg-dim); font-size: .85rem; margin-bottom: .35rem; }
.footer-legal { font-size: .8rem; color: var(--fg-dim); }
.footer-legal a { color: var(--fg-muted); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--fg); }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    .grid-services { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .process-step { grid-template-columns: 1fr; gap: 1.5rem; }
    .process-text { min-height: 0; padding: 0; }
    .process-bignum { font-size: 10rem; bottom: auto; top: -30px; left: -8px; opacity: .9; }
    .process-head { margin-bottom: 3rem; }
    .grid-pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-right { text-align: center; }
    .brand-footer { justify-content: center; }
    .footer-nav { justify-content: center; }
}

@media (max-width: 720px) {
    .primary-nav { display: none; }
    .menu-toggle { display: flex; }
    .header-cta .btn-primary { display: none; }
    .hero { padding: 7rem 0 4rem; }
    .page-hero { padding: 7rem 0 2.5rem; }
    .hero-metrics { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 1.25rem; }
    .hero-metrics li { flex-direction: row; gap: .6rem; }
    .tariff-row { flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.2rem 1.3rem; }
    .tariff-price { align-self: flex-end; }
    .tariffs { padding: 3.5rem 0; }
    .grid-services { grid-template-columns: 1fr; }
    .grid-projects { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .services, .process, .projects, .testimonials, .pricing, .faq, .cta { padding: 4rem 0; }
    .cta-card { padding: 2.5rem 1.25rem; }
    .section-head { margin-bottom: 2.2rem; }
    .wrap { padding: 0 1rem; }
    .footer-inner { gap: 1.2rem; padding: 0 .25rem; }
    .footer-contact { word-break: break-word; }
    /* Code window: allow horizontal scroll inside instead of overflowing the page */
    .code-body { overflow-x: auto; white-space: pre; font-size: .82rem; padding: 1rem 1.1rem 1.2rem; }
    .code-window { max-width: 100%; }
    /* Modal: full-width usage on small screens */
    .compare-modal { padding: 3vh .6rem; }
    .compare-modal-inner { padding: 2rem 1rem 1.5rem; border-radius: var(--radius-lg); }
    .compare-card { padding: 1.3rem 1rem; }
    /* Process bignum: smaller so it doesn't overflow */
    .process-bignum { font-size: 7rem; left: -4px; top: -18px; }
    /* Tap-target safety: minimum 44px hit area on the menu toggle and CTAs */
    .menu-toggle { width: 44px; height: 44px; }
    /* Ensure no long content escapes the viewport */
    .legal-article, .form-card, .legal-card, .recap-card { word-break: normal; overflow-wrap: anywhere; }
}

/* Very small phones (iPhone SE / Android <= 360px) */
@media (max-width: 380px) {
    body { font-size: 15px; }
    .wrap { padding: 0 .85rem; }
    .btn { padding: .75rem 1rem; font-size: .9rem; }
    .hero { padding: 6rem 0 3rem; }
    .page-hero { padding: 6rem 0 2rem; }
    .hero-eyebrow { font-size: .76rem; padding: .35rem .7rem; }
    .hero-actions { flex-direction: column; gap: .55rem; }
    .hero-actions .btn { width: 100%; }
    .hero-metrics strong { font-size: 1.25rem; }
    .section-head { margin-bottom: 1.6rem; }
    .card, .plan { padding: 1.4rem 1.1rem; }
    .cta-card { padding: 2rem 1rem; }
    .compare-modal-inner { padding: 1.8rem .7rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .brand-novaia { animation: none; background-position: 50% 50%; }
}

/* Disable expensive scroll effects on touch / small screens */
@media (max-width: 720px) {
    .brand-novaia { animation-duration: 5s; }
    .hero-glow { filter: none; opacity: .35; }
    .card::before { display: none; }
}
