/* =====================================================================
   APEX BUSINESS LLC — Design System (Premium Fintech 2026)
   ===================================================================== */

:root {
    --black: #0A0B0D;
    --ink: #0E1014;
    --anthracite: #1A1D23;
    --slate: #5A6473;
    --muted: #8A93A2;
    --line: #E7EAEF;
    --surface: #FFFFFF;
    --surface-2: #F6F8FB;
    --surface-3: #EEF2F7;
    --white: #FFFFFF;

    --accent: #2E6BFF;          /* bleu électrique */
    --accent-600: #1F54E0;
    --accent-soft: rgba(46,107,255,.10);
    --mint: #1FD1A0;            /* vert menthe tech */
    --mint-soft: rgba(31,209,160,.12);

    --text: #0E1014;
    --text-2: #5A6473;
    --bg: #FFFFFF;

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow: 0 4px 24px rgba(16,24,40,.06);
    --shadow-lg: 0 24px 60px -20px rgba(16,24,40,.18);
    --shadow-accent: 0 12px 36px -10px rgba(46,107,255,.45);

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head: 'Space Grotesk', 'Inter', sans-serif;

    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
    --text: #EAF0F7;
    --text-2: #9AA6B6;
    --bg: #0A0B0D;
    --surface: #121419;
    --surface-2: #15181E;
    --surface-3: #1C2029;
    --anthracite: #C7D0DC;
    --line: #232831;
    --slate: #9AA6B6;
    --muted: #6B7686;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.6);
    --accent-soft: rgba(46,107,255,.16);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background .4s var(--ease), color .4s var(--ease);
}
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--text); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1rem; color: var(--text-2); }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.apx-icon { flex: none; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color:#fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn-apex-primary, .btn-apex-ghost, .btn-apex-light {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-apex-primary { background: var(--accent); color:#fff; box-shadow: var(--shadow-accent); }
.btn-apex-primary:hover { background: var(--accent-600); transform: translateY(-2px); color:#fff; }
.btn-apex-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-apex-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-apex-light { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-apex-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm-apex { padding: 9px 18px; font-size: .9rem; }
.btn-apex-primary .apx-icon { transition: transform .25s var(--ease); }
.btn-apex-primary:hover .apx-icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: saturate(180%) blur(14px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.navbar-apex { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--mint)); color:#fff; box-shadow: var(--shadow-accent); }
.brand-accent { color: var(--accent); margin-left: 4px; }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { position: relative; padding: 8px 14px; font-weight: 500; font-size: .95rem; color: var(--text-2); border-radius: 8px; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:""; position:absolute; left:14px; right:14px; bottom:2px; height:2px; background: var(--accent); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: all .2s var(--ease); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .t-moon { display: none; }
[data-theme="dark"] .theme-toggle .t-sun { display: none; }
[data-theme="dark"] .theme-toggle .t-moon { display: block; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 130px) 0 clamp(56px,7vw,96px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before { content:""; position:absolute; top:-20%; left:50%; transform: translateX(-50%); width: 900px; height: 900px; max-width: 120%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 60%); }
.hero-grid-pattern { position:absolute; inset:0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 70%); opacity: .5; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; margin-bottom: 26px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 22px; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 65%, var(--accent))); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-2); max-width: 620px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-trust .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }

/* ---------- Section primitives ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }
.section-tag { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { font-size: 1.08rem; margin-top: 10px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-apex {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    position: relative; overflow: hidden;
}
.card-apex:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.card-apex.mint .card-icon { background: var(--mint-soft); color: var(--mint); }
.card-apex h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card-apex p { font-size: .96rem; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.card-link .apx-icon { transition: transform .2s var(--ease); }
.card-link:hover .apx-icon { transform: translateX(4px); }

/* feature simple */
.feature { text-align: left; }
.feature .card-icon { margin-bottom: 18px; }
.feature h3 { font-size: 1.15rem; }

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem,4vw,3.2rem); color: var(--text); letter-spacing: -.03em; line-height: 1; }
.stat .num .suf { color: var(--accent); }
.stat .lbl { color: var(--text-2); font-size: .95rem; margin-top: 8px; }

/* ---------- Services list (detailed) ---------- */
.service-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: start; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all .3s var(--ease); }
.service-row:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.service-row .card-icon { margin: 0; }
.service-row .benefit { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; color: var(--mint); font-weight: 600; }

/* ---------- Brands ---------- */
.brands-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.brand-pill { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--muted); padding: 10px 18px; border-radius: 12px; transition: color .25s var(--ease); filter: grayscale(1); opacity: .8; }
.brand-pill:hover { color: var(--text); opacity: 1; filter: none; }
.brand-pill img { height: 28px; width: auto; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%; display: flex; flex-direction: column; }
.quote-stars { display: flex; gap: 3px; color: #F5B544; margin-bottom: 16px; }
.quote-card blockquote { font-size: 1.05rem; color: var(--text); line-height: 1.6; margin: 0 0 22px; flex: 1; }
.quote-author { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--mint)); color:#fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.quote-author .name { font-weight: 600; color: var(--text); font-size: .95rem; }
.quote-author .role { font-size: .85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(48px,6vw,80px); text-align: center; background: linear-gradient(135deg, var(--ink), #16213d); color:#fff; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #10203f, #0c1322); border: 1px solid var(--line); }
.cta-band::before { content:""; position:absolute; top:-40%; right:-10%; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(46,107,255,.5), transparent 60%); }
.cta-band::after { content:""; position:absolute; bottom:-50%; left:-10%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(31,209,160,.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color:#fff; font-size: clamp(1.9rem,3.6vw,2.8rem); }
.cta-band p { color: rgba(255,255,255,.78); max-width: 540px; margin: 0 auto 30px; font-size: 1.1rem; }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(60px,8vw,110px) 0 clamp(36px,4vw,56px); text-align: center; position: relative; overflow: hidden; }
.page-hero .hero-grid-pattern { opacity: .4; }
.page-hero h1 { font-size: clamp(2.1rem,4.6vw,3.4rem); margin-bottom: 14px; position: relative; }
.page-hero p { font-size: 1.15rem; max-width: 620px; margin: 0 auto; position: relative; }
.breadcrumb-apex { display: flex; gap: 8px; justify-content: center; font-size: .85rem; color: var(--muted); margin-bottom: 22px; position: relative; }
.breadcrumb-apex a:hover { color: var(--accent); }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mv-card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.mv-card .card-icon { margin-bottom: 16px; }
.about-visual { aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--accent), var(--mint)); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.about-visual .mesh { position:absolute; inset:0; background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 40%), radial-gradient(circle at 80% 60%, rgba(255,255,255,.2), transparent 40%); }
.about-visual .glyph { position:absolute; inset:0; display:grid; place-items:center; color: rgba(255,255,255,.9); }

/* ---------- Team ---------- */
.team-card { text-align: center; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: all .3s var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar { width: 86px; height: 86px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color:#fff; background: linear-gradient(135deg, var(--accent), var(--mint)); overflow: hidden; }
.team-avatar img { width:100%; height:100%; object-fit: cover; }
.team-card .name { font-weight: 700; font-family: var(--font-head); }
.team-card .role { color: var(--accent); font-size: .9rem; font-weight: 600; }
.team-card .bio { font-size: .9rem; margin-top: 8px; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-btn { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color:#fff; border-color: var(--accent); }
.project-card { border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: all .3s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; }
.project-thumb img { width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-thumb .placeholder { color: var(--muted); opacity: .5; }
.project-cat { position: absolute; top: 14px; left: 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(6px); border:1px solid var(--line); color: var(--text); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.project-body { padding: 24px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-body p { font-size: .92rem; margin-bottom: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card { display: flex; gap: 16px; padding: 22px; border:1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 16px; }
.contact-info-card .card-icon { width: 46px; height: 46px; margin: 0; flex: none; }
.contact-info-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-info-card .value { font-weight: 600; color: var(--text); }
.form-apex { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--text); }
.form-control-apex { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-family: inherit; font-size: .96rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form-control-apex:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.form-control-apex { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alert-apex { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: var(--mint-soft); color: #0f9c77; border: 1px solid color-mix(in srgb, var(--mint) 40%, transparent); }
.alert-error { background: rgba(255,86,86,.1); color: #d83a3a; border: 1px solid rgba(255,86,86,.3); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 24px; height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p { font-size: 1rem; }
.prose ul { list-style: disc; padding-left: 1.4em; color: var(--text-2); margin-bottom: 1rem; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }

/* rich-text (contenu WYSIWYG) */
.rt { color: var(--text-2); }
.rt p { margin: 0 0 .8rem; }
.rt p:last-child { margin-bottom: 0; }
.rt h2 { font-size: 1.4rem; margin: 1.4em 0 .5em; }
.rt h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.rt ul, .rt ol { padding-left: 1.4em; margin: 0 0 1rem; color: var(--text-2); }
.rt ul { list-style: disc; }
.rt ol { list-style: decimal; }
.rt a { color: var(--accent); }
.rt table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.rt table td, .rt table th { border: 1px solid var(--line); padding: 8px 12px; }
.prose .rt h2, .prose .rt p { font-size: inherit; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-family: var(--font-head); font-size: clamp(5rem,14vw,9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 72px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-about { color: var(--text-2); font-size: .95rem; margin: 18px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); background: var(--surface); transition: all .2s var(--ease); }
.footer-social a:hover { color:#fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; font-family: var(--font-body); font-weight: 700; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-2); font-size: .95rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer-reg { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .stats-band { grid-template-columns: repeat(2,1fr); gap: 32px 16px; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
        transform: translateY(-120%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
        align-items: stretch; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-links { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
    .nav-links a { padding: 13px 14px; border-radius: 10px; }
    .nav-links a.active::after { display: none; }
    .nav-links a.active { background: var(--accent-soft); color: var(--accent); }
    .nav-actions { width: 100%; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
    .nav-actions .btn-apex-primary { flex: 1; justify-content: center; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; gap: 16px; }
    .service-row .btn-apex-ghost { justify-self: start; }
}
@media (max-width: 520px) {
    .grid-4 { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn-apex-primary, .hero-cta .btn-apex-ghost { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
