/* ============================================================
   EHN Unified Stylesheet
   Easy Home Networks — easyhomenetworks.co.za
   Consolidates: styles.css + home-redesign.css + service-redesign.css
   ============================================================ */

/* ==========================================================
   1. DESIGN SYSTEM TOKENS
   ========================================================== */
:root {
    color-scheme: dark;

    /* ---- Dark zones (hero, navbar, footer, CTA) ---- */
    --dark-bg:             #04141d;
    --dark-bg-deep:        #031019;
    --dark-surface:        rgba(11, 32, 45, 0.84);
    --dark-surface-strong: rgba(8, 24, 35, 0.94);
    --dark-text:           #eef9ff;
    --dark-muted:          #9cb8c7;

    /* ---- Light zones (content sections) ---- */
    --light-bg:            #f8fbfe;
    --light-surface:       #ffffff;
    --light-text:          #0f2432;
    --light-muted:         #466276;

    /* ---- Accent system ---- */
    --accent:              #68d7ff;   /* cyan */
    --accent-strong:       #11a7ff;   /* blue */
    --accent-success:      #8ef0bc;
    --accent-warm:         #ff8a3d;
    --accent-danger:       #ff7b7b;

    /* ---- Borders ---- */
    --border:              rgba(120, 203, 255, 0.18);
    --border-strong:       rgba(120, 203, 255, 0.32);

    /* ---- Shadows ---- */
    --shadow:              0 28px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft:         0 14px 30px rgba(0, 0, 0, 0.18);

    /* ---- Typography ---- */
    --font-headline:       'Space Grotesk', 'Outfit', sans-serif;
    --font-body:           'Outfit', 'Segoe UI', sans-serif;
    --font-mono:           'JetBrains Mono', 'Fira Code', monospace;

    /* ---- Radii ---- */
    --radius-sm:           8px;
    --radius-md:           16px;
    --radius-lg:           22px;
    --radius-xl:           32px;
    --radius-pill:         999px;

    /* ---- Transitions ---- */
    --ease:                0.25s ease;
}

/* Per-service accent overrides
   Apply on <body> or page wrapper: class="service-tech" etc. */
.service-tech  { --accent: #68d7ff; --accent-strong: #11a7ff; }
.service-ai    { --accent: #5aefc7; --accent-strong: #14c3a2; }
.service-auto  { --accent: #ffb84d; --accent-strong: #ffb703; }
.service-apps  { --accent: #ff7eb3; --accent-strong: #ff784f; }


/* ==========================================================
   2. RESET & BASE
   ========================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font: inherit;
}


/* ==========================================================
   3. UTILITY CLASSES
   ========================================================== */

/* ---- Container ---- */
.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    max-width: none;
    padding: 0;
}

/* ---- Zone modifiers ---- */
.zone-dark {
    color: var(--dark-text);
    background: var(--dark-bg);
}

.zone-light {
    color: var(--light-text);
    background: var(--light-bg);
}

/* ---- Site shell ---- */
.site-shell {
    position: relative;
    isolation: isolate;
}

/* ---- Page-level background glow (dark pages) ---- */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    pointer-events: none;
}

body::before {
    width: 300px;
    height: 300px;
    top: 8%;
    right: -100px;
    background: rgba(17, 167, 255, 0.25);
}

body::after {
    width: 260px;
    height: 260px;
    bottom: 10%;
    left: -90px;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---- Page background gradient ---- */
.page-dark-bg {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
        radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 24%),
        linear-gradient(180deg, #071b26 0%, var(--dark-bg) 48%, var(--dark-bg-deep) 100%);
}

/* ---- Scroll reveal ---- */
.reveal-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Tilt card ---- */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    will-change: transform;
}

.tilt-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

/* ---- Eyebrow / Kicker / Chip / Tag (reusable badge) ---- */
.eyebrow,
.section-kicker,
.card-tag,
.core-label,
.hero-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.eyebrow,
.section-kicker {
    margin-bottom: 18px;
}


/* ==========================================================
   4. TOP BAR
   ========================================================== */
.top-bar {
    position: relative;
    z-index: 20;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(3, 16, 25, 0.68);
    font-size: 1rem;
    backdrop-filter: blur(16px);
}

.top-bar .container,
.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar .container {
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-link,
.call-link {
    color: var(--dark-muted);
    font-size: 0.95rem;
    transition: color var(--ease);
}

.top-bar-link:hover,
.call-link:hover {
    color: var(--dark-text);
}


/* ==========================================================
   5. NAVBAR (sticky, glassmorphic, .is-scrolled)
   ========================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 18px 0;
    background: rgba(4, 20, 29, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: none;
    backdrop-filter: blur(16px);
    transition: padding var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.navbar.is-scrolled {
    padding: 12px 0;
    background: rgba(4, 20, 29, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-headline);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: -0.03em;
}

.logo-text .dark {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 10px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    color: var(--dark-muted);
    font-size: 0.96rem;
    font-weight: 500;
    transition: color var(--ease), background-color var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: var(--radius-pill);
    background: var(--dark-text);
}


/* ==========================================================
   6. BUTTONS
   ========================================================== */
.quote-btn,
.button,
.form-submit,
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease), color var(--ease);
}

.quote-btn,
.button,
.form-submit,
.cta-button {
    color: #021018;
    background: linear-gradient(135deg, var(--accent) 0%, #b5f0ff 100%);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 22%, transparent);
}

.quote-btn:hover,
.button:hover,
.form-submit:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.secondary {
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Service-accented button variant (gradient uses per-service accent) */
.button.service {
    color: #021018;
    background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.service:hover {
    box-shadow: 0 18px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}


/* ==========================================================
   7. HERO SECTIONS
   ========================================================== */

/* ---- Homepage hero ---- */
.hero-home {
    position: relative;
    padding: clamp(76px, 12vw, 132px) 0 clamp(36px, 6vw, 68px);
    text-align: left;
    background: none;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.98fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.hero-title,
.section-title {
    font-family: var(--font-headline);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-title {
    max-width: 10ch;
    font-size: clamp(3rem, 6.8vw, 6rem);
    margin-bottom: 22px;
    color: var(--dark-text);
}

.hero-subtitle,
.section-intro {
    color: var(--dark-muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.hero-subtitle {
    max-width: 58ch;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

/* ---- Service page hero variant ---- */
.hero-service {
    padding: clamp(76px, 11vw, 122px) 0 clamp(56px, 8vw, 86px);
    background: none;
    text-align: left;
}

.hero-service-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: center;
}

.hero-service h1 {
    max-width: 10ch;
    font-family: var(--font-headline);
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.service-lead {
    max-width: 58ch;
    margin-bottom: 28px;
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-chip {
    font-size: 0.8rem;
}

.hero-chip strong {
    color: var(--dark-text);
}

.hero-chip span {
    color: var(--dark-muted);
}


/* ==========================================================
   7b. HERO VISUAL (network stage / service stage)
   ========================================================== */

/* ---- Homepage network stage ---- */
.hero-visual {
    position: relative;
}

.network-stage {
    position: relative;
    min-height: 560px;
    padding: 28px;
    border-radius: 38px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 24%),
        radial-gradient(circle at 78% 22%, rgba(255, 209, 102, 0.12), transparent 18%),
        linear-gradient(145deg, rgba(13, 39, 56, 0.92), rgba(7, 22, 32, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.network-stage::before {
    content: '';
    position: absolute;
    inset: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* ---- Service page stage ---- */
.service-stage {
    position: relative;
    min-height: 500px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 20%),
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.08), transparent 16%),
        linear-gradient(145deg, rgba(12, 35, 49, 0.94), rgba(7, 20, 29, 0.98));
    box-shadow: var(--shadow-soft);
}

.service-stage::before {
    content: '';
    position: absolute;
    inset: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* ---- Orbital rings (home) ---- */
.orbital-ring {
    position: absolute;
    border: 1px dashed color-mix(in srgb, var(--accent) 18%, transparent);
    border-radius: 50%;
    animation: ehn-spin 18s linear infinite;
}

.ring-one   { width: 360px; height: 360px; top: 90px;  left: 60px; }
.ring-two   { width: 460px; height: 460px; top: 40px;  right: -90px; animation-duration: 26s; animation-direction: reverse; }
.ring-three { width: 280px; height: 280px; bottom: 30px; left: 140px; animation-duration: 15s; }

/* ---- Pulse rings (service) ---- */
.pulse-ring {
    position: absolute;
    border: 1px dashed color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 50%;
    animation: ehn-spin 16s linear infinite;
}

.pulse-ring.ring-a { width: 320px; height: 320px; top: 70px; left: 50px; }
.pulse-ring.ring-b { width: 420px; height: 420px; top: 10px; right: -90px; animation-duration: 24s; animation-direction: reverse; }
.pulse-ring.ring-c { width: 220px; height: 220px; bottom: 28px; left: 120px; animation-duration: 12s; }

/* ---- Core panel (home hero center card) ---- */
.core-panel {
    position: absolute;
    top: 26%;
    left: 15%;
    right: 15%;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(240, 249, 255, 0.97), rgba(213, 239, 255, 0.92));
    color: var(--light-text);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
    transform: translateZ(38px);
}

.core-label {
    background: rgba(9, 47, 68, 0.08);
    border-color: rgba(9, 47, 68, 0.12);
    color: var(--accent-strong);
    margin-bottom: 16px;
}

.core-panel h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.9rem, 2.5vw, 2.7rem);
    line-height: 1.06;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.core-panel p {
    color: var(--light-muted);
}

.core-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.core-stat-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(9, 47, 68, 0.06);
}

.core-stat-grid strong {
    display: block;
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 6px;
}

.core-stat-grid span {
    color: var(--light-muted);
    font-size: 0.9rem;
}

/* ---- Service stage panel (center card) ---- */
.service-stage-panel {
    position: absolute;
    top: 24%;
    left: 14%;
    right: 14%;
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(248, 252, 255, 0.97), rgba(222, 242, 253, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    color: var(--light-text);
    transform: translateZ(32px);
}

.stage-label {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(16, 39, 54, 0.07);
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-stage-panel h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.8rem, 2.3vw, 2.5rem);
    line-height: 1.08;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
}

.service-stage-panel p {
    color: var(--light-muted);
}

.stage-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.stage-stat-grid div {
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(16, 39, 54, 0.05);
}

.stage-stat-grid strong {
    display: block;
    color: var(--light-text);
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.stage-stat-grid span {
    color: var(--light-muted);
    font-size: 0.86rem;
}

/* ---- Floating nodes (home) ---- */
.floating-node {
    position: absolute;
    width: min(220px, 42%);
}

.node-ai      { top: 28px;     left: 24px; }
.node-ops     { top: 70px;     right: 18px; }
.node-support { bottom: 110px; left: 10px; }
.node-apps    { right: 26px;   bottom: 34px; }

.node-shell {
    display: block;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(6, 24, 34, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.node-shell small,
.node-shell em {
    display: block;
}

.node-shell small {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.node-shell strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--dark-text);
}

.node-shell em {
    color: var(--dark-muted);
    font-size: 0.86rem;
    font-style: normal;
}

/* ---- Signal cards (service) ---- */
.signal-card {
    position: absolute;
    width: min(210px, 42%);
    padding: 16px;
    border-radius: 20px;
    background: rgba(6, 24, 34, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.signal-card small,
.signal-card span {
    display: block;
}

.signal-card small {
    margin-bottom: 6px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.signal-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.98rem;
    color: var(--dark-text);
}

.signal-card span {
    color: var(--dark-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.signal-top    { top: 26px;   left: 24px; }
.signal-right  { top: 64px;   right: 20px; }
.signal-bottom { right: 26px; bottom: 34px; }


/* ==========================================================
   8. CONTENT SECTIONS (light, white, dark zones)
   ========================================================== */
.content-section {
    position: relative;
    padding: clamp(72px, 8vw, 110px) 0;
}

.content-section.light {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        rgba(255, 255, 255, 0.015);
}

.content-section.white {
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(225, 243, 252, 0.94));
    color: var(--light-text);
}

.content-section.dark {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
        linear-gradient(180deg, rgba(2, 13, 21, 0.9), rgba(3, 16, 25, 0.98));
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 18px;
    color: inherit;
    text-align: left;
}

.section-title.left,
.section-intro.left {
    text-align: left;
    margin-left: 0;
}

.section-title.left {
    max-width: 12ch;
}

.section-intro {
    max-width: 64ch;
    margin-bottom: 36px;
    text-align: left;
}

/* White-zone overrides for text colors */
.content-section.white .section-title,
.content-section.white .section-intro,
.content-section.white .feature-item h3,
.content-section.white .feature-item p,
.content-section.white .stack-card p,
.content-section.white .benefits-list strong,
.content-section.white .benefits-list p,
.content-section.white .service-aside-card h3,
.content-section.white .service-aside-card p,
.content-section.white .service-aside-card li strong,
.content-section.white .service-aside-card li span,
.content-section.white .team-section h2,
.content-section.white .team-section p,
.content-section.white .partner-logo-text {
    color: var(--light-text);
}

.content-section.white .section-intro,
.content-section.white .feature-item p,
.content-section.white .stack-card p,
.content-section.white .benefits-list p,
.content-section.white .team-section p,
.content-section.white .service-aside-card p,
.content-section.white .service-aside-card li span,
.content-section.white .partner-logo-text {
    color: var(--light-muted);
}


/* ==========================================================
   9. SHARED CARD BASE
   ========================================================== */
.metric-card,
.trust-card,
.service-link-card,
.stack-card,
.contact-point,
.contact-form,
.service-pill,
.feature-item,
.service-aside-card,
.cta-shell,
.team-section,
.service-stat-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-soft);
}

.metric-card,
.trust-card {
    padding: 18px;
}

.metric-card strong,
.trust-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--dark-text);
}

.metric-card span,
.trust-card span {
    display: block;
    color: var(--dark-muted);
    font-size: 0.92rem;
}


/* ==========================================================
   10. SERVICE CARD GRID
   ========================================================== */
.service-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-link-card,
.stack-card {
    padding: 24px;
    min-height: 100%;
    overflow: hidden;
}

/* Glow bleed */
.service-link-card::after,
.stack-card::after {
    content: '';
    position: absolute;
    inset: auto -15% -45% 40%;
    height: 120px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    filter: blur(18px);
}

.stack-card::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.service-index {
    display: inline-flex;
    margin-bottom: 18px;
    font-family: var(--font-headline);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.content-section.white .service-index,
.content-section.white .card-tag {
    color: var(--accent-strong);
}

.service-link-card h3,
.stack-card h3 {
    font-size: 1.28rem;
    line-height: 1.15;
    margin-bottom: 12px;
    color: inherit;
}

.service-link-card p,
.stack-card p {
    color: var(--dark-muted);
    font-size: 0.98rem;
}

/* White-zone card variant */
.content-section.white .service-link-card,
.content-section.white .stack-card,
.content-section.white .contact-form,
.content-section.white .contact-point,
.content-section.white .feature-item,
.content-section.white .service-aside-card,
.content-section.white .team-section {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}


/* ==========================================================
   11. TRUST BAND
   ========================================================== */
.trust-band {
    padding-bottom: clamp(36px, 6vw, 68px);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}


/* ==========================================================
   12. HOME VALUES GRID
   ========================================================== */
.home-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Legacy value-card support */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: var(--light-surface);
    padding: 30px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.value-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--light-muted);
    line-height: 1.7;
}


/* ==========================================================
   13. PARTNERS SECTION
   ========================================================== */
.partners {
    position: relative;
    padding: clamp(72px, 8vw, 110px) 0;
    background:
        linear-gradient(180deg, rgba(240, 249, 255, 0.98), rgba(225, 243, 252, 0.94));
    color: var(--light-text);
}

.partners .section-intro {
    color: var(--light-muted);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.partner-logo {
    text-align: center;
    padding: 20px;
}

.partner-logo img {
    max-width: 150px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.partner-logo-text {
    min-width: 140px;
    padding: 18px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--light-text);
}

.partners .partner-logo-text {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}


/* ==========================================================
   14. SOCIAL PROOF (testimonial + metrics) — NEW
   ========================================================== */
.testimonial-block {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-soft);
}

.testimonial-block blockquote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--dark-text);
    font-style: italic;
    margin-bottom: 18px;
}

.testimonial-block cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
    font-size: 0.95rem;
}

.testimonial-block cite span {
    display: block;
    color: var(--dark-muted);
    font-weight: 400;
    font-size: 0.88rem;
}

.proof-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.proof-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    text-align: center;
}

.proof-card .proof-value {
    display: block;
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.proof-card .proof-label {
    display: block;
    color: var(--dark-muted);
    font-size: 0.9rem;
}

/* White-zone variant */
.content-section.white .testimonial-block {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .testimonial-block blockquote {
    color: var(--light-text);
}

.content-section.white .testimonial-block cite span {
    color: var(--light-muted);
}

.content-section.white .proof-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .proof-card .proof-label {
    color: var(--light-muted);
}


/* ==========================================================
   15. HOW WE WORK / PROCESS STEPS — NEW
   ========================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    position: relative;
}

.process-step {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #021018;
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.process-step p {
    color: var(--dark-muted);
    font-size: 0.95rem;
}

/* Connector line between steps */
.process-connector {
    display: none;  /* Hidden by default; shown via JS or specific layout if needed */
    position: absolute;
    top: 50%;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--border-strong);
    transform: translateY(-50%);
}

/* White-zone variant */
.content-section.white .process-step {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .process-step h3 {
    color: var(--light-text);
}

.content-section.white .process-step p {
    color: var(--light-muted);
}


/* ==========================================================
   16. FEATURE GRID (service pages)
   ========================================================== */
.feature-grid,
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.features-grid {
    margin-top: 18px;
}

.feature-item {
    padding: 24px;
    min-height: 100%;
}

.feature-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-item h3 {
    font-size: 1.22rem;
    line-height: 1.18;
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}


/* ==========================================================
   17. BENEFITS + ASIDE (service pages)
   ========================================================== */
.benefits-container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: start;
}

.benefits-list {
    list-style: none;
}

.benefits-list li + li {
    margin-top: 18px;
}

.benefits-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.benefits-list p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
    margin: 0;
}

.service-aside-card {
    padding: 24px;
}

.content-section.white .service-aside-card,
.content-section.light .service-aside-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(227, 243, 252, 0.92));
    border-color: rgba(16, 39, 54, 0.08);
}

.service-aside-card h3 {
    font-family: var(--font-headline);
    font-size: 1.55rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.service-aside-card p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.service-stat-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.service-stat-card {
    padding: 14px 16px;
}

.content-section.white .service-stat-card,
.content-section.light .service-stat-card {
    background: rgba(16, 39, 54, 0.04);
    border-color: rgba(16, 39, 54, 0.08);
    box-shadow: none;
}

.service-stat-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
    color: var(--light-text);
}

.service-stat-card span {
    display: block;
    font-size: 0.86rem;
    color: var(--light-muted);
}


/* ==========================================================
   18. DELIVERABLES GRID (service pages) — NEW
   ========================================================== */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.deliverable-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.deliverable-card .deliverable-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.deliverable-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.deliverable-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-section.white .deliverable-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .deliverable-card h3 {
    color: var(--light-text);
}

.content-section.white .deliverable-card p {
    color: var(--light-muted);
}


/* ==========================================================
   19. USE CASE SPOTLIGHT (service pages) — NEW
   ========================================================== */
.use-case-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.use-case-spotlight h3 {
    font-family: var(--font-headline);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: var(--dark-text);
}

.use-case-spotlight p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.use-case-spotlight .use-case-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 4/3;
}

.use-case-spotlight .use-case-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-section.white .use-case-spotlight {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .use-case-spotlight h3 {
    color: var(--light-text);
}

.content-section.white .use-case-spotlight p {
    color: var(--light-muted);
}


/* ==========================================================
   20. DIFFERENTIATORS GRID (service pages) — NEW
   ========================================================== */
.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.differentiator-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    text-align: center;
}

.differentiator-card .diff-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 1.4rem;
}

.differentiator-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.differentiator-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.content-section.white .differentiator-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .differentiator-card h3 {
    color: var(--light-text);
}

.content-section.white .differentiator-card p {
    color: var(--light-muted);
}


/* ==========================================================
   21. TEAM SECTION + TEAM CARDS — NEW
   ========================================================== */
.team-section {
    padding: 28px;
}

.content-section.light .team-section {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.team-section h2 {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.team-section p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}

.team-section p + p {
    margin-top: 12px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.team-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-strong);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--dark-text);
}

.team-card .team-role {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.team-card p {
    color: var(--dark-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.content-section.white .team-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .team-card h3 {
    color: var(--light-text);
}

.content-section.white .team-card p {
    color: var(--light-muted);
}

/* Team avatar placeholder (initials) */
.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}


/* ==========================================================
   21b. ABOUT PAGE — STORY GRID + VALUE CARDS
   ========================================================== */
.about-story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

.about-story-text p {
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.75;
}

.about-story-text p + p {
    margin-top: 16px;
}

.about-values-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-value-card {
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow-soft);
}

.about-value-card h3 {
    font-family: var(--font-headline);
    font-size: 1.08rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.about-value-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Light-zone overrides for story + value cards */
.content-section.light .about-story-text p {
    color: var(--light-muted);
}

.content-section.light .about-value-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(227, 243, 252, 0.92));
    border-color: rgba(16, 39, 54, 0.08);
}

.content-section.light .about-value-card h3 {
    color: var(--accent-strong);
}

.content-section.light .about-value-card p {
    color: var(--light-muted);
}

/* White-zone overrides for story + value cards */
.content-section.white .about-story-text p {
    color: var(--light-muted);
}

.content-section.white .about-value-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .about-value-card h3 {
    color: var(--accent-strong);
}

.content-section.white .about-value-card p {
    color: var(--light-muted);
}


/* ==========================================================
   22. CASE STUDIES — NEW
   ========================================================== */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.case-study-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--ease), box-shadow var(--ease);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.case-study-card .case-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.case-study-card .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-card .case-body {
    padding: 24px;
}

.case-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.case-study-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.case-study-card p {
    color: var(--dark-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.results-band {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.results-band .result-item {
    text-align: center;
    flex: 1;
}

.results-band .result-value {
    display: block;
    font-family: var(--font-headline);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.results-band .result-label {
    display: block;
    color: var(--dark-muted);
    font-size: 0.8rem;
}

.content-section.white .case-study-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.white .case-study-card h3 {
    color: var(--light-text);
}

.content-section.white .case-study-card p {
    color: var(--light-muted);
}

.content-section.white .results-band .result-label {
    color: var(--light-muted);
}


/* ---- Portfolio page overrides ---- */
.portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-section.light .case-study-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(228, 243, 251, 0.94));
    border-color: rgba(15, 36, 50, 0.08);
}

.content-section.light .case-study-card h3 {
    color: var(--light-text);
}

.content-section.light .case-study-card p {
    color: var(--light-muted);
}

.case-service-label {
    display: block;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark-muted);
    opacity: 0.7;
}

.content-section.light .case-service-label,
.content-section.white .case-service-label {
    color: var(--light-muted);
}

.impact-summary {
    background: linear-gradient(
        155deg,
        rgba(228, 243, 251, 0.5),
        rgba(255, 255, 255, 0.98)
    );
}

.impact-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================
   23. CTA SECTION (service pages)
   ========================================================== */
.cta-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 4vw, 34px);
}

.cta-copy p {
    max-width: 60ch;
    margin-top: 12px;
    color: var(--dark-muted);
    font-size: 1.03rem;
    line-height: 1.7;
}


/* ==========================================================
   24. CONTACT FORM LAYOUT
   ========================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

.contact-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow-soft);
}

.contact-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-point {
    padding: 16px 18px;
}

.contact-point span {
    display: block;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.contact-point strong {
    display: block;
    color: var(--dark-text);
    font-size: 1rem;
}

.contact-form {
    margin: 0;
    max-width: none;
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-xl);
}

.form-group + .form-group {
    margin-top: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-text);
    font: inherit;
    transition: border-color var(--ease), background-color var(--ease), box-shadow var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent);
}

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

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: rgba(255, 123, 123, 0.7);
}

.error-message {
    color: #ffb2b2;
    font-size: 0.85rem;
    margin-top: 5px;
}

.error-message.show {
    display: block;
}

.success-message {
    background: rgba(142, 240, 188, 0.12);
    border: 1px solid rgba(142, 240, 188, 0.22);
    color: var(--accent-success);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.success-message.show {
    display: block;
}

.form-submit {
    width: 100%;
    margin-top: 24px;
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    margin-top: 16px;
    color: var(--dark-muted);
    font-size: 0.92rem;
    text-align: center;
}

.form-note a {
    color: var(--accent);
}


/* ==========================================================
   25. FOOTER (expanded 4-column layout)
   ========================================================== */
.footer {
    padding: 56px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 12, 18, 0.92);
}

.footer-content {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* 4-column grid layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}

.footer-col h4 {
    font-family: var(--font-headline);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
    color: var(--dark-muted);
    font-size: 0.93rem;
    line-height: 1.7;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-col .footer-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Bottom bar (legacy flex layout kept for backward compat) */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 20%, transparent), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-headline);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.footer-text {
    color: var(--dark-muted);
    font-size: 0.96rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-muted);
    transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.footer-social a:hover {
    color: var(--accent);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.04);
}


/* ==========================================================
   26. WAVE DIVIDERS
   ========================================================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-divider.dark-to-light svg {
    fill: var(--light-bg);
}

.wave-divider.light-to-dark svg {
    fill: var(--dark-bg);
}

.wave-divider.flip {
    transform: scaleY(-1);
}


/* ==========================================================
   27. MASCOT CONTAINERS
   ========================================================== */
.mascot-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.mascot-hero svg,
.mascot-hero img {
    width: 100%;
    height: auto;
}

.mascot-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
}

.mascot-inline svg,
.mascot-inline img {
    width: 100%;
    height: auto;
}

/* Context card (speech bubble near mascot) */
.context-card {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--dark-surface);
    color: var(--dark-text);
    font-size: 0.88rem;
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}


/* ==========================================================
   28. ANIMATION KEYFRAMES
   ========================================================== */
@keyframes ehn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ehn-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

@keyframes ehn-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes ehn-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================
   29. BACK-TO-TOP BUTTON
   ========================================================== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 26, 38, 0.86);
    color: var(--dark-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    transition: opacity var(--ease), visibility var(--ease), transform var(--ease), background-color var(--ease), border-color var(--ease);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(17, 53, 76, 0.96);
    border-color: color-mix(in srgb, var(--accent) 32%, transparent);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}


/* ==========================================================
   30. RESPONSIVE BREAKPOINTS
   ========================================================== */

/* ---- 1080px ---- */
@media (max-width: 1080px) {
    .hero-shell,
    .hero-service-grid,
    .contact-layout,
    .benefits-container,
    .use-case-spotlight,
    .about-story-grid {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .hero-service h1 {
        max-width: none;
    }

    .hero-metrics,
    .trust-grid,
    .proof-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card-grid,
    .feature-grid,
    .features-grid,
    .deliverables-grid,
    .differentiators-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .network-stage {
        min-height: 620px;
    }

    .service-stage {
        min-height: 580px;
    }

    .floating-node {
        width: min(240px, 44%);
    }

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

/* ---- 900px ---- */
@media (max-width: 900px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        justify-content: center;
        min-height: 48px;
        background: rgba(255, 255, 255, 0.04);
    }

    .home-values-grid {
        grid-template-columns: 1fr;
    }

    .core-panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 190px;
    }

    .service-stage-panel {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin-top: 190px;
    }

    .floating-node {
        width: min(220px, 46%);
    }

    .node-support {
        bottom: 180px;
    }

    .node-apps {
        bottom: 90px;
    }

    .signal-bottom {
        bottom: 110px;
    }

    .cta-shell {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

/* ---- 680px ---- */
@media (max-width: 680px) {
    .container,
    .footer-content {
        width: min(1180px, calc(100% - 32px));
    }

    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .logo img {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-service h1 {
        font-size: clamp(2.4rem, 14vw, 4rem);
    }

    .section-title {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .hero-metrics,
    .trust-grid,
    .service-card-grid,
    .home-values-grid,
    .core-stat-grid,
    .feature-grid,
    .features-grid,
    .stage-stat-grid,
    .deliverables-grid,
    .differentiators-grid,
    .proof-metrics,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .network-stage {
        min-height: 760px;
        padding: 20px;
    }

    .service-stage {
        min-height: 740px;
        padding: 20px;
    }

    .ring-one   { width: 260px; height: 260px; top: 110px; left: 20px; }
    .ring-two   { width: 300px; height: 300px; top: 24px;  right: -80px; }
    .ring-three { width: 200px; height: 200px; left: 64px; }

    .pulse-ring.ring-a { width: 250px; height: 250px; top: 100px; left: 20px; }
    .pulse-ring.ring-b { width: 300px; height: 300px; top: 24px;  right: -80px; }
    .pulse-ring.ring-c { width: 180px; height: 180px; left: 58px; }

    .floating-node {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 14px;
    }

    .signal-card {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 14px;
    }

    .core-panel {
        margin-top: 28px;
        padding: 22px;
    }

    .service-stage-panel {
        margin-top: 26px;
        padding: 22px;
    }

    .contact-panel,
    .contact-form {
        padding: 22px;
    }

    .team-section,
    .service-aside-card,
    .cta-shell {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .mascot-hero {
        max-width: 260px;
    }
}


/* ==========================================================
   31. PREFERS-REDUCED-MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .orbital-ring,
    .pulse-ring {
        animation: none;
    }

    .tilt-card,
    .reveal-ready,
    .back-to-top,
    .case-study-card {
        transition: none;
    }

    .reveal-ready {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
