/* === Self-hosted Inter (variable font, weights 400-800, latin subset) === */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/inter-var.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;
}

/* === ANELIA design tokens (v3 identity) === */
:root {
    --color-bg: #0E1230;
    --color-bg-alt: #11163A;
    --color-surface: #151A44;
    --color-surface-raised: #1A2258;
    --color-line: #2A3170;
    --color-line-soft: rgba(125, 211, 252, 0.12);
    --color-line-medium: rgba(125, 211, 252, 0.25);

    --color-text: #F5F7FF;
    --color-text-soft: #C7CDEB;
    --color-text-muted: #A9B1D6;
    --color-text-faint: #8790BF;
    --color-text-dim: #6B74A8;

    --color-sky-100: #E0F2FE;
    --color-sky-200: #BAE6FD;
    --color-sky-300: #7DD3FC;
    --color-sky-400: #9BD8F5;
    --color-sky-500: #38A9E4;
    --color-indigo-400: #6B7BEA;
    --color-indigo-600: #4A5BB8;

    --color-cta: #F97316;
    --color-cta-soft: #FDBA74;
    --color-cta-hover: #FB923C;
    --color-success: #86EFAC;
    --color-error: #FDBA74;

    --gradient-text: linear-gradient(90deg, #9BD8F5, #38A9E4 45%, #6B7BEA);
    --gradient-orb: radial-gradient(circle at 35% 30%, #BAE6FD, #38A9E4 55%, #4A5BB8);

    --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-pill: 999px;

    --shadow-float: 0 18px 40px rgba(5, 8, 30, 0.45);

    --nav-offset: 96px;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--color-bg);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
    color: var(--color-sky-300);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-sky-200); }

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}
h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

:focus-visible { outline: 2px solid var(--color-sky-300); outline-offset: 3px; }
/* Blazor's FocusOnNavigate focuses the page h1 programmatically; don't draw a ring for that. */
h1:focus, h1:focus-visible { outline: none; }

/* === Layout === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}
.section { padding: 96px 0; position: relative; }
.section--surface { background: linear-gradient(180deg, var(--color-bg), var(--color-bg-alt) 50%, var(--color-bg)); }
.text-center { text-align: center; }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.page-content { padding-top: var(--nav-offset); }
[id] { scroll-margin-top: var(--nav-offset); }

/* === Brand helpers === */
.grad {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.grad--warm { color: var(--color-cta-hover); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 7px 16px 7px 8px;
    border-radius: var(--radius-pill);
    background: rgba(56, 169, 228, 0.10);
    border: 1px solid var(--color-line-medium);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-sky-200);
}
.eyebrow i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-orb);
    box-shadow: 0 0 12px rgba(56, 169, 228, 0.7);
}
.eyebrow--center { align-self: center; }

.glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.tag {
    font-size: 14px;
    line-height: 1.4;
    color: var(--color-text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tag--accent {
    font-weight: 600;
    color: var(--color-sky-100);
    background: rgba(56, 169, 228, 0.12);
    border-color: transparent;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
    text-decoration: none;
}
.btn--primary { background: var(--color-cta); color: var(--color-bg); }
.btn--primary:hover { background: var(--color-cta-hover); color: var(--color-bg); }
.btn--primary:disabled { opacity: 0.7; cursor: progress; }
.btn--outline, .btn--secondary { background: transparent; color: var(--color-text); border-color: rgba(125, 211, 252, 0.4); font-weight: 600; }
.btn--outline:hover, .btn--secondary:hover { border-color: var(--color-sky-300); color: var(--color-text); background: rgba(56, 169, 228, 0.08); }
.btn--lg { min-height: 52px; padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 20px 0;
    pointer-events: none;
}
.navbar__inner {
    pointer-events: auto;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 12px 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: var(--radius-pill);
    background: rgba(21, 26, 68, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(125, 211, 252, 0.16);
    transition: background var(--transition), box-shadow var(--transition);
}
.navbar--scrolled .navbar__inner {
    background: rgba(21, 26, 68, 0.92);
    box-shadow: 0 12px 32px rgba(5, 8, 30, 0.45);
}
.navbar__logo { display: flex; align-items: center; }
.navbar__logo img { height: 26px; width: auto; }
.navbar__links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}
.navbar__link {
    color: var(--color-text-soft);
    font-size: 15px;
    font-weight: 500;
}
.navbar__link:hover { color: var(--color-text); }
.navbar__actions { display: flex; align-items: center; gap: 8px; }
.navbar__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    color: var(--color-text);
}
.navbar__toggle svg { width: 24px; height: 24px; }
.navbar__mobile-menu {
    pointer-events: auto;
    max-width: var(--max-width);
    margin: 8px auto 0;
    display: flex;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-radius: var(--radius-lg);
    background: rgba(21, 26, 68, 0.97);
    border: 1px solid rgba(125, 211, 252, 0.16);
    box-shadow: var(--shadow-float);
}
.navbar__mobile-link {
    padding: 12px 0;
    color: var(--color-text-soft);
    font-weight: 500;
}
.navbar__mobile-link:hover { color: var(--color-text); }
.navbar__mobile-divider { border: none; border-top: 1px solid var(--color-line-soft); margin: 8px 0 16px; }

/* === Legacy page hero (Product / Resources) === */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-offset) + 72px) 0 72px;
    text-align: center;
    background: radial-gradient(ellipse at top right, rgba(56, 169, 228, 0.22), transparent 60%);
}
.hero h1 { font-size: clamp(40px, 5vw, 60px); margin: 0 auto 24px; max-width: 820px; }
.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-soft);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Cards === */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--color-line-medium); }
.card__icon { font-size: 32px; }
.card__title { font-size: 19px; font-weight: 700; }
.card__description { color: var(--color-text-muted); font-size: 15px; line-height: 1.6; }
.card--large { padding: 40px; }
.card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 15px; }

.blog-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition);
}
.blog-card:hover { border-color: var(--color-line-medium); }
.blog-card__body { padding: 24px; }
.blog-card__meta { display: flex; gap: 16px; font-size: 14px; color: var(--color-text-faint); margin-bottom: 12px; }
.blog-card__title { font-size: 18px; margin-bottom: 12px; }
.blog-card__excerpt { color: var(--color-text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }

/* === Legacy CTA banner === */
.cta-banner {
    margin: 0 20px 96px;
    padding: 64px 0;
    text-align: center;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #1A2A6C, #1A2258 45%, #241E5E);
    border: 1px solid rgba(125, 211, 252, 0.2);
}
.cta-banner h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 16px; }
.cta-banner__subtitle { color: var(--color-text-soft); font-size: 18px; margin-bottom: 32px; }

/* === Section headers === */
.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 820px;
    margin: 0 auto 48px;
}
.section-header h2 { font-size: clamp(32px, 3.6vw, 46px); }
.section-header p { color: var(--color-text-muted); font-size: 17px; max-width: 620px; }

/* === Legacy product rows === */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 64px; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row__content h3 { font-size: 24px; margin-bottom: 16px; }
.feature-row__content p { color: var(--color-text-muted); line-height: 1.7; }
.feature-row__image {
    background: var(--color-surface);
    border: 1px solid var(--color-line-soft);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-faint);
    font-size: 14px;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step__number {
    width: 48px; height: 48px;
    background: var(--gradient-orb); color: var(--color-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
    margin: 0 auto 16px;
}
.step__title { font-size: 18px; margin-bottom: 12px; }
.step__description { color: var(--color-text-muted); font-size: 15px; }

.filter-bar { display: flex; gap: 8px; justify-content: center; margin-bottom: 48px; }
.filter-btn {
    min-height: 44px;
    padding: 10px 16px;
    border: 1.5px solid rgba(125, 211, 252, 0.18);
    border-radius: var(--radius-pill);
    background: transparent;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--color-sky-300); color: var(--color-text); }
.filter-btn--active { background: rgba(56, 169, 228, 0.16); border-color: var(--color-sky-300); color: var(--color-text); }

/* === Article / legal pages === */
.article {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: calc(var(--nav-offset) + 72px) 32px 96px;
}
.article__back { display: inline-flex; align-items: center; gap: 8px; color: var(--color-text-soft); font-size: 15px; margin-bottom: 32px; }
.article__meta { color: var(--color-text-faint); font-size: 14px; margin-bottom: 32px; }
.article__eyebrow { margin-bottom: 20px; }
.article__content { color: var(--color-text-soft); font-size: 16px; }
.article__content h1 {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.article__content h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.article__content h3 { margin: 24px 0 10px; font-size: 17px; color: #E0E4F7; }
.article__content p { margin-bottom: 14px; line-height: 1.7; }
.article__content ul, .article__content ol { margin-bottom: 14px; padding-left: 22px; }
.article__content li { margin-bottom: 6px; line-height: 1.65; }
.article__content strong { color: var(--color-text); }
.article__content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 15px; }
.article__content th, .article__content td { border: 1px solid var(--color-line); padding: 8px 12px; text-align: left; }
.article__content hr { border: none; border-top: 1px solid var(--color-line-soft); margin: 32px 0; }

.legal-card {
    background: var(--color-surface);
    border: 1px solid rgba(125, 211, 252, 0.14);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.legal-card h2 { margin: 0 0 6px; font-size: 24px; color: var(--color-text); }
.legal-card p { margin: 0; color: var(--color-text-soft); }
.legal-page { position: relative; overflow: hidden; }
.legal-page__glow {
    top: -260px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(56, 169, 228, 0.22), rgba(107, 123, 234, 0.10) 45%, transparent 70%);
}
.legal-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px 32px;
    line-height: 1.55;
}
.legal-facts div { display: flex; flex-direction: column; gap: 4px; }
.legal-facts dt { font-size: 13px; font-weight: 600; color: var(--color-sky-300); }
.legal-facts dd { color: #E0E4F7; }
.legal-facts dd a { color: #E0E4F7; }
.legal-facts dd a[href^="mailto"] { color: var(--color-sky-300); }

/* === Footer === */
.footer { border-top: 1px solid rgba(125, 211, 252, 0.1); }
.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer__brand img { height: 26px; width: auto; align-self: flex-start; }
.footer__brand p { font-size: 15px; color: var(--color-text-muted); }
.footer__columns { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer__column { display: flex; flex-direction: column; gap: 12px; }
.footer__heading { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.footer__column a { color: var(--color-text-muted); }
.footer__column a:hover, .footer__link-button:hover { color: var(--color-text); }
.footer__link-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(125, 211, 252, 0.1);
    font-size: 14px;
    color: var(--color-text-faint);
}

/* === Motion primitives === */
@keyframes an-flow { to { stroke-dashoffset: -28; } }
@keyframes an-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes an-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes an-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes an-grow { 0% { transform: scale(.6); opacity: .4; } 40%, 100% { transform: scale(1); opacity: 1; } }
.an-ring { transform-box: fill-box; transform-origin: center; animation: an-ring 2.8s ease-out infinite; }
.an-breathe { animation: an-breathe 4s ease-in-out infinite; }
.an-float { animation: an-float 6s ease-in-out infinite; }
.an-dash { stroke-dasharray: 2 12; stroke-linecap: round; animation: an-flow 1.6s linear infinite; }

/* === Landing: shared === */
.section--fade { background: linear-gradient(180deg, var(--color-bg), #121844 55%, var(--color-bg)); }
.section--fade-down { background: linear-gradient(180deg, var(--color-bg), var(--color-bg-alt) 55%, var(--color-bg)); }
.section-title { font-size: clamp(32px, 3.6vw, 46px); }
.section-lead { font-size: 18px; line-height: 1.65; color: var(--color-text-muted); }
.section-header--flush { margin-bottom: 0; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.split__body { flex: 1 1 560px; min-width: 0; }
.card-grid { display: grid; gap: 18px; }
.card-grid--250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card-grid--260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card--roomy { padding: 30px; }
.card__title--lg { font-size: 20px; }
.card__description--lg { font-size: 16px; }
.orb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-orb);
    box-shadow: 0 0 14px rgba(56, 169, 228, 0.7);
}

/* === Landing: hero === */
.hero-v3 { position: relative; overflow: hidden; padding-top: var(--nav-offset); }
.hero-v3__glow--right {
    top: -200px; right: -120px; width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(56, 169, 228, 0.30), rgba(107, 123, 234, 0.14) 45%, transparent 70%);
}
.hero-v3__glow--left {
    bottom: -120px; left: -260px; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(107, 123, 234, 0.22), transparent 70%);
}
.hero-v3__inner {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 32px 88px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.hero-v3__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-v3__copy h1 { font-size: clamp(44px, 5.6vw, 74px); line-height: 1.04; letter-spacing: -0.035em; }
.hero-v3__lead { font-size: 20px; line-height: 1.6; color: var(--color-text-soft); max-width: 540px; }
.hero-v3__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-v3__tags { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.hero-v3__visual { flex: 1 1 480px; min-width: 0; position: relative; }
.hero-v3__graph { width: 100%; height: auto; display: block; overflow: visible; }
.audit-card {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: var(--radius-sm);
    background: rgba(21, 26, 68, 0.9);
    border: 1px solid var(--color-line-medium);
    box-shadow: var(--shadow-float);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.audit-card__title { font-size: 11px; font-weight: 700; color: var(--color-text-muted); }
.audit-card__row { display: flex; align-items: center; gap: 8px; color: var(--color-sky-100); }
.audit-card__row--pending { color: var(--color-cta-soft); }
.audit-card__dot { width: 8px; height: 8px; margin: 0 3px; border-radius: 50%; background: var(--color-cta); }

/* === Landing: diagram states (shared) === */
.fl { fill: none; stroke: var(--color-line); stroke-width: 2; stroke-linecap: round; transition: stroke .5s; }
.fl-past { stroke: #2F6FB0; }
.fl-on { stroke: url(#fl-g); stroke-width: 3.5; }
.fl-hu { stroke: var(--color-cta); stroke-width: 3; }
.nd { border: 1.5px solid var(--color-line); background: var(--color-surface); transition: all .5s; }
.nd-past { border-color: #2F6FB0; }
.nd-on { border-color: var(--color-sky-300); background: var(--color-surface-raised); box-shadow: 0 0 0 6px rgba(56, 169, 228, .12), 0 0 40px rgba(56, 169, 228, .35); }
.nd-hu { border-color: var(--color-cta); box-shadow: 0 0 0 6px rgba(249, 115, 22, .12), 0 0 36px rgba(249, 115, 22, .3); }
.tk-q { color: var(--color-text-faint); }
.tk-w { color: var(--color-sky-300); }
.tk-d { color: var(--color-success); }
.badge { opacity: 0; transform: scale(.5); transition: all .4s; }
.badge-on { opacity: 1; transform: scale(1); }

/* === Landing: how it works === */
.flow { display: flex; flex-direction: column; gap: 36px; }
.flow__steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.flow-step {
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    border: 1.5px solid rgba(125, 211, 252, 0.18);
    background: transparent;
    color: var(--color-text-muted);
    transition: all .3s;
}
.flow-step:hover { color: var(--color-text); }
.flow-step.is-on { border-color: var(--color-sky-300); background: rgba(56, 169, 228, 0.16); color: var(--color-text); }
.flow-step.is-human { border-color: var(--color-cta); background: rgba(249, 115, 22, 0.14); }
.flow__text { margin: 0 auto; font-size: 17px; color: var(--color-text-soft); text-align: center; max-width: 620px; min-height: 54px; }
.flow__canvas-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: rgba(21, 26, 68, 0.55);
    border: 1px solid var(--color-line-soft);
}
.flow__canvas { position: relative; width: 1120px; height: 520px; margin: 0 auto; }
.flow__canvas strong { font-weight: 700; }
.flow__lines { position: absolute; inset: 0; width: 1120px; height: 520px; }
.flow__decision {
    position: absolute;
    left: 470px;
    top: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-cta-soft);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(249, 115, 22, 0.12);
    transition: opacity .4s;
}
.flow__person { position: absolute; left: 24px; display: flex; align-items: center; gap: 12px; }
.flow__avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow__avatar .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-cta);
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow__pill { padding: 10px 18px; border-radius: var(--radius-pill); display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.flow__pill strong { font-size: 15px; }
.flow__pill span { font-size: 12px; color: var(--color-text-muted); }
.flow__hub {
    position: absolute;
    left: 440px;
    top: 178px;
    width: 240px;
    height: 152px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.flow__hub span { font-size: 19px; font-weight: 800; }
.flow__orch, .flow__task {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.3;
}
.flow__orch { left: 740px; top: 214px; width: 180px; height: 80px; border-radius: 22px; }
.flow__orch strong { font-size: 16px; }
.flow__orch span { font-size: 12px; color: var(--color-text-muted); }
.flow__task { left: 962px; width: 140px; height: 72px; border-radius: 20px; }
.flow__task strong { font-size: 14px; }
.flow__task span { font-size: 12px; font-weight: 600; }
.flow__source {
    position: absolute;
    top: 440px;
    width: 150px;
    height: 46px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.flow-list { display: none; list-style: none; flex-direction: column; gap: 8px; }
.flow-list__item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    text-align: left;
    font: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-line-soft);
    background: var(--color-surface);
    transition: all .3s;
}
.flow-list__item.is-on { border-color: var(--color-sky-300); background: rgba(56, 169, 228, 0.12); color: var(--color-text-soft); }
.flow-list__item.is-human { border-color: var(--color-cta); background: rgba(249, 115, 22, 0.10); }
.flow-list__num {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-bg);
    background: var(--gradient-orb);
}
.flow-list__item.is-human .flow-list__num { background: var(--color-cta); }
.flow-list__body { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.5; }
.flow-list__body strong { font-size: 16px; color: var(--color-text); }
.audit {
    align-self: center;
    text-align: center;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--color-line);
    color: var(--color-text-faint);
    transition: all .5s;
}
.audit-on { border-color: var(--color-sky-300); color: var(--color-sky-100); box-shadow: 0 0 40px rgba(56, 169, 228, .3); }

/* === Landing: platform layers === */
.platform { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.platform__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 22px; order: 2; }
.platform__lead { font-size: 17px; color: var(--color-text-muted); }
.platform__live {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(56, 169, 228, 0.08);
    border: 1px solid var(--color-line-medium);
    line-height: 1.45;
}
.platform__live-step { font-size: 13px; font-weight: 600; color: var(--color-sky-300); }
.platform__live strong { font-size: 17px; }
.platform__live-sub { font-size: 14px; color: var(--color-text-muted); }
.platform__layers { display: flex; flex-direction: column; gap: 6px; }
.ly {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 44px;
    padding: 16px 20px;
    text-align: left;
    font: inherit;
    color: var(--color-text-faint);
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .4s;
}
.ly:hover { color: var(--color-text-soft); }
.ly-on { background: rgba(56, 169, 228, 0.08); border-color: rgba(125, 211, 252, 0.35); color: var(--color-text); }
.ly-name { font-size: 19px; font-weight: 700; line-height: 1.3; }
.ly-d { display: none; font-size: 15px; line-height: 1.6; color: var(--color-text-soft); }
.ly-on .ly-d { display: block; }
.platform__visual { flex: 1 1 560px; min-width: 0; overflow-x: auto; order: 1; }
.layers-stage { position: relative; width: 600px; height: 560px; margin: 0 auto; }
.layers-stage__threads { position: absolute; inset: 0; width: 600px; height: 560px; overflow: visible; pointer-events: none; }
.pl {
    position: absolute;
    left: 245px;
    width: 270px;
    height: 270px;
    border-radius: 36px;
    transform: rotateX(60deg) rotateZ(-45deg);
    border: 1.5px solid rgba(125, 211, 252, .22);
    background: rgba(21, 26, 68, .78);
    transition: all .6s;
}
.pl::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 24px;
    background-image: radial-gradient(rgba(125, 211, 252, .3) 1.4px, transparent 2px);
    background-size: 26px 26px;
}
.pl-on {
    border: 2px solid var(--color-sky-300);
    background: linear-gradient(135deg, rgba(155, 216, 245, .32), rgba(56, 169, 228, .22) 50%, rgba(107, 123, 234, .32));
    box-shadow: 0 0 60px rgba(56, 169, 228, .45);
}
.pl-on::after { background-image: radial-gradient(#E0F2FE 1.6px, transparent 2.2px); }
.pl-lab {
    position: absolute;
    left: 0;
    width: 150px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dim);
    transition: color .4s;
}
.pl-lab-on { color: var(--color-sky-100); }
.th { fill: none; stroke: #3A4390; stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; transition: stroke .5s; }
.th-past { stroke: var(--color-sky-500); stroke-dasharray: none; stroke-width: 2.5; }
.th-on { stroke: var(--color-sky-100); stroke-width: 3; stroke-dasharray: 7 6; animation: an-flow .8s linear infinite; }
.tp { fill: #3A4390; stroke: var(--color-bg); stroke-width: 2; transition: fill .4s; }
.tp-past { fill: var(--color-sky-500); }
.tp-on { fill: #FFFFFF; }
.tp-hu { fill: var(--color-cta); }
.tlab {
    position: absolute;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(14, 18, 48, .92);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    transition: left .5s, top .5s;
    pointer-events: none;
}

/* === Landing: industries === */
.industries__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.industries__title { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.industries__audience { display: flex; flex-wrap: wrap; gap: 8px; max-width: 420px; }
.industry-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-radius: var(--radius-xl);
    background: linear-gradient(160deg, var(--color-surface-raised), var(--color-surface) 60%);
    border: 1px solid rgba(125, 211, 252, 0.16);
}
.industry-card h3 { font-size: 22px; }
.industry-card p { font-size: 15px; color: var(--color-text-muted); }
.industry-card a { margin-top: auto; font-size: 15px; font-weight: 600; }

/* === Landing: growth === */
.growth {
    position: relative;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    align-items: start;
}
.growth::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: 46px;
    height: 2px;
    background: linear-gradient(90deg, rgba(155, 216, 245, 0.2), rgba(107, 123, 234, 0.6));
}
.growth__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; font-size: 17px; font-weight: 700; }
.growth__node { height: 92px; display: flex; align-items: center; }
.gn { border-radius: 50%; background: var(--gradient-orb); box-shadow: 0 0 24px rgba(56, 169, 228, 0.55); animation: an-grow 5s ease-in-out infinite; }

/* === Landing: demo CTA === */
.demo-cta { padding: 40px 20px 96px; }
.demo-cta--standalone { padding-top: calc(var(--nav-offset) + 48px); }
.demo-cta__panel {
    position: relative;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, #1A2A6C, #1A2258 45%, #241E5E);
    border: 1px solid rgba(125, 211, 252, 0.2);
}
.demo-cta__glow {
    top: -160px; left: -120px; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(56, 169, 228, 0.35), transparent 70%);
}
.demo-cta__copy { position: relative; flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.demo-cta__title { font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.035em; }
.demo-cta__copy p { font-size: 18px; color: var(--color-text-soft); max-width: 460px; }
.demo-cta__form {
    position: relative;
    flex: 1 1 420px;
    min-width: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius-xl);
    background: rgba(14, 18, 48, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.18);
}
.partner-link {
    margin-top: 8px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    border-radius: 22px;
    background: rgba(14, 18, 48, 0.5);
    border: 1px solid rgba(125, 211, 252, 0.2);
    transition: border-color var(--transition);
}
.partner-link:hover { border-color: var(--color-sky-300); }
.partner-link__kicker { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.partner-link__title { font-size: 18px; font-weight: 700; color: var(--color-text); }

/* === Forms === */
.demo-form { display: flex; flex-direction: column; gap: 16px; }
.demo-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--color-text-soft); }
.form-input {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder { color: var(--color-text-dim); }
.form-input:focus { outline: none; border-color: var(--color-sky-300); box-shadow: 0 0 0 3px rgba(56, 169, 228, 0.18); }
.form-select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A9B1D6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.form-select option { background: var(--color-surface); color: var(--color-text); }
.form-textarea { resize: vertical; min-height: 96px; }
.form-error { font-size: 14px; font-weight: 600; color: var(--color-error); }
.form-success { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
.form-success h3 { font-size: 24px; }
.form-success p { font-size: 15px; color: var(--color-text-muted); }
.form-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    padding: 16px 18px;
    font-size: 15px;
    border-radius: 16px;
    background: rgba(56, 169, 228, 0.08);
    border: 1px solid rgba(125, 211, 252, 0.2);
}
.form-summary dt { color: var(--color-text-muted); }
.form-summary dd { overflow-wrap: anywhere; }

/* === Cookie consent (vanilla-cookieconsent v3) theming === */
#cc-main {
    --cc-font-family: var(--font-family);
    --cc-bg: var(--color-surface);
    --cc-primary-color: var(--color-text);
    --cc-secondary-color: var(--color-text-muted);
    --cc-btn-primary-bg: var(--color-cta);
    --cc-btn-primary-color: var(--color-bg);
    --cc-btn-primary-border-color: var(--color-cta);
    --cc-btn-primary-hover-bg: var(--color-cta-hover);
    --cc-btn-primary-hover-color: var(--color-bg);
    --cc-btn-primary-hover-border-color: var(--color-cta-hover);
    /* Equal prominence: "Reject all" (secondary) styled identically to "Accept all" (primary) per EDPB 03/2022 */
    --cc-btn-secondary-bg: var(--color-cta);
    --cc-btn-secondary-color: var(--color-bg);
    --cc-btn-secondary-border-color: var(--color-cta);
    --cc-btn-secondary-hover-bg: var(--color-cta-hover);
    --cc-btn-secondary-hover-color: var(--color-bg);
    --cc-btn-secondary-hover-border-color: var(--color-cta-hover);
    --cc-separator-border-color: var(--color-line);
    --cc-toggle-on-bg: var(--color-sky-500);
    --cc-toggle-off-bg: var(--color-line);
    --cc-toggle-readonly-bg: var(--color-surface-raised);
    --cc-section-category-border: var(--color-line);
    --cc-cookie-category-block-bg: var(--color-bg);
    --cc-cookie-category-block-border: var(--color-line);
    --cc-cookie-category-block-hover-bg: var(--color-bg-alt);
    --cc-cookie-category-block-hover-border: var(--color-line);
    --cc-cookie-category-expanded-block-bg: var(--color-bg);
    --cc-cookie-category-expanded-block-hover-bg: var(--color-bg-alt);
    --cc-overlay-bg: rgba(5, 8, 30, 0.7);
    --cc-footer-bg: var(--color-bg-alt);
    --cc-footer-color: var(--color-text-muted);
    --cc-footer-border-color: var(--color-line);
    --cc-link-color: var(--color-sky-300);
    --cc-modal-border-radius: var(--radius-lg);
    --cc-btn-border-radius: var(--radius-pill);
}

/* === Utilities === */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(14, 18, 48, 0.3); border-top-color: var(--color-bg); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state { text-align: center; padding: 64px 0; color: var(--color-text-faint); }
.empty-state { text-align: center; padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty-state h1, .empty-state h2 { font-size: clamp(32px, 4vw, 46px); }
.empty-state p { color: var(--color-text-muted); }

/* === Responsive === */
@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .feature-row { grid-template-columns: 1fr; gap: 32px; }
    .feature-row--reverse { direction: ltr; }
    .steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 900px) {
    /* The 1120px flow diagram doesn't fit: show the steps as a list instead. */
    .flow__steps, .flow__text, .flow__canvas-wrap { display: none; }
    .flow-list { display: flex; }
    .navbar__desktop-only { display: none !important; }
    .navbar__toggle { display: block; }
    .navbar__inner { border-radius: var(--radius-lg); }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .footer__columns { gap: 40px; }
    .filter-bar { flex-wrap: wrap; }
    .article { padding-left: 20px; padding-right: 20px; }
    .hero-v3__inner { padding: 48px 20px 64px; }
    .hero-v3__lead { font-size: 18px; }
    .audit-card { position: relative; margin-top: 16px; display: inline-flex; }
    .split { gap: 32px; }
    .growth { grid-template-columns: 1fr; gap: 8px; }
    .growth::before {
        left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
        transform: translateX(-1px);
        background: linear-gradient(180deg, rgba(155, 216, 245, 0.2), rgba(107, 123, 234, 0.6));
    }
    .growth__stage { gap: 8px; }
    .growth__stage span { background: var(--color-bg-alt); padding: 0 8px; }
    .demo-cta { padding: 24px 12px 64px; }
    .demo-cta__panel { padding: 40px 20px; gap: 32px; border-radius: var(--radius-xl); }
    .demo-cta__form { padding: 20px; }
    .platform { gap: 24px; }
    .platform__visual { overflow: hidden; }
    .legal-card { padding: 24px; }
}
@media (max-width: 640px) {
    .layers-stage { zoom: 0.72; }
}
@media (max-width: 440px) {
    .layers-stage { zoom: 0.56; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .an-motion { display: none; }
}

/* === Blazor defaults === */
#blazor-error-ui {
    background: #2a1215; color: #ff8a80; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,0.4);
    display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem; position: fixed; width: 100%; z-index: 1001;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem; }
.loading-progress circle { fill: none; stroke: var(--color-sky-500); stroke-width: 0.4rem; }
.loading-progress circle:last-child { stroke: var(--color-line); }
.loading-progress-text { text-align: center; font-weight: bold; color: var(--color-sky-300); }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }
.valid.modified:not([type=checkbox]) { border-color: rgba(134, 239, 172, 0.5); }
.invalid { border-color: var(--color-cta) !important; }
.validation-message { color: var(--color-error); font-size: 14px; font-weight: 600; }
