/* Azamind.Site — the one screen (#2401). Every colour, size and space is a token of the cabinet's, read
   from tokens.css, which the project LINKS from App.Shared rather than copying; this sheet declares no
   --az-* of its own (SiteTokensLinkedQaTests). The neon glows mix the palette's own literals
   (--az-sky-aqua, the primary) with transparency. Secondary text is --az-surface-100: the cabinet's
   --az-on-surface-secondary (#666 on black) measured 3.65:1 here, under AA for text this small. Motion
   is CSS only, and stands still for a reader who asks for less. */

html,
body {
    margin: 0;
    background: var(--az-surface-900);
}

body {
    font-family: var(--az-font-family);
    color: var(--az-on-surface);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--az-primary-light);
}

:focus-visible {
    outline: 2px solid var(--az-primary-light);
    outline-offset: 3px;
}

/* ── Frame ─────────────────────────────────────────────── */
.site {
    /* The pale violet the neon type is set in: the primary's light step washed toward paper. Derived from
       two tokens here, once, rather than a literal of the site's own. */
    --site-pale: color-mix(in srgb, var(--az-primary-light) 35%, var(--az-paper));

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--az-space-8);
    box-sizing: border-box;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--az-space-4);
    padding: var(--az-space-5) 0;
}

.site-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
}

.site-brand-name {
    font-size: var(--az-text-h4);
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--az-primary-light);
}

.site-brand-tagline {
    font-size: var(--az-text-overline);
    letter-spacing: 0.08em;
    color: var(--az-surface-100);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: var(--az-space-4);
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--az-space-12);
    padding-block: var(--az-space-10) var(--az-space-12);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--az-space-3);
    padding: var(--az-space-6) 0;
    border-top: 1px solid var(--az-surface-600);
    font-size: var(--az-text-body-sm);
    color: var(--az-surface-100);
}

.site-social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--az-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-social a {
    color: var(--az-surface-100);
    text-decoration: none;
}

.site-social a:hover {
    color: var(--az-on-surface);
}

/* ── Language switch ───────────────────────────────────── */
.az-lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--az-text-body-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.az-lang-switch a {
    color: var(--az-surface-100);
    text-decoration: none;
    transition: color var(--az-transition-fast);
}

.az-lang-switch a:hover {
    color: var(--az-on-surface);
}

.az-lang-switch a.az-lang-active {
    color: var(--az-primary-light);
}

.az-lang-switch span {
    color: var(--az-surface-600);
}

/* ── Buttons ───────────────────────────────────────────── */
.site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--az-radius-md);
    font: inherit;
    font-size: var(--az-text-body-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--az-transition-fast), border-color var(--az-transition-fast), color var(--az-transition-fast);
}

/* The cabinet's Light button: the look filters and chips share. */
.site-btn--light {
    min-height: var(--az-filter-height);
    padding: 0 var(--az-space-4);
    border: var(--az-filter-border);
    background: var(--az-filter-bg);
    color: var(--az-filter-text);
}

.site-btn--light:hover {
    background: var(--az-filter-bg-hover);
}

/* The landing's primary call to action, lit: the glow --az-stat-tile-glow grew out of. The face is the
   primary's dark step: white on --az-primary measured 4.15:1 at this size, under AA; on the dark step, 6:1. */
.site-btn--primary {
    border: 1px solid var(--az-primary);
    background: var(--az-primary-dark);
    color: var(--az-on-primary);
    box-shadow:
        0 0 0 4px rgba(var(--az-primary-rgb), 0.12),
        0 0 24px rgba(var(--az-primary-rgb), 0.75),
        0 12px 34px rgba(var(--az-primary-rgb), 0.45);
}

.site-btn--primary:hover {
    border-color: var(--az-primary-light);
    background: var(--az-primary-darker);
}

.site-btn--outline {
    border: 1px solid rgba(var(--az-primary-rgb), 0.6);
    background: rgba(var(--az-primary-rgb), 0.06);
    color: var(--site-pale);
    box-shadow: 0 0 16px rgba(var(--az-primary-rgb), 0.35), inset 0 0 12px rgba(var(--az-primary-rgb), 0.15);
}

.site-btn--outline:hover {
    border-color: var(--az-primary);
    background: var(--az-filter-bg-hover);
}

/* ── Hero ──────────────────────────────────────────────── */
.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: var(--az-space-12);
    align-items: start;
}

.site-hero-title {
    margin: 0;
    font-size: var(--az-text-display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--az-paper);
    text-wrap: balance;
    text-shadow:
        0 0 2px var(--az-paper),
        0 0 12px color-mix(in srgb, var(--az-sky-aqua) 55%, transparent),
        0 0 34px color-mix(in srgb, var(--az-sky-aqua) 35%, transparent);
}

.site-hero-title em {
    font-style: normal;
    color: var(--site-pale);
    text-shadow:
        0 0 2px var(--az-paper),
        0 0 12px var(--az-primary),
        0 0 34px var(--az-primary);
}

.site-hero-lead {
    max-width: 30em;
    margin: var(--az-space-5) 0 0;
    font-size: var(--az-text-body);
    line-height: 1.65;
    color: var(--az-on-surface);
}

.site-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--az-space-3);
    margin-top: var(--az-space-8);
}

.site-hero-note {
    max-width: 30em;
    margin: var(--az-space-4) 0 0;
    font-size: var(--az-text-body-sm);
    color: var(--az-surface-100);
}

/* ── Teaser ────────────────────────────────────────────── */
/* The slot keeps the card's height whether the card is there or not, so nothing below it moves. */
.site-teaser-slot {
    display: grid;
    justify-items: end;
    align-items: start;
    min-height: 360px;
}

.site-teaser {
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    width: min(100%, 440px);
    padding: var(--az-space-5);
    border: 1px solid rgba(var(--az-primary-rgb), 0.35);
    border-radius: 24px;
    background: var(--az-liquid-glass-bg);
    -webkit-backdrop-filter: var(--az-liquid-glass-filter);
    backdrop-filter: var(--az-liquid-glass-filter);
    color: inherit;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 0 44px rgba(var(--az-primary-rgb), 0.12),
        0 30px 80px -12px rgba(0, 0, 0, 0.8),
        0 0 90px -10px rgba(var(--az-primary-rgb), 0.55);
    transition: border-color var(--az-transition-fast);
}

.site-teaser:hover {
    border-color: var(--az-primary);
}

.site-teaser-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--az-space-2);
}

.site-overline {
    display: block;
    font-size: var(--az-text-overline);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--az-card-caption);
}

.site-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--az-success-lighter);
    color: var(--az-success);
    font-size: var(--az-text-overline);
    font-weight: 600;
    white-space: nowrap;
}

.site-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--az-success);
    animation: site-pulse 2s infinite;
}

@keyframes site-pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--az-success-rgb), 0.55); }
    70% { box-shadow: 0 0 0 7px rgba(var(--az-success-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--az-success-rgb), 0); }
}

.site-teaser-total {
    font-size: var(--az-text-h2);
    font-weight: 700;
    line-height: 1.15;
    color: var(--site-pale);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 2px var(--az-paper), 0 0 14px var(--az-primary), 0 0 36px rgba(var(--az-primary-rgb), 0.7);
}

.site-teaser-change {
    font-size: var(--az-text-body-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--az-surface-100);
    font-variant-numeric: tabular-nums;
}

.site-teaser-change.az-change-up {
    color: var(--az-success);
}

.site-teaser-change.az-change-down {
    color: var(--az-danger);
}

.site-spark {
    display: block;
    width: 100%;
    height: 92px;
    overflow: visible;
}

.site-spark-area {
    fill: rgba(var(--az-primary-rgb), 0.12);
    stroke: none;
}

.site-spark-line {
    fill: none;
    stroke: var(--az-primary-light);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px rgba(var(--az-primary-rgb), 0.95));
}

.site-teaser-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--az-space-2);
}

.site-mini {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    min-width: 0;
}

.site-mini .site-overline {
    margin-bottom: 6px;
}

.site-mini-value {
    font-size: var(--az-stat-value);
    font-weight: 700;
    line-height: 1.2;
    color: var(--site-pale);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-teaser-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--az-space-2);
    font-size: var(--az-text-body-sm);
    color: var(--az-surface-100);
}

/* ── «Supported» strip ─────────────────────────────────── */
.site-supported {
    display: flex;
    align-items: center;
    gap: var(--az-space-5);
    margin-inline: calc(var(--az-space-8) * -1);
    padding: var(--az-space-3) 0 14px var(--az-space-6);
    border-block: 1px solid rgba(var(--az-primary-rgb), 0.55);
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0 30px rgba(var(--az-primary-rgb), 0.35), inset 0 0 40px rgba(var(--az-primary-rgb), 0.08);
}

.site-supported-label {
    flex: 0 0 auto;
    color: var(--site-pale);
    text-shadow: 0 0 8px var(--az-primary), 0 0 20px var(--az-primary);
}

.site-lanes {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.site-lane-track {
    display: flex;
    width: max-content;
    animation: site-marquee 60s linear infinite;
}

.site-lane-group {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-right: 22px;
}

@keyframes site-marquee {
    to { transform: translateX(-50%); }
}

.site-logo-item {
    display: inline-flex;
    align-items: center;
    gap: var(--az-space-2);
    font-size: var(--az-text-body-sm);
    font-weight: 600;
    white-space: nowrap;
    color: var(--az-on-surface);
    text-shadow: 0 0 8px color-mix(in srgb, var(--az-sky-aqua) 70%, transparent);
}

.site-logo-item img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--az-surface-900);
    box-shadow: 0 0 10px color-mix(in srgb, var(--az-sky-aqua) 45%, transparent);
}

/* ── Less motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .site-live-dot,
    .site-lane-track {
        animation: none;
    }

    /* The strip stands still and wraps, so every name stays readable without the drift. */
    .site-lane-track {
        width: auto;
    }

    .site-lane-group {
        flex-wrap: wrap;
    }

    .site-lane-group[aria-hidden="true"] {
        display: none;
    }
}

/* ── Narrower screens ──────────────────────────────────── */
@media (max-width: 960px) {
    .site-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--az-space-8);
    }

    .site-teaser-slot {
        justify-items: start;
    }
}

@media (max-width: 640px) {
    .site {
        padding: 0 var(--az-space-4);
    }

    .site-header-actions {
        gap: var(--az-space-3);
    }

    .site-cta-row .site-btn {
        flex: 1 1 100%;
    }

    .site-supported {
        flex-direction: column;
        align-items: stretch;
        gap: var(--az-space-2);
        margin-inline: calc(var(--az-space-4) * -1);
        padding: var(--az-space-3) 0;
    }

    .site-supported-label {
        padding-left: var(--az-space-4);
    }
}

/* ── Manrope font (Latin + Cyrillic) ─────────────────── */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope/manrope-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/manrope/manrope-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
