/* =========================================================================
   EditLink — Swiss Editorial Scientific Publishing Design System
   Brand Identity anchored strictly to editlink-logo.svg:
     Primary Brand Blue : #036ceb
     Deep Ink Navy      : #0A1930
   Zero AI-slop: crisp 1px hairlines, restrained elevation, authoritative typography.
   ========================================================================= */

:root {
    --brand: #036ceb;
    --brand-hover: #0258c2;
    --brand-deep: #01469c;
    --brand-tint: #eef5ff;
    --brand-line: #c6dffe;

    --ink: #0A1930;
    --ink-2: #1E2E47;
    --ink-muted: #4E5E76;
    --ink-faint: #7C8BA1;

    --paper: #FFFFFF;
    --paper-alt: #F7F9FC;
    --paper-soft: #EEF2F7;

    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --navy-surface: #0F2342;
    --navy-line: rgba(255, 255, 255, 0.12);

    --ok: #047857;
    --ok-bg: #ECFDF5;
    --ok-line: #A7F3D0;

    --warn: #B45309;
    --warn-bg: #FFFBEB;
    --warn-line: #FDE68A;

    --err: #B91C1C;
    --err-bg: #FEF2F2;
    --err-line: #FECACA;

    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    --shadow-sm: 0 1px 2px rgba(10, 25, 48, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 25, 48, 0.07);
    --shadow-lg: 0 20px 50px rgba(10, 25, 48, 0.16);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
}

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

.d-none {
    display: none !important;
}

.mono {
    font-family: var(--font-mono);
}

.text-center {
    text-align: center;
}

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

.section {
    padding: 88px 0;
    background: var(--paper);
}

.section-tinted {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-brand {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.btn-brand:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-outline {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-tint);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.84rem;
}

.btn-xs {
    padding: 6px 11px;
    font-size: 0.78rem;
}

.btn-full {
    width: 100%;
}

.btn-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.btn-inline-link:hover {
    color: var(--brand-deep);
    text-decoration: underline;
}

.spinner {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =========================================================================
   STICKY EDITORIAL HEADER & MOBILE DRAWER
   ========================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo-svg,
.editlink-svg-logo {
    display: block;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-link {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-muted);
    transition: color 0.15s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: 2px;
}

.lang-btn {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--ink-muted);
    padding: 5px 8px;
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-btn:hover {
    color: var(--ink);
}

.lang-btn.active {
    background: var(--ink);
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-drawer {
    display: none;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0 24px;
}

.mobile-drawer.open {
    display: block;
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    padding: 12px 0;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================================
   SECTION HEADERS
   ========================================================================= */
.section-header {
    margin-bottom: 44px;
}

.section-header-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 32px;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin: 0;
}

.section-lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ink-muted);
    margin: 0;
}

/* =========================================================================
   1. HERO SECTION + 3-TAB CORE INSPECTOR
   ========================================================================= */
.hero-section {
    padding: 64px 0 72px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand-deep);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    margin-bottom: 18px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.028em;
    color: var(--ink);
    margin: 0 0 18px;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.62;
    color: var(--ink-muted);
    margin: 0 0 26px;
    max-width: 580px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
}

.trust-item i {
    color: var(--brand);
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Right Column: Core Inspector Card */
.hero-dossier-card {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.dossier-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
}

.dossier-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: transparent;
    border: none;
    border-right: 1px solid var(--line);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dossier-tab:last-child {
    border-right: none;
}

.dossier-tab:hover {
    color: var(--ink);
    background: rgba(3, 108, 235, 0.04);
}

.dossier-tab.active {
    background: var(--paper);
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.dossier-panel {
    display: none;
    padding: 24px;
}

.dossier-panel.active {
    display: block;
}

.dossier-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--paper-soft);
    border: 1px solid var(--line);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
}

.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: var(--radius-xs);
}

.status-tag-verified {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-line);
}

.status-tag-brand {
    background: var(--brand-tint);
    color: var(--brand-deep);
    border: 1px solid var(--brand-line);
}

.dossier-doc-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
    margin: 0 0 8px;
}

.inspector-desc {
    font-size: 0.85rem;
    line-height: 1.56;
    color: var(--ink-muted);
    margin: 0 0 18px;
}

.dossier-kv-grid {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.dossier-kv-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 0.81rem;
    align-items: center;
}

.dossier-kv-row:last-child {
    border-bottom: none;
}

.dossier-kv-row:nth-child(even) {
    background: var(--paper-alt);
}

.kv-k {
    color: var(--ink-muted);
    font-weight: 500;
}

.kv-v {
    color: var(--ink);
    font-weight: 600;
    word-break: break-word;
}

.dossier-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.dossier-node-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.dossier-node-info i {
    color: var(--brand);
}

/* =========================================================================
   2. DARK METRICS & CORE INTEGRATIONS BAND (#0A1930)
   ========================================================================= */
.metrics-consortium-band {
    background: var(--ink);
    color: #ffffff;
    border-bottom: 1px solid var(--navy-line);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--navy-line);
}

.metric-cell {
    padding: 32px 24px;
    border-right: 1px solid var(--navy-line);
}

.metric-cell:first-child {
    padding-left: 0;
}

.metric-cell:last-child {
    border-right: none;
}

.metric-value {
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 0.83rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.consortium-bar {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.consortium-bar-secondary {
    border-top: 1px solid var(--navy-line);
}

.consortium-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.56);
    flex-shrink: 0;
}

.consortium-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.consortium-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xs);
}

.consortium-abbr {
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
}

.consortium-name {
    font-family: var(--font-mono);
    font-size: 0.69rem;
    color: #7ab8ff;
}

/* =========================================================================
   3. FIVE KEY ACCENTS EDITORIAL STRIP
   ========================================================================= */
.accents-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 56px 0;
}

.accents-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 24px;
}

.accents-header .section-eyebrow {
    margin-bottom: 0;
}

.accents-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.accents-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.accent-cell {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background-color 0.15s ease;
}

.accent-cell:hover {
    background: var(--paper-alt);
}

.accent-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.08em;
}

.accent-heading {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
}

.accent-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-muted);
    margin: 0;
}

/* =========================================================================
   4. TOP-5 KILLER FEATURES & HAIRLINE ARCHITECTURE MATRIX
   ========================================================================= */
.architecture-matrix {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--paper);
}

.arch-cell {
    padding: 30px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    transition: background-color 0.16s ease;
}

.arch-cell:hover {
    background: #fcfdff;
}

.arch-span-4 {
    grid-column: span 4;
}

.arch-span-6 {
    grid-column: span 6;
}

.arch-span-8 {
    grid-column: span 8;
}

.arch-span-12 {
    grid-column: span 12;
}

.killer-featured {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border-top: 2px solid var(--brand);
}

.arch-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.killer-top-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.killer-index {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
}

.arch-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    color: var(--brand);
    border: 1px solid var(--brand-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.arch-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: var(--radius-xs);
}

.arch-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--ink);
    margin: 0 0 10px;
}

.killer-featured .arch-title {
    font-size: 1.22rem;
}

.arch-desc {
    font-size: 0.89rem;
    line-height: 1.62;
    color: var(--ink-muted);
    margin: 0 0 18px;
    flex-grow: 1;
}

.arch-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--brand-deep);
}

.arch-highlight i {
    color: var(--brand);
    flex-shrink: 0;
}

/* =========================================================================
   5. ROLE-BASED CAPABILITIES TABS (#roles)
   ========================================================================= */
.roles-toolbar {
    margin-bottom: 20px;
}

.segmented-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
}

.seg-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.seg-tab:hover {
    color: var(--ink);
    background: var(--paper-alt);
}

.seg-tab.active {
    background: var(--brand);
    color: #ffffff;
}

.tab-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(10, 25, 48, 0.08);
    color: inherit;
}

.seg-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.role-panel {
    display: none;
}

.role-panel.active {
    display: block;
}

.role-summary-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.role-summary-bar i {
    font-size: 1.25rem;
    color: var(--brand);
    flex-shrink: 0;
}

.role-summary-bar p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-2);
}

/* =========================================================================
   6. END-TO-END EDITORIAL WORKFLOW PIPELINE (5 STEPS)
   ========================================================================= */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.workflow-step {
    padding: 26px 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.workflow-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background-color 0.16s ease;
}

.workflow-step:hover::before {
    background: var(--brand);
}

.workflow-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.workflow-step-num {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.06em;
}

.workflow-step-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: var(--brand-tint);
    color: var(--brand);
    border: 1px solid var(--brand-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.workflow-step-title {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin: 0;
}

.workflow-step-desc {
    font-size: 0.83rem;
    line-height: 1.56;
    color: var(--ink-muted);
    margin: 0;
}

/* =========================================================================
   7. PUBLIC VERIFIER CONSOLE (SOLANA + REV CERTIFICATES)
   ========================================================================= */
.verifier-console {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.verifier-console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 24px;
    background: var(--ink);
    color: #ffffff;
}

.console-title-group {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
}

.console-title-group i {
    color: #5ca4ff;
    font-size: 1.15rem;
}

.console-network-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.verifier-form {
    display: flex;
    gap: 12px;
    padding: 22px 24px 14px;
}

.verifier-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.verifier-input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--ink-faint);
    font-size: 1.1rem;
    pointer-events: none;
}

.verifier-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    color: var(--ink);
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.verifier-input:focus {
    border-color: var(--brand);
    background: var(--paper);
}

.verifier-samples {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--line);
}

.samples-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.samples-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sample-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--brand-deep);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sample-chip:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.verifier-result {
    padding: 22px 24px 24px;
    transition: opacity 0.16s ease;
}

.verifier-sample-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.verifier-sample-banner i {
    color: var(--brand);
    font-size: 1.05rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.result-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.result-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.result-field {
    padding: 14px 16px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.result-field-wide {
    grid-column: span 2;
}

.rf-label {
    font-family: var(--font-mono);
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 5px;
}

.rf-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
    word-break: break-word;
}

.rf-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.rf-ok {
    color: var(--ok);
    font-weight: 600;
}

.rf-hash {
    font-size: 0.78rem;
    color: var(--brand-deep);
}

.verifier-not-found {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: var(--err-bg);
    border-top: 1px solid var(--err-line);
}

.not-found-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid var(--err-line);
    color: var(--err);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.verifier-not-found h4 {
    margin: 0 0 4px;
    font-size: 0.96rem;
    color: var(--err);
}

.verifier-not-found p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--ink-2);
}

/* =========================================================================
   8. OJS VS EDITLINK SPECIFICATION TABLE & MIGRATION STRIP
   ========================================================================= */
.spec-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.spec-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ink);
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line-strong);
}

.spec-table thead th.col-editlink {
    background: var(--brand-tint);
    color: var(--brand-deep);
    border-bottom-color: var(--brand-line);
}

.spec-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.spec-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-criterion strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}

.cell-criterion span {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.cell-editlink {
    background: #fbfdff;
}

.spec-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.81rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
}

.spec-pill-fail {
    background: var(--err-bg);
    color: var(--err);
    border: 1px solid var(--err-line);
}

.spec-pill-warn {
    background: var(--warn-bg);
    color: var(--warn);
    border: 1px solid var(--warn-line);
}

.spec-pill-pass {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-line);
}

.migration-strip {
    margin-top: 24px;
    padding: 24px 28px;
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.migration-strip-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(3, 108, 235, 0.2);
    border: 1px solid rgba(59, 149, 255, 0.4);
    color: #6ab0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.migration-strip-body h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}

.migration-strip-body p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.76);
}

.migration-strip-action {
    flex-shrink: 0;
}

/* =========================================================================
   9. CONDITIONAL CATALOG (auto-styled when real journals/conferences exist)
   ========================================================================= */
.catalog-controls {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.catalog-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.catalog-search-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-field i {
    position: absolute;
    left: 13px;
    color: var(--ink-faint);
}

.search-input {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 38px;
    font-size: 0.88rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper-alt);
    color: var(--ink);
    outline: none;
}

.search-input:focus {
    border-color: var(--brand);
    background: var(--paper);
}

.search-clear {
    display: none;
    position: absolute;
    right: 8px;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
}

.catalog-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.catalog-filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-group-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin-right: 4px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip, .flag-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--ink-2);
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    cursor: pointer;
}

.filter-chip.active, .flag-chip.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pub-card {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pub-card-cover {
    height: 150px;
    background: var(--ink);
    position: relative;
}

.pub-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-cover-editorial {
    height: 100%;
    padding: 18px 20px 18px 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.cover-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--brand);
}

.cover-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.7);
}

.cover-q {
    background: var(--brand);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.cover-title {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
}

.cover-publisher {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.68);
}

.conf-card-head {
    padding: 14px 18px;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.conf-acronym-badge {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    padding: 3px 8px;
    border-radius: var(--radius-xs);
}

.deadline-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
}

.deadline-warning { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.deadline-success { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.deadline-muted { background: var(--paper-soft); color: var(--ink-muted); border: 1px solid var(--line); }

.pub-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.pub-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 3px;
}

.pub-tag-brand { background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-line); }
.pub-tag-navy { background: var(--ink); color: #ffffff; }
.pub-tag-green { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.pub-tag-subtle { background: var(--paper-alt); color: var(--ink-muted); border: 1px solid var(--line); }

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.pub-org {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 10px;
}

.pub-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.id-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 3px;
}

.id-item em { font-style: normal; color: var(--ink-faint); font-weight: 600; }

.pub-desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--ink-muted);
    margin: 0 0 14px;
    flex-grow: 1;
}

.pub-terms {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
}

.terms-lbl { color: var(--ink-muted); }
.terms-val { font-weight: 600; color: var(--ink); }
.terms-free { color: var(--ok); }

.pub-card-footer {
    padding: 12px 18px;
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pub-links-secondary {
    display: flex;
    gap: 6px;
}

.catalog-empty {
    text-align: center;
    padding: 48px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.empty-icon {
    font-size: 2rem;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

/* =========================================================================
   10. PRICING MATRIX
   ========================================================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--brand);
    border-width: 2px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.pricing-head {
    margin-bottom: 20px;
}

.pricing-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    background: var(--paper-alt);
    border: 1px solid var(--line);
    padding: 4px 9px;
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
}

.pricing-badge-featured {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.pricing-sub {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-muted);
    margin: 0;
}

.pricing-price-block {
    padding: 18px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
}

.pricing-period {
    font-size: 0.82rem;
    color: var(--ink-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.87rem;
    line-height: 1.48;
    color: var(--ink-2);
}

.pricing-features li i {
    color: var(--brand);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-action {
    margin-top: auto;
}

/* =========================================================================
   11. SECURITY & STANDARDS GRID
   ========================================================================= */
.security-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.security-card {
    padding: 28px 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.security-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.security-card h3 {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
}

.security-card p {
    font-size: 0.85rem;
    line-height: 1.58;
    color: var(--ink-muted);
    margin: 0;
}

/* =========================================================================
   12. ABOUT US — ТОО «SciVerse»
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 52px;
    align-items: stretch;
}

.about-story {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-story .section-title {
    margin-bottom: 20px;
}

.about-lead {
    font-size: 1.04rem;
    line-height: 1.68;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 16px;
}

.about-body {
    font-size: 0.94rem;
    line-height: 1.72;
    color: var(--ink-muted);
    margin: 0 0 28px;
}

.about-entity-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
}

.about-entity-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.about-entity-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.about-entity-name {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
}

.about-entity-role {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.about-cta-link {
    font-size: 0.85rem;
    white-space: nowrap;
}

.about-proof-panel {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.about-experience-head {
    background: var(--ink);
    color: #ffffff;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-bottom: 1px solid var(--navy-line);
}

.about-years-val {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #6ab0ff;
    flex-shrink: 0;
}

.about-years-label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.about-pillars {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.about-pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--line);
}

.about-pillar-item:last-child {
    border-bottom: none;
}

.about-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.about-pillar-item h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 5px;
    line-height: 1.3;
}

.about-pillar-item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.58;
    color: var(--ink-muted);
}

/* =========================================================================
   13. FAQ ACCORDION
   ========================================================================= */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 96px;
}

.faq-intro .section-title {
    margin-bottom: 14px;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line-strong);
}

.faq-trigger {
    width: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-trigger:hover {
    color: var(--brand);
}

.faq-icon {
    font-size: 1.15rem;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.66;
    color: var(--ink-muted);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--brand);
}

/* =========================================================================
   13. FINAL CTA BANNER
   ========================================================================= */
.cta-section {
    padding: 72px 0;
    background: var(--paper);
}

.cta-panel {
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 48px 52px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: center;
    gap: 36px;
    border: 1px solid var(--navy-line);
}

.cta-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6ab0ff;
    margin-bottom: 10px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #ffffff;
}

.cta-desc {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.76);
    border-top: 1px solid var(--navy-line);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.95fr 1.15fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--navy-line);
}

.footer-logo-link {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer-brand-desc {
    font-size: 0.86rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 18px;
    max-width: 340px;
}

.footer-lang-bar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
}

.footer-lang-bar a {
    color: rgba(255, 255, 255, 0.68);
    transition: color 0.15s ease;
}

.footer-lang-bar a:hover,
.footer-lang-bar a.active {
    color: #ffffff;
    font-weight: 600;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 16px;
}

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

.footer-links-list a,
.footer-contact-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.54);
}

.footer-legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* =========================================================================
   MODALS & FORMS
   ========================================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 25, 48, 0.62);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.modal-card-sm {
    max-width: 420px;
    text-align: center;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
}

.modal-header-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink-muted);
}

.modal-desc-center {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 8px 0 22px;
}

.modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line);
    background: var(--paper-alt);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.modal-close-btn:hover {
    color: var(--ink);
    border-color: var(--line-strong);
}

.success-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    color: var(--ok);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 14px;
}

.form-alert-error {
    padding: 11px 14px;
    margin-bottom: 16px;
    background: var(--err-bg);
    border: 1px solid var(--err-line);
    border-radius: var(--radius-sm);
    color: var(--err);
    font-size: 0.84rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--ink);
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
    border-color: var(--brand);
    background: var(--paper);
}

textarea.form-control {
    resize: vertical;
    min-height: 82px;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 1180px) {
    .header-nav {
        gap: 12px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .accents-grid,
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 1040px) {
    .header-nav,
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .section-header-split,
    .about-grid,
    .faq-layout,
    .cta-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .faq-intro {
        position: static;
    }

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

    .metric-cell {
        padding: 24px 18px;
        border-bottom: 1px solid var(--navy-line);
    }

    .metric-cell:first-child {
        padding-left: 18px;
    }

    .metric-cell:nth-child(2n) {
        border-right: none;
    }

    .arch-span-4,
    .arch-span-6,
    .arch-span-8,
    .arch-span-12 {
        grid-column: span 12;
    }

    .pricing-grid,
    .directory-grid {
        grid-template-columns: 1fr;
    }

    .migration-strip {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

@media (max-width: 680px) {
    .container {
        padding: 0 16px;
    }

    .brand-logo-link .editlink-svg-logo {
        height: 32px;
    }

    .section {
        padding: 64px 0;
    }

    .hero-section {
        padding: 44px 0 52px;
    }

    .hero-trust-list,
    .accents-grid,
    .workflow-grid,
    .security-grid,
    .result-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .result-field-wide {
        grid-column: span 1;
    }

    .dossier-kv-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .about-experience-head {
        padding: 22px 20px;
        gap: 16px;
    }

    .about-years-val {
        font-size: 2.2rem;
    }

    .about-pillar-item {
        padding: 18px 20px;
    }

    .verifier-form {
        flex-direction: column;
    }

    .cta-panel {
        padding: 32px 24px;
    }

    .cta-actions {
        width: 100%;
    }

    .role-tabs {
        width: 100%;
    }

    .role-tabs .seg-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* =========================================================================
   14. INTERACTIVE LIVE PRODUCT DEMO STUDIO (#live-demo)
   ========================================================================= */
.demo-studio {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 40px rgba(10, 25, 48, 0.08);
    overflow: hidden;
}

.demo-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 22px;
    background: var(--ink);
    color: #ffffff;
    border-bottom: 1px solid var(--navy-line);
}

.demo-chrome-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.demo-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.demo-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.demo-dots span:first-child {
    background: #3b82f6;
}

.demo-address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.84);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-address i {
    color: #6ab0ff;
    font-size: 0.85rem;
}

.demo-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
    font-family: var(--font-mono);
    font-size: 0.71rem;
    font-weight: 600;
    color: #a7f3d0;
    flex-shrink: 0;
}

.demo-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
}

.demo-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--line);
    border-bottom: 2px solid transparent;
    color: var(--ink-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    text-align: left;
}

.demo-tab:last-child {
    border-right: none;
}

.demo-tab:hover {
    color: var(--ink);
    background: rgba(3, 108, 235, 0.04);
}

.demo-tab.active {
    background: var(--paper);
    color: var(--brand);
    border-bottom-color: var(--brand);
}

.demo-tab-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--paper-soft);
    color: var(--ink-muted);
    flex-shrink: 0;
}

.demo-tab.active .demo-tab-num {
    background: var(--brand-tint);
    color: var(--brand);
}

.demo-panel {
    display: none;
    padding: 28px;
}

.demo-panel.active {
    display: block;
    animation: panelReveal 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Tab 1: Metadata Autofill */
.demo-autofill-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.34fr);
    gap: 24px;
    align-items: stretch;
}

.demo-upload-card {
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-upload-card.is-scanning {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(3, 108, 235, 0.1);
}

.demo-doc-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-doc-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo-doc-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.demo-doc-meta {
    min-width: 0;
}

.demo-doc-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-doc-sub {
    font-size: 0.77rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.demo-doc-sheet {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.doc-scan-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 28px;
    background: linear-gradient(180deg, rgba(3, 108, 235, 0) 0%, rgba(3, 108, 235, 0.22) 50%, rgba(3, 108, 235, 0) 100%);
    border-bottom: 2px solid var(--brand);
    opacity: 0;
    pointer-events: none;
}

.demo-upload-card.is-scanning .doc-scan-beam {
    opacity: 1;
    animation: scanSweep 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.doc-mock-line {
    height: 8px;
    border-radius: 4px;
    background: var(--paper-soft);
    margin-bottom: 9px;
}

.doc-mock-title {
    height: 11px;
    width: 78%;
    background: #dbe6f5;
}

.doc-mock-w85 { width: 85%; }
.doc-mock-w100 { width: 100%; }
.doc-mock-w92 { width: 92%; }
.doc-mock-w72 { width: 72%; margin-bottom: 14px; }

.doc-mock-spacer {
    height: 6px;
}

.doc-mock-pills {
    display: flex;
    gap: 8px;
}

.doc-mock-pills span {
    height: 16px;
    width: 56px;
    border-radius: 999px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
}

.demo-scan-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-progress-bar {
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}

.demo-progress-fill.is-complete {
    background: var(--ok);
}

.demo-scan-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.demo-scan-status.is-done {
    color: var(--ok);
    font-weight: 600;
}

.demo-form-preview {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.demo-form-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.demo-form-lang-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
}

.demo-mini-langs {
    display: inline-flex;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    padding: 2px;
    gap: 2px;
}

.demo-mini-lang {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.demo-mini-lang:hover {
    color: var(--ink);
}

.demo-mini-lang.active {
    background: var(--brand);
    color: #ffffff;
}

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

.demo-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
}

.demo-field-tick {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-field.is-empty .demo-field-tick {
    opacity: 0;
    transform: scale(0.6);
}

.demo-field-box {
    padding: 11px 14px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.demo-field.is-flash .demo-field-box,
.demo-field.is-flash .demo-author-box {
    border-color: var(--brand);
    background: var(--brand-tint);
}

.demo-field.is-empty .demo-field-box {
    color: var(--ink-faint);
    font-style: italic;
}

.demo-field-title-val {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
}

.demo-field-abstract-val {
    font-size: 0.84rem;
    line-height: 1.56;
    color: var(--ink-2);
}

.demo-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 14px;
}

.demo-kw-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    min-height: 76px;
    align-content: flex-start;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.demo-kw-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand-deep);
    font-size: 0.76rem;
    font-weight: 600;
    animation: pillPop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.demo-author-box {
    padding: 10px 13px;
    min-height: 76px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.demo-author-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ink);
}

.demo-author-affil {
    font-size: 0.76rem;
    color: var(--ink-muted);
}

.demo-orcid-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 600;
    color: var(--ok);
}

/* Tab 2: Issue DOI & KazINC Table */
.demo-issue-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.demo-issue-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.demo-issue-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: var(--radius-xs);
    background: var(--ink);
    color: #ffffff;
}

.demo-issue-sub {
    font-size: 0.86rem;
    color: var(--ink-muted);
}

.demo-issue-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.demo-reset-btn {
    padding-left: 10px;
    padding-right: 10px;
}

.demo-issue-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.demo-issue-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.demo-issue-table th {
    padding: 11px 14px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
}

.demo-issue-table .col-num {
    width: 48px;
    text-align: center;
}

.demo-issue-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    transition: background-color 0.25s ease;
}

.demo-issue-table tbody tr:last-child td {
    border-bottom: none;
}

.demo-issue-table tbody tr.row-highlight td {
    background: rgba(3, 108, 235, 0.045);
}

.issue-num {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-faint);
    text-align: center;
}

.issue-art-title {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}

.issue-art-author {
    font-size: 0.77rem;
    color: var(--ink-muted);
    margin-top: 2px;
}

.issue-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-xs);
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.22s ease;
}

.issue-status-pill.is-idle {
    background: var(--paper-alt);
    color: var(--ink-muted);
    border: 1px solid var(--line);
}

.issue-status-pill.is-busy {
    background: var(--brand-tint);
    color: var(--brand);
    border: 1px solid var(--brand-line);
}

.issue-status-pill.is-done {
    background: var(--ok-bg);
    color: var(--ok);
    border: 1px solid var(--ok-line);
}

.demo-issue-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.demo-issue-counters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.issue-counter-pill {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.issue-counter-pill.is-done {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok);
}

.demo-issue-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.81rem;
    color: var(--ink-muted);
}

.demo-issue-hint i {
    color: var(--brand);
}

/* Tab 3: Official QR Letters & Reviewer Certificates */
.demo-cert-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 28px;
    align-items: center;
}

.demo-cert-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.demo-cert-switch {
    display: inline-flex;
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.demo-cert-toggle {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--ink-muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.demo-cert-toggle.active {
    background: var(--ink);
    color: #ffffff;
}

.demo-cert-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-cert-points li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.89rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.demo-cert-points li i {
    color: var(--brand);
    font-size: 1.08rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.demo-cert-cta-wrap {
    padding-top: 4px;
}

.demo-cert-sheet {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(10, 25, 48, 0.08);
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-cert-sheet.is-switching {
    opacity: 0.4;
    transform: translateY(4px);
}

.cert-sheet-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 20px;
    background: var(--ink);
    color: #ffffff;
}

.cert-sheet-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
}

.cert-brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
}

.cert-verified-seal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.36);
    color: #a7f3d0;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 600;
}

.cert-sheet-body {
    padding: 22px;
}

.cert-sheet-type {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.cert-sheet-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
}

.cert-sheet-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.cert-lbl {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
}

.cert-val {
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ink-2);
}

.cert-val-lg {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
}

.cert-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.cert-qr-svg {
    display: block;
    border-radius: 4px;
}

.cert-qr-caption {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    color: var(--ink-muted);
    text-align: center;
}

.cert-sheet-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cert-foot-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-code {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.cert-date {
    font-size: 0.78rem;
    color: var(--ink-2);
}

.cert-foot-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--ok);
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    padding: 4px 10px;
    border-radius: var(--radius-xs);
}

/* =========================================================================
   15. INTERACTIVE WORKFLOW ENHANCEMENTS (#workflow)
   ========================================================================= */
.workflow-interactive-wrap {
    display: flex;
    flex-direction: column;
}

.workflow-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.workflow-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-muted);
}

.workflow-hint i {
    color: var(--brand);
    font-size: 1rem;
}

.workflow-step-counter {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    padding: 3px 9px;
    border-radius: var(--radius-xs);
}

.workflow-progress-track {
    height: 4px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}

.workflow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand) 0%, #3b82f6 100%);
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.workflow-step {
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.workflow-step:focus-visible {
    box-shadow: inset 0 0 0 2px var(--brand);
}

.workflow-step.is-active {
    background: var(--brand-tint);
}

.workflow-step.is-active::before {
    background: var(--brand);
    height: 3px;
}

.workflow-step.is-active .workflow-step-icon {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.workflow-live-bar {
    margin-top: 16px;
    padding: 18px 22px;
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--navy-line);
}

.wf-live-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wf-manuscript-id {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.04em;
}

.wf-stage-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: var(--radius-xs);
    background: rgba(3, 108, 235, 0.22);
    border: 1px solid rgba(106, 176, 255, 0.42);
    font-size: 0.82rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.wf-live-meta {
    display: grid;
    grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
    gap: 18px;
    padding-left: 20px;
    border-left: 1px solid var(--navy-line);
}

.wf-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wf-meta-cell-wide {
    min-width: 0;
}

.wf-meta-lbl {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.56);
}

.wf-meta-val {
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.wf-live-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wf-nav-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wf-nav-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
}

/* =========================================================================
   16. INTERACTIVE EDITORIAL TIME-SAVINGS CALCULATOR (#roi-calculator)
   ========================================================================= */
.roi-calc-card {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 28px 30px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 36px;
    align-items: center;
}

.roi-calc-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.roi-calc-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.roi-calc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand);
}

.roi-calc-title {
    font-family: var(--font-display);
    font-size: 1.24rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    line-height: 1.28;
}

.roi-calc-desc {
    margin: 0;
    font-size: 0.87rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.roi-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roi-slider-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.roi-slider-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.roi-slider-badge {
    font-size: 0.82rem;
    color: var(--brand-deep);
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    padding: 3px 10px;
    border-radius: var(--radius-xs);
}

.roi-slider-badge strong {
    font-weight: 700;
}

.roi-range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    outline: none;
    cursor: pointer;
}

.roi-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(3, 108, 235, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.roi-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}

.roi-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(3, 108, 235, 0.35);
    cursor: pointer;
}

.roi-range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--ink-faint);
}

.roi-calc-results {
    background: var(--ink);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.roi-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.roi-kpi-tile {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.roi-kpi-primary {
    background: rgba(3, 108, 235, 0.22);
    border-color: rgba(106, 176, 255, 0.42);
}

.roi-kpi-val {
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.roi-kpi-val em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: #8cc4ff;
}

.roi-kpi-label {
    font-size: 0.75rem;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.74);
}

.roi-rec-bar {
    padding-top: 14px;
    border-top: 1px solid var(--navy-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.roi-rec-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.roi-rec-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.68);
}

.roi-rec-plan {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: #6ab0ff;
}

.pricing-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.pricing-card-recommended {
    border-color: var(--brand);
    box-shadow: 0 12px 30px rgba(3, 108, 235, 0.14);
}

/* =========================================================================
   17. B2B MICRO-ANIMATIONS, SCROLL REVEAL & HEADER POLISH
   ========================================================================= */
.site-header {
    transition: box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 26px rgba(10, 25, 48, 0.07);
    border-bottom-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.98);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link.is-active {
    color: var(--brand);
}

.nav-link.is-active::after {
    transform: scaleX(1);
}

.btn i.ti-arrow-right {
    transition: transform 0.18s ease;
}

.btn:hover i.ti-arrow-right {
    transform: translateX(3px);
}

.arch-cell,
.security-card,
.pub-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.arch-cell:hover,
.security-card:hover {
    background: #fcfdff;
}

.dossier-panel.active,
.role-panel.active {
    animation: panelReveal 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.live-dot-pulse {
    position: relative;
}

.live-dot-pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    opacity: 0;
    animation: pulseRing 2.2s ease-out infinite;
}

.js-anim [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1), transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-anim [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scanSweep {
    0% { top: -18px; }
    100% { top: calc(100% + 12px); }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 0.75;
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@keyframes pillPop {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive overrides for interactive components */
@media (max-width: 980px) {
    .demo-tabs {
        grid-template-columns: 1fr;
    }

    .demo-tab {
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .demo-tab.active {
        border-bottom-color: var(--brand);
    }

    .demo-autofill-grid,
    .demo-cert-grid,
    .roi-calc-card {
        grid-template-columns: 1fr;
    }

    .workflow-live-bar {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wf-live-meta {
        padding-left: 0;
        padding-top: 14px;
        border-left: none;
        border-top: 1px solid var(--navy-line);
    }
}

@media (max-width: 680px) {
    .demo-chrome {
        padding: 11px 14px;
    }

    .demo-live-pill {
        display: none;
    }

    .demo-panel {
        padding: 18px 14px;
    }

    .demo-field-row,
    .cert-sheet-main,
    .wf-live-meta,
    .roi-kpi-grid {
        grid-template-columns: 1fr;
    }

    .roi-calc-card {
        padding: 20px 16px;
    }

    .demo-cert-switch {
        flex-direction: column;
    }
}

/* =========================================================================
   18. AMBIENT SELF-PLAYING MINI-UI SCENES (ZERO-CLICK FEATURE VISUALS)
   ========================================================================= */
.ui-stage {
    margin: 18px 0 16px;
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background-color: var(--paper-alt);
    background-image: radial-gradient(rgba(10, 25, 48, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ui-stage-wide {
    padding: 16px;
    min-height: 150px;
}

/* --- Scene 1: KazINC Live Issue Transfer --- */
.amb-kazinc {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.78fr);
    gap: 12px;
    align-items: center;
}

.amb-source-box {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 10px 11px;
    box-shadow: var(--shadow-sm);
}

.amb-mini-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.69rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 7px;
    margin-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

.amb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.amb-dot-blue {
    background: var(--brand);
}

.amb-mini-rows {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.amb-k-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.71rem;
    color: var(--ink-muted);
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--paper-alt);
    transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
}

.amb-k-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line-strong);
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.amb-k-check {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--ok);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.amb-k-row.is-sending {
    background: var(--brand-tint);
    color: var(--brand-deep);
    transform: translateX(3px);
}

.amb-k-row.is-sending .amb-k-bullet {
    background: var(--brand);
}

.amb-k-row.is-sent {
    background: var(--ok-bg);
    color: var(--ok);
}

.amb-k-row.is-sent .amb-k-bullet {
    background: var(--ok);
}

.amb-k-row.is-sent .amb-k-check {
    opacity: 1;
    transform: scale(1);
}

.amb-pipe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.amb-pipe-track {
    width: 100%;
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    position: relative;
    overflow: visible;
}

.amb-pipe-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand) 0%, #3b82f6 100%);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}

[data-ambient-scene="kazinc"][data-step="1"] .amb-pipe-fill { width: 34%; }
[data-ambient-scene="kazinc"][data-step="2"] .amb-pipe-fill { width: 68%; }
[data-ambient-scene="kazinc"][data-step="3"] .amb-pipe-fill { width: 100%; }
[data-ambient-scene="kazinc"][data-step="4"] .amb-pipe-fill {
    width: 100%;
    background: var(--ok);
}

.amb-pipe-packet {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    box-shadow: 0 3px 10px rgba(3, 108, 235, 0.38);
    opacity: 0;
    pointer-events: none;
}

[data-ambient-scene="kazinc"][data-step="1"] .amb-pipe-packet,
[data-ambient-scene="kazinc"][data-step="2"] .amb-pipe-packet,
[data-ambient-scene="kazinc"][data-step="3"] .amb-pipe-packet {
    animation: ambPacketGlide 0.9s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.amb-pipe-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-align: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

[data-ambient-scene="kazinc"][data-step="4"] .amb-pipe-label {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok);
}

.amb-target-box {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 11px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
}

[data-ambient-scene="kazinc"][data-step="4"] .amb-target-box {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    box-shadow: 0 6px 18px rgba(4, 120, 87, 0.12);
}

.amb-target-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-xs);
    background: var(--ink);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.96rem;
    transition: background-color 0.28s ease;
}

[data-ambient-scene="kazinc"][data-step="4"] .amb-target-icon {
    background: var(--ok);
}

.amb-target-name {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ink);
}

.amb-target-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand);
}

[data-ambient-scene="kazinc"][data-step="4"] .amb-target-count {
    color: var(--ok);
}

/* --- Scene 2: Crossref DOI Batch Registration --- */
.amb-crossref {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.amb-cr-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ink);
    color: #ffffff;
}

.amb-cr-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.amb-cr-badge {
    font-size: 0.64rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(3, 108, 235, 0.28);
    color: #93c5fd;
    transition: background-color 0.25s ease, color 0.25s ease;
}

[data-ambient-scene="crossref"][data-step="4"] .amb-cr-badge {
    background: rgba(16, 185, 129, 0.22);
    color: #a7f3d0;
}

.amb-cr-list {
    display: flex;
    flex-direction: column;
}

.amb-cr-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line);
    transition: background-color 0.25s ease;
}

.amb-cr-row:last-child {
    border-bottom: none;
}

.amb-cr-row.is-busy {
    background: var(--brand-tint);
}

.amb-cr-row.is-done {
    background: rgba(236, 253, 245, 0.55);
}

.amb-cr-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-2);
}

.amb-cr-doi {
    font-size: 0.69rem;
    color: var(--ink-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}

.amb-cr-row.is-busy .amb-cr-doi {
    color: var(--brand);
    font-weight: 600;
}

.amb-cr-row.is-done .amb-cr-doi {
    color: var(--brand-deep);
    font-weight: 600;
}

.amb-cr-state {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--line-strong);
    font-size: 0.88rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.amb-cr-row.is-busy .amb-cr-state {
    color: var(--brand);
}

.amb-cr-row.is-done .amb-cr-state {
    color: var(--ok);
    transform: scale(1.06);
}

/* --- Scene 3: Metadata Autofill Split --- */
.amb-autofill {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 10px;
    align-items: stretch;
}

.amb-af-doc {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.25s ease;
}

[data-ambient-scene="autofill"][data-step="1"] .amb-af-doc,
[data-ambient-scene="autofill"][data-step="2"] .amb-af-doc {
    border-color: var(--brand);
}

.amb-af-beam {
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 20px;
    background: linear-gradient(180deg, rgba(3, 108, 235, 0) 0%, rgba(3, 108, 235, 0.25) 55%, rgba(3, 108, 235, 0) 100%);
    border-bottom: 1.5px solid var(--brand);
    opacity: 0;
    pointer-events: none;
}

[data-ambient-scene="autofill"][data-step="1"] .amb-af-beam,
[data-ambient-scene="autofill"][data-step="2"] .amb-af-beam {
    opacity: 1;
    animation: scanSweep 1.1s linear infinite;
}

.amb-af-doc-top {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand-deep);
}

.amb-af-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.amb-af-lines span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: var(--paper-soft);
}

.amb-l-75 { width: 75%; background: #dbeafe !important; }
.amb-l-100 { width: 100%; }
.amb-l-88 { width: 88%; }
.amb-l-62 { width: 62%; }

.amb-af-fields {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.amb-af-top {
    display: flex;
    justify-content: flex-end;
}

.amb-af-pill {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand);
    border: 1px solid var(--brand-line);
    transition: all 0.25s ease;
}

[data-ambient-scene="autofill"][data-step="4"] .amb-af-pill {
    background: var(--ok-bg);
    color: var(--ok);
    border-color: var(--ok-line);
}

.amb-af-slot {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.amb-slot-lbl {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-faint);
}

.amb-slot-bar {
    height: 7px;
    width: 34%;
    border-radius: 3px;
    background: var(--line);
    transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease;
}

.amb-slot-bar-strong {
    height: 8px;
}

.amb-af-slot.is-filled .amb-slot-bar {
    width: 92%;
    background: #93c5fd;
}

.amb-af-slot.is-filled .amb-slot-bar-strong {
    width: 100%;
    background: var(--brand);
}

.amb-af-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.amb-af-tag {
    font-size: 0.61rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand-deep);
    border: 1px solid var(--brand-line);
    opacity: 0.2;
    transform: translateY(3px) scale(0.92);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.amb-af-slot.is-filled .amb-af-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.amb-af-slot.is-filled .amb-af-tag:nth-child(2) { transition-delay: 80ms; }
.amb-af-slot.is-filled .amb-af-tag:nth-child(3) { transition-delay: 160ms; }

/* --- Scene 4: QR Certificate Scan --- */
.amb-qr-card {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.amb-qr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.amb-qr-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.amb-qr-code {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--brand);
}

.amb-qr-holder {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amb-qr-journal {
    font-size: 0.7rem;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amb-qr-frame {
    position: relative;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid var(--line);
    background: var(--paper-alt);
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

[data-ambient-scene="qr"][data-step="1"] .amb-qr-frame,
[data-ambient-scene="qr"][data-step="2"] .amb-qr-frame {
    border-color: var(--brand);
}

[data-ambient-scene="qr"][data-step="3"] .amb-qr-frame {
    border-color: var(--ok-line);
}

.amb-qr-svg {
    display: block;
}

.amb-qr-laser {
    position: absolute;
    left: 2px;
    right: 2px;
    top: 0;
    height: 2px;
    background: var(--brand);
    box-shadow: 0 0 8px rgba(3, 108, 235, 0.75);
    opacity: 0;
    pointer-events: none;
}

[data-ambient-scene="qr"][data-step="1"] .amb-qr-laser,
[data-ambient-scene="qr"][data-step="2"] .amb-qr-laser {
    opacity: 1;
    animation: ambQrScan 1s ease-in-out infinite alternate;
}

.amb-qr-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    color: var(--brand-deep);
    transition: background-color 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

[data-ambient-scene="qr"][data-step="3"] .amb-qr-status {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok);
}

/* --- Scene 5: Tamper-Proof Integrity Chain --- */
.amb-integrity {
    width: 100%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xs);
    padding: 13px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.amb-chain {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.amb-chain-line {
    position: absolute;
    top: 17px;
    left: 16%;
    right: 16%;
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    z-index: 1;
}

.amb-chain-fill {
    height: 100%;
    width: 0%;
    background: var(--brand);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease;
}

[data-ambient-scene="integrity"][data-step="1"] .amb-chain-fill { width: 50%; }
[data-ambient-scene="integrity"][data-step="2"] .amb-chain-fill { width: 100%; }
[data-ambient-scene="integrity"][data-step="3"] .amb-chain-fill {
    width: 100%;
    background: var(--ok);
}

.amb-node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.amb-node-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper-alt);
    border: 1.5px solid var(--line-strong);
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.28s ease;
}

.amb-node span {
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color 0.25s ease;
}

.amb-node.is-active .amb-node-circle {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(3, 108, 235, 0.28);
    transform: scale(1.06);
}

.amb-node.is-active span {
    color: var(--ink);
}

.amb-node.is-locked .amb-node-circle {
    background: var(--ok-bg);
    border-color: var(--ok);
    color: var(--ok);
}

.amb-node.is-locked span {
    color: var(--ok);
}

.amb-ig-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink-2);
    transition: all 0.28s ease;
}

[data-ambient-scene="integrity"][data-step="3"] .amb-ig-status {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok);
}

/* --- Bonus Scene 6: OJS Migration Ambient Flow --- */
.amb-mig-flow {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amb-mig-node {
    font-size: 0.71rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    white-space: nowrap;
}

.amb-mig-from {
    background: var(--paper-alt);
    border: 1px solid var(--line-strong);
    color: var(--ink-muted);
}

.amb-mig-to {
    background: var(--ok-bg);
    border: 1px solid var(--ok-line);
    color: var(--ok);
}

.amb-mig-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-line);
    overflow: hidden;
}

.amb-mig-stream {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 108, 235, 0) 0%, rgba(3, 108, 235, 0.22) 50%, rgba(3, 108, 235, 0) 100%);
    transform: translateX(-100%);
    animation: ambMigSweep 2.4s ease-in-out infinite;
    pointer-events: none;
}

.amb-mig-mid {
    position: relative;
    z-index: 1;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--brand-deep);
}

@keyframes ambPacketGlide {
    0% { left: 8%; opacity: 0; transform: translate(-50%, -50%) scale(0.75); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { left: 92%; opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

@keyframes ambQrScan {
    0% { top: 4px; }
    100% { top: calc(100% - 6px); }
}

@keyframes ambMigSweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 680px) {
    .amb-kazinc {
        grid-template-columns: 1fr;
    }

    .amb-pipe {
        padding: 4px 0;
    }

    .amb-autofill {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   19. HERO ARCHITECTURAL ECOSYSTEM FLOW GRAPH (STRIPE / VERCEL EDITION)
   ========================================================================= */
.hero-flow-stage {
    position: relative;
    width: 100%;
    min-height: 418px;
    padding: 20px 6px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    user-select: none;
    isolation: isolate;
}

/* Soft Radial-Masked Architectural Dot Grid */
.hf-grid-bg {
    position: absolute;
    inset: -12px -18px;
    background-image: radial-gradient(rgba(10, 25, 48, 0.14) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 76% 74% at 50% 48%, #000000 38%, transparent 100%);
    mask-image: radial-gradient(ellipse 76% 74% at 50% 48%, #000000 38%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Serene Two-Tone Ambient Hub Glow */
.hf-aura {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 340px;
    height: 300px;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 46% 48%, rgba(3, 108, 235, 0.14) 0%, rgba(3, 108, 235, 0.04) 44%, transparent 72%),
        radial-gradient(circle at 64% 58%, rgba(16, 185, 129, 0.09) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
    animation: hfAuraBreathe 7.5s ease-in-out infinite;
}

/* Dynamic Pixel-Exact SVG Layer */
.hf-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.hf-track {
    fill: none;
    stroke: rgba(10, 25, 48, 0.12);
    stroke-width: 1.35;
    stroke-linecap: round;
}

.hf-beam,
.hf-beam-glow {
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 28 100;
    stroke-dashoffset: 128;
    opacity: 0;
}

.hf-beam {
    stroke-width: 2.3;
}

.hf-beam-glow {
    stroke-width: 7;
}

.hf-beam-in {
    stroke: url(#hf-grad-in);
}

.hf-beam-brand {
    stroke: url(#hf-grad-out-brand);
}

.hf-beam-emerald {
    stroke: url(#hf-grad-out-emerald);
}

.hf-beam.is-firing {
    animation: hfBeamFlow 1.05s cubic-bezier(0.36, 0.04, 0.24, 1) forwards;
}

.hf-beam-glow.is-firing {
    animation: hfBeamGlowFlow 1.05s cubic-bezier(0.36, 0.04, 0.24, 1) forwards;
}

/* 3-Column Spatial Graph Layout */
.hf-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 106px minmax(0, 1.12fr);
    align-items: center;
    gap: 22px;
    width: 100%;
}

.hf-col {
    display: flex;
    flex-direction: column;
}

.hf-col-inputs {
    gap: 24px;
}

.hf-col-outputs {
    gap: 14px;
}

.hf-col-core {
    align-items: center;
    justify-content: center;
}

/* Refined Floating SaaS Nodes */
.hf-node {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 25, 48, 0.1);
    box-shadow:
        0 1px 2px rgba(10, 25, 48, 0.04),
        0 6px 18px -10px rgba(10, 25, 48, 0.14);
    transition: border-color 0.32s ease, box-shadow 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.32s ease;
}

.hf-node-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 0.96rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hf-node-copy {
    min-width: 0;
    flex: 1;
}

.hf-node-title {
    font-family: var(--font-display);
    font-size: 0.77rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hf-node-meta {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Precision Connection Port Dots */
.hf-port {
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(10, 25, 48, 0.24);
    transform: translateY(-50%);
    transition: border-color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
    pointer-events: none;
}

.hf-port-right {
    right: -4px;
}

.hf-port-left {
    left: -4px;
}

/* Subtle Output Status LED */
.hf-status-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background-color 0.28s ease, box-shadow 0.28s ease;
}

/* Active Illumination States (Calm, Executive Precision) */
.hf-node-in.is-sending {
    border-color: rgba(3, 108, 235, 0.45);
    background: #ffffff;
    box-shadow:
        0 4px 16px -4px rgba(3, 108, 235, 0.22),
        0 0 0 3px rgba(3, 108, 235, 0.06);
    transform: translateX(2px);
}

.hf-node-in.is-sending .hf-node-icon {
    background: var(--brand-tint);
    border-color: var(--brand-line);
    color: var(--brand);
}

.hf-node-in.is-sending .hf-port {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(3, 108, 235, 0.2);
}

.hf-node-out.hf-accent-brand.is-lit {
    border-color: rgba(3, 108, 235, 0.45);
    background: #ffffff;
    box-shadow:
        0 4px 18px -4px rgba(3, 108, 235, 0.22),
        0 0 0 3px rgba(3, 108, 235, 0.06);
    transform: translateX(-2px);
}

.hf-node-out.hf-accent-brand.is-lit .hf-node-icon {
    background: var(--brand-tint);
    border-color: var(--brand-line);
    color: var(--brand);
}

.hf-node-out.hf-accent-brand.is-lit .hf-port,
.hf-node-out.hf-accent-brand.is-lit .hf-status-led {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(3, 108, 235, 0.22);
}

.hf-node-out.hf-accent-emerald.is-lit {
    border-color: rgba(4, 120, 87, 0.42);
    background: #ffffff;
    box-shadow:
        0 4px 18px -4px rgba(4, 120, 87, 0.2),
        0 0 0 3px rgba(16, 185, 129, 0.08);
    transform: translateX(-2px);
}

.hf-node-out.hf-accent-emerald.is-lit .hf-node-icon {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok);
}

.hf-node-out.hf-accent-emerald.is-lit .hf-port,
.hf-node-out.hf-accent-emerald.is-lit .hf-status-led {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.24);
}

/* Iconic Central EditLink Conduit (Variant B: Open Floating Interlocked Links) */
.hf-core-wrap {
    position: relative;
    width: 106px;
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Soft White Radial Cloud Dissolving Dot-Grid Behind Floating Logo */
.hf-core-cloud {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 158px;
    height: 122px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(
        ellipse 62% 58% at 50% 50%,
        rgba(255, 255, 255, 0.96) 28%,
        rgba(255, 255, 255, 0.72) 56%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.hf-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.hf-ring-inner {
    width: 134px;
    height: 134px;
    border: 1px solid rgba(3, 108, 235, 0.13);
}

.hf-ring-outer {
    width: 186px;
    height: 186px;
    border: 1px dashed rgba(10, 25, 48, 0.08);
    animation: hfRingSlowSpin 48s linear infinite;
}

.hf-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1.5px solid rgba(3, 108, 235, 0.45);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.hf-ripple.is-expanding {
    animation: hfCoreRipple 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hf-core-mark {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    will-change: transform;
}

.hf-mark-svg {
    display: block;
    overflow: visible;
    filter: drop-shadow(0 8px 20px rgba(3, 108, 235, 0.26));
    transition: filter 0.35s ease;
}

.hf-core-mark.is-intro {
    animation: hfLogoIntroPop 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hf-core-mark.is-retracing {
    animation: hfLogoBreath 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hf-core-mark.is-intro .hf-mark-svg,
.hf-core-mark.is-retracing .hf-mark-svg {
    animation: hfLogoGlowBloom 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Exact Variant 1 EditLink Contour Draw-On (Matches Promo Video Outro) */
.hf-logo-draw {
    stroke-dasharray: 106 124;
    stroke-dashoffset: 0;
}

.hf-logo-draw.is-intro {
    animation: hfLogoIntroDraw 1.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hf-logo-draw.is-retracing {
    animation: hfLogoRetrace 1.15s cubic-bezier(0.45, 0, 0.2, 1) both;
}

.hf-logo-draw-2.is-intro,
.hf-logo-draw-2.is-retracing {
    animation-delay: 0.06s;
}

/* Seamless Left & Right Link Junction Ports */
.hf-link-port {
    fill: #ffffff;
    stroke: #036ceb;
    stroke-width: 4.5;
    transition: fill 0.22s ease, stroke 0.22s ease, transform 0.22s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.hf-link-port.is-hot {
    fill: #38bdf8;
    stroke: #036ceb;
    transform: scale(1.28);
}

.hf-link-port-out.is-hot {
    fill: #34d399;
    stroke: #047857;
    transform: scale(1.28);
}

.hf-core-caption {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid rgba(10, 25, 48, 0.09);
    box-shadow: 0 4px 14px -4px rgba(10, 25, 48, 0.1);
    white-space: nowrap;
}

.hf-core-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.15;
}

.hf-core-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hf-core-sub {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
    margin-top: 2px;
    white-space: nowrap;
}

/* Quiet Swiss Telemetry Whisper */
.hf-telemetry {
    position: relative;
    z-index: 2;
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.67rem;
    font-weight: 600;
    color: var(--ink-muted);
    letter-spacing: 0.02em;
}

.hf-tel-item {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(10, 25, 48, 0.08);
    color: var(--ink-2);
}

.hf-tel-sep {
    color: rgba(10, 25, 48, 0.28);
}

/* Keyframes */
@keyframes hfBeamFlow {
    0% {
        stroke-dashoffset: 128;
        opacity: 0;
    }
    14% {
        opacity: 1;
    }
    82% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -30;
        opacity: 0;
    }
}

@keyframes hfBeamGlowFlow {
    0% {
        stroke-dashoffset: 128;
        opacity: 0;
    }
    18% {
        opacity: 0.28;
    }
    80% {
        opacity: 0.26;
    }
    100% {
        stroke-dashoffset: -30;
        opacity: 0;
    }
}

@keyframes hfLogoIntroDraw {
    0% {
        stroke-dashoffset: 112;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes hfLogoRetrace {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -230;
    }
}

@keyframes hfLogoIntroPop {
    0% {
        transform: scale(0.84);
        opacity: 0.25;
    }
    55% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes hfLogoBreath {
    0% {
        transform: scale(1);
    }
    46% {
        transform: scale(1.045);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes hfLogoGlowBloom {
    0% {
        filter: drop-shadow(0 8px 20px rgba(3, 108, 235, 0.26));
    }
    50% {
        filter: drop-shadow(0 10px 26px rgba(3, 108, 235, 0.48)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.36));
    }
    100% {
        filter: drop-shadow(0 8px 20px rgba(3, 108, 235, 0.26));
    }
}

@keyframes hfCoreRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.95);
        opacity: 0;
    }
}

@keyframes hfAuraBreathe {
    0%, 100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.07);
    }
}

@keyframes hfRingSlowSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Tablet & Mobile */
@media (max-width: 1120px) {
    .hf-layout {
        grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1.1fr);
        gap: 18px;
    }

    .hf-node {
        padding: 8px 9px;
        gap: 7px;
    }

    .hf-node-icon {
        width: 27px;
        height: 27px;
        font-size: 0.88rem;
    }

    .hf-core-wrap {
        width: 92px;
        height: 66px;
    }

    .hf-mark-svg {
        width: 92px;
        height: 65px;
    }

    .hf-ripple {
        width: 82px;
        height: 82px;
    }
}

@media (max-width: 680px) {
    .hero-flow-stage {
        min-height: 0;
        padding: 16px 0 8px;
    }

    .hf-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hf-col-inputs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .hf-col-outputs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .hf-node-in {
        flex-direction: column;
        text-align: center;
        padding: 9px 6px;
        gap: 5px;
    }

    .hf-node-in .hf-node-meta {
        display: none;
    }

    .hf-core-wrap {
        width: auto;
        height: auto;
        gap: 10px;
    }

    .hf-core-caption {
        position: static;
        transform: none;
    }

    .hf-core-cloud,
    .hf-ring,
    .hf-ripple {
        top: 34px;
    }

    .hf-link-port {
        opacity: 0;
    }

    .hf-port-right {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -4px;
        transform: translateX(-50%);
    }

    .hf-port-left {
        left: 50%;
        top: -4px;
        transform: translateX(-50%);
    }

    .hf-ring-outer {
        width: 146px;
        height: 146px;
    }

    .hf-ring-inner {
        width: 108px;
        height: 108px;
    }

    .hf-telemetry {
        margin-top: 16px;
        gap: 6px;
    }

    .hf-tel-sep {
        display: none;
    }
}

/* =========================================================================
   20. FLOATING SCROLL-TO-TOP BUTTON
   ========================================================================= */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(10, 25, 48, 0.13);
    color: var(--ink);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow:
        0 2px 6px rgba(10, 25, 48, 0.06),
        0 10px 24px -8px rgba(10, 25, 48, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 0.24s ease,
        visibility 0.24s ease,
        transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(3, 108, 235, 0.42);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

.scroll-top-btn:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

@media (max-width: 680px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-anim [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .scroll-top-btn {
        transition: opacity 0.15s ease;
        transform: none !important;
    }

    .live-dot-pulse::after,
    .doc-scan-beam,
    .demo-panel.active,
    .dossier-panel.active,
    .role-panel.active,
    .demo-kw-pill,
    .amb-pipe-packet,
    .amb-af-beam,
    .amb-qr-laser,
    .amb-mig-stream,
    .hf-aura,
    .hf-ring-outer,
    .hf-beam,
    .hf-beam-glow,
    .hf-core-mark,
    .hf-mark-svg,
    .hf-logo-draw,
    .hf-ripple {
        animation: none !important;
    }

    .hf-logo-draw {
        stroke-dashoffset: 0 !important;
        opacity: 1 !important;
    }
}
