/* =========================================================
   NVK ENGINEERING — GLOBAL DESIGN SYSTEM
   Fluid layout, brand-aligned light/dark themes
   ========================================================= */

:root {
    color-scheme: light;
    --nvk-color-bg: #f2f4f6;
    --nvk-color-surface: #ffffff;
    --nvk-color-surface-muted: #e9edf1;
    --nvk-color-surface-raised: rgba(255, 255, 255, 0.88);
    --nvk-color-text: #11151a;
    --nvk-color-text-muted: #626d7b;
    --nvk-color-text-soft: #87919e;
    --nvk-color-primary: #008dd5;
    --nvk-color-primary-hover: #0078b8;
    --nvk-color-primary-soft: rgba(0, 141, 213, 0.09);
    --nvk-color-border: #dce2e8;
    --nvk-color-border-strong: #c6d0da;
    --nvk-color-header: rgba(255, 255, 255, 0.84);
    --nvk-color-header-solid: #ffffff;
    --nvk-color-success: #16855b;
    --nvk-color-danger: #c43d45;
    --nvk-color-focus: #008dd5;

    --nvk-font-body: "Manrope", sans-serif;
    --nvk-font-display: "Onest", "Manrope", sans-serif;

    --nvk-page-gutter: clamp(12px, 1.35vw, 24px);
    --nvk-content-gutter: clamp(18px, 3vw, 56px);
    --nvk-header-height: 76px;

    --nvk-radius-xs: 8px;
    --nvk-radius-sm: 12px;
    --nvk-radius-md: 18px;
    --nvk-radius-lg: 26px;
    --nvk-radius-pill: 999px;

    --nvk-shadow-sm: 0 3px 12px rgba(18, 29, 42, 0.055);
    --nvk-shadow-md: 0 18px 50px rgba(18, 29, 42, 0.12);
    --nvk-shadow-lg: 0 30px 90px rgba(18, 29, 42, 0.16);

    --nvk-transition-fast: 160ms ease;
    --nvk-transition-base: 240ms ease;
    --nvk-transition-slow: 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --nvk-color-bg: #07090c;
    --nvk-color-surface: #101319;
    --nvk-color-surface-muted: #171b22;
    --nvk-color-surface-raised: rgba(16, 19, 25, 0.9);
    --nvk-color-text: #f2f5f8;
    --nvk-color-text-muted: #a0a9b5;
    --nvk-color-text-soft: #737e8c;
    --nvk-color-primary: #008dd5;
    --nvk-color-primary-hover: #27a8ec;
    --nvk-color-primary-soft: rgba(0, 141, 213, 0.14);
    --nvk-color-border: #282d35;
    --nvk-color-border-strong: #3a424d;
    --nvk-color-header: rgba(7, 9, 12, 0.92);
    --nvk-color-header-solid: #0c0f14;
    --nvk-color-success: #63d6a1;
    --nvk-color-danger: #ff858b;
    --nvk-color-focus: #36b6f4;
    --nvk-shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.2);
    --nvk-shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --nvk-shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--nvk-color-bg);
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--nvk-color-bg);
    color: var(--nvk-color-text);
    font-family: var(--nvk-font-body);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    transition: background-color 220ms ease, color 220ms ease;
}

body, button, input, textarea, select { font-family: var(--nvk-font-body); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--nvk-color-focus); outline-offset: 4px; }
::selection { background: var(--nvk-color-primary); color: #fff; }

.nvk-site { min-height: 100vh; background: var(--nvk-color-bg); color: var(--nvk-color-text); }
.nvk-main { min-height: 56vh; }

/* Fluid containers: deliberately no 1440px max-width cap. */
.nvk-container {
    width: 100%;
    padding-inline: var(--nvk-content-gutter);
    margin: 0;
}
.nvk-section { padding-block: clamp(64px, 8vw, 132px); }
.nvk-text-muted { color: var(--nvk-color-text-muted); }
.nvk-display { font-family: var(--nvk-font-display); font-weight: 400; }
.nvk-eyebrow {
    margin: 0;
    color: var(--nvk-color-text-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.5;
    text-transform: uppercase;
}
.nvk-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 992px) {
    :root { --nvk-content-gutter: clamp(18px, 3.5vw, 32px); --nvk-header-height: 70px; }
}
@media (max-width: 576px) {
    :root { --nvk-page-gutter: 8px; --nvk-content-gutter: 18px; --nvk-header-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
