/* ============================================================
   RESOLVERSYS - Design System & Global Styles
   ============================================================ */

/* ---------- SELF-HOSTED FONTS ----------
   Served from /fonts (no request to Google - GDPR: visitor IPs
   must not leak to third parties). Files fetched from Google
   Fonts (OFL-licensed); unicode-range splits latin / latin-ext
   so browsers only download the subset they need. */
/* Plus Jakarta Sans - variable font, weights 300-800 */
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: optional;
    src: url('../fonts/plus-jakarta-sans-variable-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300 800;
    font-display: optional;
    src: url('../fonts/plus-jakarta-sans-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Mono - static, weights 400 and 700 */
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('../fonts/space-mono-normal-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('../fonts/space-mono-normal-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('../fonts/space-mono-normal-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('../fonts/space-mono-normal-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul,
ol {
    list-style: none;
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- CUSTOM PROPERTIES (DARK = default) ---------- */
:root {
    /* Palette - Dark */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1629;
    --bg-card: rgba(15, 22, 41, 0.65);
    --bg-card-hover: rgba(15, 22, 41, 0.85);
    --bg-elevated: rgba(20, 29, 59, 0.8);
    --border: rgba(54, 67, 104, 0.3);
    --border-hover: rgba(0, 212, 170, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #ccd6f6;
    --text-muted: #8892b0;
    --text-dim: #7381a3; /* min 4.5:1 on both dark backgrounds (WCAG AA) */
    --accent: #00d4aa;
    --accent-hover: #00eabb;
    --accent-dim: #00b894;
    --accent-glow: rgba(0, 212, 170, 0.15);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --overlay: rgba(10, 14, 26, 0.85);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 100px;
    --space-4xl: 120px;

    /* Typography */
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: "Space Mono", "Courier New", monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --max-w: 1280px;
    --nav-h: 72px;
}

/* ---------- LIGHT MODE ---------- */
[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-elevated: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 128, 106, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #475569;
    --text-dim: #5b6b82; /* min 4.5:1 on both light backgrounds (WCAG AA) */
    --accent: #00806a; /* 4.5:1+ as text on light bgs AND as button bg under light text */
    --accent-hover: #00735e;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-glow: rgba(0, 128, 106, 0.12);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --overlay: rgba(255, 255, 255, 0.9);
}

/* ---------- BODY ---------- */
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    transition:
        background 0.4s,
        color 0.4s;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ---------- SKIP NAVIGATION (accessibility) ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 14px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 10000;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 0;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
h2 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 800;
    text-wrap: balance;
}
h3 {
    font-size: clamp(20px, 2vw, 24px);
    text-wrap: balance;
}
h4 {
    font-size: 18px;
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--accent) 0%,
        var(--accent-blue) 50%,
        var(--accent-purple) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- SECTION LAYOUT ---------- */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

/* Hero already ends with generous whitespace (min-height: 100vh + padding),
   so the section right after it needs less top padding than the norm. */
#services-preview {
    padding-top: var(--space-2xl);
}

.section--alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
    font-family: var(--mono);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    padding: 14px 28px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ---------- CARDS ---------- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    opacity: 1;
}

/* ---------- BADGE ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(0, 212, 170, 0.2);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
}

.badge-mb-0 {
    margin-bottom: 0;
}

.badge__dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* ---------- ICON BOX ---------- */
.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box--green {
    background: transparent;
    color: var(--accent);
}
.icon-box--blue {
    background: transparent;
    color: var(--accent-blue);
}
.icon-box--purple {
    background: transparent;
    color: var(--accent-purple);
}
.icon-box--gold {
    background: transparent;
    color: #f59e0b;
}
.icon-box--red {
    background: transparent;
    color: #ef4444;
}
.icon-box--cyan {
    background: transparent;
    color: #06b6d4;
}

[data-theme="light"] .icon-box--green {
    background: transparent;
    color: #00a884;
}
[data-theme="light"] .icon-box--blue {
    background: transparent;
    color: #2563eb;
}
[data-theme="light"] .icon-box--purple {
    background: transparent;
    color: #7c3aed;
}
[data-theme="light"] .icon-box--gold {
    background: transparent;
    color: #d97706;
}
[data-theme="light"] .icon-box--red {
    background: transparent;
    color: #dc2626;
}
[data-theme="light"] .icon-box--cyan {
    background: transparent;
    color: #0891b2;
}

/* SVG icon sizing */
.icon-box .icon {
    width: 26px;
    height: 26px;
}
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.icon--sm {
    width: 20px;
    height: 20px;
}
.icon--lg {
    width: 32px;
    height: 32px;
}
.icon--xl {
    width: 40px;
    height: 40px;
}

/* ISO feature icons */
.iso-feature__icon .icon {
    width: 18px;
    height: 18px;
}

/* Contact info icons */
.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Industry large icons */
.industry-icon {
    color: var(--accent);
    margin-bottom: var(--space-lg);
}
.industry-icon .icon {
    width: 48px;
    height: 48px;
}

/* ---------- TAG ---------- */
.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    letter-spacing: 0.3px;
}

/* ---------- GRIDS ---------- */
.grid {
    display: grid;
    gap: var(--space-lg);
}
.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid--4,
    .grid--3,
    .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    box-sizing: border-box;
    /* Do not transition padding/height — that causes CLS on scroll */
    transition:
        background 0.3s,
        border-color 0.3s,
        backdrop-filter 0.3s;
}

.navbar--scrolled {
    background: var(--overlay);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo__img {
    height: 36px;
    width: auto;
}
.logo__text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo__text span {
    color: var(--accent);
}

/* Desktop links — min-height locks row so font/i18n swaps don't reflow the bar */
.navbar__links {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 40px;
}

/* Pre-paint language pairs for nav + bilingual body blocks (needs boot.js) */
html[data-lang="sr"] [data-nav-lang="en"],
html[data-lang="sr"] [data-lang="en"] {
    display: none !important;
}
html:not([data-lang="sr"]) [data-nav-lang="sr"],
html:not([data-lang="sr"]) [data-lang="sr"] {
    display: none !important;
}

.navbar__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}

.navbar__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--accent);
}
.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

/* Dropdown */
.navbar__dropdown {
    position: relative;
}

.navbar__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar__dropdown-trigger svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s;
}

.navbar__dropdown-menu {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
    margin-top: 12px;
}

.navbar__dropdown:hover .navbar__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown:hover .navbar__dropdown-trigger svg {
    transform: rotate(180deg);
}

.navbar__dropdown-item {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar__dropdown-item:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

/* Right group */
.navbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 1024px) {
    .navbar__right {
        margin-left: auto;
    }
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 18px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition:
        transform 0.4s,
        opacity 0.3s;
}

/* Light mode logo swap */
[data-theme="light"] .logo__img-dark {
    display: none;
}
[data-theme="light"] .logo__img-light {
    display: block;
}
[data-theme="dark"] .logo__img-dark {
    display: block;
}
[data-theme="dark"] .logo__img-light {
    display: none;
}

/* Mobile hamburger */
.navbar__mobile-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.navbar__mobile-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu__close {
    position: absolute;
    top: calc((var(--nav-h) - 44px) / 2);
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-primary);
    transition: all 0.2s;
}
.mobile-menu__close svg {
    width: 20px;
    height: 20px;
}
.mobile-menu__close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-menu__link {
    display: block;
    padding: 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--accent);
}

.mobile-menu__cta {
    margin-top: 8px;
    color: var(--accent) !important;
    border-bottom: none !important;
    font-size: 18px !important;
}

.mobile-menu__sub {
    padding-left: 20px;
}

.mobile-menu__sub a {
    display: block;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .navbar__links {
        display: none;
    }
    .navbar__mobile-btn {
        display: flex;
    }
}

@media (min-width: 1025px) {
    .mobile-menu {
        display: none !important;
    }
}

/* ============================================================
   HERO (index.html)
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 40px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 20% 40%,
            rgba(0, 212, 170, 0.07) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 30%,
            rgba(59, 130, 246, 0.05) 0%,
            transparent 70%
        );
    pointer-events: none;
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(
        ellipse 70% 60% at 50% 50%,
        black 20%,
        transparent 70%
    );
    pointer-events: none;
}

[data-theme="light"] .hero__grid-lines {
    opacity: 0.4;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 600px;
}

.hero__desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 24px 0 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero stat cards */
.hero__cards {
    max-width: 460px;
    margin-left: auto;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 14px;
    transition: all 0.4s;
}

.stat-card:hover {
    transform: translateX(-6px);
    border-color: var(--border-hover);
}

.stat-card--iso {
    background: linear-gradient(
        135deg,
        var(--accent-glow),
        rgba(59, 130, 246, 0.06)
    );
    border-color: rgba(0, 212, 170, 0.25);
}

.stat-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-card__header .icon {
    vertical-align: top;
}

.stat-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-card__value {
    font-family: var(--mono);
    font-size: 34px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card__value em {
    font-style: normal;
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
}

.stat-card__sub {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .hero {
        align-items: flex-start;
    }
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__content {
        max-width: 100%;
    }
    .hero__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero__actions {
        justify-content: center;
    }
    .hero__cards {
        max-width: 400px;
        margin: 40px auto 0;
    }
}

/* ============================================================
   ISO BANNER
   ============================================================ */
.iso-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.shield {
    width: 280px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 36px;
    border: 2px solid rgba(0, 212, 170, 0.2);
    border-radius: 24px 24px 50% 50%;
    background: linear-gradient(
        180deg,
        var(--accent-glow) 0%,
        transparent 100%
    );
    position: relative;
}

.shield::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(0, 212, 170, 0.06);
    border-radius: 30px 30px 52% 52%;
    pointer-events: none;
}

.shield__pre {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.shield__number {
    font-family: var(--mono);
    font-size: 52px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.shield__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.shield__badge {
    display: inline-block;
    margin-top: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.iso-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: var(--space-lg);
}

.iso-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.iso-feature__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .iso-banner__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .iso-features {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .iso-features {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   SERVICES CARDS (used on services.html)
   ============================================================ */
[data-page="services"] .icon-box {
    width: 72px;
    height: 72px;
    border-radius: 18px;
}
[data-page="services"] .icon-box .icon {
    width: 44px;
    height: 44px;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.service-card h3 {
    margin: 20px 0 10px;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-card {
    text-align: center;
}

.team-card__avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    object-fit: cover;
    object-position: 50% 18%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    transition: border-color 0.3s;
}

.team-card__avatar--light {
    background: #ffffff;
}

.team-card:hover .team-card__avatar {
    border-color: var(--accent);
}

/* Initials fallback */
.team-card__initials {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--bg-primary);
}

.team-card__role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
}

.team-card__bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* "…and many more" block below the founder grid */
.team-more {
    text-align: center;
    margin-top: var(--space-2xl);
}

.team-more__avatars {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.team-more__dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    border: 3px solid var(--bg-primary);
    opacity: 0.85;
}

.team-more__dot + .team-more__dot {
    margin-left: -14px;
}

.team-more__dot:nth-child(2) {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent));
}

.team-more__dot--plus {
    background: var(--bg-card);
    border: 2px dashed var(--accent);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.team-more__title {
    font-size: 20px;
}

.team-more__desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 10px auto 0;
    line-height: 1.6;
}

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-card__icon {
    font-size: 40px;
    margin-bottom: var(--space-lg);
}

.industry-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 12px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
    padding-left: 32px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--accent),
        var(--accent-blue),
        var(--accent-purple)
    );
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    padding-bottom: 32px;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -37px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
}

.timeline__year {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}

.timeline__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2px 0;
}

.timeline__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stats-row__number {
    font-family: var(--mono);
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stats-row__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0 4px;
}

.stats-row__desc {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        var(--accent-glow),
        transparent 70%
    );
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
}

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

.cta__sub {
    margin-top: var(--space-lg);
    font-size: 14px;
    color: var(--text-dim);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
#contact-form {
    scroll-margin-top: 120px; /* Prevent fixed navbar overlap on anchor jump */
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892b0' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 48px;
}

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

.form-error {
    display: none;
    margin-top: var(--space-md);
    padding: 16px 20px;
    border: 1px solid #ef4444;
    border-radius: var(--radius);
    color: #ef4444;
}

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

[data-theme="light"] .form-error {
    border-color: #dc2626;
    color: #dc2626;
}

/* Honeypot field - keep off-screen for humans, visible to bots */
.form-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    top: auto;
    margin: 0;
    max-width: none;
    border-radius: 0;
    border: 0;
    z-index: 9999;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

/* Reset native dialog defaults so banner stays identical across pages/browsers */
dialog.cookie-banner {
    max-height: none;
    overflow: visible;
}

dialog.cookie-banner::backdrop {
    background: transparent;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner__text p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner__text a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-self: center;
}

@media (max-width: 768px) {
    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 60px 0 28px;
    border-top: 2px solid var(--accent);
    background: var(--bg-secondary);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 16px 0;
    max-width: 300px;
}

.footer__email {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.footer__col h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--accent);
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 4px 0;
    transition: color 0.3s;
}

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

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--text-dim);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
}

.footer__legal a {
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.3s;
}

.footer__legal a:hover {
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
    padding: calc(var(--nav-h) + 60px) 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 30%,
        var(--accent-glow),
        transparent 70%
    );
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
}

.page-header p {
    position: relative;
    z-index: 2;
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* Breadcrumb trail (matches BreadcrumbList JSON-LD) */
.breadcrumbs {
    position: relative;
    z-index: 2;
    margin: 0 0 20px;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    opacity: 0.5;
}

.breadcrumbs__item a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.breadcrumbs__item[aria-current="page"] {
    color: var(--text-primary);
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border);
}

.project-card:last-child {
    border-bottom: none;
}

.project-card:nth-child(even) {
    direction: rtl;
}
.project-card:nth-child(even) > * {
    direction: ltr;
}

.project-card__img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg-card);
}

.project-card__tag {
    margin-bottom: 12px;
}

.project-card__title {
    margin-bottom: 12px;
}

.project-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.demo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.demo-card__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
}

.demo-card__footer .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .project-card,
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ============================================================
   BLOG (index cards + post content, generated by build-blog.js)
   ============================================================ */
.blog-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.blog-card__meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card__title {
    margin-bottom: 8px;
}

.blog-card__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.blog-card__more {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.blog-card--hidden {
    display: none;
}

.blog-load-more-wrap {
    text-align: center;
    margin-top: var(--space-lg);
}

/* .btn's display:inline-flex overrides the UA [hidden] rule - restore it */
.blog-load-more[hidden] {
    display: none;
}

.blog-post__meta {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.blog-post__tags {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.blog-post__content {
    max-width: 720px;
    margin: 0 auto;
}

.blog-post__content h2,
.blog-post__content h3 {
    margin: var(--space-lg) 0 12px;
}

.blog-post__content p,
.blog-post__content li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-post__content ul,
.blog-post__content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-post__content li {
    margin-bottom: 8px;
}

.blog-post__content a {
    color: var(--accent);
}

.blog-post__content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-style: italic;
}

.blog-post__content code {
    font-family: 'Space Mono', monospace;
    font-size: 0.9em;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
}

.blog-post__content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.blog-post__content pre code {
    background: none;
    border: none;
    padding: 0;
}

.blog-post__content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: var(--space-md) 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

/* Dark charts / diagrams: intentional dark card on light theme */
[data-theme="light"] .blog-post__content img[src*="geo-how-search-works"],
[data-theme="light"] .blog-post__content img[src*="geo-traditional-serp"],
[data-theme="light"] .blog-post__content img[src*="geo-ai-overviews"],
[data-theme="light"] .blog-post__content img[src*="geo-seo-plus-geo"],
[data-theme="light"] .blog-post__content img[src*="geo-zero-click"],
[data-theme="light"] .blog-post__content img[src*="geo-search-behavior"],
[data-theme="light"] .blog-post__content img[src*="geo-llm-answer"],
[data-theme="light"] .blog-post__content img[src*="geo-visibility"] {
    background: #0a0e1a;
    padding: 10px;
    box-sizing: border-box;
}

/* Flow diagram (boxes + arrows) used inside posts - stacks vertically on mobile */
.blog-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: var(--space-md) 0;
    text-align: center;
}

.blog-flow__step {
    flex: 1 1 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.blog-flow__step span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-flow__arrow {
    flex: 0 0 auto;
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .blog-flow {
        flex-direction: column;
    }

    .blog-flow__step {
        width: 100%;
    }

    .blog-flow__arrow {
        transform: rotate(90deg);
    }
}

/* Vertical pipeline (Zeek architecture, ECH flow) */
.blog-pipeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: var(--space-md) 0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.blog-pipeline__step {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.blog-pipeline__step span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-pipeline__arrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    padding: 6px 0;
}

.blog-pipeline__label {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 0 6px;
}

/* Side-by-side comparison (TLS handshake) */
.blog-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: var(--space-md) 0;
}

.blog-compare__col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.blog-compare__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.blog-compare__badge {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* Sequence messages inside compare columns */
.blog-seq {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-seq__msg {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.blog-seq__msg--right {
    text-align: right;
    border-color: rgba(0, 168, 132, 0.35);
}

.blog-seq__msg--left {
    text-align: left;
    border-color: rgba(0, 168, 132, 0.2);
}

.blog-seq__msg--encrypted {
    border-color: var(--accent);
    color: var(--accent);
}

/* Nested tree (Wireshark-style SNI breakdown) */
.blog-tree {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: var(--space-md) 0;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.blog-tree__item {
    position: relative;
    padding-left: 0;
}

.blog-tree__item--child {
    padding-left: 20px;
}

.blog-tree__item--child2 {
    padding-left: 40px;
}

.blog-tree__item--child3 {
    padding-left: 60px;
}

.blog-tree__item--child::before,
.blog-tree__item--child2::before,
.blog-tree__item--child3::before {
    content: '└─ ';
    color: var(--text-muted);
}

.blog-tree__item--warn {
    color: #e8a838;
}

.blog-tree__item--leak {
    color: #e85d5d;
    font-weight: 700;
}

/* ECH dual-path diagram */
.blog-ech {
    margin: var(--space-md) 0;
}

.blog-ech__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.blog-ech__node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    min-width: 90px;
}

.blog-ech__node--accent {
    border-color: var(--accent);
    color: var(--accent);
}

.blog-ech__node--muted {
    border-style: dashed;
    color: var(--text-muted);
    font-size: 12px;
}

.blog-ech__arrow {
    color: var(--accent);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.blog-ech__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.blog-ech__path {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

.blog-ech__path--hidden {
    border-color: var(--accent);
}

.blog-ech__path strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.blog-ech__hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.blog-ech__subrow {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .blog-compare,
    .blog-ech__split {
        grid-template-columns: 1fr;
    }

    .blog-pipeline {
        max-width: 100%;
    }
}

/* Markdown tables inside blog posts */
.blog-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-md) 0;
    font-size: 14px;
}

.blog-post__content th,
.blog-post__content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.blog-post__content th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

/* Pugh matrix: criteria rows, option columns (matches presentation layout) */
.blog-pugh {
    table-layout: fixed;
    max-width: 520px;
}

.blog-pugh th:first-child,
.blog-pugh td:first-child {
    width: 42%;
    text-align: left;
    white-space: normal;
}

.blog-pugh th:not(:first-child),
.blog-pugh td:not(:first-child) {
    width: 19%;
    text-align: center;
    white-space: nowrap;
}

.blog-pugh__net td {
    border-top: 2px solid var(--border);
    background: var(--bg-card);
}

.blog-post__content th:first-child,
.blog-post__content td:first-child {
    text-align: left;
    white-space: normal;
}

/* Other matrix tables (3+ columns): center data cells */
.blog-post__content table:not(.blog-pugh):has(th:nth-child(3)) th:not(:first-child),
.blog-post__content table:not(.blog-pugh):has(th:nth-child(3)) td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

.blog-post__content td {
    color: var(--text-secondary);
}

.blog-post__content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .blog-post__content tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================================
   CASE ACCORDION (inside project cards)
   ============================================================ */
.case-accordion {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.case-accordion__item {
    border-bottom: 1px solid var(--border);
}

.case-accordion__item:last-child {
    border-bottom: none;
}

.case-accordion__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
    gap: 12px;
}

.case-accordion__summary::-webkit-details-marker {
    display: none;
}

.case-accordion__summary::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s;
    margin-top: -3px;
}

.case-accordion__item[open] .case-accordion__summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.case-accordion__summary:hover {
    background: var(--bg-card);
    color: var(--accent);
}

.case-accordion__body {
    padding: 16px 16px 4px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    animation: fadeInUp 0.8s ease both;
}
.delay-100 {
    animation-delay: 0.1s;
}
.delay-200 {
    animation-delay: 0.2s;
}
.delay-300 {
    animation-delay: 0.3s;
}
.delay-400 {
    animation-delay: 0.4s;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

/* Staggered children */
.reveal-group > .reveal:nth-child(1) {
    transition-delay: 0.05s;
}
.reveal-group > .reveal:nth-child(2) {
    transition-delay: 0.1s;
}
.reveal-group > .reveal:nth-child(3) {
    transition-delay: 0.15s;
}
.reveal-group > .reveal:nth-child(4) {
    transition-delay: 0.2s;
}
.reveal-group > .reveal:nth-child(5) {
    transition-delay: 0.25s;
}
.reveal-group > .reveal:nth-child(6) {
    transition-delay: 0.3s;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
    text-align: center;
}
.text-accent {
    color: var(--accent);
}
.text-muted {
    color: var(--text-muted);
}
.text-secondary {
    color: var(--text-secondary);
}
.text-dim {
    color: var(--text-dim);
}
.mt-sm {
    margin-top: var(--space-sm);
}
.mt-md {
    margin-top: var(--space-md);
}
.mt-lg {
    margin-top: var(--space-lg);
}
.mt-xl {
    margin-top: var(--space-xl);
}
.mt-2xl {
    margin-top: var(--space-2xl);
}
.mb-md {
    margin-bottom: var(--space-md);
}
.mb-lg {
    margin-bottom: var(--space-lg);
}
.mb-xl {
    margin-bottom: var(--space-xl);
}
.mr-2 {
    margin-right: 2px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-12 {
    margin-bottom: 12px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-24 {
    margin-bottom: 24px;
}
.mb-32 {
    margin-bottom: 32px;
}
.mt-4 {
    margin-top: 4px;
}
.mt-8 {
    margin-top: 8px;
}
.mt-12 {
    margin-top: 12px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-24 {
    margin-top: 24px;
}
.min-h-60vh {
    min-height: 60vh;
}
.gap-lg {
    gap: var(--space-lg);
}
.gap-8 {
    gap: 8px;
}
.flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.w-full {
    width: 100%;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.max-w-560 {
    max-width: 560px;
}
.max-w-680 {
    max-width: 680px;
}
.max-w-800 {
    max-width: 800px;
}
.max-w-900 {
    max-width: 900px;
}
.max-w-960 {
    max-width: 960px;
}
.max-w-1000 {
    max-width: 1000px;
}
.max-w-1100 {
    max-width: 1100px;
}

.text-italic {
    font-style: italic;
}
.fs-13 {
    font-size: 13px;
}
.fs-14 {
    font-size: 14px;
}
.fs-15 {
    font-size: 15px;
}
.fs-16 {
    font-size: 16px;
}
.fs-17 {
    font-size: 17px;
}
.fs-18 {
    font-size: 18px;
}
.fs-20 {
    font-size: 20px;
}
.fs-22 {
    font-size: 22px;
}
.fs-28 {
    font-size: 28px;
}
.fs-34 {
    font-size: 34px;
}
.fs-48 {
    font-size: 48px;
}

.lh-16 {
    line-height: 1.6;
}
.lh-17 {
    line-height: 1.7;
}
.lh-18 {
    line-height: 1.8;
}
.lh-19 {
    line-height: 1.9;
}

.p-32 {
    padding: 32px;
}
.p-40 {
    padding: 40px;
}

.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}
.fw-800 {
    font-weight: 800;
}

.mono {
    font-family: var(--mono);
}

.icon-mb-20 {
    margin-bottom: 20px;
}

/* Callout boxes (replaces repeated inline styles) */
.callout {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.callout--dashed {
    border: 1px dashed var(--border);
}

.callout--p40 {
    padding: 40px;
}

/* Common layout helpers */
.grid-2-col-80 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Small page-specific helpers (avoid inline styles) */
.contact-highlight {
    padding: 32px;
    background: linear-gradient(
        135deg,
        var(--accent-glow),
        rgba(59, 130, 246, 0.06)
    );
    border-color: rgba(0, 212, 170, 0.25);
}

.p404-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.p404-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.p404-label {
    margin-bottom: 8px;
}
.p404-code {
    margin: 0 0 16px;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}
.p404-heading {
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
}
.p404-desc {
    margin-bottom: 32px;
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .grid-2-col-80 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mono);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ============================================================
   CHAT WIDGET (DEMO)
   ============================================================ */
.chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.chat-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-blue));
    color: var(--bg-primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    font-size: 13px;
}

.chat-widget__toggle svg {
    width: 18px;
    height: 18px;
}

.chat-widget__panel {
    width: min(340px, calc(100vw - 24px));
    max-height: min(560px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-widget__panel[hidden] {
    display: none !important;
}

.chat-widget__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--border);
}

.chat-widget__header h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.chat-widget__header p {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-widget__minimize {
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
    padding: 0 4px;
}

.chat-widget__messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
}

.chat-widget__bubble {
    max-width: 90%;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text-secondary);
}

.chat-widget__bubble--bot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    align-self: flex-start;
}

.chat-widget__bubble--user {
    background: var(--accent-glow);
    border: 1px solid rgba(0, 212, 170, 0.35);
    align-self: flex-end;
}

.chat-widget__quick {
    display: flex;
    gap: 8px;
    padding: 0 12px 10px;
    flex-wrap: wrap;
}

.chat-widget__quick button {
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    background: var(--bg-card);
}

.chat-widget__input {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.chat-widget__input input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 13px;
}

.chat-widget__input button {
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 10px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 13px;
}

.chat-widget__cta {
    border-top: 1px solid var(--border);
    padding: 10px 12px 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .chat-widget {
        right: 12px;
        bottom: 12px;
    }

    body[data-cookie-modal-open="true"] .chat-widget {
        bottom: 96px; /* Keep launcher above cookie bar */
    }

    .chat-widget__toggle span {
        display: none;
    }

    .chat-widget__toggle {
        width: 46px;
        height: 46px;
        justify-content: center;
        padding: 0;
    }

    .chat-widget__panel {
        width: min(94vw, 380px);
        max-height: min(68vh, 560px);
        border-radius: 14px;
    }

    .chat-widget__header {
        padding: 12px 12px 8px;
    }

    .chat-widget__header h4 {
        font-size: 14px;
    }

    .chat-widget__header p {
        font-size: 11px;
    }

    .chat-widget__messages {
        padding: 10px;
        gap: 7px;
    }

    .chat-widget__bubble {
        font-size: 12px;
        padding: 9px 10px;
    }

    .chat-widget__quick {
        padding: 0 10px 10px;
        gap: 6px;
    }

    .chat-widget__quick button {
        font-size: 11px;
        padding: 6px 9px;
    }

    .chat-widget__input {
        padding: 0 10px 10px;
    }

    .chat-widget__input input,
    .chat-widget__input button {
        min-height: 40px;
        font-size: 12px;
    }

    .chat-widget__cta {
        padding: 10px;
        font-size: 12px;
    }
}

/* ---------- LEGAL PAGES (terms, privacy, cookies, ai-policy) ---------- */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 24px;
    margin: 48px 0 16px;
}

.legal-content h3 {
    font-size: 18px;
    margin: 32px 0 12px;
    color: var(--accent);
}

.legal-content p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
    list-style: disc;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-updated {
    font-size: 13px;
    color: var(--text-dim);
    margin-top: 8px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.cookie-table th {
    color: var(--text-primary);
    font-weight: 600;
    background: var(--bg-card);
}

.cookie-table td {
    color: var(--text-muted);
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
