/* =========================================================================
   VEKTRASCALE SOLUTIONS - Design System
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
    /* Neutrals */
    --ink-1000: #060910;
    --ink-900:  #0e1320;
    --ink-800:  #1a2233;
    --ink-700:  #2b3548;
    --ink-600:  #3e4a61;
    --ink-500:  #525e74;
    --ink-400:  #8a94a8;
    --ink-300:  #b3bbc9;
    --ink-200:  #d6dbe4;
    --ink-150:  #e6e9ef;
    --ink-100:  #eef0f4;
    --ink-50:   #f7f8fa;
    --ink-0:    #ffffff;

    /* Brand blue */
    --accent-900: #00277a;
    --accent-800: #0040cc;
    --accent-700: #0052ff;
    --accent-600: #1f6bff;
    --accent-500: #3a82ff;
    --accent-400: #6aa1ff;
    --accent-300: #9bc0ff;
    --accent-200: #cddfff;
    --accent-100: #e4edff;
    --accent-50:  #f3f7ff;

    /* Semantic - light */
    --bg:             var(--ink-0);
    --bg-subtle:      var(--ink-50);
    --bg-elevated:    var(--ink-0);
    --surface:        var(--ink-0);
    --surface-hover:  var(--ink-50);

    --text:           var(--ink-900);
    --text-muted:     var(--ink-500);
    --text-subtle:    var(--ink-400);
    --text-inverse:   var(--ink-0);

    --border:         var(--ink-150);
    --border-strong:  var(--ink-200);
    --border-subtle:  var(--ink-100);

    --accent:         var(--accent-700);
    --accent-hover:   var(--accent-800);
    --accent-soft:    var(--accent-100);
    --accent-faint:   var(--accent-50);

    --ok:             #0d8a5f;
    --ok-soft:        rgba(13, 138, 95, 0.09);

    /* Shadows */
    --sh-xs:  0 1px 2px rgba(14, 19, 32, 0.05);
    --sh-sm:  0 1px 3px rgba(14, 19, 32, 0.06), 0 1px 2px rgba(14, 19, 32, 0.04);
    --sh-md:  0 4px 10px -2px rgba(14, 19, 32, 0.07), 0 2px 4px -2px rgba(14, 19, 32, 0.05);
    --sh-lg:  0 12px 28px -8px rgba(14, 19, 32, 0.12), 0 4px 10px -4px rgba(14, 19, 32, 0.06);
    --sh-xl:  0 24px 48px -16px rgba(14, 19, 32, 0.16), 0 8px 16px -8px rgba(14, 19, 32, 0.07);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Bricolage Grotesque', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    /* Sizing */
    --container: 1200px;
    --container-narrow: 760px;

    /* Radii */
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-full: 9999px;

    /* Timing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 140ms;
    --t-med: 240ms;
    --t-slow: 420ms;

    /* Header */
    --nav-h: 68px;
    --nav-bg: rgba(255, 255, 255, 0.82);
    --nav-border: rgba(14, 19, 32, 0.07);
}

[data-theme="dark"] {
    --bg:             #0a0e17;
    --bg-subtle:      #0d1322;
    --bg-elevated:    #111729;
    --surface:        #111729;
    --surface-hover:  #161e33;

    --text:           #eef2fa;
    --text-muted:     #9aa6bf;
    --text-subtle:    #67718a;
    --text-inverse:   var(--ink-900);

    --border:         rgba(255, 255, 255, 0.08);
    --border-strong:  rgba(255, 255, 255, 0.14);
    --border-subtle:  rgba(255, 255, 255, 0.05);

    --accent:         #5e97ff;
    --accent-hover:   #82b0ff;
    --accent-soft:    rgba(94, 151, 255, 0.14);
    --accent-faint:   rgba(94, 151, 255, 0.07);

    --ok:             #34d399;
    --ok-soft:        rgba(52, 211, 153, 0.10);

    --sh-xs:  0 1px 2px rgba(0, 0, 0, 0.35);
    --sh-sm:  0 2px 4px rgba(0, 0, 0, 0.35);
    --sh-md:  0 4px 12px rgba(0, 0, 0, 0.40);
    --sh-lg:  0 12px 28px rgba(0, 0, 0, 0.45);
    --sh-xl:  0 24px 56px rgba(0, 0, 0, 0.50);

    --nav-bg: rgba(10, 14, 23, 0.82);
    --nav-border: rgba(255, 255, 255, 0.07);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'cv11' 1, 'ss01' 1;
    overflow-x: clip;
    transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease-out); }

::selection { background: var(--accent-200); color: var(--ink-900); }
[data-theme="dark"] ::selection { background: rgba(94, 151, 255, 0.35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY & LAYOUT
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--text);
}

/* Display type - page titles and section headlines */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.018em;
}

p { color: var(--text-muted); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

main {
    position: relative;
    isolation: isolate;
}

section {
    padding: 104px 0;
    position: relative;
}

.section-head {
    max-width: 620px;
    margin-bottom: 64px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.section-head__eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-head--center .section-head__eyebrow::before { display: none; }
.section-head--center .section-head__eyebrow { color: var(--accent); }

.section-head__title {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text);
    text-wrap: balance;
}

.section-head__sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    text-wrap: pretty;
}

/* -------------------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 14.5px;
    font-weight: 550;
    letter-spacing: -0.006em;
    border-radius: var(--r-sm);
    cursor: pointer;
    position: relative;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
    white-space: nowrap;
    user-select: none;
}

.btn svg {
    transition: transform var(--t-med) var(--ease-out);
    flex-shrink: 0;
}

.btn--lg {
    padding: 14px 26px;
    font-size: 15.5px;
}

.btn--block { width: 100%; }

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--sh-xs);
}

.btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--sh-sm);
}

.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:active { box-shadow: none; }

[data-theme="dark"] .btn--primary { color: #0a0e17; }

.btn--ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: var(--sh-xs);
}

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

[data-theme="dark"] .btn--ghost { background: transparent; }
[data-theme="dark"] .btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-hover); }

.btn--ghost:hover svg { transform: translateX(2px); }

.btn--nav {
    padding: 9px 16px;
    font-size: 14px;
}

/* -------------------------------------------------------------------------
   5. NAVBAR
   ------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-med) var(--ease-out),
                box-shadow var(--t-med) var(--ease-out);
}

.nav.is-scrolled {
    border-bottom-color: var(--nav-border);
}

.nav__inner {
    height: var(--nav-h);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    transition: opacity var(--t-fast) var(--ease-out);
}

.nav__brand:hover { opacity: 0.8; }

.nav__logo {
    width: 34px;
    height: 34px;
}

.nav__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav__brand-mark {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav__brand-sub {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-top: 3px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.nav__link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.nav__link.is-active { color: var(--text); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
    position: relative;
}

.nav__theme-toggle:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.nav__icon {
    position: absolute;
    width: 18px;
    height: 18px;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}

[data-theme="light"] .nav__icon--sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .nav__icon--moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="dark"]  .nav__icon--sun { opacity: 0; transform: rotate(40deg) scale(0.6); }
[data-theme="dark"]  .nav__icon--moon { opacity: 1; transform: rotate(0) scale(1); }

/* Services dropdown */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav__dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 2px;
    transition: transform var(--t-fast) var(--ease-out);
}

.nav__dropdown:hover .nav__dropdown-toggle::after,
.nav__dropdown:focus-within .nav__dropdown-toggle::after { transform: rotate(180deg); }

.nav__dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 280px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out),
                visibility var(--t-fast);
    z-index: 1000;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
    display: block;
    padding: 9px 12px;
    border-radius: var(--r-xs);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

.nav__dropdown-link:hover,
.nav__dropdown-link:focus {
    background: var(--surface-hover);
    color: var(--text);
}

.nav__dropdown-link--all {
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
    padding-top: 11px;
    color: var(--accent);
}

.nav__dropdown-link--all:hover { color: var(--accent-hover); }

/* Mobile menu */
.nav__menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text);
}

.nav__menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}

.nav__menu-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__menu-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__mobile {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 24px;
    transform: translateY(-110%);
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--sh-lg);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 99;
}

.nav__mobile.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav__mobile-link {
    padding: 12px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--r-sm);
    transition: background var(--t-fast) var(--ease-out);
}

.nav__mobile-link:hover { background: var(--surface-hover); }

.nav__mobile-link--sub {
    font-size: 14.5px;
    color: var(--text-muted);
    padding: 9px 12px 9px 24px;
}

.nav__mobile-legal {
    display: grid;
    gap: 2px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.nav__mobile-cta { margin-top: 16px; }

/* -------------------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------------------- */
.hero {
    padding: calc(var(--nav-h) + 104px) 0 96px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, black 25%, transparent 78%);
    opacity: 0.6;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 45% at 70% 0%, var(--accent-faint), transparent 70%);
}

[data-theme="dark"] .hero__grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    opacity: 1;
}

.hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 11px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    box-shadow: var(--sh-xs);
    margin-bottom: 28px;
}

.hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 6.4vw, 5.1rem);
    line-height: 1.01;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 26px;
    text-wrap: balance;
}

.hero__headline-line { display: block; }

.hero__headline-accent { color: var(--accent); }

.hero__sub {
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.62;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 38px;
    text-wrap: pretty;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 56px;
}

.hero__trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    flex-wrap: wrap;
}

.hero__trust-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.hero__trust-marks {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero__trust-mark {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
}

/* Hero visual - dashboard below the statement */
.hero__visual {
    perspective: 2400px;
    position: relative;
    width: 100%;
    max-width: 960px;
    margin-top: 80px;
}

.dash {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(7deg);
    transition: transform 700ms var(--ease-out);
    will-change: transform;
}

.hero__visual:hover .dash { transform: rotateX(2deg); }

.dash__glow {
    position: absolute;
    inset: -32px;
    background: radial-gradient(ellipse at center, var(--accent-300), transparent 65%);
    opacity: 0.12;
    filter: blur(48px);
    border-radius: 50%;
    z-index: -1;
}

[data-theme="dark"] .dash__glow { opacity: 0.16; }

.dash__frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    overflow: hidden;
    transform: translateZ(0);
}

.dash__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
}

.dash__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-200);
}

[data-theme="dark"] .dash__dot { background: rgba(255, 255, 255, 0.14); }

.dash__title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-subtle);
    letter-spacing: 0.02em;
}

.dash__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.dash__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    transform: translateZ(24px);
}

.kpi__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.kpi__value {
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.kpi__delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--r-full);
    width: fit-content;
}

.kpi__delta--up {
    color: var(--ok);
    background: var(--ok-soft);
}

.dash__chart {
    height: 150px;
    padding: 8px 0;
    transform: translateZ(16px);
}

.dash__chart-svg { width: 100%; height: 100%; }

.dash__line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.2s var(--ease-out) 0.4s forwards;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }

.dash__dot-pulse {
    opacity: 0;
    animation: dotAppear 300ms var(--ease-out) 2.5s forwards;
}

@keyframes dotAppear { to { opacity: 1; } }

.dash__area { opacity: 0; animation: fadeIn 600ms ease 0.9s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.dash__bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    height: 56px;
    align-items: end;
    transform: translateZ(20px);
}

.bar {
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.bar span {
    display: block;
    width: 100%;
    height: 0;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    animation: barGrow 900ms var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 1.1s);
    opacity: 0.85;
}

.bar:nth-child(1) span { --i: 1; }
.bar:nth-child(2) span { --i: 2; }
.bar:nth-child(3) span { --i: 3; }
.bar:nth-child(4) span { --i: 4; }
.bar:nth-child(5) span { --i: 5; }
.bar:nth-child(6) span { --i: 6; }
.bar:nth-child(7) span { --i: 7; }

@keyframes barGrow {
    from { height: 0; }
    to   { height: var(--h); }
}

.dash__float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    color: var(--text);
    transform-style: preserve-3d;
}

.dash__float--top {
    top: -24px;
    right: -24px;
    transform: translateZ(48px);
    color: var(--accent);
    animation: floatCard 6s var(--ease-in-out) infinite;
    animation-delay: -2s;
}

.dash__float--bot {
    bottom: -24px;
    left: -24px;
    transform: translateZ(56px);
    animation: floatCardBot 6s var(--ease-in-out) infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateZ(48px) translateY(0); }
    50%      { transform: translateZ(48px) translateY(-6px); }
}

@keyframes floatCardBot {
    0%, 100% { transform: translateZ(56px) translateY(0); }
    50%      { transform: translateZ(56px) translateY(-8px); }
}

.dash__float-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

.dash__float-value {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--text);
    letter-spacing: -0.01em;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.dash__float-pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(13, 138, 95, 0.4);
    animation: pulseDot 2s var(--ease-in-out) infinite;
}

@keyframes pulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(13, 138, 95, 0.40); }
    70%  { box-shadow: 0 0 0 9px rgba(13, 138, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 138, 95, 0); }
}

/* -------------------------------------------------------------------------
   7. TRUST / STATS
   ------------------------------------------------------------------------- */
.trust {
    padding: 56px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
}

.stat + .stat {
    border-left: 1px solid var(--border);
    padding-left: 36px;
}

.stat__value {
    font-size: clamp(1.9rem, 3.2vw, 2.5rem);
    font-weight: 680;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat__value--text {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
}

.stat__label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   8. SERVICES
   ------------------------------------------------------------------------- */
.services { padding: 112px 0; }

/* Cell grid - hairline-divided panels, no floating cards */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    counter-reset: svc;
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    counter-increment: svc;
}

.service {
    position: relative;
    height: 100%;
    background: var(--bg);
    transition: background var(--t-med) var(--ease-out);
}

.service-link:hover .service { background: var(--bg-subtle); }

[data-theme="dark"] .service { background: var(--bg-elevated); }
[data-theme="dark"] .service-link:hover .service { background: var(--surface-hover); }

.service__inner {
    padding: 36px 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service__inner::before {
    content: counter(svc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 30px;
    transition: color var(--t-fast) var(--ease-out);
}

.service-link:hover .service__inner::before { color: var(--accent); }

.service__icon {
    width: 26px;
    height: 26px;
    color: var(--accent);
    margin-bottom: 18px;
}

.service__icon svg { width: 24px; height: 24px; }

.service__title {
    font-size: 18px;
    font-weight: 630;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
    transition: color var(--t-fast) var(--ease-out);
}

.service-link:hover .service__title { color: var(--accent); }

.service__desc {
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.service__bullets li {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 9px;
}

.service__bullets li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.service__arrow {
    position: absolute;
    top: 34px;
    right: 30px;
    color: var(--text-subtle);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-med) var(--ease-out),
                transform var(--t-med) var(--ease-out),
                color var(--t-fast) var(--ease-out);
}

.service-link:hover .service__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent);
}

/* -------------------------------------------------------------------------
   9. WHY CHOOSE US
   ------------------------------------------------------------------------- */
.why {
    background: var(--ink-1000);
    padding: 120px 0;
}

[data-theme="dark"] .why {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.why__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 80px;
    align-items: start;
}

.why__copy {
    position: sticky;
    top: calc(var(--nav-h) + 40px);
}

.why__copy .section-head__eyebrow { color: var(--accent-400); }
.why__copy .section-head__eyebrow::before { background: var(--accent-400); }
.why__copy .section-head__title { color: #fff; }
.why__copy .section-head__sub { color: rgba(255, 255, 255, 0.62); margin-bottom: 32px; }

[data-theme="dark"] .why__copy .section-head__eyebrow { color: var(--text-muted); }
[data-theme="dark"] .why__copy .section-head__title { color: var(--text); }
[data-theme="dark"] .why__copy .section-head__sub { color: var(--text-muted); }

.why__list {
    display: flex;
    flex-direction: column;
}

.why__item {
    display: flex;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

[data-theme="dark"] .why__item { border-bottom-color: var(--border); }

.why__item:first-child { padding-top: 0; }
.why__item:last-child { border-bottom: none; padding-bottom: 0; }

.why__num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-400);
    padding-top: 3px;
    flex-shrink: 0;
}

[data-theme="dark"] .why__num { color: var(--accent); }

.why__title {
    font-size: 16.5px;
    font-weight: 620;
    letter-spacing: -0.012em;
    margin-bottom: 7px;
    color: #fff;
}

[data-theme="dark"] .why__title { color: var(--text); }

.why__desc {
    font-size: 14.5px;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.60);
}

[data-theme="dark"] .why__desc { color: var(--text-muted); }

/* -------------------------------------------------------------------------
   10. CONTACT
   ------------------------------------------------------------------------- */
.contact { padding: 112px 0; }

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 36px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    text-align: left;
    width: 100%;
    transition: border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
}

.contact__detail:hover {
    border-color: var(--accent-300);
    box-shadow: var(--sh-sm);
}

[data-theme="dark"] .contact__detail:hover { border-color: rgba(94, 151, 255, 0.4); }

.contact__detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: var(--accent-faint);
    color: var(--accent);
    flex-shrink: 0;
}

.contact__detail-icon svg { width: 19px; height: 19px; }

.contact__detail-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 3px;
}

.contact__detail-value {
    display: block;
    font-size: 14.5px;
    font-weight: 550;
    color: var(--text);
}

.contact__form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--sh-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact__form-head h3 {
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}

.contact__form-head p {
    font-size: 14px;
    color: var(--text-muted);
}

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text);
}

.field--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.vs-input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14.5px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    transition: border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
}

.vs-input::placeholder { color: var(--text-subtle); }

.vs-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.vs-input.has-error { border-color: #d4453a; }

.vs-textarea { resize: vertical; min-height: 120px; }

.contact__form-foot {
    font-size: 12.5px;
    color: var(--text-subtle);
    line-height: 1.5;
}

.contact__form-success {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ok-soft);
    border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent);
    border-radius: var(--r-sm);
    color: var(--ok);
    font-size: 14px;
}

.contact__form-success[hidden] { display: none; }

.contact__form-success strong { display: block; color: var(--text); }
.contact__form-success span { color: var(--text-muted); }

.contact__form-error {
    padding: 13px 16px;
    background: rgba(212, 69, 58, 0.07);
    border: 1px solid rgba(212, 69, 58, 0.25);
    border-radius: var(--r-sm);
    color: #c03a30;
    font-size: 14px;
}

[data-theme="dark"] .contact__form-error { color: #ff8a80; }

#submit-btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Email choice modal */
.email-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 14, 23, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.email-choice-modal[hidden] { display: none; }

.email-choice-modal__panel {
    width: 100%;
    max-width: 380px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-choice-modal__panel h3 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom: 8px;
}

.email-choice-modal__close {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-subtle);
    padding: 8px;
    border-radius: var(--r-sm);
    transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}

.email-choice-modal__close:hover {
    color: var(--text);
    background: var(--surface-hover);
}

/* -------------------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
    padding: 64px 0 0;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: 64px;
    padding-bottom: 56px;
}

.footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer__logo { width: 28px; height: 28px; }

.footer__brand-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--text);
}

.footer__tagline {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 240px;
    line-height: 1.6;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 6px;
}

.footer__link {
    font-size: 14px;
    color: var(--text-muted);
    width: fit-content;
}

.footer__link:hover { color: var(--text); }

.footer-legal-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__word {
    font-family: var(--font-display);
    font-size: clamp(56px, 12.5vw, 170px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.92;
    text-align: center;
    color: var(--text);
    opacity: 0.05;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: -10px;
}

[data-theme="dark"] .footer__word { opacity: 0.07; }

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

.footer__copy {
    font-size: 13px;
    color: var(--text-subtle);
}

.footer__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-subtle);
}

.footer__dot { opacity: 0.5; }

/* -------------------------------------------------------------------------
   12. LEGAL SIDEBAR
   ------------------------------------------------------------------------- */
.legal-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0 16px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--r-md) 0 0 var(--r-md);
    box-shadow: var(--sh-lg);
}

.legal-sidebar__label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: 0 16px 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.legal-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-sidebar__link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 7px 16px 7px 12px;
    border-radius: var(--r-xs) 0 0 var(--r-xs);
    border-left: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out);
    display: block;
}

.legal-sidebar__link:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-left-color: var(--border-strong);
}

.legal-sidebar__link.is-active {
    color: var(--accent);
    background: var(--accent-faint);
    border-left-color: var(--accent);
    font-weight: 550;
}

@media (max-width: 1280px) {
    .legal-sidebar { display: none; }
}

/* -------------------------------------------------------------------------
   13. MOTION & UTILITIES
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    will-change: opacity, transform;
}

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

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 110;
    pointer-events: none;
}

.scroll-progress__bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--t-med) var(--ease-out);
}

.scroll-progress__bar.is-active { opacity: 1; }

/* -------------------------------------------------------------------------
   14. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .nav__links { display: none; }
    .nav__menu-toggle { display: flex; }
    .btn--nav { display: none; }

    .hero__visual { margin-top: 64px; }

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

    .why__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .why__copy { position: static; }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 720px) {
    section { padding: 72px 0; }
    .services { padding: 80px 0; }
    .contact { padding: 80px 0; }

    .section-head { margin-bottom: 44px; }

    .hero { padding: calc(var(--nav-h) + 64px) 0 64px; }

    .hero__ctas .btn { flex: 1 1 auto; }
    .hero__visual { margin-top: 48px; }
    .why { padding: 88px 0; }
    .service__inner { padding: 28px 24px; }

    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat + .stat {
        border-left: none;
        padding-left: 0;
    }

    .stat:nth-child(even) {
        border-left: 1px solid var(--border);
        padding-left: 24px;
    }

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

    .dash__kpis { grid-template-columns: repeat(3, 1fr); gap: 7px; }
    .kpi { padding: 10px 11px; }
    .kpi__value { font-size: 15px; }

    .dash__float--top { right: -8px; top: -18px; }
    .dash__float--bot { left: -8px; bottom: -18px; }

    .contact__form { padding: 26px 20px; }

    .footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

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

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

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

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

    .dash { transform: none; }
}
