/* ==========================================================================
   ARTAMIND — corporate site
   Enterprise financial software vendor. Persian, RTL, light + dark.

   Everything here is token-driven: components never carry a raw hex value,
   so a theme is a change to one block and not to two hundred rules.

   Fonts live in fonts/vazirmatn/vazirmatn.css — never a CDN.
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
    /* ---- primitives ---------------------------------------------------- */
    --slate-50:  #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --slate-950: #020617;

    /* Brand blues, taken from the logo mark itself — the site used to be
       violet while its own logo was navy. */
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --blue-800: #1E40AF;
    --blue-900: #1E3A8A;
    --navy-950: #0D1B4B;

    /* ---- semantic: light (default) ------------------------------------- */
    --bg:            var(--slate-50);
    --bg-alt:        #FFFFFF;
    --surface:       #FFFFFF;
    --surface-2:     var(--slate-100);
    --surface-sunken: var(--slate-100);
    --surface-invert: var(--slate-900);
    --on-invert:     var(--slate-50);

    --text:          var(--slate-900);
    --text-muted:    var(--slate-600);
    /* از slate-500 تیره‌تر: ریزمتن‌ها روی زمینه‌ی #F8FAFC با ۴٫۵ فاصله‌ی کمی
       داشتند و این فهرست‌ها ۱۳ پیکسلی‌اند. */
    --text-subtle:   #5A6A80;
    --text-invert:   #FFFFFF;

    --border:        var(--slate-200);
    --border-strong: var(--slate-300);

    --brand:         var(--blue-700);
    --brand-hover:   var(--blue-800);
    --brand-text:    var(--blue-700);
    --brand-soft:    #EFF6FF;
    --brand-line:    var(--blue-200);
    --on-brand:      #FFFFFF;

    --positive:      #15803D;
    --positive-soft: #F0FDF4;
    --warning:       #B45309;
    --warning-soft:  #FFFBEB;
    --negative:      #B91C1C;
    --negative-soft: #FEF2F2;

    --focus:         var(--blue-600);
    --scrim:         rgba(15, 23, 42, 0.55);

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, .07), 0 2px 4px rgba(15, 23, 42, .04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 4px 8px rgba(15, 23, 42, .05);

    /* ---- scale (theme-independent) ------------------------------------- */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --text-2xs: .75rem;
    --text-xs:  .8125rem;
    --text-sm:  .875rem;
    --text-md:  1rem;
    --text-lg:  1.125rem;
    --text-xl:  1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;

    --leading-tight: 1.35;
    --leading-body:  1.9;   /* Persian needs more leading than Latin */
    --leading-dense: 1.75;

    --container: 1200px;
    --container-narrow: 780px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 7vw, 6rem);
    --nav-h: 68px;

    --ease: cubic-bezier(.2, .6, .3, 1);
    --dur-fast: 140ms;
    --dur:      220ms;
    --dur-slow: 380ms;

    --z-base: 1;
    --z-sticky: 40;
    --z-nav: 50;
    --z-overlay: 60;

    color-scheme: light;
}

/* ---- semantic: dark ---------------------------------------------------- */
:root[data-theme="dark"] {
    --bg:            #0B1220;
    --bg-alt:        #0E1729;
    --surface:       #111C31;
    --surface-2:     #16233B;
    --surface-sunken: #0A1020;
    /* در حالتِ تیره، نوارِ «تأکید» یک تخته‌ی روشن نمی‌شود — چشم را می‌زند.
       کمی روشن‌تر از زمینه می‌ماند تا هنوز جدا دیده شود. */
    --surface-invert: #16233B;
    --on-invert:     #F1F5F9;

    --text:          #F1F5F9;
    --text-muted:    #A8B8CE;
    --text-subtle:   #8296B2;
    --text-invert:   var(--slate-900);

    --border:        #1E2E4A;
    --border-strong: #2C4062;

    --brand:         var(--blue-600);
    --brand-hover:   var(--blue-500);
    --brand-text:    var(--blue-400);
    --brand-soft:    rgba(37, 99, 235, .16);
    --brand-line:    rgba(96, 165, 250, .35);
    --on-brand:      #FFFFFF;

    --positive:      #4ADE80;
    --positive-soft: rgba(34, 197, 94, .14);
    --warning:       #FBBF24;
    --warning-soft:  rgba(245, 158, 11, .14);
    --negative:      #F87171;
    --negative-soft: rgba(239, 68, 68, .14);

    --focus:         var(--blue-400);
    --scrim:         rgba(2, 6, 23, .7);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);

    color-scheme: dark;
}

/* The visitor's OS preference decides, until they say otherwise. The guard
   keeps an explicit light choice from being overridden by the media query. */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:            #0B1220;
        --bg-alt:        #0E1729;
        --surface:       #111C31;
        --surface-2:     #16233B;
        --surface-sunken: #0A1020;
        --surface-invert: #16233B;
        --on-invert:     #F1F5F9;

        --text:          #F1F5F9;
        --text-muted:    #A8B8CE;
        --text-subtle:   #8296B2;
        --text-invert:   var(--slate-900);

        --border:        #1E2E4A;
        --border-strong: #2C4062;

        --brand:         var(--blue-600);
        --brand-hover:   var(--blue-500);
        --brand-text:    var(--blue-400);
        --brand-soft:    rgba(37, 99, 235, .16);
        --brand-line:    rgba(96, 165, 250, .35);
        --on-brand:      #FFFFFF;

        --positive:      #4ADE80;
        --positive-soft: rgba(34, 197, 94, .14);
        --warning:       #FBBF24;
        --warning-soft:  rgba(245, 158, 11, .14);
        --negative:      #F87171;
        --negative-soft: rgba(239, 68, 68, .14);

        --focus:         var(--blue-400);
        --scrim:         rgba(2, 6, 23, .7);

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, .55);

        color-scheme: dark;
    }
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Vazirmatn, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--text-md);
    line-height: var(--leading-body);
    font-feature-settings: "ss01";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: var(--leading-tight);
    font-weight: 700;
    letter-spacing: -.01em;
}

p { margin: 0; }

a {
    color: var(--brand-text);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

a:hover { color: var(--brand-hover); }

ul, ol { margin: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }

strong { font-weight: 700; color: var(--text); }

/* One focus ring for the whole site, visible in both themes.

   tabindex="-1" is excluded on purpose. Such an element is never reached by
   Tab — it is only focused by script, and the one doing it here is Blazor's
   <FocusOnNavigate Selector="h1">, which moves focus to the page heading on
   every navigation so a screen reader announces the new page. Painting a ring
   around the <h1> on first paint told a sighted visitor nothing and looked
   like a bug. Keyboard users still get the ring on everything they can Tab to. */
:where(a, button, summary, input, textarea, [tabindex]):not([tabindex="-1"]):focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

/* Kept out of our rule above AND silenced here, because leaving it out only
   hands the job to the browser's own focus ring — which is exactly what the
   user then sees: a black box around the <h1> on first paint.

   It shows up only when the browser thinks the last input was the keyboard;
   typing a URL and pressing Enter is enough. That is why it survives a casual
   check and still greets a real visitor. */
[tabindex="-1"]:focus,
[tabindex="-1"]:focus-visible {
    outline: none;
}

::selection {
    background: var(--brand-soft);
    color: var(--text);
}

/* Numbers in a financial context line up or they are not worth printing. */
.num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: -100px;
    transform: translateX(50%);
    z-index: var(--z-overlay);
    padding: var(--space-3) var(--space-5);
    background: var(--brand);
    color: var(--on-brand);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus-visible {
    top: 0;
    color: var(--on-brand);
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.section {
    padding-block: var(--section-y);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.wrap {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.wrap--narrow {
    width: min(100% - (var(--gutter) * 2), var(--container-narrow));
    margin-inline: auto;
}

.section-head {
    max-width: 62ch;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    color: var(--brand-text);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: .01em;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}

.section-head--center .eyebrow::after {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    flex: none;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: var(--space-4);
}

.section-title .accent { color: var(--brand-text); }

.section-lead {
    color: var(--text-muted);
    font-size: var(--text-lg);
    line-height: var(--leading-body);
}

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */

/* ---- buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-3) var(--space-6);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}

.btn svg { flex: none; }

.btn--primary {
    background: var(--brand);
    color: var(--on-brand);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--brand-hover);
    color: var(--on-brand);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--brand);
    color: var(--brand-text);
    background: var(--brand-soft);
}

.btn--quiet {
    background: transparent;
    color: var(--text-muted);
    padding-inline: var(--space-4);
}

.btn--quiet:hover { color: var(--brand-text); background: var(--surface-2); }

.btn--sm { min-height: 38px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

.btn--block { width: 100%; }

/* ---- surfaces ---------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

.card--hover:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ---- small parts ------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: var(--text-2xs);
    font-weight: 500;
    line-height: 1.7;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-text);
    border: 1px solid var(--brand-line);
    font-size: var(--text-2xs);
    font-weight: 600;
    line-height: 1.8;
    white-space: nowrap;
}

.badge--positive { background: var(--positive-soft); color: var(--positive); border-color: color-mix(in srgb, var(--positive) 30%, transparent); }
.badge--warning  { background: var(--warning-soft);  color: var(--warning);  border-color: color-mix(in srgb, var(--warning) 30%, transparent); }

.icon-tile {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-text);
    border: 1px solid var(--brand-line);
}

/* A list whose every row starts with a check. The mark is drawn, not typed,
   so it keeps its colour in both themes and never falls back to an emoji. */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.check-list li {
    position: relative;
    padding-inline-start: 1.6rem;
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
    color: var(--text-muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .62em;
    width: 11px;
    height: 6px;
    border: 2px solid var(--brand-text);
    border-top: 0;
    border-inline-end: 0;
    transform: rotate(-45deg);
}

.dot-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dot-list li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
    color: var(--text-muted);
}

.dot-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .78em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-text);
}

/* ==========================================================================
   5. REVEAL (motion)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .reveal { opacity: 1; transform: none; }
}

/* Without JavaScript nothing should stay invisible. */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   6. NAVIGATION
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-inline: var(--gutter);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav.is-stuck {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    flex: none;
    color: var(--text);
}

.nav__brand:hover { color: var(--text); }

.nav__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    flex: none;
}

.nav__logo img { width: 100%; height: 100%; object-fit: contain; }

.nav__name {
    display: block;
    font-size: var(--text-md);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.3;
}

.nav__tagline {
    display: block;
    font-size: var(--text-2xs);
    color: var(--text-subtle);
    line-height: 1.3;
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-inline-start: auto;
}

.nav__links a {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
}

.nav__links a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav__tools {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: none;
}

.icon-btn {
    /* ۴۴ پیکسل، نه ۴۰: کمینه‌ی هدفِ لمسی. روی دسکتاپ هم بدنما نیست. */
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.icon-btn:hover {
    color: var(--brand-text);
    border-color: var(--brand);
    background: var(--brand-soft);
}

/* The toggle shows the theme you would switch TO, not the one you are in. */
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

.nav__burger { display: none; }

@media (max-width: 1100px) {
    .nav__links { display: none; }
    .nav__burger { display: grid; }

    .nav__links.is-open {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-3) var(--gutter) var(--space-6);
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - var(--nav-h));
        overflow-y: auto;
    }

    .nav__links.is-open a {
        padding: var(--space-4) var(--space-2);
        border-bottom: 1px solid var(--border);
        font-size: var(--text-md);
        border-radius: 0;
    }

    .nav__links.is-open .nav__cta { margin-top: var(--space-4); }
}

.nav__cta {
    background: var(--brand);
    color: var(--on-brand) !important;
    font-weight: 600;
}

.nav__cta:hover { background: var(--brand-hover) !important; }

@media (max-width: 560px) {
    .nav__tagline { display: none; }
}

/* ==========================================================================
   7. HERO
   ========================================================================== */

.hero {
    position: relative;
    padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, var(--brand-soft), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-pill);
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: var(--text-xs);
    font-weight: 600;
}

.hero__badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--positive);
    flex: none;
}

.hero__title {
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.3;
    margin-bottom: var(--space-5);
}

.hero__title .accent { color: var(--brand-text); }

.hero__title .quiet {
    display: block;
    color: var(--text-muted);
    font-size: .62em;
    font-weight: 600;
    letter-spacing: -.01em;
    margin-top: var(--space-3);
}

.hero__lead {
    max-width: 56ch;
    margin-bottom: var(--space-8);
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.stat__value {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat__label {
    font-size: var(--text-xs);
    color: var(--text-subtle);
    line-height: 1.6;
}

/* ---- hero panel: an illustration of the ledger, not a screenshot ------- */
.hero__panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero__panel-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.hero__panel-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
}

.hero__panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-strong);
    flex: none;
}

.hero__panel-body { padding: var(--space-5); }

.ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs);
    font-variant-numeric: tabular-nums;
}

.ledger th {
    padding: 0 var(--space-2) var(--space-2);
    color: var(--text-subtle);
    font-size: var(--text-2xs);
    font-weight: 600;
    text-align: start;
    border-bottom: 1px solid var(--border);
}

.ledger td {
    padding: var(--space-2);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    line-height: 1.8;
}

.ledger td:last-child, .ledger th:last-child { text-align: end; }

.ledger tr:last-child td {
    border-bottom: 0;
    border-top: 2px solid var(--border-strong);
    color: var(--text);
    font-weight: 700;
}

.hero__panel-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.mini-stat {
    flex: 1 1 100px;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.mini-stat__label {
    font-size: var(--text-2xs);
    color: var(--text-subtle);
    line-height: 1.6;
}

.mini-stat__value {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.5;
}

.mini-stat__value.is-positive { color: var(--positive); }

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__panel { order: -1; }
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   8. IMPACT STRIP
   ========================================================================== */

.impact {
    background: var(--surface-invert);
    color: var(--on-invert);
    padding-block: clamp(2rem, 4vw, 3rem);
    border-block: 1px solid color-mix(in srgb, var(--on-invert) 10%, transparent);
}

.impact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--space-6);
}

.impact__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-inline-start: var(--space-5);
    border-inline-start: 2px solid color-mix(in srgb, var(--on-invert) 22%, transparent);
}

.impact__value {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.impact__label {
    font-size: var(--text-xs);
    line-height: 1.7;
    color: color-mix(in srgb, var(--on-invert) 72%, transparent);
}

/* ==========================================================================
   9. SERVICES
   ========================================================================== */

.service {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.service h3 {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.service p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-2);
}

/* ==========================================================================
   10. PRODUCTS
   ========================================================================== */

.product {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.product__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.product__head h3 {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.product__latin {
    display: block;
    font-size: var(--text-2xs);
    letter-spacing: .04em;
    color: var(--text-subtle);
    direction: ltr;
    text-align: end;
}

.product > p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

.product__meta {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

.product__meta .metric {
    color: var(--brand-text);
    font-weight: 700;
}

.product__get {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background: var(--brand-soft);
    color: var(--brand-text);
    font-size: var(--text-sm);
    font-weight: 600;
}

.product__get:hover {
    background: var(--brand);
    color: var(--on-brand);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-row p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    max-width: 60ch;
}

/* ==========================================================================
   11. FIT / AUDIENCE
   ========================================================================== */

.fit h3 {
    font-size: var(--text-lg);
    margin-block: var(--space-4) var(--space-2);
}

.fit > p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    margin-bottom: var(--space-4);
}

.notfit {
    margin-top: var(--space-6);
    padding: var(--space-6);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
}

.notfit h3 {
    font-size: var(--text-md);
    margin-bottom: var(--space-3);
}

.notfit p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

/* ==========================================================================
   12. CAPABILITY MAP
   ========================================================================== */

.cap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    transition: border-color var(--dur) var(--ease);
}

.cap:hover { border-color: var(--border-strong); }

.cap h3 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-md);
}

.cap h3 .n {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-text);
    border: 1px solid var(--brand-line);
    font-size: var(--text-2xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cap ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.cap li {
    position: relative;
    padding-inline-start: 1.1rem;
    font-size: var(--text-xs);
    line-height: var(--leading-dense);
    color: var(--text-muted);
}

.cap li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .82em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-strong);
}

/* ==========================================================================
   13. COMPLIANCE
   ========================================================================== */

.comp {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
}

.comp__col { padding: var(--space-6); }

.comp__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.comp__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.comp__col li {
    position: relative;
    padding-inline-start: 1.7rem;
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
    color: var(--text-muted);
}

.comp__col--live li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .58em;
    width: 11px;
    height: 6px;
    border: 2px solid var(--positive);
    border-top: 0;
    border-inline-end: 0;
    transform: rotate(-45deg);
}

.comp__col--soon li::before {
    content: "";
    position: absolute;
    inset-inline-start: 1px;
    top: .72em;
    width: 9px;
    height: 9px;
    border: 2px solid var(--warning);
    border-radius: 50%;
}

.comp__note {
    margin-top: var(--space-5);
    padding: var(--space-5);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   14. AI CAPABILITIES + INDUSTRIES
   ========================================================================== */

.aicap {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.aicap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-1);
}

.aicap h3 {
    font-size: var(--text-md);
    line-height: 1.7;
}

.aicap > p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

.aicap__metric {
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

.aicap__metric .big {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--brand-text);
    font-variant-numeric: tabular-nums;
    margin-inline-end: var(--space-2);
}

.industry h3 {
    font-size: var(--text-md);
    margin-bottom: var(--space-3);
}

.industry p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    margin-block: var(--space-3);
}

.industry__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.industry__stat {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand-text);
}

/* ==========================================================================
   15. BEFORE / AFTER
   ========================================================================== */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

@media (max-width: 860px) {
    .compare { grid-template-columns: 1fr; }
}

.compare__col { padding: var(--space-6); }

.compare__label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    font-weight: 700;
}

.compare__col--before .compare__label { color: var(--negative); }
.compare__col--after  .compare__label { color: var(--positive); }

.compare__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.compare__col li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
    color: var(--text-muted);
}

.compare__col li svg { flex: none; margin-top: .45em; }
.compare__col--before li svg { color: var(--negative); }
.compare__col--after  li svg { color: var(--positive); }

/* ==========================================================================
   16. PROCESS
   ========================================================================== */

.steps {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding-inline-start: var(--space-8);
}

.steps::before {
    content: "";
    position: absolute;
    inset-inline-start: 15px;
    top: .6rem;
    bottom: .6rem;
    width: 2px;
    background: var(--border);
}

.steps li { position: relative; }

.steps__n {
    position: absolute;
    inset-inline-start: calc(var(--space-8) * -1);
    top: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--brand);
    color: var(--brand-text);
    font-size: var(--text-xs);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.steps h3 {
    font-size: var(--text-md);
    margin-bottom: var(--space-2);
    padding-top: var(--space-1);
}

.steps p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    max-width: 68ch;
}

/* ==========================================================================
   17. ABOUT
   ========================================================================== */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 900px) {
    .about { grid-template-columns: 1fr; }
}

.about h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: var(--space-4);
}

.about h2 .accent { color: var(--brand-text); }

.about__lead {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
}

.promises {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.promises li {
    display: flex;
    gap: var(--space-4);
}

.promises strong {
    display: block;
    font-size: var(--text-md);
    margin-bottom: var(--space-1);
}

.promises span {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
}

/* ==========================================================================
   18. TECH
   ========================================================================== */

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.tech li {
    list-style: none;
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    direction: ltr;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tech li:hover { border-color: var(--brand); color: var(--brand-text); }

/* ==========================================================================
   19. TEAM + TESTIMONIALS
   ========================================================================== */

.person__avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    color: var(--brand-text);
    margin-bottom: var(--space-4);
}

.person h3 { font-size: var(--text-md); }

.person__role {
    display: block;
    margin-block: var(--space-1) var(--space-3);
    color: var(--brand-text);
    font-size: var(--text-xs);
    font-weight: 600;
}

.person p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

.quote {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.quote__text {
    color: var(--text);
    font-size: var(--text-md);
    line-height: var(--leading-body);
}

.quote__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.quote__initials {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
}

.quote__author strong { display: block; font-size: var(--text-sm); }

.quote__author span {
    display: block;
    color: var(--text-subtle);
    font-size: var(--text-xs);
    line-height: 1.6;
}

.stars { display: flex; gap: 2px; color: var(--warning); margin-top: var(--space-1); }

/* ==========================================================================
   20. FAQ
   ========================================================================== */

.faq {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur) var(--ease);
}

.faq details[open] { border-color: var(--border-strong); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    min-height: 44px;
    cursor: pointer;
    font-size: var(--text-md);
    font-weight: 600;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: none;
    border: 2px solid var(--text-subtle);
    border-top: 0;
    border-inline-start: 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
    border-color: var(--brand-text);
}

.faq__answer {
    padding: 0 var(--space-5) var(--space-5);
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
}

/* ==========================================================================
   21. CONTACT
   ========================================================================== */

.contact {
    padding: clamp(2.5rem, 6vw, 4rem);
    background: var(--surface-invert);
    color: var(--on-invert);
    border: 1px solid color-mix(in srgb, var(--on-invert) 12%, transparent);
    border-radius: var(--radius-xl);
    text-align: center;
}

.contact h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: var(--space-4);
}

.contact p {
    max-width: 62ch;
    margin: 0 auto var(--space-8);
    color: color-mix(in srgb, var(--on-invert) 78%, transparent);
    font-size: var(--text-md);
}

.contact__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.contact .btn--outline {
    background: transparent;
    border-color: color-mix(in srgb, var(--on-invert) 28%, transparent);
    color: var(--on-invert);
}

.contact .btn--outline:hover {
    background: color-mix(in srgb, var(--on-invert) 10%, transparent);
    border-color: var(--on-invert);
    color: var(--on-invert);
}

/* ==========================================================================
   22. FOOTER
   ========================================================================== */

.footer {
    padding-block: clamp(3rem, 6vw, 4.5rem) var(--space-8);
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand p {
    margin-block: var(--space-4);
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-dense);
    max-width: 42ch;
}

.footer__social { display: flex; gap: var(--space-2); }

.footer__col h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 700;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }

.footer__col a, .footer__col span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer__col a:hover { color: var(--brand-text); }
.footer__col svg { flex: none; color: var(--text-subtle); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-6);
    color: var(--text-subtle);
    font-size: var(--text-xs);
    line-height: 1.9;
}

/* ==========================================================================
   23. BACK TO TOP
   ========================================================================== */

#back-to-top {
    position: fixed;
    inset-inline-end: var(--space-5);
    bottom: var(--space-5);
    z-index: var(--z-sticky);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
                visibility var(--dur) var(--ease), color var(--dur) var(--ease);
}

#back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { color: var(--brand-text); border-color: var(--brand); }

/* ==========================================================================
   24. BLAZOR ERROR UI
   ========================================================================== */

#blazor-error-ui {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--z-overlay);
    display: none;
    padding: var(--space-4) var(--gutter);
    background: var(--negative-soft);
    color: var(--negative);
    border-top: 1px solid var(--negative);
    font-size: var(--text-sm);
}

#blazor-error-ui .dismiss { cursor: pointer; opacity: .7; margin-inline-start: var(--space-3); }

/* ==========================================================================
   25. PRINT
   ========================================================================== */

@media print {
    .nav, #back-to-top, .hero__actions, .contact__actions { display: none; }
    body { background: #fff; color: #000; }
    .card, .panel { break-inside: avoid; border-color: #ccc; }
}
