/**
 * D2 Enterprises — Design System
 * Inspired by Metawerk reference. Adapted for D2 brand.
 * 
 * Structure:
 *   1. Design Tokens (CSS Custom Properties)
 *   2. Reset & Base
 *   3. Typography
 *   4. Layout Utilities
 *   5. Navigation
 *   6. Hero
 *   7. Sections & Cards
 *   8. Components (buttons, badges, chips, steps)
 *   9. Footer
 *  10. Animations & Micro-interactions
 *  11. Accessibility & Reduced Motion
 */

/* ===========================================
   1. DESIGN TOKENS
   =========================================== */
:root {
    /* Palette */
    --ink: #07131f;
    --ink-2: #0c2230;
    --paper: #f7f9f8;
    --white: #ffffff;
    --teal: #2ebfa5;
    --teal-deep: #199581;
    --sage: #a9c49a;
    --slate: #5c6f7b;

    /* Borders */
    --line-d: rgba(255,255,255,.10);
    --line-l: rgba(7,19,31,.10);

    /* Typography */
    --disp: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --sec-pad: 104px;
    --sec-pad-lg: 132px;
    --wrap-max: 1200px;
    --wrap-px: 24px;
    --wrap-px-lg: 40px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    background: var(--ink);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--teal);
    color: var(--ink);
}

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

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

button {
    font: inherit;
    cursor: pointer;
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4 {
    font-family: var(--disp);
    letter-spacing: -.02em;
}

.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 16px;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 1px;
    background: var(--teal);
    flex: none;
}

.h-xl {
    font-size: clamp(2.15rem, 6vw, 4.4rem);
    font-weight: 700;
    line-height: 1.04;
}

.h-lg {
    font-size: clamp(1.85rem, 4.2vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
}

.h-md {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.12;
}

.lead {
    font-size: clamp(1.02rem, 1.55vw, 1.2rem);
    line-height: 1.7;
}

.mono-num {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--teal);
    font-size: .85rem;
    letter-spacing: .1em;
}

/* ===========================================
   4. LAYOUT UTILITIES
   =========================================== */
.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding: 0 var(--wrap-px);
}

@media (min-width: 1024px) {
    .wrap {
        padding: 0 var(--wrap-px-lg);
    }
}

.split {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .split {
        grid-template-columns: 5fr 7fr;
        align-items: start;
    }
}

.split-even {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .split-even {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* ===========================================
   5. NAVIGATION
   =========================================== */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--sage));
    z-index: 200;
    transition: width .1s linear;
}

#rail {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: none;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 1280px) {
    #rail {
        display: flex;
    }
}

#rail a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

#rail .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(140,160,170,.45);
    transition: all .3s;
}

#rail .lbl {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .18em;
    color: var(--teal);
    opacity: 0;
    transform: translateX(6px);
    transition: all .3s;
    text-transform: uppercase;
}

#rail a.on .dot {
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(46,191,165,.18);
}

#rail a.on .lbl,
#rail a:hover .lbl {
    opacity: 1;
    transform: none;
}

/* Main Nav */
nav#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background .35s, box-shadow .35s, padding .35s;
    padding: 22px 0;
}

nav#nav.scrolled {
    background: rgba(7,19,31,.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line-d);
    padding: 12px 0;
}

.nav-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo img {
    height: 32px;
    width: auto;
}

nav#nav.scrolled .logo img {
    height: 28px;
}

.logo-name {
    font-family: var(--disp);
    font-weight: 700;
    letter-spacing: .22em;
    font-size: 1.05rem;
}

.logo-tag {
    font-family: var(--mono);
    font-size: .55rem;
    letter-spacing: .24em;
    color: var(--teal);
    text-transform: uppercase;
    margin-top: 3px;
}

.nav-links {
    display: none;
    gap: 30px;
    font-size: .86rem;
    font-weight: 500;
    color: rgba(255,255,255,.78);
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color .25s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--teal);
    transition: width .3s;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

@media (min-width: 640px) {
    .nav-cta {
        display: inline-flex;
        padding: 11px 20px;
    }
}

#burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-d);
    border-radius: 10px;
    background: none;
    color: #fff;
    font-size: 1.7rem;
}

@media (min-width: 1024px) {
    #burger {
        display: none;
    }
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(7,19,31,.97);
    backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    font-family: var(--disp);
    font-size: 1.4rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu a {
    color: rgba(255,255,255,.85);
}

#mobile-menu a:hover {
    color: var(--teal);
}

/* ===========================================
   6. HERO
   =========================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 0 90px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    will-change: transform;
    animation: slowzoom 26s ease-in-out infinite alternate;
}

.hero-bg svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--ink) 26%, rgba(7,19,31,.82) 50%, rgba(7,19,31,.30));
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 76% 30%, rgba(46,191,165,.2), transparent 36%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,191,165,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,191,165,.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 70% 40%, #000 30%, transparent 75%);
}

.hero-in {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-top: 28px;
    max-width: 13ch;
}

.hero h1 .ac {
    color: var(--teal);
}

.hero .lead {
    margin-top: 24px;
    max-width: 600px;
    color: rgba(255,255,255,.82);
}

/* Hero sub-elements */
.badges {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border: 1px solid var(--line-d);
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(6px);
    font-size: .86rem;
    font-weight: 600;
}

.badge .ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.badge .ico svg {
    width: 16px;
    height: 16px;
}

.hero-ctas {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 480px) {
    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

.stats {
    margin-top: 58px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border: 1px solid var(--line-d);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
}

@media (min-width: 900px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat {
    padding: 24px 22px;
    border-right: 1px solid var(--line-d);
    border-bottom: 1px solid var(--line-d);
}

.stat .n {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--teal);
    line-height: 1;
}

.stat .l {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.62);
}

/* ===========================================
   7. SECTIONS & CARDS
   =========================================== */
section {
    position: relative;
    padding: var(--sec-pad) 0;
}

@media (min-width: 1024px) {
    section {
        padding: var(--sec-pad-lg) 0;
    }
}

.sec-light {
    background: var(--paper);
    color: var(--ink);
}

.sec-dark {
    background: var(--ink);
    color: var(--white);
}

.sec-head {
    display: grid;
    gap: 26px;
    margin-bottom: 58px;
}

@media (min-width: 1024px) {
    .sec-head {
        grid-template-columns: 7fr 5fr;
        align-items: end;
    }
}

.sec-light .lead {
    color: var(--slate);
}

.sec-dark .lead {
    color: rgba(255,255,255,.66);
}

.gridline-l {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line-l) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-l) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .5;
    pointer-events: none;
    mask-image: linear-gradient(#000, transparent 80%);
}

/* Cards */
.cards {
    display: grid;
    gap: 1px;
    background: var(--line-l);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(7,19,31,.08);
}

.sec-dark .cards {
    background: var(--line-d);
    box-shadow: none;
    border: 1px solid var(--line-d);
}

.cards.c2 {
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .cards.c2 {
        grid-template-columns: 1fr 1fr;
    }
}

.cards.c3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .cards.c3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .cards.c3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--white);
    padding: 36px 32px;
    position: relative;
    transition: background .3s;
}

.sec-dark .card {
    background: rgba(255,255,255,.045);
}

.card:hover {
    background: #fbfdfc;
}

.sec-dark .card:hover {
    background: rgba(46,191,165,.07);
}

.card h3 {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card p {
    margin-top: 10px;
    color: var(--slate);
    font-size: .95rem;
}

.sec-dark .card p {
    color: rgba(255,255,255,.62);
}

.card .bar {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--teal);
    transition: height .4s;
}

.card:hover .bar {
    height: 100%;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.outcome {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line-d);
    font-family: var(--mono);
    font-size: .76rem;
    letter-spacing: .06em;
    color: var(--teal);
    font-weight: 600;
}

.sec-light .outcome {
    border-top-color: var(--line-l);
}

.closing {
    margin-top: 42px;
    border-left: 3px solid var(--teal);
    background: var(--white);
    padding: 22px 26px;
    border-radius: 0 16px 16px 0;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(7,19,31,.07);
}

.sec-dark .closing {
    background: rgba(46,191,165,.08);
    box-shadow: none;
    border: 1px solid rgba(46,191,165,.2);
    border-left: 3px solid var(--teal);
}

/* ===========================================
   8. COMPONENTS
   =========================================== */

/* Icons */
.ico {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(46,191,165,.3);
    background: rgba(46,191,165,.08);
    display: grid;
    place-items: center;
    flex: none;
}

.ico svg {
    width: 22px;
    height: 22px;
    stroke: var(--teal);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sec-light .ico {
    border-color: rgba(25,149,129,.28);
    background: rgba(46,191,165,.08);
}

.ico-sm {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.ico-sm svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: .92rem;
    padding: 14px 26px;
    border-radius: 10px;
    transition: all .28s;
    border: 1px solid transparent;
}

.btn .ar {
    transition: transform .28s;
}

.btn:hover .ar {
    transform: translateX(4px);
}

.btn-solid {
    background: var(--ink);
    color: var(--white);
}

.btn-solid:hover {
    background: var(--ink-2);
    box-shadow: 0 10px 30px rgba(7,19,31,.25);
}

.sec-dark .btn-solid {
    background: var(--white);
    color: var(--ink);
}

.sec-dark .btn-solid:hover {
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(255,255,255,.15);
}

/* Accent button (teal) — use for special CTAs */
.btn-accent {
    background: var(--teal);
    color: var(--ink);
}

.btn-accent:hover {
    background: #5fdcc6;
    box-shadow: 0 10px 30px rgba(46,191,165,.3);
}

.btn-ghost {
    border-color: rgba(255,255,255,.28);
    color: var(--white);
    background: rgba(255,255,255,.04);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.sec-light .btn-ghost {
    border-color: var(--line-l);
    color: var(--ink);
}

.sec-light .btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
}

/* Steps */
.steps {
    display: grid;
    gap: 16px;
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(5, 1fr);
        gap: 0;
    }
}

.step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--line-l);
    border-radius: 18px;
    background: var(--white);
}

@media (min-width: 1024px) {
    .step {
        border-radius: 0;
        border-right: none;
    }

    .step:first-child {
        border-radius: 18px 0 0 18px;
    }

    .step:last-child {
        border-radius: 0 18px 18px 0;
        border-right: 1px solid var(--line-l);
    }

    .step::after {
        content: "\2192";
        position: absolute;
        right: -9px;
        top: 32px;
        color: var(--teal);
        font-weight: 700;
        z-index: 2;
        background: var(--white);
        line-height: 1;
    }

    .step:last-child::after {
        display: none;
    }
}

.step h3 {
    margin-top: 14px;
    font-size: 1.1rem;
}

.step p {
    margin-top: 8px;
    font-size: .85rem;
    color: var(--slate);
}

/* Chips */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 20px;
}

.chip {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.75);
    transition: all .3s;
}

.chip:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

.sec-light .chip {
    border-color: var(--line-l);
    background: var(--white);
    color: var(--slate);
}

.sec-light .chip:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
}

/* Focus rows (for feature lists) */
.focus-row {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line-d);
    align-items: flex-start;
}

.focus-row:last-child {
    border-bottom: none;
}

.focus-row h4 {
    font-family: var(--disp);
    font-size: 1.02rem;
}

.focus-row p {
    font-size: .86rem;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
}

.sec-light .focus-row {
    border-bottom-color: var(--line-l);
}

.sec-light .focus-row p {
    color: var(--slate);
}

/* Hub cards (for locations / global presence) */
.hub {
    background: var(--white);
    border: 1px solid var(--line-l);
    border-radius: 18px;
    padding: 26px;
    transition: transform .3s, box-shadow .3s;
}

.hub:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(7,19,31,.1);
}

.hub .tag {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .22em;
    color: var(--teal-deep);
    text-transform: uppercase;
}

.hub h3 {
    margin-top: 10px;
    font-size: 1.15rem;
}

.hub p {
    margin-top: 8px;
    color: var(--slate);
    font-size: .9rem;
}

/* Commitment grid */
.commit {
    display: grid;
    gap: 1px;
    background: var(--line-l);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(7,19,31,.07);
}

@media (min-width: 760px) {
    .commit {
        grid-template-columns: repeat(4, 1fr);
    }
}

.commit > div {
    background: var(--white);
    padding: 26px 24px;
}

.commit h3 {
    font-size: 1.02rem;
    margin-top: 14px;
}

.commit p {
    font-size: .85rem;
    color: var(--slate);
    margin-top: 8px;
}

/* Founder cards */
.founder {
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.045);
    border-radius: 22px;
    padding: 36px;
    transition: border-color .3s, transform .3s;
}

.founder:hover {
    border-color: rgba(46,191,165,.45);
    transform: translateY(-4px);
}

.f-mark {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(46,191,165,.1);
    border: 1px solid rgba(46,191,165,.3);
    display: grid;
    place-items: center;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--teal);
}

.founder h3 {
    margin-top: 22px;
    font-size: 1.45rem;
}

.founder .role {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-top: 6px;
}

.founder p {
    margin-top: 16px;
    color: rgba(255,255,255,.65);
    font-size: .95rem;
}

/* CTA Box */
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(46,191,165,.25);
    background: linear-gradient(135deg, rgba(46,191,165,.16), rgba(169,196,154,.06) 55%, rgba(255,255,255,.03));
    padding: 52px 28px;
}

@media (min-width: 1024px) {
    .cta-box {
        padding: 76px 70px;
    }
}

.cta-list {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-list span {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 15px;
    color: rgba(255,255,255,.75);
}

.tagline {
    margin-top: 30px;
    font-family: var(--disp);
    font-weight: 600;
    color: var(--sage);
    letter-spacing: .04em;
}

.contact-cards {
    margin-top: 40px;
    display: grid;
    gap: 16px;
    max-width: 740px;
}

@media (min-width: 760px) {
    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-card {
    border: 1px solid var(--line-d);
    background: rgba(255,255,255,.05);
    border-radius: 16px;
    padding: 20px;
    font-size: .88rem;
}

.contact-card .k {
    font-family: var(--mono);
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--teal);
}

.contact-card .v {
    margin-top: 8px;
    color: rgba(255,255,255,.8);
}

@media (max-width: 480px) {
    .cta-box .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   9. FOOTER
   =========================================== */
footer {
    border-top: 1px solid var(--line-d);
    padding: 66px 0 38px;
    background: var(--ink);
}

.foot-grid {
    display: grid;
    gap: 42px;
}

@media (min-width: 900px) {
    .foot-grid {
        grid-template-columns: 2fr 1fr 1.4fr 1fr;
    }
}

.foot-grid h4 {
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.foot-grid a,
.foot-grid span {
    display: block;
    font-size: .86rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 9px;
    transition: color .25s;
}

.foot-grid a:hover {
    color: var(--teal);
}

.foot-base {
    margin-top: 50px;
    padding-top: 26px;
    border-top: 1px solid var(--line-d);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .14em;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}

/* ===========================================
   10. ANIMATIONS & MICRO-INTERACTIONS
   =========================================== */

/* Hero background slow zoom */
@keyframes slowzoom {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    will-change: transform;
    animation: none;
}

@media (min-width: 768px) {
    .hero-bg {
        animation: slowzoom 20s ease-in-out 1 forwards;
    }
}

/* SVG data flow dashes */
@keyframes dataflow {
    to { stroke-dashoffset: -28; }
}

/* IoT node pulse */
@keyframes pulse {
    0%, 100% { opacity: .35; r: 3; }
    50% { opacity: 1; r: 5; }
}

.node {
    animation: pulse 3.4s ease-in-out infinite;
}

.flow {
    stroke-dasharray: 4 8;
    animation: dataflow 2.4s linear infinite;
}

/* Scroll-triggered reveal */
.rv {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1);
}

.rv.in {
    opacity: 1;
    transform: none;
}

.rv-d1 { transition-delay: .1s; }
.rv-d2 { transition-delay: .2s; }
.rv-d3 { transition-delay: .3s; }
.rv-d4 { transition-delay: .4s; }
.rv-d5 { transition-delay: .5s; }

/* ===========================================
   11. ACCESSIBILITY & REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-bg {
        animation: none;
    }

    .node, .flow {
        animation: none;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* ===========================================
   12. PAGE-SPECIFIC HELPERS
   =========================================== */

/* Inner page hero (smaller, for non-home pages) */
.hero-inner {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
}

.hero-inner .hero-shade {
    background: linear-gradient(160deg, var(--ink) 40%, rgba(7,19,31,.85));
}

.hero-inner h1 {
    max-width: 18ch;
}

/* Blog / content page typography */
.prose {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate);
}

.prose h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--ink);
}

.prose h3 {
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--ink);
}

.prose p {
    margin-bottom: 20px;
}

.prose a {
    color: var(--teal-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--teal);
}

.prose ul, .prose ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.prose li {
    margin-bottom: 8px;
}

.prose code {
    font-family: var(--mono);
    font-size: .88em;
    background: rgba(46,191,165,.08);
    padding: 2px 7px;
    border-radius: 4px;
}

.prose pre {
    background: var(--ink-2);
    color: rgba(255,255,255,.85);
    padding: 24px;
    border-radius: 14px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.prose pre code {
    background: none;
    padding: 0;
}

.prose img,
.prose svg {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
}

.prose svg:not([viewBox]) {
    display: none;
}

/* ===========================================
   13. CONTACT FORM & SOCIAL
   =========================================== */
.contact-form {
    background: var(--white);
    border: 1px solid var(--line-l);
    border-radius: 22px;
    padding: 36px 32px;
    box-shadow: 0 20px 44px rgba(7,19,31,.07);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--body);
    font-size: .92rem;
    border: 1px solid var(--line-l);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(46,191,165,.12);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6f7b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.captcha-box {
    background: var(--paper);
    border: 1px solid var(--line-l);
    border-radius: 12px;
    padding: 18px 20px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--ink);
}

.captcha-row input {
    flex: 1;
    max-width: 120px;
}

.captcha-hint {
    font-size: .75rem;
    color: var(--slate);
    margin-top: 8px;
}

/* Contact info block */
.contact-info-block {
    background: var(--white);
    border: 1px solid var(--line-l);
    border-radius: 22px;
    padding: 36px 32px;
    box-shadow: 0 20px 44px rgba(7,19,31,.07);
}

.contact-info-block .focus-row {
    border-bottom-color: var(--line-l);
}

.contact-info-block .focus-row h4 {
    color: var(--ink);
}

.contact-info-block .focus-row p {
    color: var(--slate);
    margin-top: 4px;
}

.contact-info-block .focus-row a {
    color: var(--teal-deep);
    transition: color .25s;
}

.contact-info-block .focus-row a:hover {
    color: var(--teal);
}

/* Social links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-l);
    background: var(--white);
    display: grid;
    place-items: center;
    transition: all .28s;
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: var(--slate);
    transition: fill .28s;
}

.social-links a:hover {
    border-color: var(--teal);
    background: rgba(46,191,165,.08);
}

.social-links a:hover svg {
    fill: var(--teal);
}
