/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
    --color-bg:        #ffffff;
    --color-surface:   #f8f9fa;
    --color-surface-2: #f1f3f5;
    --color-surface-3: #e9ecef;
    --color-border:    #f1f3f5;
    --color-border-2:  #dee2e6;
    --color-text:      #1a1b1e;
    --color-muted:     #868e96;
    --color-muted-2:   #adb5bd;
    --color-primary:   #1a1b1e;
    
    /* Brand - Electric Blue */
    --color-brand:     #0021e0;
    --color-brand-glow: rgba(0, 33, 224, 0.1);
    
    --font-sans: 'Geist', 'Inter', system-ui, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', monospace;

    --gradient-brand:  var(--color-brand);
    --dot-grid: radial-gradient(circle, var(--color-border-2) 1px, transparent 0);
    
    --text-xs:   0.6875rem;
    --text-sm:   0.8125rem;
    --text-base: 0.9375rem;
    --text-lg:   1.0625rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  2rem;
    --text-4xl:  2.5rem;
    --text-5xl:  3.25rem;
    --text-6xl:  4.25rem;
    --text-7xl:  5.5rem;

    --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
    --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
    --space-7: 1.75rem;  --space-8: 2rem;     --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
    --space-32: 8rem;    --space-40: 10rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms ease;
    --max-width: 1160px;

    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 0 20px var(--color-brand-glow);

    /* Section veils: high opacity; drop-offs no lower than ~0.55 */
    --veil-section: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.62) 38%,
        rgba(255, 255, 255, 0.7) 65%,
        rgba(255, 255, 255, 0.88) 100%
    );
    --veil-section-alt: linear-gradient(
        180deg,
        rgba(248, 249, 250, 0.9) 0%,
        rgba(248, 249, 250, 0.58) 40%,
        rgba(248, 249, 250, 0.66) 68%,
        rgba(248, 249, 250, 0.86) 100%
    );
    --veil-footer: linear-gradient(
        180deg,
        rgba(248, 249, 250, 0.9) 0%,
        rgba(248, 249, 250, 0.72) 100%
    );
    /* Hero: denser, background still slightly visible */
    --veil-hero: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.55) 35%,
        rgba(255, 255, 255, 0.52) 58%,
        rgba(255, 255, 255, 0.78) 100%
    );
    /* Glass cards: big alpha delta (≈0.45+) or the gradient is invisible on screen */
    --glass-card: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.64) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    --glass-card-hover: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.72) 55%,
        rgba(255, 255, 255, 0.88) 100%
    );
}

/* ─── Base ───────────────────────────────────────────────── */
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

#main-content {
    min-width: 0;
    max-width: 100%;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: min(var(--max-width), 100%);
    margin-inline: auto;
    padding-inline: var(--space-6);
    box-sizing: border-box;
    min-width: 0;
}

/* ─── Reveal animation ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Typography helpers ─────────────────────────────────── */
.section-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-brand);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-brand);
    border-radius: 2px;
}

.section-heading {
    font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: var(--space-3);
    color: var(--color-text);
}

.section-sub {
    font-size: var(--text-lg);
    color: #495057; /* darker than muted — readable on white */
    margin-bottom: var(--space-12);
    max-width: min(56ch, 100%);
    line-height: 1.65;
    font-weight: 400;
}

.hero__inner {
    display: flex;
    align-items: center;
    min-height: calc(80vh - 100px);
}

.hero__content {
    max-width: 820px;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.625rem var(--space-5);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    font-family: var(--font-sans);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.5;
}

.btn--primary {
    background: var(--color-brand);
    color: #ffffff;
}
.btn--primary:hover {
    background: #001bc9;
    box-shadow: 0 4px 16px rgba(0, 33, 224, 0.28);
    transform: translateY(-1px);
}

.btn--ghost {
    border: 1.5px solid var(--color-border-2);
    color: var(--color-text);
}
.btn--ghost:hover {
    background: var(--color-surface);
    border-color: var(--color-muted-2);
    transform: translateY(-1px);
}

.btn--large {
    padding: 0.875rem var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

/* ─── Nav ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: relative;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--color-text); }

.nav__link--cta {
    color: var(--color-text);
    font-weight: 600;
    padding: 0.4rem var(--space-4);
    border: 1.5px solid var(--color-border-2);
    border-radius: var(--radius-sm);
}
.nav__link--cta:hover {
    background: var(--color-surface);
    border-color: var(--color-muted-2);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    flex-shrink: 0;
}
.nav__toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-muted-2);
}

/* ─── Global Background Canvas ───────────────────────────── */
.global-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7; /* toned down so it doesn't overpower sections */
}

body {
    background: var(--color-bg);
}

/* Hero: nearly transparent — logo watermark fully visible */
.hero {
    background: transparent;
    padding-block: var(--space-32) var(--space-24);
    position: relative;
}
/* Veil matches section language: stronger transparency, less distracting wash */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--veil-hero);
    z-index: 0;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

/* Internal Pages Hero */
.page-hero {
    padding-block: var(--space-24) var(--space-16);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}
.page-hero__sub {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-muted);
    max-width: min(600px, 100%);
    line-height: 1.6;
    margin-inline: auto;
}

/* ─── Section backgrounds: gradient veil (no backdrop-filter) ─ */
.services,
.capabilities,
.process,
.page-hero,
.contact-page {
    background: var(--veil-section);
    position: relative;
    z-index: 1;
}

.why-highlights,
.industries,
.comparison {
    background: var(--veil-section);
    position: relative;
    z-index: 1;
}

/* Glass card utility — edit --glass-card in :root; tiny alpha steps (e.g. .72→.68) look flat */
.glass-card {
    background: var(--glass-card) !important;
    border: 1px solid var(--color-border-2) !important;
    box-shadow: var(--shadow-card);
}

.services__card.glass-card:hover {
    background: var(--glass-card-hover) !important;
}

/* Alternating sections slightly different tint */
.tech-stack,
.faq {
    background: var(--veil-section-alt);
    position: relative;
    z-index: 1;
}

/* Trust bar: fully opaque for sharp brand strip */
.trust-bar {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

/* CTA final has its own accent bg */
.cta-final {
    background: var(--veil-section-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.hero__heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.03;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.hero__heading em {
    color: var(--color-brand);
    font-style: normal;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    border-radius: 100px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-8);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-brand);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-brand);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 6px var(--color-brand); }
    50% { box-shadow: 0 0 14px var(--color-brand), 0 0 22px rgba(0, 33, 224, 0.3); }
}

.hero__sub {
    font-size: var(--text-lg);
    color: #495057;
    line-height: 1.65;
    max-width: 46ch;
    margin-bottom: var(--space-10);
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    align-items: center;
}

.hero__actions-note {
    margin-top: var(--space-8);
    margin-left: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text);
    line-height: 1.5;
}

/* ─── Trust bar ──────────────────────────────────────────── */
.trust-bar {
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.trust-bar__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
}

.trust-bar__stat {
    padding: var(--space-6) var(--space-8);
    border-right: 1px solid var(--color-border-2);
}
.trust-bar__stat:last-child { border-right: none; }

.trust-bar__num {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--color-primary);
}

.trust-bar__label {
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: var(--space-1);
    font-weight: 500;
}

/* ─── Services ───────────────────────────────────────────── */
.services {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.services__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
    align-items: start;
    min-width: 0;
}

.services__sticky,
.services__intro {
    position: sticky;
    top: calc(var(--space-20) + 20px);
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.services__card {
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.services__card:hover:not(.glass-card) {
    background: var(--color-surface);
}

.services__icon {
    width: 40px; height: 40px;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface-2);
    transition: all var(--transition);
}

.services__card:hover .services__icon {
    border-color: var(--color-brand);
    background: rgba(0, 33, 224, 0.06);
    color: var(--color-brand);
}

.services__card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.services__card > p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
    flex: 1;
}

.services__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-brand);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    transition: gap var(--transition);
}
.services__card:hover .services__link { gap: var(--space-2); }

/* ─── Capabilities ───────────────────────────────────────── */
.capabilities {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.capabilities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.cap-card {
    position: relative;
    padding: var(--space-8) var(--space-7);
    background: var(--color-bg);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}
.cap-card:nth-child(1) { grid-column: span 2; }
.cap-card:nth-child(4) { grid-column: span 2; }
.cap-card:nth-child(5) { grid-column: span 2; }
.cap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dot-grid);
    background-size: 24px 24px;
    opacity: 0.05;
    pointer-events: none;
}
.cap-card:hover { background: var(--color-surface); }

.cap-card__icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: all var(--transition);
    flex-shrink: 0;
}
.cap-card:hover .cap-card__icon {
    border-color: var(--color-brand);
    background: rgba(0, 33, 224, 0.06);
    color: var(--color-brand);
}

.cap-card__body {
    flex: 1;
}

.cap-card h3 {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.cap-card p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
}

.cap-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.cap-card__tag {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    background: var(--color-surface-3);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-sm);
    padding: 2px var(--space-2);
}

/* ─── Process ────────────────────────────────────────────── */
.process {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border-2);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.process__step {
    padding: var(--space-10) var(--space-6);
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: background var(--transition);
    position: relative;
}
.process__step::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--dot-grid);
    background-size: 32px 32px;
    opacity: 0.08;
    pointer-events: none;
}
.process__step:hover { background: var(--color-surface); }

.process__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-muted-2);
    transition: color var(--transition);
    letter-spacing: 0.05em;
}
.process__step:hover .process__num {
    color: var(--color-brand);
}

.process__body h3 {
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-2);
}

.process__body p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
}

/* ─── Tech stack tabs ────────────────────────────────────── */
.tech-stack {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.tech-tabs {
    margin-top: var(--space-2);
}

.tech-tabs__nav {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--color-border-2);
    margin-bottom: var(--space-8);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    max-width: 100%;
    min-width: 0;
}
.tech-tabs__nav::-webkit-scrollbar { display: none; }

.tech-tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
    white-space: nowrap;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tech-tab svg { transition: color var(--transition); }
.tech-tab:hover {
    color: var(--color-text);
    background: var(--color-surface);
}
.tech-tab.active {
    color: var(--color-brand);
    border-bottom-color: var(--color-brand);
    font-weight: 600;
}

.tech-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: var(--space-8);
    animation: tabFadeIn 0.25s ease;
}
.tech-panel[hidden] { display: none; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.tech-panel__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    min-width: 0;
}
.tech-item:hover {
    border-color: var(--color-brand);
    background: rgba(0, 33, 224, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tech-item__icon {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.tech-item__icon svg {
    width: 100%; height: 100%;
}

.tech-item__name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
}

.tech-item__badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-brand);
    background: rgba(0, 33, 224, 0.08);
    border: 1px solid rgba(0, 33, 224, 0.2);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    white-space: nowrap;
}

.tech-panel__note {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
    padding: var(--space-4) var(--space-6);
    background: var(--color-surface-2);
    border-left: 3px solid var(--color-brand);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

/* ─── FAQ (replaces testimonials) ────────────────────────── */
.faq {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 340px);
    gap: var(--space-12);
    align-items: start;
    min-width: 0;
}

.faq__list {
    display: flex;
    flex-direction: column;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-6) 0;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    transition: color var(--transition);
    min-width: 0;
    box-sizing: border-box;
}
.faq__question > span:first-of-type {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    line-height: 1.35;
}
.faq__question:hover { color: var(--color-brand); }
.faq__question[aria-expanded="true"] { color: var(--color-brand); }

.faq__icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--transition);
}
.faq__question[aria-expanded="true"] .faq__icon {
    background: rgba(0, 33, 224, 0.08);
    border-color: rgba(0, 33, 224, 0.25);
    color: var(--color-brand);
    transform: rotate(180deg);
}

.faq__answer {
    padding-bottom: var(--space-6);
    overflow: hidden;
}
.faq__answer[hidden] { display: none; }
.faq__answer.is-animating {
    display: block;
    animation: faqOpen 0.3s ease;
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

.faq__answer p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.75;
    max-width: min(64ch, 100%);
}

.faq__cta-card {
    padding: var(--space-8);
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: sticky;
    top: 80px;
}

.faq__cta-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 33, 224, 0.08);
    border: 1px solid rgba(0, 33, 224, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-brand);
}

.faq__cta-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.faq__cta-card p {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
}

.faq__cta-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
}

.faq__cta-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq__cta-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-muted-2);
    font-weight: 500;
}

/* ─── CTA final ──────────────────────────────────────────── */
.cta-final {
    padding-block: var(--space-40);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border);
}

.cta-final__inner {
    text-align: center;
    max-width: 580px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.cta-final__heading {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: var(--space-4);
}

.cta-final__sub {
    font-size: var(--text-lg);
    color: var(--color-muted);
    margin-bottom: var(--space-8);
    line-height: 1.65;
}

.cta-final__actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--color-border);
    /* consistent with other blocks: same .container + spacing above last section */
    padding-block: var(--space-20) var(--space-10);
    background: var(--veil-footer);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) minmax(0, 16rem);
    gap: var(--space-8) clamp(1.25rem, 3.5vw, 2rem);
    align-items: start;
    padding-bottom: var(--space-8);
    width: 100%;
    min-width: 0;
}

.footer__nav-row {
    border-top: 1px solid var(--color-border-2);
    border-bottom: 1px solid var(--color-border-2);
    padding-block: var(--space-5);
    width: 100%;
}

.footer__list--row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
}

.footer__col {
    min-width: 0;
}

.footer__col--brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__col--address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-self: center;
    max-width: min(42ch, 100%);
}

.footer__col--address .footer__text {
    margin-inline: 0;
    max-width: 36ch;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.footer__logo img {
    height: 26px;
    width: auto;
}

/* One scale for titles, one for body — no size “dance” */
.footer__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: var(--space-4);
}

.footer__tagline,
.footer__text,
.footer__list a {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.55;
    color: var(--color-muted);
}

.footer__tagline {
    max-width: 26ch;
}

.footer__list:not(.footer__list--row) {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__list a {
    color: var(--color-muted);
    transition: color var(--transition);
}
.footer__list a:hover {
    color: var(--color-brand);
}

.footer__text {
    margin: 0;
    max-width: 36ch;
}

.footer__col--email {
    font-style: normal;
}

.footer__email {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition);
    overflow-wrap: anywhere;
}
.footer__email:hover {
    color: var(--color-brand);
}

.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--space-2);
}

.footer__bottom small {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-muted);
}

/* ─── Mobile nav open state ──────────────────────────────── */
.nav__menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6);
    gap: 0;
    z-index: 99;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.nav__menu.is-open .nav__link {
    display: block;
    padding: var(--space-3) 0;
    min-height: 44px;
    line-height: 1.4;
    box-sizing: border-box;
}
.nav__menu.is-open .nav__link--cta {
    margin-top: var(--space-2);
    text-align: center;
    padding: var(--space-3) var(--space-4);
}

/* ─── Why Highlights ─────────────────────────────────────── */
.why-highlights {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.why-card {
    padding: var(--space-8) var(--space-7);
    background: var(--color-bg);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: all var(--transition);
}
.why-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 4px 28px rgba(0, 33, 224, 0.08);
    transform: translateY(-2px);
}

.why-card__icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 33, 224, 0.07);
    border: 1px solid rgba(0, 33, 224, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-brand);
    flex-shrink: 0;
}

.why-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.why-card > p {
    font-size: var(--text-sm);
    color: #495057;
    line-height: 1.75;
    flex: 1;
}

.why-card__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border);
}
.why-card__list li {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-muted);
    padding: var(--space-1) 0;
    padding-left: var(--space-3);
    position: relative;
}
.why-card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    background: var(--color-brand);
    border-radius: 50%;
}

/* ─── Industries ─────────────────────────────────────────── */
.industries {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.industries__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.industry-card {
    padding: var(--space-6) var(--space-5);
    background: var(--color-bg);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    transition: all var(--transition);
    cursor: default;
}
.industry-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 2px 16px rgba(0, 33, 224, 0.07);
    transform: translateY(-1px);
}

.industry-card__icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: all var(--transition);
}
.industry-card:hover .industry-card__icon {
    border-color: var(--color-brand);
    background: rgba(0, 33, 224, 0.06);
    color: var(--color-brand);
}

.industry-card__name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.industry-card__note {
    font-size: var(--text-xs);
    color: var(--color-muted);
    line-height: 1.6;
}

/* ─── Dark CTA banner ────────────────────────────────────── */
.dark-cta {
    background: #0e1117;
    padding-block: var(--space-24);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.dark-cta .container {
    position: relative;
    z-index: 2;
}

.dark-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    min-width: 0;
}

.dark-cta__label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 33, 224, 0.8);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.dark-cta__label::before {
    content: '';
    display: block;
    width: 18px; height: 2px;
    background: var(--color-brand);
    border-radius: 2px;
}

.dark-cta__heading {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: var(--space-5);
}

.dark-cta__sub {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 48ch;
}

.dark-cta__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.btn--light {
    background: #ffffff;
    color: var(--color-text);
    font-weight: 700;
}
.btn--light:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn--outline-light {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.625rem var(--space-5);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--outline-light:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.dark-cta__note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    margin-top: var(--space-2);
}
.dark-cta__note svg { flex-shrink: 0; }

/* Decorative shapes */
.dark-cta__shapes { position: absolute; inset: 0; pointer-events: none; }
.dark-cta__shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    background: var(--color-brand);
}
.dark-cta__shape--1 { width: 300px; height: 300px; top: -80px; right: 10%; }
.dark-cta__shape--2 { width: 180px; height: 180px; bottom: -40px; right: 25%; border-radius: 30%; }
.dark-cta__shape--3 { width: 80px; height: 80px; top: 40%; left: 5%; border-radius: 20%; }
.dark-cta__shape--4 { width: 140px; height: 140px; bottom: 10%; right: 5%; border-radius: 40%; opacity: 0.05; }

/* ─── Comparison table ───────────────────────────────────── */
.comparison {
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.comparison__table {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.comparison__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.comparison__header {
    padding: var(--space-5) var(--space-6);
    background: var(--color-surface-2);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border-2);
}

.comparison__header--label {
    background: var(--color-surface-3);
    color: var(--color-text);
}

.comparison__header--us {
    background: rgba(0, 33, 224, 0.06);
    color: var(--color-brand);
}

.comparison__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 800;
    color: var(--color-brand);
}
.comparison__badge::before {
    content: '●';
    font-size: 8px;
    color: var(--color-brand);
}

.comparison__row {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    line-height: 1.5;
    min-height: 52px;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow-wrap: break-word;
}

.comparison__col--label .comparison__row {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface-2);
}

.comparison__col--us .comparison__row {
    background: rgba(0, 33, 224, 0.025);
    font-weight: 600;
}

.comparison__row--good {
    color: #1a6b3a;
    background: rgba(16, 185, 129, 0.04) !important;
}
.comparison__col--us .comparison__row--good {
    color: #155c31;
    background: rgba(16, 185, 129, 0.08) !important;
}

.comparison__row--bad { color: var(--color-muted-2); }

.comparison__row--neutral { color: var(--color-muted); }

.comparison__col:last-child .comparison__row { border-right: none; }
.comparison__col .comparison__row:last-child { border-bottom: none; }
.comparison__header:last-child { border-right: none; }

/* ─── Inner page hero ────────────────────────────────────── */
.page-hero {
    padding-block: var(--space-20) var(--space-12);
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.page-hero__sub {
    font-size: var(--text-lg);
    color: #495057;
    max-width: min(56ch, 100%);
    line-height: 1.65;
}

/* ─── Contact page ───────────────────────────────────────── */
.contact-page {
    padding-block: var(--space-20);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-16);
    align-items: start;
    min-width: 0;
}

.contact-page__intro .contact-page__title {
    font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: var(--space-5);
}

.contact-page__intro > p {
    font-size: var(--text-lg);
    color: #495057;
    line-height: 1.65;
    max-width: min(46ch, 100%);
    margin-bottom: var(--space-8);
}

.contact-page__facts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-brand);
}

.contact-page__facts li {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.contact-page__facts li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-brand);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-page__address {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--color-muted);
    font-weight: 500;
}

.contact-page__address-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand);
}

.contact-page__address-email {
    margin-top: var(--space-2);
    font-weight: 600;
    color: var(--color-text);
}

.contact-page__address-email:hover {
    color: var(--color-brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ─── Contact form ───────────────────────────────────────── */
.contact-page__form {
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-field label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
}

.form-field input,
.form-field textarea {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1.5px solid var(--color-border-2);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    outline: none;
    width: 100%;
    line-height: 1.6;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-muted-2);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(0, 33, 224, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    align-self: flex-start;
    padding: 0.875rem var(--space-8);
    font-size: var(--text-base);
}

/* ─── Why Us page specifics ──────────────────────────────── */
.why-us-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    padding-block: var(--space-20);
    border-bottom: 1px solid var(--color-border);
}

.why-card {
    padding: var(--space-8) var(--space-7);
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    transition: all var(--transition);
}
.why-card:hover {
    border-color: var(--color-brand);
    box-shadow: 0 4px 24px rgba(0, 33, 224, 0.07);
    transform: translateY(-2px);
}

.why-card__icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 33, 224, 0.07);
    border: 1px solid rgba(0, 33, 224, 0.15);
    border-radius: var(--radius-md);
    color: var(--color-brand);
}

.why-card h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.why-card p {
    font-size: var(--text-sm);
    color: #495057;
    line-height: 1.75;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .industries__grid        { grid-template-columns: repeat(4, 1fr); }
    .comparison__table       { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
    .process__steps          { grid-template-columns: repeat(2, 1fr); }
    .tech-panel__items       { grid-template-columns: repeat(2, 1fr); }
    .services__layout        { grid-template-columns: 1fr; gap: var(--space-10); }
    .services__sticky,
    .services__intro         { position: static; top: auto; }
    .footer__grid            { grid-template-columns: 1fr 1fr; }
    .footer__col--email      { grid-column: 1 / -1; }
    .faq__grid               { grid-template-columns: 1fr; }
    .faq__cta-card           { position: static; top: auto; }
    .contact-page            { grid-template-columns: 1fr; gap: var(--space-10); }
    .why-grid                { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
    .industries__grid        { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
    .dark-cta__inner         { grid-template-columns: 1fr; gap: var(--space-8); }
    .comparison__table       { grid-template-columns: 1fr 1fr; }
    .comparison__col--inhouse,
    .comparison__col--agency { display: none; }
}

@media (max-width: 768px) {
    .nav__menu { display: none; }
    .nav__toggle { display: flex; }
    .hero                    { padding-block: var(--space-20) var(--space-16); }
    .hero__inner             { min-height: 0; padding-block: var(--space-8) 0; }
    .page-hero               { padding-block: var(--space-16) var(--space-10); }
    .page-hero h1            { font-size: clamp(2rem, 8vw, var(--text-4xl)); }
    .section-sub             { margin-bottom: var(--space-8); font-size: var(--text-base); }
    .trust-bar               { padding-block: var(--space-8); }
    .trust-bar__stats        { grid-template-columns: repeat(2, 1fr); }
    .trust-bar__stat         { padding: var(--space-4) var(--space-4); }
    .trust-bar__num          { font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl)); }
    .services__grid          { grid-template-columns: 1fr; }
    .services__card          { padding: var(--space-6) var(--space-5); }
    .capabilities__grid      { grid-template-columns: 1fr; }
    .cap-card:nth-child(1),
    .cap-card:nth-child(4),
    .cap-card:nth-child(5)   { grid-column: 1 / -1; }
    .process__steps          { grid-template-columns: 1fr; }
    .dark-cta                { padding-block: var(--space-16); }
    .cta-final               { padding-block: var(--space-16); }
    .footer__grid            { grid-template-columns: 1fr; }
    .footer__col--email      { grid-column: auto; }
    .footer__nav-row         { padding-block: var(--space-4); }
    .footer__list--row       { justify-content: flex-start; gap: var(--space-2) var(--space-4); }
    .site-footer             { padding-block: var(--space-12) var(--space-8); }
    .tech-panel__items       { grid-template-columns: 1fr 1fr; }
    .faq__grid               { grid-template-columns: 1fr; }
    .tech-tabs__nav          { gap: 0; padding-bottom: var(--space-2); }
    .tech-tab                { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
    .contact-page            { padding-block: var(--space-12); }
    .contact-page__form      { padding: var(--space-6); }
    .why-grid                { grid-template-columns: 1fr; gap: var(--space-5); }
    .industries__grid        { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
    .comparison__table       { grid-template-columns: 1fr; }
    .comparison__col--inhouse,
    .comparison__col--agency,
    .comparison__col--us     { display: none; }
    .comparison__col--label  { display: flex; }
    .legal-document          { padding-block: var(--space-6) var(--space-12); }
    .legal-document__content { padding: var(--space-6) var(--space-4); }
    .services,
    .capabilities,
    .process,
    .why-highlights,
    .industries,
    .comparison,
    .faq,
    .tech-stack             { padding-block: var(--space-14); }
}

@media (max-width: 480px) {
    .container           { padding-inline: var(--space-4); }
    .btn                 { white-space: normal; }
    .btn--outline-light  { white-space: normal; }
    .hero__actions       { flex-direction: column; align-items: stretch; }
    .hero__actions .btn  { width: 100%; justify-content: center; }
    .hero__actions-note  { margin-left: 0; text-align: center; }
    .tech-panel__items   { grid-template-columns: 1fr; }
    .trust-bar__stats    { grid-template-columns: 1fr; gap: 0; }
    .trust-bar__stat     { border-right: none; border-bottom: 1px solid var(--color-border-2); padding: var(--space-5); }
    .trust-bar__stat:last-child { border-bottom: none; }
    .industries__grid    { grid-template-columns: 1fr; gap: var(--space-4); }
    .footer__list--row   { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .tech-modal__inner   { padding: var(--space-6); max-width: min(480px, calc(100vw - var(--space-8))); }
}

/* ─── Tech Modal ─────────────────────────────────────────── */
.tech-modal {
    border: none;
    background: transparent;
    margin: auto; /* Center in dialog */
    padding: 0;
    overflow: visible;
    display: none; /* JS will change to flex when open */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(520px, calc(100vw - 2rem));
    max-width: 100%;
}
.tech-modal::backdrop {
    background: rgba(26, 27, 30, 0.45);
}
.tech-modal__inner {
    position: relative;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-sizing: border-box;
    width: 100%;
    max-width: min(480px, calc(100vw - 2rem));
    margin-inline: auto;
    animation: modal-fade-in var(--transition);
}
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.tech-modal__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    transition: all var(--transition);
}
.tech-modal__close:hover {
    background: var(--color-surface-2);
    color: var(--color-text);
}
.tech-modal__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    min-width: 0;
}
.tech-modal__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tech-modal__icon svg {
    width: 40px; height: 40px;
}
.tech-modal__header h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    min-width: 0;
    overflow-wrap: break-word;
}
#tech-modal-desc {
    color: var(--color-muted);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-wrap: break-word;
}

/* ─── Legal Document Pages ─────────────────────────────────── */
.legal-document {
    padding-block: var(--space-8) var(--space-24);
    position: relative;
    z-index: 1;
}
.legal-document__content {
    padding: var(--space-10) var(--space-12);
    border-radius: var(--radius-xl);
    max-width: 900px;
    margin-inline: auto;
}
.legal-document__content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--color-text);
}
.legal-document__content h2:first-child { margin-top: 0; }
.legal-document__content h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--color-text);
}
.legal-document__content p,
.legal-document__content li {
    font-size: var(--text-base);
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}
.legal-document__content ul {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}
.legal-document__content li {
    margin-bottom: var(--space-2);
}
.legal-document__content a {
    color: var(--color-brand);
    text-decoration: underline;
    overflow-wrap: anywhere;
}
.legal-document__content a:hover {
    color: var(--color-text);
}
