/* ═══════════════════════════════════════════════════════
   YSE LOJİSTİK — DESIGN SYSTEM (Phase 4)
   Brand: Navy (#0B1F3A) + Orange (#EA580C)
   Tek dosya, vendor yok, native CSS variables.
   ═══════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ────────────────────────────────── */
:root {
    /* Brand */
    --brand-primary:        #0B1F3A;
    --brand-primary-soft:   #1E3A5F;
    --brand-primary-dark:   #06152A;
    --brand-accent:         #EA580C;
    --brand-accent-soft:    #FB923C;
    --brand-accent-dark:    #C2410C;

    /* Surfaces & Text */
    --color-bg:             #F8FAFC;
    --color-surface:        #FFFFFF;
    --color-surface-mute:   #F1F5F9;
    --color-surface-dark:   #0F172A;
    --color-text:           #0F172A;
    --color-text-soft:      #334155;
    --color-text-muted:     #64748B;
    --color-text-subtle:    #94A3B8;
    --color-border:         #E2E8F0;
    --color-border-soft:    #F1F5F9;
    --color-border-strong:  #CBD5E1;

    /* Feedback */
    --color-success:        #059669;
    --color-success-bg:     #ECFDF5;
    --color-info:           #0284C7;
    --color-info-bg:        #EFF6FF;
    --color-warning:        #D97706;
    --color-warning-bg:     #FFFBEB;
    --color-danger:         #DC2626;
    --color-danger-bg:      #FEF2F2;

    /* Typography */
    --font-sans:            'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono:            ui-monospace, "SF Mono", Menlo, monospace;

    --text-xs:              0.75rem;
    --text-sm:              0.875rem;
    --text-base:            1rem;
    --text-lg:              1.125rem;
    --text-xl:              1.25rem;
    --text-2xl:             1.5rem;
    --text-3xl:             1.875rem;
    --text-4xl:             2.25rem;
    --text-5xl:             3rem;
    --text-6xl:             3.75rem;
    --text-hero:            clamp(2.25rem, 6vw, 3.5rem); /* 36→56px responsive */

    --leading-tight:        1.2;
    --leading-snug:         1.4;
    --leading-normal:       1.6;
    --leading-relaxed:      1.75;

    /* Spacing (4px base) */
    --space-0:              0;
    --space-1:              0.25rem;
    --space-2:              0.5rem;
    --space-3:              0.75rem;
    --space-4:              1rem;
    --space-5:              1.25rem;
    --space-6:              1.5rem;
    --space-8:              2rem;
    --space-10:             2.5rem;
    --space-12:             3rem;
    --space-16:             4rem;
    --space-20:             5rem;
    --space-24:             6rem;

    /* Radii */
    --radius-sm:            6px;
    --radius:               10px;
    --radius-lg:            16px;
    --radius-xl:            24px;
    --radius-full:          9999px;

    /* Shadows */
    --shadow-xs:            0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm:            0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow:               0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md:            0 8px 24px rgba(15, 23, 42, 0.1);
    --shadow-lg:            0 16px 40px rgba(15, 23, 42, 0.14);

    /* Z-index */
    --z-base:               1;
    --z-dropdown:           20;
    --z-sticky:             30;
    --z-header:             40;
    --z-backdrop:           49;
    --z-drawer:             50;
    --z-modal:              60;
    --z-toast:              70;

    /* Layout */
    --container-max:        1200px;
    --container-narrow:     800px;
    --header-height:        72px;

    /* Motion */
    --ease:                 cubic-bezier(0.4, 0, 0.2, 1);   /* ease-in-out */
    --ease-out:             cubic-bezier(0.16, 1, 0.3, 1);  /* smooth exit */
    --ease-spring:          cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:        150ms;
    --duration:             250ms;
    --duration-slow:        400ms;
}

/* ─── 2. RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: var(--leading-normal);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, picture, video, svg, canvas { max-width: 100%; display: block; }

input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

a { color: var(--brand-accent); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--brand-accent-dark); }

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--brand-primary);
    margin: 0 0 var(--space-4);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); letter-spacing: -0.015em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.005em; }
h4 { font-size: var(--text-lg); letter-spacing: -0.005em; }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; }

::selection { background: var(--brand-accent); color: white; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--color-surface-mute); }
::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius);
    border: 3px solid var(--color-surface-mute);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

:focus-visible {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ─── 3. LAYOUT PRIMITIVES ────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-16) 0; }
.section--sm { padding: var(--space-10) 0; }
.section--lg { padding: var(--space-24) 0; }
.section--alt { background: var(--color-surface); }

.row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.row--end { justify-content: flex-end; }

.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-8); }

/* ─── 4. TYPOGRAPHY UTILITIES ─────────────────────────── */
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--brand-accent);
    margin: 0 0 var(--space-3);
}

.lead {
    font-size: var(--text-lg);
    color: var(--color-text-soft);
    line-height: var(--leading-relaxed);
}

.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-accent { color: var(--brand-accent); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* ─── 5. BUTTONS ──────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    min-height: 44px; /* a11y: touch target */
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: 1.2;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--block { display: flex; width: 100%; }

.btn--primary    { background: var(--brand-primary); color: white; }
.btn--primary:hover { background: var(--brand-primary-soft); color: white; box-shadow: var(--shadow); }

.btn--accent     { background: var(--brand-accent); color: white; }
.btn--accent:hover { background: var(--brand-accent-dark); color: white; box-shadow: var(--shadow); }

.btn--ghost      { background: transparent; color: var(--brand-primary); border-color: var(--color-border-strong); }
.btn--ghost:hover { background: var(--color-surface-mute); }

.btn--ghost-light { background: transparent; color: white; border-color: rgba(255,255,255,0.3); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.5); }

.btn--link       { background: transparent; color: var(--brand-accent); padding: 0; border: 0; }
.btn--link:hover { text-decoration: underline; transform: none; }

/* ─── 6. CARDS ────────────────────────────────────────── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
}
.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}
.card--feature {
    padding: var(--space-8);
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
    color: white;
    border: 0;
}
.card--feature h3, .card--feature h2 { color: white; }
.card--bordered { border-width: 2px; }

/* ─── 7. BADGES ───────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.badge--accent  { background: var(--brand-accent); color: white; }
.badge--primary { background: var(--brand-primary); color: white; }
.badge--success { background: var(--color-success-bg); color: var(--color-success); }
.badge--warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge--danger  { background: var(--color-danger-bg); color: var(--color-danger); }
.badge--info    { background: var(--color-info-bg); color: var(--color-info); }
.badge--soft    { background: var(--color-surface-mute); color: var(--color-text-soft); }

/* ─── 8. ALERTS ───────────────────────────────────────── */
.alert {
    padding: var(--space-4);
    border-radius: var(--radius);
    border: 1px solid;
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
}
.alert--info    { background: var(--color-info-bg);    border-color: var(--color-info);    color: var(--color-info); }
.alert--success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-success); }
.alert--warning { background: var(--color-warning-bg); border-color: var(--color-warning); color: var(--color-warning); }
.alert--danger  { background: var(--color-danger-bg);  border-color: var(--color-danger);  color: var(--color-danger); }

/* ─── 9. FORM INPUTS ──────────────────────────────────── */
.field { margin: 0 0 var(--space-5); }
.field-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-soft);
    margin: 0 0 var(--space-2);
}
.field-required::after { content: "*"; color: var(--color-danger); margin-left: var(--space-1); }
.field-help { font-size: var(--text-xs); color: var(--color-text-muted); margin: var(--space-1) 0 0; }
.field-error { font-size: var(--text-xs); color: var(--color-danger); margin: var(--space-1) 0 0; }

.input, .textarea, .select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    min-height: 44px; /* a11y: touch target */
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.input:focus, .textarea:focus, .select:focus {
    outline: 0;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-subtle); }
.textarea { resize: vertical; min-height: 120px; }
.input--error, .textarea--error, .select--error { border-color: var(--color-danger); }

.checkbox, .radio {
    display: inline-flex;
    align-items: flex-start;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--text-sm);
}
.checkbox input, .radio input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand-accent); }

/* ─── 10. HEADER ──────────────────────────────────────── */
.site-header {
    background: var(--brand-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    min-height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    text-decoration: none;
}
.brand:hover { color: white; text-decoration: none; }
.brand-mark {
    background: var(--brand-accent);
    color: white;
    font-weight: 800;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    line-height: 1.4;
}
.brand-name { font-size: var(--text-base); font-weight: 700; letter-spacing: -0.01em; }
.brand-name--accent { color: var(--brand-accent); }
.brand-logo {
    display: block;
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-mark-lg {
    background: var(--brand-accent);
    color: white;
    font-weight: 800;
    padding: var(--space-2) var(--space-4);
    display: inline-block;
    border-radius: var(--radius-sm);
    font-size: var(--text-xl);
    letter-spacing: 0.05em;
}

.primary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-6);
}
.primary-nav a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    padding: var(--space-1) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: white;
    border-color: var(--brand-accent);
    text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

.menu-toggle {
    display: none;
    color: white;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease);
}
.menu-toggle:hover { background: rgba(255,255,255,0.1); }

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 88%;
    height: 100vh;
    background: var(--brand-primary);
    color: white;
    padding: var(--space-6) var(--space-6) var(--space-8);
    z-index: var(--z-drawer);
    transition: right var(--duration) var(--ease);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { right: 0; }

.drawer-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    color: white;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
}
.drawer-close:hover { background: rgba(255,255,255,0.1); }

.drawer-brand { margin-bottom: var(--space-6); padding-top: var(--space-2); }

.drawer-nav { list-style: none; padding: 0; margin: 0; }
.drawer-nav li { margin: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.drawer-nav a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: var(--space-4) 0;
    font-size: var(--text-lg);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease);
}
.drawer-nav a:hover { color: white; }
.drawer-nav a[aria-current="page"] { color: var(--brand-accent-soft); }

.drawer-footer {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-backdrop);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

body.drawer-open { overflow: hidden; }

/* Lang switcher */
.lang-switcher {
    display: flex;
    gap: 1px;
    background: rgba(255,255,255,0.08);
    padding: 3px;
    border-radius: var(--radius-sm);
}
.lang-switcher a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    line-height: 1.6;
    transition: all var(--duration-fast) var(--ease);
}
.lang-switcher a:hover { color: white; }
.lang-switcher a.active {
    background: white;
    color: var(--brand-primary);
}

/* ─── 11. HERO ────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
    color: white;
    padding: var(--space-20) 0 var(--space-24);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: var(--text-hero); /* 36→56px responsive */
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 var(--space-5);
    color: white;
    letter-spacing: -0.025em;
}
.hero-title-accent { color: var(--brand-accent-soft); }
.hero-subtitle {
    font-size: var(--text-lg);
    opacity: 0.85;
    margin: 0 0 var(--space-8);
    max-width: 560px;
    line-height: var(--leading-relaxed);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-eyebrow { color: var(--brand-accent-soft); }

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    margin-left: auto;
}
.hero-shapes {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: var(--space-2);
}
.hero-shape {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    transition: all var(--duration-slow) var(--ease);
}
.hero-shape--accent {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}
.hero-shape--accent-soft {
    background: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.3);
}

.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}
.hero-blob--1 { width: 480px; height: 480px; background: var(--brand-accent); top: -120px; right: -100px; }
.hero-blob--2 { width: 320px; height: 320px; background: var(--brand-accent-soft); bottom: -100px; left: -80px; opacity: 0.2; }

/* ═══════════════════════════════════════════════════════
   Hero X — production-grade cinematic hero (admin-managed)
   ═══════════════════════════════════════════════════════ */
.hero-x {
    --hero-overlay: 0.5;
    position: relative;
    min-height: clamp(560px, 72vh, 800px);
    background: #0B1220;
    color: #FFFFFF;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-x__inner {
    padding: clamp(2rem, 5vh, 4rem) 0;
}

/* Background image */
.hero-x__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.hero-x__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    animation: hxKenBurns 28s ease-in-out infinite alternate;
    will-change: transform;
}

/* Multi-layer scrim: vertical for legibility + side fade for content area + vignette */
.hero-x__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 90%, rgba(11, 18, 32, calc(var(--hero-overlay) * 1.4)) 0%, transparent 70%),
        linear-gradient(180deg,
            rgba(11, 18, 32, calc(var(--hero-overlay) * 0.2)) 0%,
            rgba(11, 18, 32, calc(var(--hero-overlay) * 0.4)) 40%,
            rgba(11, 18, 32, calc(var(--hero-overlay) * 1.15)) 100%),
        linear-gradient(95deg,
            rgba(11, 18, 32, calc(var(--hero-overlay) * 0.85)) 0%,
            rgba(11, 18, 32, calc(var(--hero-overlay) * 0.25)) 45%,
            rgba(11, 18, 32, 0) 75%);
}

/* Subtle film grain for premium depth */
.hero-x__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Content layout */
.hero-x__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
    align-items: start;
}
.hero-x__inner--with-aside {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}
.hero-x__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    animation: hxFadeUp 1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-x__content {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
    animation: hxFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Eyebrow with accent bar */
.hero-x__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0;
    animation: hxFadeUp 1s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-x__eyebrow-bar {
    display: inline-block;
    width: 48px;
    height: 2px;
    background: var(--brand-accent);
    border-radius: 999px;
    flex-shrink: 0;
    transform-origin: left;
    animation: hxBarGrow 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Title — bigger, dramatic, with subtle gradient sheen */
.hero-x__title {
    font-size: clamp(2.75rem, 6.5vw + 0.5rem, 5.75rem);
    line-height: 1.0;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 0;
    color: white;
    text-wrap: balance;
    max-width: 18ch;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 60%, rgba(255, 255, 255, 0.78) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
    animation: hxFadeUp 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subtitle */
.hero-x__subtitle {
    font-size: clamp(1.0625rem, 0.8vw + 0.85rem, 1.3125rem);
    line-height: 1.6;
    max-width: 54ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    animation: hxFadeUp 1s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* CTAs */
.hero-x__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-2);
    animation: hxFadeUp 1s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-x__btn {
    --btn-pad-y: 1.125rem;
    --btn-pad-x: 1.75rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--btn-pad-y) var(--btn-pad-x) var(--btn-pad-y) calc(var(--btn-pad-x) + 0.25rem);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s, background-color .25s, border-color .25s, color .25s;
    line-height: 1.2;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
}
.hero-x__btn-label { position: relative; z-index: 2; }
.hero-x__btn-icon {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), background-color .25s;
    margin-right: -0.5rem;
}
.hero-x__btn-icon svg { transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-x__btn:hover { transform: translateY(-3px); text-decoration: none; }
.hero-x__btn:hover .hero-x__btn-icon svg { transform: translateX(3px); }
.hero-x__btn:active { transform: translateY(-1px); }
.hero-x__btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 4px; }

/* Primary — accent with inner highlight + brand-color glow */
.hero-x__btn--primary {
    background: var(--brand-accent);
    color: white;
    box-shadow:
        0 10px 30px -6px rgba(234, 88, 12, 0.55),
        0 4px 12px -2px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.18);
}
.hero-x__btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    border-radius: inherit;
}
.hero-x__btn--primary .hero-x__btn-icon {
    background: rgba(255, 255, 255, 0.22);
}
.hero-x__btn--primary:hover {
    background: var(--brand-accent-dark);
    color: white;
    box-shadow:
        0 18px 44px -8px rgba(234, 88, 12, 0.7),
        0 8px 20px -4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}
.hero-x__btn--primary:hover .hero-x__btn-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Ghost — frosted glass */
.hero-x__btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.2);
}
.hero-x__btn--ghost .hero-x__btn-icon--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}
.hero-x__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
    color: white;
}
.hero-x__btn--ghost:hover .hero-x__btn-icon--ghost {
    background: rgba(255, 255, 255, 0.22);
}

/* Scroll hint */
.hero-x__scroll {
    position: absolute;
    bottom: clamp(var(--space-3), 4vh, var(--space-8));
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255, 255, 255, 0.75);
    transition: color .2s, transform .2s;
}
.hero-x__scroll:hover { color: white; }
.hero-x__scroll-dot {
    animation: hxScrollDot 1.8s ease-in-out infinite;
}

/* Bottom wave divider */
.hero-x__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: clamp(40px, 6vw, 80px);
    z-index: 5;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
@keyframes hxFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes hxBarGrow {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}
@keyframes hxKenBurns {
    0%   { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.1) translate(-1.5%, -1.5%); }
}
@keyframes hxScrollDot {
    0%   { transform: translateY(0); opacity: 1; }
    50%  { opacity: 1; }
    100% { transform: translateY(8px); opacity: 0; }
}

/* ─── Chips (above title) ─────────────────────────── */
.hero-x__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    animation: hxFadeUp 1s 0.03s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-x__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.005em;
}
.hero-x__chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.7);
    flex-shrink: 0;
}

/* ─── Floating card (right column) ─────────────────── */
.hero-x__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-radius: 18px;
    color: white;
    text-decoration: none;
    box-shadow:
        0 18px 40px -10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .35s, border-color .25s, background-color .25s;
    animation: hxFadeUp 1s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    max-width: 360px;
}
.hero-x__card[aria-disabled="true"] { pointer-events: none; }
.hero-x__card:not([aria-disabled]):hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 24px 56px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: white;
}
.hero-x__card-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 0.3rem 0.7rem;
    background: rgba(234, 88, 12, 0.18);
    border: 1px solid rgba(234, 88, 12, 0.45);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white;
}
.hero-x__card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: white;
}
.hero-x__card-body {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}
.hero-x__card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-accent-soft);
    margin-top: var(--space-1);
}
.hero-x__card-cta svg { transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1); }
.hero-x__card:hover .hero-x__card-cta svg { transform: translateX(4px); }

/* ─── Bottom strip (stats + logos) ─────────────────── */
.hero-x__strip {
    position: relative;
    z-index: 4;
    padding: 0 0 calc(clamp(40px, 6vw, 80px) + var(--space-6));
}
.hero-x__strip-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Stats — compact horizontal rows on right column */
.hero-x__stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.hero-x__stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 6px);
    background: rgba(11, 18, 32, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), border-color .25s, background-color .25s;
}
.hero-x__stat::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 3px;
    background: var(--brand-accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.6);
}
.hero-x__stat:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(11, 18, 32, 0.72);
}
.hero-x__stat-num {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    flex-shrink: 0;
    min-width: 56px;
    color: white;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, var(--brand-accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}
.hero-x__stat-label {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1.3;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: var(--space-3);
    flex: 1;
}

.hero-x__logos {
    padding: var(--space-3) 0;
}
.hero-x__logos-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--space-3);
    text-align: center;
}
.hero-x__logos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}
.hero-x__logo-item {
    opacity: 0.7;
    filter: grayscale(0.6) brightness(1.4);
    transition: opacity .25s, filter .25s;
}
.hero-x__logo-item:hover { opacity: 1; filter: grayscale(0) brightness(1.6); }
.hero-x__logo-item img {
    max-height: 28px;
    width: auto;
    max-width: 120px;
    display: block;
    object-fit: contain;
}

/* ─── Mobile/tablet overrides for enrichments ─────── */
@media (max-width: 1024px) {
    .hero-x__inner--with-aside {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-x__aside {
        margin-top: var(--space-4);
    }
    .hero-x__card {
        max-width: 100%;
    }
    .hero-x__strip { padding-bottom: var(--space-12); }
}
@media (max-width: 640px) {
    .hero-x__chips { gap: 6px; }
    .hero-x__chip { padding: 0.3rem 0.7rem 0.3rem 0.55rem; font-size: 0.75rem; }
    .hero-x__stat-num { font-size: 1.25rem; min-width: 48px; }
    .hero-x__logos-list { gap: var(--space-4); }
    .hero-x__logo-item img { max-height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-x__media img,
    .hero-x__content,
    .hero-x__eyebrow,
    .hero-x__eyebrow-bar,
    .hero-x__title,
    .hero-x__subtitle,
    .hero-x__actions,
    .hero-x__badge,
    .hero-x__scroll-dot { animation: none; }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-x__content { max-width: 100%; }
}

/* Mobile */
@media (max-width: 640px) {
    .hero-x {
        min-height: 72vh;
        padding: var(--space-16) 0 var(--space-20);
        align-items: center;
    }
    .hero-x__content { gap: var(--space-5); }
    .hero-x__title { max-width: 100%; }
    .hero-x__actions { width: 100%; gap: var(--space-3); }
    .hero-x__btn {
        flex: 1 1 100%;
        justify-content: space-between;
        --btn-pad-x: 1.25rem;
        --btn-pad-y: 1rem;
        font-size: 0.9375rem;
    }
    .hero-x__btn-icon { width: 32px; height: 32px; }
    .hero-x__scroll { display: none; }
    .hero-x__eyebrow-bar { width: 32px; }
}

/* ─── 12. SERVICES SECTION ────────────────────────────── */
.services-section { padding: var(--space-20) 0; background: var(--color-bg); }
.services-section .section-head { text-align: center; margin: 0 auto var(--space-12); max-width: 720px; }
.section-head .eyebrow { display: inline-block; }
.section-lead {
    color: var(--color-text-soft);
    font-size: var(--text-lg);
    margin: var(--space-2) 0 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-5);
}
.section-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
}
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-soft) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}
.service-card h3 { color: var(--brand-primary); margin: 0; font-size: var(--text-lg); }
.service-card p { color: var(--color-text-soft); margin: 0; font-size: var(--text-sm); flex: 1; }
.service-link {
    font-weight: 600;
    color: var(--brand-accent);
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    transition: gap var(--duration-fast) var(--ease);
}
.service-link:hover { gap: var(--space-2); text-decoration: none; }

/* ─── 13. BENTO / FEATURE GRID ────────────────────────── */
.features-section { padding: var(--space-20) 0; background: var(--color-surface); }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: var(--space-5);
}
.bento-item {
    background: var(--color-bg);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    min-height: 180px;
}
.bento-item h3 { margin: 0 0 var(--space-2); }
.bento-item p  { margin: 0; }
.bento-item--wide    { grid-column: span 2; }
.bento-item--tall    { grid-row: span 2; }
.bento-item--feature {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
    color: white;
    grid-column: span 2;
    border: 0;
    padding: var(--space-8);
    justify-content: space-between;
    gap: var(--space-6);
}
.bento-item--feature h3 { color: white; font-size: var(--text-2xl); line-height: 1.2; }
.bento-item--feature p  { color: rgba(255,255,255,0.85); font-size: var(--text-base); line-height: 1.55; }

.bento-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.16);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 2;
}
.bento-feature__body { position: relative; z-index: 2; }
.bento-feature__deco {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.18), rgba(255,255,255,0) 65%);
    pointer-events: none;
    z-index: 1;
}
.bento-feature__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.bento-feature__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 27, 50, 0.25) 0%, rgba(15, 27, 50, 0.78) 65%, rgba(15, 27, 50, 0.92) 100%);
    pointer-events: none;
}
.bento-item--has-image { background: var(--brand-primary-dark); }
.bento-item--has-image .bento-feature__deco { opacity: 0.6; mix-blend-mode: screen; }

/* 2x2 equal grid variant (e.g. values section: 1 feature + 3 small) */
.bento-grid--quad {
    grid-template-columns: repeat(2, 1fr);
}
.bento-grid--quad .bento-item--feature {
    grid-column: span 1;
    grid-row: span 1;
}

/* ─── 14. CTA BANNER ──────────────────────────────────── */
.cta-banner {
    background: var(--brand-primary-dark);
    color: white;
    padding: var(--space-12) 0;
}
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}
.cta-banner h2 { color: white; margin: 0 0 var(--space-2); }
.cta-banner p { margin: 0; opacity: 0.85; }

/* ─── 15. PAGE HEADER & PROSE ─────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-12);
}
.page-hero h1 { color: white; margin: 0 0 var(--space-3); }
.page-lead { opacity: 0.85; max-width: 700px; font-size: var(--text-lg); margin: 0; }

.page-content { padding: var(--space-12) 0; }
.prose { max-width: 760px; color: var(--color-text-soft); }
.prose p { font-size: var(--text-base); line-height: var(--leading-relaxed); margin: 0 0 var(--space-4); }
.prose h2 { margin-top: var(--space-10); }
.prose h3 { margin-top: var(--space-8); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); padding-left: var(--space-6); }
.prose li { margin: var(--space-2) 0; }
.prose a { color: var(--brand-accent); }

/* ─── 16. FOOTER ──────────────────────────────────────── */
.site-footer {
    background: var(--brand-primary);
    color: white;
    padding: var(--space-16) 0 var(--space-6);
    margin-top: var(--space-16);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-10);
}
.footer-col h3 {
    color: white;
    margin: 0 0 var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: var(--space-2) 0; }
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--duration-fast) var(--ease);
}
.footer-col a:hover { color: var(--brand-accent-soft); }

.footer-brand .brand-tag { margin: var(--space-4) 0 var(--space-2); font-weight: 700; font-size: var(--text-base); }
.footer-blurb { color: rgba(255,255,255,0.6); font-size: var(--text-sm); margin: 0; max-width: 320px; line-height: var(--leading-relaxed); }
.footer-contact li { color: rgba(255,255,255,0.7); font-size: var(--text-sm); }

.footer-legal-row {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.footer-legal-row a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.footer-legal-row a:hover { color: var(--brand-accent-soft); }
.footer-legal-sep { color: rgba(255,255,255,0.3); }

.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5);
    font-size: var(--text-xs);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ─── 16b. PAGE-LEVEL COMPONENTS (Phase 5) ────────────── */

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-out);
}
.back-link:hover { color: white; text-decoration: none; }
.back-link .icon-flip { transform: rotate(180deg); }

/* Service detail layout */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-10);
    align-items: start;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}
.feature-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Network grid */
.network-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
}
.network-col {}
.network-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.network-head .service-icon { margin-bottom: 0; }
.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.city-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}
.city-list li:last-child { border-bottom: 0; }
.city-name { font-weight: 600; color: var(--color-text); }
.city-role { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Contact page grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}
.contact-info h2 { margin: 0 0 var(--space-6); }
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list li > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.contact-list strong {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 700;
}
.contact-list a { color: var(--brand-primary); font-weight: 600; }
.contact-list a:hover { color: var(--brand-accent); }
.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-surface-mute);
    color: var(--brand-primary);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile overrides for new sections */
@media (max-width: 768px) {
    .service-detail-grid,
    .network-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ─── 16c. CONTACT / THANK-YOU / TOAST / COOKIE ───────── */

/* Contact form */
.contact-form-card .field:last-of-type { margin-bottom: var(--space-4); }
.checkbox a { color: var(--brand-accent); }
.checkbox a:hover { text-decoration: underline; }

/* Thank you page */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: var(--space-16) 0;
    background: var(--color-bg);
}
.thank-you-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.thank-you-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--color-success) 0%, #10B981 100%);
    color: white;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}
.thank-you-card h1 { margin: 0 0 var(--space-3); }
.thank-you-card .lead { margin: 0 0 var(--space-8); }
.reference-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    background: var(--color-surface);
    border: 2px dashed var(--brand-accent);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    margin: 0 auto var(--space-8);
}
.reference-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-weight: 700;
}
.reference-code {
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: 0.05em;
}
.thank-you-cta {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 400px;
    width: calc(100% - var(--space-12));
}
.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-surface);
    padding: var(--space-4);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-info);
    animation: toast-in 300ms var(--ease-out);
}
.toast--success { border-left-color: var(--color-success); }
.toast--danger  { border-left-color: var(--color-danger);  }
.toast--info    { border-left-color: var(--color-info);    }
.toast--leaving { animation: toast-out 300ms var(--ease-out) forwards; }
.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.toast--success .toast-icon { color: var(--color-success); }
.toast--danger  .toast-icon { color: var(--color-danger); }
.toast--info    .toast-icon { color: var(--color-info); }
.toast-msg {
    flex: 1;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.4;
}
.toast-close {
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 1;
    padding: 0 var(--space-1);
    flex-shrink: 0;
}
.toast-close:hover { color: var(--color-text); }
@keyframes toast-in  { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(100%); } }

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--brand-primary);
    color: white;
    padding: var(--space-4) 0;
    z-index: var(--z-sticky);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
    animation: cookie-up 400ms var(--ease-out);
}
.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}
.cookie-banner p {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.85);
    flex: 1;
    line-height: var(--leading-relaxed);
}
.cookie-banner a {
    color: var(--brand-accent-soft);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-banner-actions { display: flex; gap: var(--space-2); }

@keyframes cookie-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .toast-container { bottom: var(--space-4); right: var(--space-4); }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: var(--space-3); }
    .cookie-banner-actions { justify-content: stretch; }
    .cookie-banner-actions .btn { flex: 1; }
}

/* ─── 17. ERROR PAGE ──────────────────────────────────── */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--color-bg);
    padding: var(--space-8);
}
.error-box { text-align: center; max-width: 480px; }
.error-code {
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1;
    margin: 0 0 var(--space-4);
}

/* ─── 18. UTILITIES ───────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -200px;
    left: 0;
    background: var(--brand-accent);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: var(--z-toast);
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
}
.skip-link:focus { top: 0; }

.hidden { display: none !important; }
.no-wrap { white-space: nowrap; }

/* ─── 19. RESPONSIVE ─────────────────────────────────── */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item--wide, .bento-item--feature { grid-column: span 2; }
    .bento-item--tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    .primary-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .lang-switcher { display: none; }
    .hero { padding: var(--space-12) 0 var(--space-16); }
    .section, .section--lg, .services-section, .features-section { padding: var(--space-12) 0; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-bottom { justify-content: center; text-align: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item--wide, .bento-item--feature { grid-column: span 1; }
    .cta-banner-inner { text-align: center; justify-content: center; }
    .cta-banner-inner > div { text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }
    .hero-title { font-size: clamp(var(--text-2xl), 8vw, var(--text-4xl)); }
    .btn--lg { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
}

/* ═══════════════════════════════════════════════════════
   22. PREMIUM TOUCHES — micro-interactions & animations
   ═══════════════════════════════════════════════════════ */

/* ─── Scroll progress bar (top of viewport) ───────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-accent-soft) 100%);
    z-index: 1000;
    transition: width 100ms linear;
    will-change: width;
    box-shadow: 0 0 12px rgba(234, 88, 12, 0.5);
}

/* ─── Scroll-triggered reveal ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }
.reveal--d4 { transition-delay: 320ms; }
.reveal--d5 { transition-delay: 400ms; }

/* ─── Page enter (first load) ─────────────────────────── */
body { animation: page-fade-in 500ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ─── Hero premium: gradient mesh + animated title ────── */
.hero {
    background:
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(234, 88, 12, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(251, 146, 60, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-soft) 100%);
}
.hero-title {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 55%, #FB923C 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-shimmer 7s ease-in-out infinite alternate;
}
@keyframes title-shimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
.hero-title-accent {
    -webkit-text-fill-color: initial;
    color: var(--brand-accent-soft);
    background: none;
    animation: none;
}

.hero-blob { will-change: transform; transition: transform 80ms linear; }

.hero-shape { transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.hero-shape--accent      { animation: pulse-accent 4s ease-in-out infinite; }
.hero-shape--accent-soft { animation: pulse-accent 4s ease-in-out infinite 1.2s; }
@keyframes pulse-accent {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.85; transform: scale(0.96); }
}

/* ─── Service card 3D tilt + icon dance ───────────────── */
.service-card {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 300ms var(--ease-out),
                border-color 300ms var(--ease-out);
}
.service-icon { transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }

.service-link { transition: gap 200ms var(--ease-out), color 200ms var(--ease-out); }
.service-card:hover .service-link {
    gap: var(--space-2);
    color: var(--brand-accent-dark);
}

/* ─── Bento subtle hover ──────────────────────────────── */
.bento-item {
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 300ms, box-shadow 300ms;
}
.bento-item:hover {
    transform: translateY(-4px);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow);
}
.bento-item--feature:hover { border-color: transparent; }

/* ─── Button ripple glow ──────────────────────────────── */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
                rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 500ms var(--ease-out);
    pointer-events: none;
    z-index: -1;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ─── Nav link underline animation ────────────────────── */
.primary-nav a { border-bottom: none !important; position: relative; }
.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ─── Footer link arrow on hover ──────────────────────── */
.footer-col a {
    position: relative;
    transition: color 200ms var(--ease-out), padding-left 200ms var(--ease-out);
}
.footer-col a:hover { padding-left: 6px; }

/* ─── CTA banner premium glow ─────────────────────────── */
.cta-banner {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(234, 88, 12, 0.15) 0%, transparent 50%),
        var(--brand-primary-dark);
    position: relative;
    overflow: hidden;
}

/* ─── Smooth in-page anchor scroll ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* ─── 20. REDUCED MOTION ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-blob { filter: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .scroll-progress { display: none; }
}

/* ─── 22. NETWORK PAGE COMPONENTS ─────────────────────── */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
@media (max-width: 1024px) {
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .capability-grid { grid-template-columns: 1fr; }
}

.process-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    counter-reset: process-step;
}
.process-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.process-step:hover {
    transform: translateY(-3px);
    border-color: var(--brand-accent);
}
.process-step__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-soft) 100%);
    color: white;
    font-weight: 700;
    font-size: var(--text-base);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}
.process-step__title {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    padding-top: var(--space-2);
}
@media (max-width: 1024px) {
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .process-timeline {
        grid-template-columns: 1fr;
        position: relative;
    }
    .process-timeline::before {
        content: "";
        position: absolute;
        left: 22px;
        top: var(--space-6);
        bottom: var(--space-6);
        width: 2px;
        background: var(--color-border);
        z-index: 0;
    }
    .process-step { position: relative; z-index: 1; }
}

.operations-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3) var(--space-5);
}
.operations-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 500;
}
.operations-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.12);
    color: var(--brand-accent);
    flex: 0 0 auto;
}
@media (max-width: 600px) {
    .operations-list { grid-template-columns: 1fr; }
}

.callout-band {
    background: var(--brand-primary-dark);
    color: white;
    padding: var(--space-16) 0;
    text-align: center;
}
.callout-band__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-3);
}
.callout-band__title {
    color: white;
    margin: 0 auto var(--space-4);
    max-width: 720px;
}
.callout-band__text {
    margin: 0 auto;
    max-width: 720px;
    opacity: 0.85;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

/* ─── 23. PRINT ──────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .lang-switcher, .menu-toggle,
    .mobile-drawer, .drawer-backdrop, .cta-banner, .skip-link { display: none !important; }
    body { background: white; color: black; }
    a { color: black; text-decoration: underline; }
    .hero, .page-hero { background: white; color: black; padding: var(--space-8) 0; }
    .hero-title, .page-hero h1 { color: black; }
}
