/* ========================================
   COMMVIO — Page-Specific Styles
   Hero, positioning, services, etc.
   ======================================== */

/* ══════════════════════════════════════
   SITE HEADER
   ══════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: var(--space-5) 0;
    background-color: transparent;
}

.site-header--scrolled {
    background-color: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 var(--color-border-light);
    padding: var(--space-3) 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    letter-spacing: var(--tracking-tight);
    z-index: calc(var(--z-header) + 1);
}

.header__logo span {
    font-weight: var(--weight-regular);
    color: var(--color-muted);
}

/* Desktop Nav */
.header__nav {
    display: none;
    gap: var(--space-1);
}

.header__nav a {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-subtle);
    border-radius: var(--radius-full);
    transition: color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.header__nav a:hover,
.header__nav a.is-active {
    color: var(--color-heading);
    background-color: rgba(0, 0, 0, 0.04);
}

/* Header CTA */
.header__cta {
    display: none;
}

/* Hamburger */
.header__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: calc(var(--z-header) + 1);
}

.header__hamburger span {
    display: block;
    height: 1.5px;
    background-color: var(--color-heading);
    border-radius: 1px;
    transition: all var(--duration-normal) var(--ease-out);
}

/* Hamburger active state */
.nav-open .header__hamburger span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-open .header__hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-open .header__hamburger span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Navigation Panel — dark slide-in from right ── */

/* Backdrop */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 360px);
    z-index: var(--z-header);
    background: #08080a;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.42s var(--ease-out), visibility 0.42s;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.3);
}
.nav-open .mobile-nav {
    transform: translateX(0);
    visibility: visible;
}

/* Top row: logo + close */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: var(--space-6);
    flex-shrink: 0;
}
.mobile-nav__logo {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-white);
    letter-spacing: var(--tracking-tight);
}
.mobile-nav__logo span {
    color: rgba(255, 255, 255, 0.38);
    font-weight: var(--weight-regular);
}
.mobile-nav__close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}
.mobile-nav__close:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* ── Mobile Nav Tabs (Apple segmented-control style) ── */
.mobile-nav__tabs {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 3px;
    margin-bottom: var(--space-5);
    flex-shrink: 0;
}
.mobile-nav__tab {
    flex: 1;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.42);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.mobile-nav__tab.is-active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.mobile-nav__tab:not(.is-active):hover {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
}

/* Tab panels */
.mobile-nav__tab-panels {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.mobile-nav__tab-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.mobile-nav__tab-panel.is-active {
    display: flex;
}

/* Links */
.mobile-nav__links {
    display: flex;
    flex-direction: column;
}
.mobile-nav__links a {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(16px);
    opacity: 0;
    transition: color var(--duration-fast) var(--ease-out),
                opacity 0.32s var(--ease-out),
                transform 0.32s var(--ease-out);
    /* Remove native tap blue flash on iOS / Android */
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.mobile-nav__links a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.3);
    outline-offset: 4px;
    border-radius: 4px;
}
.nav-open .mobile-nav__tab-panel.is-active .mobile-nav__links a {
    opacity: 1;
    transform: translateX(0);
}
.mobile-nav__links a:hover   { color: rgba(255, 255, 255, 0.88); }
.mobile-nav__links a.is-active { color: #fff; }

/* Numbered prefix */
.mobile-nav__num {
    font-size: 10px;
    font-weight: var(--weight-regular);
    color: rgba(255, 255, 255, 0.22);
    width: 18px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.mobile-nav__links a.is-active .mobile-nav__num { color: var(--color-accent); }

/* Stagger on initial menu open */
.nav-open .mobile-nav__tab-panel.is-active .mobile-nav__links a:nth-child(1) { transition-delay: 0.05s; }
.nav-open .mobile-nav__tab-panel.is-active .mobile-nav__links a:nth-child(2) { transition-delay: 0.09s; }
.nav-open .mobile-nav__tab-panel.is-active .mobile-nav__links a:nth-child(3) { transition-delay: 0.13s; }
.nav-open .mobile-nav__tab-panel.is-active .mobile-nav__links a:nth-child(4) { transition-delay: 0.17s; }

/* Fast fade during tab switching — no stagger */
body.is-tab-switching .mobile-nav__tab-panel .mobile-nav__links a {
    transition-delay: 0s !important;
    transition-duration: 0.15s !important;
}

/* Footer: CTA + lang + tagline */
.mobile-nav__footer {
    flex-shrink: 0;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease-out) 0.32s,
                transform 0.4s var(--ease-out) 0.32s;
}
.nav-open .mobile-nav__footer { opacity: 1; transform: translateY(0); }

.mobile-nav__cta { /* referenced in navigation.js — styles applied inline by JS */ display: block; }


.mobile-nav__lang-row {
    display: flex;
    gap: var(--space-2);
}
.mobile-nav__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}
.mobile-nav__lang-btn.is-active,
.mobile-nav__lang-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.07);
}
.mobile-nav__tagline {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.18);
    margin: 0;
}

/* Contact form layout */
.popup-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--color-heading);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-2xl);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.popup-close:hover {
    background-color: var(--color-surface);
}

/* Specific Details Popup Styles (Apple style expanded drawer) */
.popup-box--details {
    max-width: 600px;
    padding: var(--space-12) var(--space-10);
}

@media (max-width: 640px) {
    .popup-box--details {
        padding: var(--space-6) var(--space-5) var(--space-8);
    }
}

.details-hero {
    text-align: center;
    margin-bottom: var(--space-8);
}

.details-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-2);
}

.details-price {
    font-size: var(--text-lg);
    color: var(--color-subtle);
}

.details-body {
    margin-bottom: var(--space-10);
}

.details-body .separator {
    margin: var(--space-6) 0;
}

.details-body h3 {
    font-size: var(--text-sm);
    color: var(--color-heading);
    margin-bottom: var(--space-4);
}

.details-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.details-feature-list li {
    font-size: var(--text-base);
    color: var(--color-subtle);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.details-feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.details-feature-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

.details-footer {
    text-align: center;
}

.details-footer .btn {
    width: 100%;
}

/* ══════════════════════════════════════
   HOMEPAGE — HERO
   ══════════════════════════════════════ */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-32);
    padding-bottom: var(--space-20);
    position: relative;
    overflow: hidden;
    background-color: var(--color-white); /* Enforce white/clean backdrop */
}

.hero__particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ── Animated blur orbs ── */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transition: margin 0.15s linear; /* smooth parallax */
}

.hero__orb--1 {
    width: 780px;
    height: 780px;
    background: radial-gradient(circle at center,
        rgba(37, 99, 235, 0.18) 0%,
        rgba(37, 99, 235, 0.05) 45%,
        transparent 70%);
    filter: blur(70px);
    top: -280px;
    left: -220px;
    animation: orb-drift-1 24s ease-in-out infinite;
}

.hero__orb--2 {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at center,
        rgba(124, 58, 237, 0.16) 0%,
        rgba(124, 58, 237, 0.04) 45%,
        transparent 70%);
    filter: blur(90px);
    top: -80px;
    right: -160px;
    animation: orb-drift-2 30s ease-in-out infinite;
}

.hero__orb--3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.13) 0%,
        rgba(59, 130, 246, 0.03) 45%,
        transparent 70%);
    filter: blur(80px);
    bottom: -80px;
    left: 25%;
    animation: orb-drift-3 20s ease-in-out infinite;
}

.hero__orb--4 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at center,
        rgba(99, 102, 241, 0.12) 0%,
        rgba(99, 102, 241, 0.03) 45%,
        transparent 70%);
    filter: blur(65px);
    top: 35%;
    left: 55%;
    animation: orb-drift-4 26s ease-in-out infinite;
}

@keyframes orb-drift-1 {
    0%,  100% { transform: translate(0px,   0px)  scale(1);    }
    25%        { transform: translate(70px,  55px) scale(1.07); }
    55%        { transform: translate(-35px, 95px) scale(0.93); }
    80%        { transform: translate(45px,  30px) scale(1.03); }
}

@keyframes orb-drift-2 {
    0%,  100% { transform: translate(0px,    0px)   scale(1);    }
    30%        { transform: translate(-90px,  60px)  scale(1.09); }
    65%        { transform: translate(35px,  -55px)  scale(0.91); }
    85%        { transform: translate(-20px,  25px)  scale(1.04); }
}

@keyframes orb-drift-3 {
    0%,  100% { transform: translate(0px,   0px)   scale(1);    }
    40%        { transform: translate(-55px, -75px) scale(1.11); }
    70%        { transform: translate(40px,  -20px) scale(0.94); }
}

@keyframes orb-drift-4 {
    0%,  100% { transform: translate(0px,   0px)   scale(1);    }
    35%        { transform: translate(55px, -45px)  scale(0.88); }
    70%        { transform: translate(-30px, 55px)  scale(1.12); }
}

/* Reduce orbs on mobile */
@media (max-width: 768px) {
    .hero__orb--1 { width: 420px; height: 420px; filter: blur(50px); }
    .hero__orb--2 { width: 360px; height: 360px; filter: blur(60px); }
    .hero__orb--3,
    .hero__orb--4 { display: none; }
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero__content--centered {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.hero__logo-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-violet));
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 2px;
}

.hero__logo-text {
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    color: var(--color-heading);
    letter-spacing: var(--tracking-tight);
}

.hero__title {
    font-size: clamp(3rem, 6vw + 1rem, 5.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    color: var(--color-heading);
}

.hero__desc {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
    color: var(--color-subtle);
    max-width: 52ch;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.btn--hero {
    border-radius: 999px;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}

.btn--primary.btn--hero {
    background-color: var(--color-heading);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn--primary.btn--hero:hover {
    background-color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn--ghost-surface {
    background-color: transparent;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.btn--ghost-surface:hover {
    background-color: var(--color-surface);
    border-color: var(--color-heading);
}

/* ══════════════════════════════════════
   HOMEPAGE — POSITIONING STATEMENT
   ══════════════════════════════════════ */

.positioning {
    text-align: center;
}

.positioning__text {
    max-width: 56ch;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
    font-weight: var(--weight-medium);
    line-height: var(--leading-snug);
    color: var(--color-heading);
    letter-spacing: var(--tracking-tight);
}

.positioning__sub {
    max-width: 48ch;
    margin: var(--space-8) auto 0;
    font-size: var(--text-md);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   HOMEPAGE — WHAT WE BUILD
   ══════════════════════════════════════ */

.pillars__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

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

.pillar {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: border-color var(--duration-normal) var(--ease-out),
                background-color var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
    cursor: default;
}

.pillar:hover {
    border-color: var(--color-accent-muted);
    background-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pillar__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-accent);
}

.pillar__text {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-heading);
}

/* ── Base SVG icon ── */
.picon {
    width: 40px;
    height: 40px;
    display: block;
    overflow: visible;
}

/* transform-box so transform-origin works correctly on SVG children */
.picon * { transform-box: fill-box; }

/* ══════════════════════════════════════
   PILLAR ICON ANIMATIONS
   Triggered by .is-animating on .pillar
   ══════════════════════════════════════ */

/* ─── 1 · Diamond / Brand Presence ─── */
.pillar.is-animating .pi-gem {
    transform-origin: center;
    animation: gem-spin 0.75s var(--ease-out) forwards;
}
.pillar.is-animating .pi-shine {
    animation: shine-pop 0.45s 0.25s ease-out forwards;
}
.pillar.is-animating .pi-shine2 {
    animation: shine-pop 0.45s 0.38s ease-out forwards;
}
@keyframes gem-spin {
    0%   { transform: rotate(0deg) scale(1); }
    40%  { transform: rotate(180deg) scale(1.12); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes shine-pop {
    0%   { opacity: 0; transform: scale(0.4) translate(0, 0); }
    45%  { opacity: 1; transform: scale(1.3) translate(-1px, -1px); }
    100% { opacity: 0; transform: scale(1) translate(-2px, -2px); }
}

/* ─── 2 · Browser / Websites ─── */
.pillar.is-animating .pi-bar {
    animation: bar-load 0.7s var(--ease-out) forwards;
}
@keyframes bar-load {
    0%   { width: 0px;  opacity: 0.6; }
    65%  { width: 34px; opacity: 0.6; }
    85%  { width: 34px; opacity: 0.4; }
    100% { width: 34px; opacity: 0; }
}

/* ─── 3 · Rocket / Campaigns ─── */
.pillar.is-animating .pi-rocket-body {
    transform-origin: center bottom;
    animation: rocket-lift 0.8s var(--ease-spring) forwards;
}
.pillar.is-animating .pi-flame {
    transform-origin: center top;
    animation: flame-flicker 0.8s ease-in-out forwards;
}
@keyframes rocket-lift {
    0%   { transform: translateY(0px); }
    35%  { transform: translateY(-7px); }
    65%  { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}
@keyframes flame-flicker {
    0%   { opacity: 0; transform: scaleY(0.3); }
    25%  { opacity: 1; transform: scaleY(1.2); }
    60%  { opacity: 0.8; transform: scaleY(0.9); }
    100% { opacity: 0; transform: scaleY(0.5); }
}

/* ─── 4 · Chat dots / Communication ─── */
.pillar.is-animating .pi-dot--1 { animation: dot-bounce 0.55s 0s    ease-in-out forwards; }
.pillar.is-animating .pi-dot--2 { animation: dot-bounce 0.55s 0.14s ease-in-out forwards; }
.pillar.is-animating .pi-dot--3 { animation: dot-bounce 0.55s 0.28s ease-in-out forwards; }
@keyframes dot-bounce {
    0%   { opacity: 0.3; transform: translateY(0px); }
    30%  { opacity: 1;   transform: translateY(-4px); }
    60%  { opacity: 0.7; transform: translateY(-1px); }
    100% { opacity: 0.3; transform: translateY(0px); }
}

/* ─── 5 · Lightning / Performance ─── */
.pillar.is-animating .pi-bolt {
    transform-origin: center;
    animation: bolt-flash 0.65s var(--ease-spring) forwards;
}
.pillar.is-animating .pi-ring {
    transform-origin: center;
    animation: ring-expand 0.8s ease-out forwards;
}
@keyframes bolt-flash {
    0%   { transform: scale(1);    opacity: 1; }
    22%  { transform: scale(1.2);  opacity: 0.85; }
    55%  { transform: scale(0.93); opacity: 1; }
    100% { transform: scale(1); }
}
@keyframes ring-expand {
    0%   { opacity: 0;    transform: scale(0.7) rotate(0deg); }
    30%  { opacity: 0.45; transform: scale(1)   rotate(30deg); }
    70%  { opacity: 0.2;  transform: scale(1.1) rotate(60deg); }
    100% { opacity: 0;    transform: scale(1.2) rotate(90deg); }
}

/* ─── 6 · Layers / Infrastructure ─── */
.pillar.is-animating .pi-layer--top {
    transform-origin: center;
    animation: layer-rise 0.7s var(--ease-spring) forwards;
}
.pillar.is-animating .pi-layer--mid {
    animation: layer-fade 0.7s 0.08s ease-in-out forwards;
}
.pillar.is-animating .pi-layer--bot {
    transform-origin: center;
    animation: layer-sink 0.7s var(--ease-spring) forwards;
}
@keyframes layer-rise {
    0%   { transform: translateY(0px); }
    40%  { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}
@keyframes layer-sink {
    0%   { transform: translateY(0px); }
    40%  { transform: translateY(5px); }
    100% { transform: translateY(0px); }
}
@keyframes layer-fade {
    0%   { opacity: 1; }
    40%  { opacity: 0.35; }
    100% { opacity: 1; }
}

/* ══════════════════════════════════════
   HOMEPAGE — WHY DIFFERENT
   ══════════════════════════════════════ */

.why-different__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

.why-different__item {
    display: flex;
    gap: var(--space-6);
}

.why-different__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
}

.why-different__content h3 {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-2);
}

.why-different__content p {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   HOMEPAGE — PROCESS PREVIEW
   ══════════════════════════════════════ */

.process-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    counter-reset: step;
}

.process-timeline__step {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-6);
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
}

.process-timeline__step:hover {
    border-color: var(--color-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

.process-timeline__num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-subtle);
}

.process-timeline__step:hover .process-timeline__num {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.process-timeline__title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-1);
}

.process-timeline__desc {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */

.cta-section {
    text-align: center;
    background-color: var(--color-heading);
    color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-8);
    margin: 0 var(--container-pad);
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

.cta-section p {
    color: var(--color-muted);
    max-width: 48ch;
    margin: 0 auto var(--space-10);
}

.cta-section .btn--primary {
    background-color: var(--color-white);
    color: var(--color-heading);
    border-color: var(--color-white);
}

.cta-section .btn--primary:hover {
    background-color: var(--color-surface);
}

.cta-section .btn--secondary {
    color: var(--color-muted);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-section .btn--secondary:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.site-footer {
    padding: var(--space-20) 0 var(--space-8);
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border-light);
    overflow: hidden;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
}

.footer__liftoff {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--color-heading);
    letter-spacing: var(--tracking-tight);
}

.footer__nav-groups {
    display: flex;
    gap: var(--space-16);
}

.footer__nav-col {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer__nav-col a {
    font-size: var(--text-sm);
    color: var(--color-heading);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__nav-col a:hover {
    color: var(--color-muted);
}

.footer__massive-text {
    font-size: clamp(4rem, 15vw, 18rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-black);
    text-align: center;
    margin-top: var(--space-8);
    margin-bottom: var(--space-12);
    /* Attempt to stretch across exactly */
    width: 100%;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.footer__brand-mark {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-muted);
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer__legal-links a {
    font-size: var(--text-xs);
    color: var(--color-muted);
    transition: color var(--duration-fast);
}

.footer__legal-links a:hover {
    color: var(--color-heading);
}

@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        gap: var(--space-8);
    }
    .footer__nav-groups {
        width: 100%;
        justify-content: space-between;
        gap: var(--space-4);
    }
    .footer__massive-text {
        font-size: clamp(3rem, 18vw, 6rem);
    }
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-6);
    }
    .footer__legal-links {
        gap: var(--space-4);
    }
}

/* ══════════════════════════════════════
   PAGE HERO (Inner pages)
   ══════════════════════════════════════ */

.page-hero {
    padding-top: calc(var(--space-32) + var(--space-8));
    padding-bottom: var(--space-20);
    position: relative;
}

.page-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__eyebrow {
    margin-bottom: var(--space-4);
}

.page-hero__title {
    margin-bottom: var(--space-6);
    /* Make typography massive like Antigravity reference */
    font-size: clamp(3rem, 5vw + 1rem, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.page-hero__desc {
    max-width: 48ch;
}

.page-hero__visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    width: 100%;
    z-index: 1;
}

/* Recreating the dotted wave pattern visually */
.abstract-dots-visual {
    position: absolute;
    inset: -30% -20%;
    /* Create a grid of tiny blue/violet dots */
    background-image: radial-gradient(var(--color-accent) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.6;
    /* Mask the grid so it looks like a soft, floating wave shape */
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black 20%, transparent 70%);
    /* Animation to gently drift */
    animation: floatingDots 20s infinite alternate cubic-bezier(0.3, 0, 0.7, 1);
}

@keyframes floatingDots {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(-20px, 15px) scale(1.05) rotate(2deg); }
}

@media (max-width: 1024px) {
    .page-hero__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .page-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero__content--centered {
        align-items: center;
        text-align: center;
        padding-top: 15vh; /* adjust visual center for hero content */
    }
    .page-hero__visual {
        min-height: 300px;
    }
    .hero__actions {
        justify-content: center !important;
    }
}

/* ══════════════════════════════════════
   1.5. SOCIAL PROOF MARQUEE
   ══════════════════════════════════════ */

/* ── Social Proof — Clients marquee, dark band ── */
.section--social-proof {
    padding: var(--space-12) 0;
    background: #111113;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Top header row */
.social-proof__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--space-8);
}

.social-proof__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
    animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.social-proof__label {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
}

/* Marquee container */
.marquee-outer {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
}

/* Edge fade using the section bg color */
.marquee-outer::before,
.marquee-outer::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee-outer::before {
    left: 0;
    background: linear-gradient(to right, #111113, transparent);
}
.marquee-outer::after {
    right: 0;
    background: linear-gradient(to left, #111113, transparent);
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-set {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-right: var(--space-3);
    animation: marquee-scroll 34s linear infinite;
}
.marquee-set--alt {
    animation-duration: 48s;
}

.section--social-proof:hover .marquee-set {
    animation-play-state: paused;
}

/* Pill badge items */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
    cursor: pointer;
}
.marquee-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

/* Monogram circle — distinct per brand */
.marquee-item__init {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: var(--weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

/* Brand color accents for monograms */
.marquee-item:nth-child(6n+1) .marquee-item__init { background: rgba(37, 99, 235, 0.25);  color: #93b4f6; border: 1px solid rgba(37, 99, 235, 0.3); }
.marquee-item:nth-child(6n+2) .marquee-item__init { background: rgba(16, 185, 129, 0.2);  color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.28); }
.marquee-item:nth-child(6n+3) .marquee-item__init { background: rgba(245, 158, 11, 0.2);  color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.28); }
.marquee-item:nth-child(6n+4) .marquee-item__init { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.25); }
.marquee-item:nth-child(6n+5) .marquee-item__init { background: rgba(168, 85, 247, 0.2);  color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.28); }
.marquee-item:nth-child(6n+0) .marquee-item__init { background: rgba(6, 182, 212, 0.18);  color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.25); }

@media (max-width: 768px) {
    .section--social-proof { padding: var(--space-8) 0; }
    .social-proof__header  { margin-bottom: var(--space-5); }
    .marquee-outer::before,
    .marquee-outer::after  { width: 48px; }
    .marquee-item          { font-size: 13px; padding: 7px 14px 7px 8px; }
    .marquee-item__init    { width: 24px; height: 24px; font-size: 9px; }
}

/* ══════════════════════════════════════
   SCROLL ZOOM REVEAL — Antigravity style
   ══════════════════════════════════════ */

.scroll-zoom-section {
    height: 320vh;
    position: relative;
}

.scroll-zoom-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-white);
}

/* Card starts small, JS scales it to fill viewport */
.scroll-zoom-card {
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    background: #08080a;
    border-radius: 72px;
    transform: scale(0.26);
    transform-origin: center center;
    opacity: 0.35;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, border-radius, opacity;
    /* subtle inner border */
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Particle canvas */
.zoom-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ambient orbs inside dark card */
.zoom-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.zoom-orb--1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
    filter: blur(90px);
    top: -200px;
    left: -150px;
    animation: orb-drift-1 22s ease-in-out infinite;
}
.zoom-orb--2 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(124,58,237,0.14) 0%, transparent 65%);
    filter: blur(80px);
    bottom: -120px;
    right: -80px;
    animation: orb-drift-2 28s ease-in-out infinite;
}
.zoom-orb--3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 65%);
    filter: blur(70px);
    top: 40%;
    left: 50%;
    animation: orb-drift-3 19s ease-in-out infinite;
}

/* Card inner content */
.scroll-zoom-card__inner {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-12);
    max-width: 900px;
}

.scroll-zoom-card__eyebrow {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: var(--space-8);
}

.scroll-zoom-card__headline {
    font-size: clamp(2.8rem, 6.5vw + 1rem, 7.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--color-white);
    margin-bottom: var(--space-6);
}

/* Typewriter cycling line */
.typed-wrap {
    display: block;
    min-height: 1.1em;
    color: var(--color-accent);
}

.typed-cursor {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 300;
    margin-left: 3px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.scroll-zoom-card__sub {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
    margin-bottom: var(--space-10);
}

.scroll-zoom-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* Ghost white button variant for dark backgrounds */
.btn--ghost-white {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
}
.btn--ghost-white:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
}

/* Mobile — static 16:9 horizontal card, no scroll animation */
@media (max-width: 768px) {
    .scroll-zoom-section {
        height: auto;
        padding: var(--space-6) var(--space-4);
    }
    .scroll-zoom-sticky {
        position: relative;
        height: auto;
    }
    .scroll-zoom-card {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        border-radius: 20px !important;
        transform: scale(1) !important;
        opacity: 1 !important;
    }
    .scroll-zoom-card__inner {
        padding: var(--space-6) var(--space-5);
    }
    .scroll-zoom-card__eyebrow {
        font-size: 9px;
        letter-spacing: 0.18em;
        margin-bottom: var(--space-3);
    }
    .scroll-zoom-card__headline {
        font-size: clamp(1.15rem, 4.5vw, 1.6rem);
        margin-bottom: var(--space-2);
    }
    .scroll-zoom-card__sub   { font-size: var(--text-xs); margin-bottom: var(--space-4); }
    .scroll-zoom-card__actions { gap: var(--space-2); }
    .scroll-zoom-card__actions .btn { padding: 10px 18px; font-size: 11px; }
    .zoom-orb--3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-zoom-section { height: auto; }
    .scroll-zoom-sticky  { position: relative; height: auto; padding: var(--space-20) 0; }
    .scroll-zoom-card    { transform: scale(1) !important; opacity: 1 !important; border-radius: 32px !important; }
}


/* ══════════════════════════════════════
   1.6. SERVICES BENTO GRID
   ══════════════════════════════════════ */


.bento-section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(min-content, auto);
    gap: var(--space-10);
}

.bento-card {
    background-color: var(--color-white);
    border-radius: var(--radius-4xl);
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at the bottom */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.5s var(--ease-out);
    min-height: 460px;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.bento-card--dark {
    background-color: #0a0a0b;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.08);
}

.bento-card--dark .eyebrow { color: rgba(255, 255, 255, 0.5); }
.bento-card--dark h3 { color: var(--color-white); }
.bento-card--dark p { color: rgba(255, 255, 255, 0.7); }

.bento-card__text {
    position: relative;
    z-index: 5;
    max-width: 360px;
}

.bento-card__text h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.bento-card__text p {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

/* ── Grid Span Utilities ── */
.bento-card--span-12 { grid-column: span 12; }
.bento-card--span-8 { grid-column: span 8; }
.bento-card--span-7 { grid-column: span 7; }
.bento-card--span-6 { grid-column: span 6; }
.bento-card--span-5 { grid-column: span 5; }
.bento-card--span-4 { grid-column: span 4; }

/* ── Abstract UI Visuals (Speed Optimized CSS) ── */
.bento-card__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-12);
    overflow: hidden;
    pointer-events: none;
    /* Simplifed / Flat appearance, no scale on hover */
}

/* No scale on hover for a flatter look */
.bento-card:hover .bento-card__visual {
    transform: none;
}

/* Glass UI Component Base */
.ui-window {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Softer shadow for flat look */
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.5s var(--ease-out);
}

.ui-window--flat {
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
}

.bento-card--dark .ui-window {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Window Header Decor */
.ui-window__header {
    height: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    padding: 0 var(--space-4);
    gap: 6px;
}

.bento-card--dark .ui-window__header {
    border-color: rgba(255, 255, 255, 0.1);
}

.ui-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.1); }
.bento-card--dark .ui-dot { background: rgba(255, 255, 255, 0.2); }

/* Specific Visual Layouts */
.visual--agent-manager {
    padding-top: var(--space-20);
    perspective: 1000px;
}

.visual--agent-manager .ui-window {
    transform: rotateX(5deg) translateY(20px);
    width: 120%;
    display: flex;
}

.ui-sidebar {
    width: 240px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-6);
}

.bento-card--dark .ui-sidebar { border-color: rgba(255, 255, 255, 0.1); }

.ui-line { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.05); margin-bottom: 12px; }
.bento-card--dark .ui-line { background: rgba(255, 255, 255, 0.1); }
.ui-line.short { width: 40%; }
.ui-line.medium { width: 60%; }
.ui-line.accent { background: var(--color-accent); opacity: 0.3; }

/* Editor UI */
.visual--editor .ui-window {
    transform: translateX(40px) translateY(20px);
    padding: var(--space-6);
}

.code-line { display: flex; gap: 12px; margin-bottom: 8px; }
.code-num { font-size: 10px; opacity: 0.3; width: 14px; }
.code-tag { color: #2563eb; }
.code-attr { color: #7c3aed; }
.code-string { color: #10b981; }

/* Input UI */
.visual--agent .ui-input-box {
    margin: auto;
    width: 80%;
    height: 60px;
    background: white;
    border-radius: 99px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.visual--agent .ui-cursor {
    width: 2px;
    height: 20px;
    background: var(--color-accent);
    animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Glow Effects */
.glow-spot {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.glow--blue { background: #3b82f6; top: -10%; left: -10%; }
.glow--purple { background: #8b5cf6; bottom: -10%; right: -10%; }
.glow--green { background: #10b981; top: 0; right: 0; }


/* ══════════════════════════════════════
   BENTO GRID — REDESIGNED VISUAL COMPONENTS
   ══════════════════════════════════════ */

/* Inner wrapper — content flows from top, clears text at bottom */
.bento-visual-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding-bottom: 170px;
}

/* ── Big stat number ── */
.bv-stat-row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-8);
    flex-wrap: wrap;
}
.bv-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bv-stat__val {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--color-heading);
}
.bv-stat__val--blue  { color: var(--color-accent); }
.bv-stat__val--green { color: var(--color-success); }
.bv-stat__val--white { color: rgba(255, 255, 255, 0.92); }
.bv-stat__lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.bv-stat__lbl--white { color: rgba(255, 255, 255, 0.45); }

/* ── Bar chart ── */
.bv-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 68px;
    margin-top: var(--space-2);
}
.bv-bar {
    flex: 1;
    min-width: 14px;
    max-width: 28px;
    background: var(--color-surface-alt);
    border-radius: 4px 4px 2px 2px;
    height: var(--h, 50%);
    transition: height 0.8s var(--ease-out);
}
.bv-bar--hi { background: var(--color-accent); opacity: 0.55; }

/* ── KPI (large hero number) ── */
.bv-kpi { display: flex; flex-direction: column; gap: 5px; }
.bv-kpi__val {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--color-heading);
}
.bv-kpi__val--blue  { color: var(--color-accent); }
.bv-kpi__val--green { color: var(--color-success); }
.bv-kpi__val--white { color: rgba(255, 255, 255, 0.92); }
.bv-kpi__lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.bv-kpi__lbl--white { color: rgba(255, 255, 255, 0.45); }

/* ── Score circle ── */
.bv-score {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid var(--color-success);
    background: var(--color-success-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bv-score__val {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-success);
    line-height: 1;
    letter-spacing: -0.03em;
}
.bv-score__lbl {
    font-size: 9px;
    font-weight: 600;
    color: var(--color-success);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Platform pills ── */
.bv-platforms { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bv-pill {
    height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: white;
}
.bv-pill--meta { background: #1877f2; }
.bv-pill--ig   { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.bv-pill--li   { background: #0a66c2; }
.bv-pill--tt   { background: #010101; }

/* ── Rank list for SEO ── */
.bv-rank-list  { display: flex; flex-direction: column; gap: var(--space-2); max-width: 260px; }
.bv-rank-item  {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 7px 10px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-body);
}
.bv-rank-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bv-rank-badge--2 { background: rgba(37, 99, 235, 0.45); color: var(--color-accent); }
.bv-rank-badge--3 { background: rgba(37, 99, 235, 0.18); color: var(--color-accent); }

/* ── Content tiles ── */
.bv-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    max-width: 220px;
}
.bv-tile {
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
}
.bv-tile:nth-child(1) { background: linear-gradient(135deg, var(--color-accent-light), rgba(37,99,235,0.12)); }
.bv-tile:nth-child(2) { background: linear-gradient(135deg, var(--color-violet-light), rgba(124,58,237,0.12)); }
.bv-tile:nth-child(3) { background: linear-gradient(135deg, var(--color-success-bg), rgba(22,163,74,0.12)); }

/* ── Growth dashboard grid ── */
.bv-dash {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    max-width: 300px;
}
.bv-dash-cell {
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bv-dash-cell__val {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-heading);
    letter-spacing: -0.01em;
}
.bv-dash-cell__lbl {
    font-size: 9px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bv-dash-cell--hi .bv-dash-cell__val    { color: var(--color-accent); }
.bv-dash-cell--green .bv-dash-cell__val { color: var(--color-success); }

/* ── Tag chips ── */
.bv-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bv-chip {
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}
.bv-chip--blue  { background: var(--color-accent-light);  color: var(--color-accent); }
.bv-chip--green { background: var(--color-success-bg);    color: var(--color-success); }
.bv-chip--surf  { background: var(--color-surface-alt);   color: var(--color-body); }

/* Responsive */
@media (max-width: 992px) {
    .bento-visual-inner { padding-bottom: 150px; }
}
@media (max-width: 640px) {
    .bento-visual-inner { padding-bottom: 140px; }
    .bv-kpi__val        { font-size: var(--text-2xl); }
    .bv-stat__val       { font-size: var(--text-xl); }
    .bv-dash            { max-width: 100%; }
}


/* ══════════════════════════════════════
   ABOUT — MANIFESTO
   ══════════════════════════════════════ */

.manifesto__quote {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    font-weight: var(--weight-medium);
    color: var(--color-heading);
    line-height: var(--leading-snug);
    max-width: 48ch;
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-8);
}

/* ══════════════════════════════════════
   PROCESS PAGE — DARK SECTION
   ══════════════════════════════════════ */

.section--dark {
    background: #0e0e10;
}

.section--qualities {
    padding: var(--space-16) 0;
}

/* ══════════════════════════════════════
   PROCESS PAGE — PHASE MAP (hero)
   ══════════════════════════════════════ */

.phase-map {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-8) 0 var(--space-2);
    margin-top: var(--space-4);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.phase-map::-webkit-scrollbar { display: none; }

.phase-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-subtle);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    white-space: nowrap;
    flex-shrink: 0;
}

.phase-pill:hover {
    background: var(--color-surface);
    color: var(--color-accent);
}

.phase-pill__num {
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    color: var(--color-accent);
}

.phase-pill__name {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}

.phase-map__sep {
    color: var(--color-border);
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   PROCESS PAGE — QUALITY BAR (dark)
   ══════════════════════════════════════ */

.process-qualities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
}

.process-quality {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
}

.process-quality__icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
    transition: background var(--duration-normal) var(--ease-out);
}

.process-quality:hover .process-quality__icon {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93b4f6;
}

.process-quality__label {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-2);
}

.process-quality__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   PROCESS PAGE — STICKY PHASE NAV
   ══════════════════════════════════════ */

.phase-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.36s var(--ease-out), opacity 0.3s ease;
    pointer-events: none;
}

.phase-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.phase-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
}

.phase-nav__inner::-webkit-scrollbar { display: none; }

.phase-nav__dot {
    flex-shrink: 0;
    min-width: 38px;
    height: 32px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: none;
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wider);
    color: var(--color-muted);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.phase-nav__dot:hover {
    background: var(--color-surface);
    color: var(--color-heading);
    border-color: var(--color-subtle);
}

.phase-nav__dot.is-past {
    background: var(--color-accent-light);
    border-color: var(--color-accent-light);
    color: var(--color-accent);
}

.phase-nav__dot.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* ══════════════════════════════════════
   PROCESS PAGE — INTERACTIVE JOURNEY
   ══════════════════════════════════════ */

.journey {
    position: relative;
    padding-top: var(--space-16);
    overflow: hidden; /* prevent any card/animation overflow from escaping */
}

/* Vertical spine */
.journey::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--space-12);
    bottom: var(--space-20);
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--color-border-light) 60px,
        var(--color-border-light) calc(100% - 60px),
        transparent
    );
    pointer-events: none;
}

.journey__step {
    display: flex;
    align-items: flex-start;
    padding-bottom: var(--space-16);
}

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

/* Spine node column (always at center) */
.journey__center-col {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 6px;
}

/* Horizontal connector line through node */
.journey__center-col::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border-light);
    z-index: 0;
}

.journey__spacer {
    flex: 1;
}

.journey__card-col {
    flex: 1;
    position: relative;
}

.journey__step--left .journey__card-col {
    padding-right: var(--space-10);
}

.journey__step--right .journey__card-col {
    padding-left: var(--space-10);
}

/* Spine node circle */
.journey__node {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    color: var(--color-muted);
    transition: border-color var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out),
                background var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.journey__step:hover .journey__node {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 0 6px var(--color-accent-light);
}

.journey__node.is-open {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 0 0 8px var(--color-accent-light),
                0 4px 16px rgba(37, 99, 235, 0.28);
}

/* Phase card */
.journey__card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                border-color var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.journey__card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-muted);
    transform: translateY(-2px);
}

.journey__card.is-open {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-lg), 0 0 0 3px var(--color-accent-light);
    transform: translateY(-2px);
}

/* Card trigger button */
.journey__card-head {
    width: 100%;
    text-align: left;
    padding: var(--space-6);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: relative;
}

.journey__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.journey__card-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.journey__card:hover .journey__card-icon,
.journey__card.is-open .journey__card-icon {
    background: var(--color-accent);
    color: white;
}

.journey__card-num {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-border);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: color var(--duration-fast) var(--ease-out);
    user-select: none;
}

.journey__card.is-open .journey__card-num {
    color: var(--color-accent-muted);
}

.journey__card-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    line-height: var(--leading-snug);
    margin: 0;
    padding-right: var(--space-8);
}

.journey__card-chevron {
    position: absolute;
    right: var(--space-6);
    bottom: var(--space-6);
    color: var(--color-muted);
    transition: transform var(--duration-normal) var(--ease-out),
                color var(--duration-normal) var(--ease-out);
    flex-shrink: 0;
}

.journey__card.is-open .journey__card-chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

/* Expandable body */
.journey__card-body {
    height: 0;
    overflow: hidden;
    transition: height 0.38s var(--ease-out);
}

.journey__card-body-inner {
    padding: 0 var(--space-6) var(--space-6);
}

.journey__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    padding: var(--space-5) 0;
    border-top: 1px solid var(--color-border-light);
    margin-bottom: var(--space-5);
}

.journey__detail-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-muted);
    margin-bottom: var(--space-2);
}

.journey__detail-text {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

.journey__outcome {
    background: var(--color-accent-light);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    color: var(--color-body);
    line-height: var(--leading-relaxed);
}

.journey__outcome-label {
    font-weight: var(--weight-semibold);
    color: var(--color-accent);
    margin-right: var(--space-2);
}

/* ══════════════════════════════════════
   PROCESS PAGE — COLLABORATION GRID
   ══════════════════════════════════════ */

.collab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.collab-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.collab-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.collab-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
    transition: background var(--duration-fast) var(--ease-out),
                color var(--duration-fast) var(--ease-out);
}

.collab-card:hover .collab-card__icon {
    background: var(--color-accent);
    color: white;
}

.collab-card__title {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-3);
}

.collab-card__desc {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

/* ══════════════════════════════════════
   ECOSYSTEM PAGE — MAP
   ══════════════════════════════════════ */

.ecosystem-map {
    position: relative;
    padding: var(--space-16) 0;
}

.ecosystem-map__center {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-violet));
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
}

/* ══════════════════════════════════════
   CONTACT PAGE — FORM LAYOUT
   ══════════════════════════════════════ */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
}

.contact-info__item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    font-size: var(--text-lg);
}

.contact-info__label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--color-muted);
    margin-bottom: var(--space-1);
}

.contact-info__value {
    font-size: var(--text-base);
    color: var(--color-heading);
    font-weight: var(--weight-medium);
}

.contact-form {
    background-color: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
}

/* ══════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    align-items: start;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .bento-card--span-12,
    .bento-card--span-8,
    .bento-card--span-7,
    .bento-card--span-6,
    .bento-card--span-5,
    .bento-card--span-4 {
        grid-column: span 12;
        min-height: 380px;
    }

    .bento-card__visual {
        padding: var(--space-8);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    .bento-card {
        padding: var(--space-8);
        min-height: 340px;
    }
    .bento-card__text h3 {
        font-size: var(--text-xl);
    }
}

.pricing-card {
    background-color: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-light);
}

.pricing-card--featured {
    background-color: var(--color-black);
    border-color: transparent;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3), 0 20px 60px rgba(37, 99, 235, 0.15), var(--shadow-xl);
}

.pricing-card--featured::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.pricing-card--featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45), 0 28px 70px rgba(37, 99, 235, 0.22), var(--shadow-xl);
    border-color: transparent;
}

.pricing-card__header {
    margin-bottom: var(--space-5);
}

.pricing-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
    border: none;
}

.pricing-tag--highlight {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.pricing-card__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin-bottom: var(--space-1);
    letter-spacing: var(--tracking-tight);
}

.pricing-card--featured .pricing-card__title {
    color: var(--color-white);
}

.pricing-card__price {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.pricing-card--featured .pricing-card__price {
    color: var(--color-white);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--color-subtle);
    margin-top: var(--space-4);
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.pricing-card--featured .pricing-card__desc {
    color: rgba(255, 255, 255, 0.5);
}

.pricing-card__features {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    margin-bottom: var(--space-8);
}

.pricing-card--featured .pricing-card__features {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.pricing-card__features-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-4);
}

.pricing-card--featured .pricing-card__features-title {
    color: rgba(255, 255, 255, 0.35);
}

.pricing-card__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-card__features li {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.pricing-card--featured .pricing-card__features li {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card__features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
    opacity: 1;
}

.pricing-card--featured .pricing-card__features li svg {
    color: var(--color-accent-muted);
}

.pricing-card__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: 0;
}

.pricing-card__actions .btn {
    width: 100%;
    justify-content: center;
}

.pricing-card__actions .btn--primary {
    background-color: var(--color-heading);
    color: var(--color-white);
    border-color: var(--color-heading);
    border-radius: 999px;
    padding: var(--space-3);
    font-weight: var(--weight-medium);
}

.pricing-card__actions .btn--primary:hover {
    background-color: var(--color-black);
    border-color: var(--color-black);
}

.pricing-card--featured .pricing-card__actions .btn--primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.pricing-card--featured .pricing-card__actions .btn--primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.pricing-card__actions .btn--secondary {
    background-color: var(--color-border-light);
    color: var(--color-heading);
    border-color: transparent;
    border-radius: 999px;
    padding: var(--space-3);
    font-weight: var(--weight-medium);
}

.pricing-card__actions .btn--secondary:hover {
    background-color: var(--color-border);
}

.pricing-card--featured .pricing-card__actions .btn--secondary {
    background-color: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-card--featured .pricing-card__actions .btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.13);
}

/* ══════════════════════════════════════
   CONTACT PAGE — FORM LAYOUT
   ══════════════════════════════════════ */

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

/* ══════════════════════════════════════
   LEGAL PAGES — SIDEBAR LAYOUT
   ══════════════════════════════════════ */

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-12);
    align-items: start; /* Crucial for sticky to work */
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.legal-sidebar {
    position: sticky;
    top: var(--space-32); /* Offset for header/padding */
    padding-right: var(--space-6);
    border-right: 1px solid var(--color-border-light);
    height: auto;
    max-height: calc(100vh - var(--space-40));
    overflow-y: auto;
    /* Custom thin scrollbar for sidebar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

@media (max-width: 900px) {
    .legal-sidebar {
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        padding-right: 0;
        padding-bottom: var(--space-6);
        max-height: none;
    }
}

/* ══════════════════════════════════════
   ECOSYSTEM INTERACTIVE SHOWCASE
   ══════════════════════════════════════ */
.showcase-section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-20);
}

.ecosystem-showcase {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    margin-top: var(--space-12);
    background-color: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.showcase-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.showcase-nav__item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-4) var(--space-6);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: left;
    transition: all var(--duration-fast) var(--ease-out);
    color: var(--color-subtle);
}

.showcase-nav__item:hover {
    background-color: var(--color-surface);
    color: var(--color-heading);
}

.showcase-nav__item.is-active {
    background-color: var(--color-heading);
    color: var(--color-white);
}

.showcase-nav__num {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    opacity: 0.6;
}

.showcase-nav__text {
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
}

.showcase-panels {
    position: relative;
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    overflow: hidden;
    min-height: 480px;
}

.showcase-panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-out),
                visibility var(--duration-normal);
    z-index: 1;
}

.showcase-panel.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.showcase-panel__content {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-panel__content h3 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
}

.showcase-panel__content p {
    font-size: var(--text-lg);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

.showcase-panel__visual {
    background-color: var(--color-border-light);
    position: relative;
    overflow: hidden;
}

/* Abstract shapes for each panel */
.abstract-shape {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.abstract-shape--1 {
    background: radial-gradient(circle at 30% 70%, var(--color-accent) 0%, transparent 60%),
                radial-gradient(circle at 70% 30%, var(--color-violet) 0%, transparent 60%);
}
.abstract-shape--2 {
    background: linear-gradient(135deg, var(--color-subtle), var(--color-border));
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 10px);
}
.abstract-shape--3 {
    background: conic-gradient(from 180deg at 50% 50%, var(--color-surface), var(--color-border-light), var(--color-surface));
}
.abstract-shape--4 {
    background: radial-gradient(ellipse at center, var(--color-accent-muted) 0%, transparent 70%);
}

@media (max-width: 1024px) {
    .ecosystem-showcase {
        grid-template-columns: 1fr;
    }
    .showcase-panel {
        grid-template-columns: 1fr;
        position: relative;
        min-height: auto;
    }
    .showcase-panel:not(.is-active) {
        display: none;
    }
    .showcase-panel__visual {
        display: none; /* Hide visual on mobile for concise content */
    }
    .showcase-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .showcase-nav__item {
        width: calc(50% - var(--space-1));
        padding: var(--space-3);
    }
    .showcase-nav__text {
        font-size: var(--text-sm);
    }
}

.legal-sidebar__title {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    color: var(--color-muted);
    margin-bottom: var(--space-4);
}

.legal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.legal-nav__link {
    display: block;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-subtle);
    border-left: 2px solid transparent;
    transition: color var(--duration-fast), border-color var(--duration-fast);
}

.legal-nav__link:hover {
    color: var(--color-heading);
}

.legal-nav__link.is-active {
    color: var(--color-accent);
    font-weight: var(--weight-medium);
}

.legal-content section {
    margin-bottom: var(--space-12);
    scroll-margin-top: var(--space-32); /* Align scrolling correctly with fixed header */
}

.legal-content h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    color: var(--color-heading);
}

.legal-content h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    color: var(--color-heading);
}

.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: var(--space-4);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
}

.legal-content ul {
    list-style: disc inside;
    padding-left: var(--space-4);
}

.legal-content li {
    margin-bottom: var(--space-2);
}

/* Legal entities highlight card */
.legal-entities-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
}

.legal-entities-card h3 {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

.legal-entities-card ul {
    list-style: none;
    padding-left: 0;
}

.legal-entities-card li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.legal-entities-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ══════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════ */

/* ── Stats Bar — Redesigned glass cards ── */
.stats-bar {
    padding: var(--space-12) 0;
    background: var(--color-surface);
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .stats-bar__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-5);
    }
}

.stats-bar__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    text-align: center;
}
.stats-bar__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.stats-bar__item:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-2px);
}
.stats-bar__item:hover::before { opacity: 1; }

/* Accent bar colors per stat */
.stats-bar__item:nth-child(1)::before { background: linear-gradient(90deg, #6c63ff, #a78bfa); }
.stats-bar__item:nth-child(2)::before { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.stats-bar__item:nth-child(3)::before { background: linear-gradient(90deg, #10b981, #6ee7b7); }
.stats-bar__item:nth-child(4)::before { background: linear-gradient(90deg, #f59e0b, #fcd34d); }

/* Icon circle */
.stats-bar__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.stats-bar__icon--clients  { background: rgba(108, 99, 255, 0.14); color: #a78bfa; border-color: rgba(108, 99, 255, 0.2); }
.stats-bar__icon--projects { background: rgba(6, 182, 212, 0.12);   color: #38bdf8; border-color: rgba(6, 182, 212, 0.2); }
.stats-bar__icon--years    { background: rgba(16, 185, 129, 0.12);  color: #6ee7b7; border-color: rgba(16, 185, 129, 0.2); }
.stats-bar__icon--partner  { background: rgba(245, 158, 11, 0.12);  color: #fcd34d; border-color: rgba(245, 158, 11, 0.2); }

.stats-bar__val {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stats-bar__lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: var(--weight-semibold);
}

@media (max-width: 767px) {
    .stats-bar__item { padding: var(--space-5) var(--space-3) var(--space-4); border-radius: 12px; }
    .stats-bar__icon { width: 38px; height: 38px; border-radius: 10px; }
}

/* ══════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-card__stars {
    color: #f59e0b;
    font-size: var(--text-base);
    letter-spacing: 2px;
}

.testimonial-card__quote {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-body);
    flex: 1;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.testimonial-card__author strong {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
}

.testimonial-card__author span {
    font-size: var(--text-xs);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

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

@media (max-width: 560px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ══════════════════════════════════════
   NOTIFICATION TOASTS
   macOS-style (desktop), iOS-style (mobile)
   ══════════════════════════════════════ */

#cvio-notify-container {
    position: fixed;
    top: 76px;
    right: 18px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: 340px;
}

@media (max-width: 600px) {
    #cvio-notify-container {
        top: 68px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 28px);
        max-width: 400px;
        align-items: stretch;
    }
}

.cvio-toast {
    pointer-events: all;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 13px 13px 14px;
    background: rgba(20, 20, 24, 0.9);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.cvio-toast.is-in {
    animation: toastSlideIn 0.36s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.cvio-toast.is-out {
    animation: toastSlideOut 0.24s ease-in forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(28px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0)     scale(1); }
}
@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0)     scale(1); }
    to   { opacity: 0; transform: translateX(28px)  scale(0.95); }
}

@media (max-width: 600px) {
    @keyframes toastSlideIn {
        from { opacity: 0; transform: translateY(-14px) scale(0.96); }
        to   { opacity: 1; transform: translateY(0)      scale(1); }
    }
    @keyframes toastSlideOut {
        from { opacity: 1; transform: translateY(0)      scale(1); }
        to   { opacity: 0; transform: translateY(-14px)  scale(0.96); }
    }
}

.cvio-toast__icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cvio-toast--success .cvio-toast__icon { background: rgba(52, 199, 89, 0.16);   color: #34c759; border: 1px solid rgba(52, 199, 89, 0.25); }
.cvio-toast--error   .cvio-toast__icon { background: rgba(255, 69, 58, 0.16);   color: #ff453a; border: 1px solid rgba(255, 69, 58, 0.25); }
.cvio-toast--info    .cvio-toast__icon { background: rgba(10, 132, 255, 0.16);  color: #0a84ff; border: 1px solid rgba(10, 132, 255, 0.25); }
.cvio-toast--cookie  .cvio-toast__icon { background: rgba(255, 159, 10, 0.16);  color: #ff9f0a; border: 1px solid rgba(255, 159, 10, 0.25); }

.cvio-toast__body {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}
.cvio-toast__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 2px;
}
.cvio-toast__msg {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.cvio-toast__close {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255,255,255,0.07);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.38);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin-top: 1px;
    transition: background 0.15s, color 0.15s;
}
.cvio-toast__close:hover { background: rgba(255,255,255,0.13); color: #fff; }

/* Progress bar depletes over --toast-dur */
.cvio-toast__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255,255,255,0.12);
    animation: toastProgress var(--toast-dur, 4500ms) linear forwards;
}
@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ══════════════════════════════════════
   COOKIE CONSENT BANNER
   Full-width bottom bar — desktop & mobile
   ══════════════════════════════════════ */

.cvio-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--space-4) var(--space-8);
    background: rgba(14, 14, 16, 0.97);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 32px rgba(0,0,0,0.28);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.44s cubic-bezier(0.34, 1.2, 0.64, 1),
                opacity  0.32s ease;
}
.cvio-cookie-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cvio-cookie-banner__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 159, 10, 0.14);
    border: 1px solid rgba(255, 159, 10, 0.22);
    color: #ff9f0a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cvio-cookie-banner__body {
    flex: 1;
    min-width: 0;
    max-width: 640px;
}
.cvio-cookie-banner__text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
    line-height: 1.5;
}
.cvio-cookie-banner__link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cvio-cookie-banner__actions {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}
.cvio-cookie-banner__btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, filter 0.15s;
}
.cvio-cookie-banner__btn--ghost {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.58);
    border: 1px solid rgba(255,255,255,0.12);
}
.cvio-cookie-banner__btn--ghost:hover { background: rgba(255,255,255,0.13); color: #fff; }
.cvio-cookie-banner__btn--primary { background: var(--color-accent); color: #fff; }
.cvio-cookie-banner__btn--primary:hover { filter: brightness(1.1); }

/* Mobile: stack vertically, full phone width */
@media (max-width: 600px) {
    .cvio-cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-4);
    }
    .cvio-cookie-banner__body { max-width: 100%; }
    .cvio-cookie-banner__actions { width: 100%; }
    .cvio-cookie-banner__btn { flex: 1; text-align: center; }
}
/* ══════════════════════════════════════════════════════
   SERVICES PAGE — Full Redesign
   ══════════════════════════════════════════════════════ */

/* ── Hero reference strip ── */
.srv-hero-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.srv-hero-strip__item {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-subtle);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out),
                background var(--duration-fast) var(--ease-out);
}

.srv-hero-strip__item:hover {
    color: var(--color-accent);
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--color-accent-light);
}

/* ── Service Overview Grid ── */
.srv-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.srv-ov-card {
    position: relative;
    padding: var(--space-8);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.28s var(--ease-out),
                box-shadow 0.28s var(--ease-out),
                transform 0.28s var(--ease-out);
    cursor: pointer;
}

.srv-ov-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(37,99,235,0.05) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.28s;
    pointer-events: none;
}

.srv-ov-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12), 0 1px 0 rgba(37,99,235,0.08);
    transform: translateY(-5px);
}

.srv-ov-card:hover::before { opacity: 1; }

.srv-ov-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.srv-ov-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-accent-light), rgba(37,99,235,0.04));
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: background var(--duration-normal), color var(--duration-normal),
                transform var(--duration-normal) var(--ease-out);
}

.srv-ov-card:hover .srv-ov-card__icon {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1) rotate(-4deg);
}

.srv-ov-card__num {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--color-border-light);
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    user-select: none;
    transition: color var(--duration-normal);
}

.srv-ov-card:hover .srv-ov-card__num {
    color: rgba(37, 99, 235, 0.1);
}

.srv-ov-card__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.srv-ov-card__hook {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
    flex: 1;
}

.srv-ov-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.srv-ov-card__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-accent);
}

.srv-ov-card__arrow {
    color: var(--color-accent);
    transition: transform var(--duration-fast);
}

.srv-ov-card:hover .srv-ov-card__arrow {
    transform: translateX(5px);
}

/* Background watermark number */
.srv-ov-card__bg-num {
    position: absolute;
    bottom: -0.15em;
    right: -0.05em;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    color: var(--color-border-light);
    line-height: 1;
    letter-spacing: -0.08em;
    user-select: none;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.28s, color 0.28s;
}

.srv-ov-card:hover .srv-ov-card__bg-num {
    opacity: 0.35;
    color: rgba(37,99,235,0.3);
}

/* ── Sticky Service Navigator ── */
.srv-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(250, 250, 250, 0.94);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.36s var(--ease-out), opacity 0.3s ease;
    pointer-events: none;
}

.srv-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.srv-nav__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.srv-nav__inner::-webkit-scrollbar { display: none; }

.srv-nav__btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.srv-nav__btn:hover {
    color: var(--color-heading);
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

.srv-nav__btn.is-active {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
}

.srv-nav__btn-name {
    font-size: var(--text-sm);
}

/* ══════════════════════════════════════
   INDIVIDUAL SERVICE SECTIONS
   ══════════════════════════════════════ */

.srv-section {
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.srv-section:last-of-type { border-bottom: none; }

.srv-section--alt {
    background: var(--color-surface);
}

/* ── Section header: large icon + title + hook ── */
.srv-s-header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: var(--space-10);
}

.srv-s-icon {
    width: 76px;
    height: 76px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--color-accent-light), rgba(37, 99, 235, 0.03));
    border: 1.5px solid rgba(37, 99, 235, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.srv-s-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-heading);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 var(--space-2);
}

.srv-s-hook {
    font-size: var(--text-md);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ── Body: 55/45 split — description + CTA left, outcome card right ── */
.srv-s-body {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: var(--space-10);
    align-items: start;
    margin-bottom: var(--space-10);
}

.srv-s-desc {
    font-size: var(--text-lg);
    color: var(--color-body);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 44ch;
}

/* ── Outcome result card ── */
.srv-s-outcome {
    background: linear-gradient(150deg, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0.01) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}

.srv-s-outcome::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), rgba(37, 99, 235, 0.2));
}

.srv-s-outcome-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.srv-s-outcome-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    line-height: 1.3;
    margin-bottom: var(--space-4);
    letter-spacing: -0.025em;
}

.srv-s-outcome-desc {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ── Capabilities: 3 feature cards ── */
.srv-s-caps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    padding-top: var(--space-10);
    border-top: 1px solid var(--color-border-light);
}

.srv-s-cap {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    transition: border-color 0.24s var(--ease-out),
                box-shadow 0.24s var(--ease-out),
                transform 0.24s var(--ease-out);
}

.srv-section--alt .srv-s-cap {
    background: rgba(255, 255, 255, 0.72);
}

.srv-s-cap:hover {
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
    transform: translateY(-4px);
}

.srv-s-cap-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.srv-s-cap-title {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin: 0 0 var(--space-2);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.srv-s-cap-desc {
    font-size: var(--text-sm);
    color: var(--color-subtle);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* ── Ecosystem connection (dark section) ── */
.srv-connect {
    padding: var(--space-20) 0;
}

.srv-connect__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
    margin-top: var(--space-12);
}

.srv-connect__item {
    text-align: center;
}

.srv-connect__icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto var(--space-5);
    transition: background var(--duration-normal);
}

.srv-connect__item:hover .srv-connect__icon {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.45);
    color: #93b4f6;
}

.srv-connect__title {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: var(--space-3);
}

.srv-connect__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    line-height: var(--leading-relaxed);
    max-width: 30ch;
    margin: 0 auto;
}

/* ── White outline button (used in dark sections) ── */
.btn--outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ══════════════════════════════════════
   HEADER — inverted mode over dark hero
   ══════════════════════════════════════ */

.site-header.header--on-dark:not(.site-header--scrolled) .header__logo {
    color: #ffffff;
    transition: color var(--duration-normal) var(--ease-out);
}

.site-header.header--on-dark:not(.site-header--scrolled) .header__logo span {
    color: rgba(255, 255, 255, 0.45);
}

.site-header.header--on-dark:not(.site-header--scrolled) .header__nav a {
    color: rgba(255, 255, 255, 0.6);
}

.site-header.header--on-dark:not(.site-header--scrolled) .header__nav a:hover,
.site-header.header--on-dark:not(.site-header--scrolled) .header__nav a.is-active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.site-header.header--on-dark:not(.site-header--scrolled) .lang-dropdown__toggle {
    color: rgba(255, 255, 255, 0.6);
}

.site-header.header--on-dark:not(.site-header--scrolled) .header__hamburger span {
    background-color: #ffffff;
}

/* ══════════════════════════════════════
   SERVICES PAGE HERO — redesign
   ══════════════════════════════════════ */

#srv-hero {
    background: #080c18;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--space-32) + var(--space-8));
    padding-bottom: var(--space-20);
}

/* Subtle dot-grid pattern */
.srv-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(37, 99, 235, 0.25) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 100% at 70% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 70% 50%, black 30%, transparent 80%);
}

/* Blue radial glow — left */
.srv-hero__glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 65%;
    height: 130%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Violet accent glow — bottom right */
.srv-hero__glow-2 {
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Split layout ── */
.srv-hero__layout {
    display: grid;
    grid-template-columns: 52fr 48fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

.srv-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.srv-hero__eyebrow {
    color: var(--color-accent-muted);
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.28);
    margin-bottom: var(--space-6);
}

.srv-hero__title {
    font-size: clamp(2.5rem, 4.5vw + 0.5rem, 4.25rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.045em;
    line-height: 1.0;
    margin: 0 0 var(--space-6);
}

.srv-hero__desc {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.5);
    line-height: var(--leading-relaxed);
    max-width: 44ch;
    margin: 0 0 var(--space-10);
}

.srv-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.srv-hero__actions .btn--ghost-surface {
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.srv-hero__actions .btn--ghost-surface:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ── Service node grid (3×2) ── */
.srv-hero__visual {
    position: relative;
}

.srv-hero__nodes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.srv-hero__node {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: background 0.22s var(--ease-out),
                border-color 0.22s var(--ease-out),
                transform 0.22s var(--ease-out),
                box-shadow 0.22s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.srv-hero__node::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.22s;
    pointer-events: none;
}

.srv-hero__node:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

.srv-hero__node:hover::before { opacity: 1; }

.srv-hero__node-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.14);
    border: 1px solid rgba(37, 99, 235, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-muted);
    flex-shrink: 0;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.srv-hero__node:hover .srv-hero__node-icon {
    background: rgba(37, 99, 235, 0.28);
    border-color: rgba(37, 99, 235, 0.45);
    color: #93c5fd;
}

.srv-hero__node-name {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.srv-hero__node-hook {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .srv-hero__layout {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .srv-hero__nodes {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    #srv-hero {
        padding-bottom: var(--space-16);
    }

    .srv-hero__nodes {
        grid-template-columns: 1fr 1fr;
    }

    .srv-hero__node-hook {
        display: none;
    }
}

/* ── Responsive: service sections ── */
@media (max-width: 960px) {
    .srv-s-body {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .srv-s-desc {
        max-width: 100%;
    }

    .srv-s-caps {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
    }
}

@media (max-width: 640px) {
    .srv-section {
        padding: var(--space-12) 0;
    }

    .srv-s-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    .srv-s-icon {
        width: 56px;
        height: 56px;
    }

    .srv-s-caps {
        grid-template-columns: 1fr;
    }

    .srv-s-cap {
        padding: var(--space-5);
    }
}

