/* ============================================================
   NEXZ Platform – Design System 3.1
   Modern Light Mode | Inter + Space Grotesk | Blue Accent
   ============================================================ */

:root {
    /* Backgrounds */
    --bg:     #F1F5F9;
    --bg-alt: #F8FAFC;

    /* Surfaces */
    --surface: #FFFFFF;

    /* Borders */
    --line:        #E2E8F0;
    --line-strong: #CBD5E1;

    /* Text */
    --text:  #1E293B;
    --muted: #64748B;

    /* Primary – Blue */
    --accent:        #2563EB;
    --accent-strong: #1D4ED8;
    --accent-soft:   #EFF6FF;
    --accent-hover:  #3B82F6;

    /* Secondary – Amber */
    --warm:      #D97706;
    --warm-soft: #FFFBEB;

    /* Status */
    --danger:       #DC2626;
    --danger-soft:  #FEF2F2;
    --success:      #16A34A;
    --success-soft: #F0FDF4;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow:      0 4px 24px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 1px 6px  rgba(15, 23, 42, 0.06);
}


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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3, h4,
.brand-text, .brand-mark {
    font-family: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1, h2, h3, h4, p, ul, ol, dl { margin: 0; }

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

button, input, textarea, select {
    font: inherit;
    color: inherit;
}

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


/* ── Utilities ──────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 9999;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }


/* ── Page backdrop ──────────────────────────────────────────── */
.page-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.backdrop-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.backdrop-shape-a {
    width: 600px; height: 600px;
    top: -200px; right: -150px;
    background: rgba(99, 102, 241, 0.06);
}
.backdrop-shape-b {
    width: 500px; height: 500px;
    bottom: 5%; left: -150px;
    background: rgba(37, 99, 235, 0.05);
}
.backdrop-shape-c {
    width: 380px; height: 380px;
    top: 40%; right: 18%;
    background: rgba(139, 92, 246, 0.04);
}


/* ── Z-index layers ─────────────────────────────────────────── */
.site-header,
.flash-stack,
.shell,
.site-footer { position: relative; z-index: 2; }


/* ══════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
══════════════════════════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    background: rgba(255, 255, 255, 0.90);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
}
.header-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.brand-block p {
    margin: 0;
    font-size: 0.74rem;
    color: var(--muted);
    line-height: 1;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
    flex-shrink: 0;
}
.brand-text {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.site-nav a {
    padding: 6px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.12s, color 0.12s;
    white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--line); }
.site-nav a.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}
.nav-meta {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg-alt);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.nav-toggle {
    display: none;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--muted);
}
.logout-form { margin: 0; }

.nav-chat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}


/* ══════════════════════════════════════════════════════════════
   FLASH NOTICES
══════════════════════════════════════════════════════════════ */

.flash-stack {
    max-width: 1240px;
    margin: 12px auto 0;
    padding: 0 24px;
    display: grid;
    gap: 8px;
}
.notice {
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
}
.notice-success { background: var(--success-soft); border-color: #bbf7d0; color: #166534; }
.notice-error   { background: var(--danger-soft);  border-color: #fecaca; color: #991b1b; }
.notice-info    { background: var(--accent-soft);  border-color: #bfdbfe; color: #1e40af; }


/* ══════════════════════════════════════════════════════════════
   LAYOUT SHELL
══════════════════════════════════════════════════════════════ */

.shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 24px;
}
.shell-narrow { max-width: 960px; }
.section { margin-top: 24px; }


/* ── Section headers ────────────────────────────────────────── */
.section-head { margin-bottom: 16px; }
.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}
.section-head p {
    color: var(--muted);
    max-width: 680px;
    line-height: 1.65;
}
.section-head-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}


/* ══════════════════════════════════════════════════════════════
   CARD BASE
══════════════════════════════════════════════════════════════ */

.hero-main,
.hero-side,
.panel,
.feature-card,
.pipeline-step,
.empty-news,
.news-teaser-card,
.auth-copy,
.auth-form,
.stat-tile,
.metric-card,
.release-news-feature,
.spotlight-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.hero-main,
.panel,
.auth-copy,
.auth-form,
.spotlight-panel,
.release-news-feature {
    padding: 28px;
}


/* ══════════════════════════════════════════════════════════════
   HOME HERO
══════════════════════════════════════════════════════════════ */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
    gap: 18px;
    align-items: start;
}
.hero-main h1 {
    margin: 0 0 12px;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.05;
}
.hero-kicker {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--warm-soft);
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: #92400e;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 700;
}
.hero-lead {
    color: var(--text) !important;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 8px !important;
}
.hero-main p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.hero-badges {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.hero-badges span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}

/* Hero Side */
.hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
}
.status-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid #bbf7d0;
    background: var(--success-soft);
}
.status-label {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 500;
}
.status-card strong { color: #15803d; font-size: 0.88rem; }
.status-dot {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18); }
    50%       { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.05); }
}

/* Metrics */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.metric-card,
.stat-tile {
    padding: 16px;
    border-radius: var(--radius-md);
}
.metric-card span,
.stat-tile span {
    display: block;
    color: var(--muted);
    margin-bottom: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}
.metric-card strong,
.stat-tile strong {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
}


/* ══════════════════════════════════════════════════════════════
   RELEASE NEWS FEATURE
══════════════════════════════════════════════════════════════ */

.release-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.release-news-date {
    color: var(--muted);
    font-size: 0.84rem;
}
.release-news-feature h2 {
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    margin-bottom: 10px;
}
.release-news-feature > p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.release-news-list {
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.85;
    font-size: 0.93rem;
    margin: 0 0 22px;
}
.release-news-list li + li { margin-top: 4px; }


/* ══════════════════════════════════════════════════════════════
   FEATURE GRID
══════════════════════════════════════════════════════════════ */

.feature-grid,
.pipeline,
.home-news-grid,
.dashboard-grid,
.news-dashboard-grid {
    display: grid;
    gap: 14px;
}
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 22px; }
.feature-card h3 {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.feature-card p,
.pipeline-step p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════════
   PIPELINE
══════════════════════════════════════════════════════════════ */

.pipeline { grid-template-columns: repeat(3, 1fr); }
.pipeline-step { padding: 22px; }
.pipeline-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 12px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.pipeline-step h3 {
    font-size: 0.97rem;
    margin-bottom: 8px;
}


/* ══════════════════════════════════════════════════════════════
   NEXZ SPOTLIGHT
══════════════════════════════════════════════════════════════ */

.nexz-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 14px;
}
.spotlight-panel h2 {
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    margin-bottom: 8px;
}
.spotlight-panel p { color: var(--muted); line-height: 1.7; }
.spotlight-list { display: grid; gap: 10px; }
.spotlight-list > div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 18px;
}
.spotlight-list h3 { font-size: 0.95rem; margin-bottom: 5px; }
.spotlight-list p  { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   NEWS – HOME GRID
══════════════════════════════════════════════════════════════ */

.home-news-grid { grid-template-columns: repeat(3, 1fr); }
.news-teaser-card,
.empty-news { padding: 20px; }
.news-teaser-card { display: grid; gap: 10px; }
.news-teaser-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}
.news-date,
.home-news-date { color: var(--muted); font-size: 0.8rem; }
.news-teaser-meta,
.news-admin-meta,
.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--muted);
    font-size: 0.8rem;
}
.news-teaser-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.news-teaser-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.empty-news h3 { font-size: 1rem; margin-bottom: 6px; }
.empty-news p  { color: var(--muted); font-size: 0.88rem; }

.news-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    flex-shrink: 0;
}
.news-status-published {
    background: var(--success-soft);
    color: #15803d;
    border-color: #bbf7d0;
}
.news-status-draft {
    background: var(--bg-alt);
    color: var(--muted);
    border-color: var(--line);
}
.news-expand summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.86rem;
    list-style: none;
}
.news-expand summary::-webkit-details-marker { display: none; }
.news-expand-body {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.68;
    font-size: 0.88rem;
}

.news-interactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.news-like-form {
    margin: 0;
}

.news-like-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.news-like-button strong {
    font-size: 0.76rem;
    color: var(--muted);
}

.news-like-button:hover {
    border-color: rgba(37, 99, 235, 0.45);
    background: var(--accent-soft);
}

.news-like-button.is-active {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    color: #991b1b;
}

.news-like-button.is-active strong {
    color: #991b1b;
}

.news-like-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.news-like-icon {
    line-height: 1;
    font-size: 0.9rem;
}

.news-comment-count {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.news-public-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    gap: 10px 12px;
    align-items: end;
    margin-bottom: 14px;
}

.news-public-filter {
    margin-bottom: 0;
}

.news-sort-field {
    min-width: 170px;
}

.news-sort-field .role-select {
    min-width: 170px;
}

.news-only-commented {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 37px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.news-only-commented input {
    margin: 0;
}

.news-filter-state {
    grid-column: 1 / -1;
    font-size: 0.76rem;
    color: var(--muted);
}

.news-comments {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.news-comments h4 {
    font-size: 0.84rem;
    margin: 0;
}

.news-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.news-comment-list-wrap {
    display: grid;
    gap: 8px;
}

.news-comment-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--bg-alt);
    padding: 10px 12px;
    display: grid;
    gap: 6px;
}

.news-comment-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.news-comment-head strong {
    font-size: 0.8rem;
}

.news-comment-head span {
    color: var(--muted);
    font-size: 0.74rem;
}

.news-comment-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-comment-delete-form {
    margin: 0;
}

.news-comment-edited {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-comment-item p {
    margin: 0;
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.55;
}

.news-comment-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.news-comment-form {
    margin: 0;
    display: grid;
    gap: 8px;
}

.news-comment-edit-form {
    margin-top: 6px;
    display: grid;
    gap: 8px;
}

.news-comment-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.news-comment-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-comment-counter {
    font-size: 0.76rem;
    color: var(--muted);
}

.news-comment-counter.is-near-limit {
    color: #92400e;
}

.news-comment-counter.is-at-limit {
    color: #991b1b;
}

.news-comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 70px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 9px 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    transition: border-color 0.12s, box-shadow 0.12s;
}

.news-comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.news-comment-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.news-comments-load-more {
    justify-self: flex-start;
}

.news-comment-login-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.news-comment-login-hint a {
    color: var(--accent);
    font-weight: 600;
}

.news-comment-login-hint a:hover {
    text-decoration: underline;
}


/* ══════════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════════ */

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    gap: 16px;
    align-items: start;
}
.dashboard-hero-copy,
.dashboard-side {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}
.dashboard-hero-copy {
    padding: 24px 28px;
}
.dashboard-hero-copy h1 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 3.2vw, 2.8rem);
}
.dashboard-hero-copy p { color: var(--muted); line-height: 1.7; }
.dashboard-side {
    min-width: 250px;
    padding: 16px;
    display: grid;
    gap: 10px;
}
.profile-chip {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.15);
}
.profile-chip span {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Dashboard Tabs */
.dashboard-tabs {
    margin-top: 18px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.12s, color 0.12s, background 0.12s;
    white-space: nowrap;
}
.dashboard-tab:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--bg-alt);
}
.dashboard-tab.is-active {
    color: var(--accent);
    border-color: rgba(37, 99, 235, 0.4);
    background: var(--accent-soft);
}

/* Stat Grid */
.stat-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Panels */
.panel {
    margin-top: 16px;
}
.panel-strong {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    margin-top: 16px;
}
.admin-management,
.news-editor-panel,
.news-library-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 22px;
}

/* Admin management */
.admin-management-header,
.news-editor-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.admin-management-header h2,
.news-editor-header h2 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}
.admin-management-header p,
.news-editor-header p { color: var(--muted); font-size: 0.86rem; }
.admin-summary {
    min-width: 88px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, 0.15);
    text-align: center;
    flex-shrink: 0;
}
.admin-summary span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}
.admin-summary strong {
    display: block;
    font-size: 1.4rem;
    color: var(--accent);
}

/* Table search */
.table-search {
    margin-bottom: 12px;
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.table-search input {
    max-width: 320px;
    min-height: 37px;
    padding: 0 12px 0 36px;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='M21 21l-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") no-repeat 11px center;
    font-size: 0.86rem;
}

/* Dashboard grids */
.dashboard-grid {
    margin-top: 16px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}
.news-dashboard-grid {
    margin-top: 16px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

/* News editor */
.news-editor-form { display: grid; gap: 12px; }
.news-editor-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Quick actions */
.quick-actions,
.hero-actions,
.news-admin-actions,
.admin-inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}


/* ══════════════════════════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════════════════════════ */

.field {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}
.field input,
.field textarea,
.field select,
.role-select {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 9px 12px;
    font-size: 0.9rem;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.field textarea { resize: vertical; }
.role-select {
    min-width: 120px;
    min-height: 36px;
    padding: 7px 10px;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
.table-search input:focus,
.role-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.role-select:disabled { cursor: not-allowed; opacity: 0.55; }
.field-compact { min-width: 150px; }


/* ══════════════════════════════════════════════════════════════
   NEWS LIBRARY (DASHBOARD)
══════════════════════════════════════════════════════════════ */

.news-library { display: grid; gap: 10px; }
.news-admin-card {
    padding: 16px;
    display: grid;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.news-admin-card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}
.news-admin-card h3 { font-size: 0.95rem; }
.news-admin-card p  { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.table-hint { color: var(--muted); font-size: 0.82rem; }


/* ── Detail list ────────────────────────────────────────────── */
.detail-list { margin: 0; display: grid; gap: 12px; }
.detail-list div {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.detail-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.detail-list dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
}
.detail-list dd { margin: 0; font-size: 0.93rem; font-weight: 500; }


/* ══════════════════════════════════════════════════════════════
   DATA TABLE
══════════════════════════════════════════════════════════════ */

.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 0.88rem;
}
.data-table th,
.data-table td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 11px 12px;
    vertical-align: middle;
}
.data-table th {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--bg-alt);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.data-table tbody tr:hover { background: rgba(241, 245, 249, 0.7); }
.admin-table td,
.admin-table th { white-space: nowrap; }
.admin-table td:nth-child(2),
.admin-table td:nth-child(3) { white-space: normal; }


/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s, background 0.12s;
}
.button:hover  { transform: translateY(-1px); }
.button:active { transform: translateY(0);    }

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.22);
}
.button-primary:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.34);
    filter: brightness(1.06);
}

.button-secondary {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #422006;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}
.button-secondary:hover { filter: brightness(1.05); }

.button-ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
}
.button-ghost:hover { background: var(--bg-alt); transform: none; box-shadow: none; }

.button-danger {
    background: var(--danger-soft);
    border-color: #fca5a5;
    color: var(--danger);
}
.button-danger:hover { background: #fee2e2; transform: none; box-shadow: none; }

.button-small {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 0.82rem;
}
.button-block { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════════════════════
   AUTH PANELS
══════════════════════════════════════════════════════════════ */

.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    margin-top: 10px;
}
.auth-copy {
    background: linear-gradient(135deg, var(--accent-soft) 0%, #FFFFFF 65%);
    border: 1px solid rgba(37, 99, 235, 0.12);
}
.auth-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.auth-copy p { color: var(--muted); line-height: 1.7; }
.auth-highlights {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
    line-height: 1.65;
    font-size: 0.88rem;
}
.auth-form { display: grid; gap: 14px; }
.auth-meta {
    color: var(--muted);
    font-size: 0.86rem;
}
.auth-meta a { color: var(--accent); font-weight: 600; }
.auth-meta a:hover { text-decoration: underline; }


/* ══════════════════════════════════════════════════════════════
   ACTION MENU (3-DOT DROPDOWN)
══════════════════════════════════════════════════════════════ */

details.action-menu { position: relative; display: inline-block; }
.action-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    cursor: pointer;
    list-style: none;
    transition: background 0.12s, border-color 0.12s;
}
.action-menu-trigger::-webkit-details-marker { display: none; }
.action-menu-trigger:hover {
    background: var(--bg-alt);
    border-color: var(--line-strong);
}
details.action-menu[open] .action-menu-trigger {
    background: var(--bg-alt);
    border-color: var(--line-strong);
}
.action-menu-dots {
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}
.action-menu-dots span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted);
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */

.site-footer {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 0 24px 36px;
    position: relative;
    z-index: 2;
}
.footer-shell {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-brand strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }
.footer-brand p { color: var(--muted); font-size: 0.82rem; }
.footer-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.footer-nav a {
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.84rem;
    transition: color 0.12s, background 0.12s;
}
.footer-nav a:hover { color: var(--text); background: var(--line); }


/* ══════════════════════════════════════════════════════════════
   SETTINGS FORM (Dashboard Overview)
══════════════════════════════════════════════════════════════ */

.panel-intro {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.settings-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}


/* ══════════════════════════════════════════════════════════════
   TABLE HELPERS
══════════════════════════════════════════════════════════════ */

.table-multi-line { display: grid; gap: 3px; }
.table-multi-line strong { font-size: 0.9rem; }
.table-actions-cell { white-space: nowrap; }


/* ══════════════════════════════════════════════════════════════
   ACTION MENU DROPDOWN
══════════════════════════════════════════════════════════════ */

details.action-menu { position: relative; display: inline-block; }

.action-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 500;
    min-width: 230px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: menu-in 0.14s ease;
}
details.action-menu.action-menu-align-end .action-menu-panel {
    right: 0;
    left: auto;
}
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.action-menu-section {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
}
.action-menu-section:last-child { border-bottom: 0; }
.action-menu-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.action-menu-note {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}
.action-menu-form { margin: 0; }
.action-menu-link {
    display: block;
    padding: 6px 0;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}
.action-menu-link:hover { text-decoration: underline; }

/* News admin card tools */
.news-admin-card-tools {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════
   SERVER MONITOR
══════════════════════════════════════════════════════════════ */

.server-monitor-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.server-monitor-head h2 { font-size: 1.15rem; margin-bottom: 4px; }
.server-monitor-head p  { color: var(--muted); font-size: 0.86rem; }
.server-monitor-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Metric tiles */
.server-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.server-metric-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
    display: grid;
    gap: 3px;
}
.server-metric-card span {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.server-metric-card strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.server-metric-card small {
    display: block;
    font-size: 0.74rem;
    color: var(--muted);
}

/* Charts */
.server-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.server-chart-card {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px;
}
.server-chart-card h3 {
    font-size: 0.86rem;
    margin-bottom: 10px;
    color: var(--muted);
}
.server-chart-canvas {
    width: 100% !important;
    height: 140px !important;
    display: block;
    border-radius: 6px;
}

/* GPU panel */
.server-gpu-panel {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.server-gpu-panel h3 { font-size: 0.95rem; margin-bottom: 10px; }
.server-gpu-list { display: grid; gap: 8px; }


/* ══════════════════════════════════════════════════════════════
   HDD ADMIN
══════════════════════════════════════════════════════════════ */

.hdd-state-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.hdd-state-pill.is-active {
    background: var(--success-soft);
    color: #15803d;
    border-color: #bbf7d0;
}
.hdd-state-pill.is-standby {
    background: var(--bg-alt);
    color: var(--muted);
    border-color: var(--line);
}
.hdd-state-pill.is-unknown {
    background: var(--warm-soft);
    color: #92400e;
    border-color: rgba(217, 119, 6, 0.25);
}
.hdd-root-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border: 1px solid rgba(37, 99, 235, 0.2);
    margin-left: 5px;
    vertical-align: middle;
}
.hdd-action-row {
    display: flex;
    gap: 6px;
    align-items: center;
}


/* ══════════════════════════════════════════════════════════════
   REVEAL ANIMATION
══════════════════════════════════════════════════════════════ */

[data-filter-item][hidden] { display: none !important; }

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .button, .site-nav a, .dashboard-tab, .status-dot {
        transition: none !important;
        animation: none !important;
    }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – 1080px
══════════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
    .feature-grid   { grid-template-columns: repeat(2, 1fr); }
    .home-news-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid      { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – 980px
══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
    .home-hero,
    .dashboard-hero,
    .dashboard-grid,
    .news-dashboard-grid,
    .auth-panel,
    .nexz-spotlight  { grid-template-columns: 1fr; }

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

    .dashboard-side { min-width: 0; }

    .section-head-inline { flex-direction: column; align-items: flex-start; }

    .news-public-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .news-only-commented {
        min-height: 36px;
    }

    .admin-management-header,
    .news-editor-header,
    .news-editor-footer { flex-direction: column; align-items: flex-start; }

    .data-table { min-width: 540px; }

    .server-chart-grid { grid-template-columns: 1fr; }
    .server-monitor-head { flex-direction: column; }
    .server-monitor-status { align-items: flex-start; }

    .action-menu-panel { min-width: 200px; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE – 760px  (mobile)
══════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
    .shell        { padding: 18px 16px 16px; }
    .header-shell { padding: 10px 16px; flex-wrap: wrap; }
    .nav-toggle   { display: inline-flex; }

    .site-nav {
        display: none;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        margin-top: 4px;
    }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav a,
    .site-nav .nav-meta,
    .site-nav .logout-form { width: 100%; }
    .site-nav .logout-form .button { width: 100%; }

    .hero-main,
    .hero-side,
    .panel,
    .news-admin-card,
    .auth-copy,
    .auth-form,
    .release-news-feature,
    .spotlight-panel { padding: 18px; }

    .feature-grid,
    .home-news-grid,
    .hero-metrics,
    .pipeline,
    .stat-grid { grid-template-columns: 1fr; }

    .news-public-toolbar {
        grid-template-columns: 1fr;
    }

    .flash-stack,
    .site-footer { padding-left: 16px; padding-right: 16px; }

    .button { min-height: 38px; }

    .server-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .server-chart-canvas { height: 110px !important; }

    .panel-strong { padding: 18px; }

    .action-menu-panel {
        right: 0;
        left: auto;
        max-width: calc(100vw - 32px);
    }
}

/* ══════════════════════════════════════════════════════════════
   NEXZ LANDING REMAKE
══════════════════════════════════════════════════════════════ */

.page-home {
    font-family: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(1200px 420px at 7% -8%, rgba(14, 116, 144, 0.15), transparent 55%),
        radial-gradient(900px 320px at 96% 0%, rgba(15, 23, 42, 0.11), transparent 58%),
        #eef3f7;
}

.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4,
.page-home .brand-text,
.page-home .brand-mark {
    font-family: "Sora", "Manrope", "Inter", system-ui, sans-serif;
}

.page-home .page-backdrop {
    opacity: 0.85;
}

.page-home .backdrop-shape-a {
    background: rgba(14, 165, 233, 0.09);
}

.page-home .backdrop-shape-b {
    background: rgba(12, 74, 110, 0.08);
}

.page-home .backdrop-shape-c {
    background: rgba(34, 197, 94, 0.07);
}

.page-home .shell.landing-shell {
    max-width: 1280px;
    padding-top: 34px;
    padding-bottom: 28px;
    display: grid;
    gap: 22px;
}

.page-home .landing-shell .section {
    margin-top: 0;
}

.page-home .landing-head p {
    max-width: 760px;
}

.page-home .landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 20px;
    align-items: stretch;
}

.page-home .landing-hero-main,
.page-home .landing-hero-panel,
.page-home .landing-highlight-card,
.page-home .landing-feature-group,
.page-home .landing-platform-map,
.page-home .landing-benefits,
.page-home .landing-cta,
.page-home .news-teaser-card,
.page-home .empty-news {
    border-radius: 24px;
    border: 1px solid #d7e0e8;
    box-shadow: 0 22px 48px -38px rgba(15, 23, 42, 0.55);
}

.page-home .landing-hero-main {
    position: relative;
    overflow: hidden;
    padding: clamp(26px, 3.6vw, 44px);
    background: linear-gradient(152deg, #081b2f 0%, #113250 52%, #1c5a84 100%);
    color: #f8fafc;
}

.page-home .landing-hero-main::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -140px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(59, 130, 246, 0) 72%);
    pointer-events: none;
}

.page-home .landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    border: 1px solid rgba(167, 243, 208, 0.32);
    background: rgba(16, 185, 129, 0.14);
    color: #d1fae5;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.page-home .landing-hero-main h1 {
    margin-bottom: 14px;
    max-width: 15ch;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
}

.page-home .landing-lead {
    margin: 0;
    max-width: 62ch;
    color: #e2e8f0;
    font-size: clamp(1rem, 1.9vw, 1.22rem);
    line-height: 1.65;
    font-weight: 600;
}

.page-home .landing-copy {
    margin: 14px 0 0;
    max-width: 66ch;
    color: #cdd9e7;
    line-height: 1.7;
}

.page-home .landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.page-home .landing-hero-main .button-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    box-shadow: 0 10px 24px -10px rgba(20, 184, 166, 0.75);
}

.page-home .landing-hero-main .button-ghost {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: #f8fafc;
}

.page-home .landing-hero-main .button-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
}

.page-home .landing-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.page-home .landing-proof-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(186, 230, 253, 0.32);
    background: rgba(148, 163, 184, 0.16);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
}

.page-home .landing-hero-panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.page-home .landing-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #b7e8cf;
    background: #ecfdf5;
}

.page-home .landing-status small {
    display: block;
    margin-bottom: 3px;
    color: #166534;
    font-size: 0.76rem;
    font-weight: 600;
}

.page-home .landing-status strong {
    color: #166534;
    font-size: 0.86rem;
}

.page-home .landing-status-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45);
    animation: landing-status-pulse 2.2s ease-in-out infinite;
}

@keyframes landing-status-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.46); }
    70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.page-home .landing-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.page-home .landing-metrics article {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d6e5f3;
    background: #ffffff;
}

.page-home .landing-metrics span {
    display: block;
    margin-bottom: 5px;
    color: #53657a;
    font-size: 0.77rem;
    font-weight: 600;
}

.page-home .landing-metrics strong {
    display: block;
    color: #0f172a;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.page-home .landing-preview {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d7e5f1;
    background: #ffffff;
}

.page-home .landing-preview h2 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.page-home .landing-preview ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #516173;
    font-size: 0.86rem;
    line-height: 1.55;
}

.page-home .landing-highlight-grid,
.page-home .landing-feature-groups,
.page-home .landing-workflow,
.page-home .landing-module-grid {
    display: grid;
    gap: 12px;
}

.page-home .landing-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-home .landing-highlight-card {
    padding: 20px;
    background: #ffffff;
}

.page-home .landing-highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 1px solid #bfdbfe;
}

.page-home .landing-highlight-icon svg {
    width: 19px;
    height: 19px;
    fill: #0c4a6e;
}

.page-home .landing-highlight-card h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.page-home .landing-highlight-card p {
    color: #526375;
    font-size: 0.9rem;
    line-height: 1.62;
}

.page-home .landing-feature-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-home .landing-feature-group {
    padding: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-home .landing-feature-group h3 {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 1.1rem;
}

.page-home .landing-feature-group p {
    color: #55687d;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.page-home .landing-feature-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.page-home .landing-feature-group li {
    position: relative;
    padding-left: 26px;
    color: #1f3348;
    font-size: 0.89rem;
    line-height: 1.55;
}

.page-home .landing-feature-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.33rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #0f766e 0 2px, transparent 2px),
        linear-gradient(135deg, #99f6e4 0%, #ccfbf1 100%);
    border: 1px solid rgba(15, 118, 110, 0.32);
}

.page-home .landing-workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 4px;
}

.page-home .landing-workflow-step {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #d8e3ee;
    background: #ffffff;
}

.page-home .landing-workflow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0c4a6e;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.page-home .landing-workflow-step h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.page-home .landing-workflow-step p {
    color: #526479;
    line-height: 1.62;
    font-size: 0.9rem;
}

.page-home .landing-platform-map {
    padding: 22px;
    background: #ffffff;
    margin-top: 14px;
}

.page-home .landing-platform-map h3 {
    margin-bottom: 12px;
    font-size: 1.06rem;
}

.page-home .landing-module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-home .landing-module-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d7e3ef;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-home .landing-module-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 16px 32px -28px rgba(37, 99, 235, 0.72);
}

.page-home .landing-module-card strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.page-home .landing-module-card span {
    color: #4f6277;
    font-size: 0.84rem;
    line-height: 1.5;
}

.page-home .landing-benefits {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f7fc 100%);
}

.page-home .landing-benefits h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.page-home .landing-benefits p {
    color: #4e6176;
    line-height: 1.7;
}

.page-home .landing-benefits ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #1f3348;
}

.page-home .landing-benefits li {
    line-height: 1.62;
}

.page-home .landing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: linear-gradient(150deg, #0d2a45 0%, #0f4c75 100%);
    border-color: #0f4c75;
    color: #f8fafc;
}

.page-home .landing-cta .eyebrow {
    background: rgba(15, 118, 110, 0.3);
    border-color: rgba(94, 234, 212, 0.42);
    color: #ccfbf1;
}

.page-home .landing-cta h2 {
    margin-bottom: 8px;
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
}

.page-home .landing-cta p {
    color: #dbe7f3;
    line-height: 1.65;
}

.page-home .landing-cta .button-primary {
    background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
}

.page-home .landing-cta .button-ghost {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(224, 242, 254, 0.38);
    color: #f8fafc;
}

.page-home #news .home-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.page-home #news .news-teaser-card {
    background: #ffffff;
}

.page-home #news .news-teaser-card h3 {
    font-size: 1.02rem;
}

.page-home #news .news-teaser-card > p {
    color: #4f6277;
    font-size: 0.9rem;
    line-height: 1.64;
}

.page-home #news .news-comments {
    border-top-color: #d9e5ef;
}

.page-home #news .news-comment-item {
    border-color: #d6e2ec;
    background: #f8fbff;
}

@media (max-width: 1120px) {
    .page-home .landing-hero {
        grid-template-columns: 1fr;
    }

    .page-home .landing-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .landing-feature-groups,
    .page-home .landing-workflow,
    .page-home .landing-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-home .shell.landing-shell {
        padding-top: 22px;
    }

    .page-home .landing-feature-groups,
    .page-home .landing-workflow,
    .page-home .landing-benefits,
    .page-home .landing-cta,
    .page-home #news .home-news-grid {
        grid-template-columns: 1fr;
    }

    .page-home .landing-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-home .landing-hero-main,
    .page-home .landing-hero-panel,
    .page-home .landing-feature-group,
    .page-home .landing-platform-map,
    .page-home .landing-benefits,
    .page-home .landing-cta,
    .page-home .news-teaser-card,
    .page-home .empty-news {
        border-radius: 20px;
    }
}

@media (max-width: 620px) {
    .page-home .landing-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-home .landing-actions .button {
        width: 100%;
    }

    .page-home .landing-metrics,
    .page-home .landing-highlight-grid,
    .page-home .landing-module-grid {
        grid-template-columns: 1fr;
    }

    .page-home .landing-hero-main h1 {
        font-size: clamp(1.8rem, 11vw, 2.5rem);
    }
}
