/* ═══════════════════════════════════════════════════════════════════════════
   Cymatrix — Design System (light mode)
   Professional light-theme, cybersecurity / enterprise B2B aesthetic.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Backgrounds */
  --bg-0: #ffffff;
  --bg-1: #f8fafc;        /* slate-50 — section alternation */
  --bg-2: #f1f5f9;        /* slate-100 — elevated areas */
  --bg-3: #e2e8f0;        /* slate-200 */
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcfe;
  --bg-code-dark: #0f172a; /* terminal/console areas */
  --bg-code-dark-2: #1e293b;
  --bg-code-light: #f8fafc;

  /* Borders */
  --border: #e5e9ef;
  --border-strong: #cbd5e1;
  --border-accent: #c7d2fe;

  /* Text */
  --text-0: #0f172a;  /* slate-900 — headings */
  --text-1: #334155;  /* slate-700 — body */
  --text-2: #64748b;  /* slate-500 — muted */
  --text-3: #94a3b8;  /* slate-400 — very muted */
  --text-inverse: #f8fafc;
  --text-inverse-muted: #cbd5e1;

  /* Accent — indigo primary */
  --accent: #4f46e5;         /* indigo-600 */
  --accent-dark: #4338ca;    /* indigo-700 */
  --accent-soft: #eef2ff;    /* indigo-50 */
  --accent-strong: #c7d2fe;  /* indigo-200 */

  /* Emerald — "secure / verified" secondary */
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-strong: #a7f3d0;

  /* Indigo secondary (keeping same family) */
  --indigo: #6366f1;
  --indigo-soft: #eef2ff;

  /* Orange / warning */
  --orange: #ea580c;
  --orange-soft: #fff7ed;
  --orange-strong: #fed7aa;

  /* Red / critical */
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-strong: #fecaca;

  /* Yellow */
  --yellow: #ca8a04;
  --yellow-soft: #fefce8;

  /* Green (success) */
  --green: #059669;
  --green-soft: #ecfdf5;
  --green-strong: #a7f3d0;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas,
               'Courier New', monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Shadows — light-mode realistic elevation */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow:    0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-accent: 0 8px 24px -4px rgba(79, 70, 229, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code, pre { font-family: var(--font-mono); }
code { font-size: 0.92em; color: var(--accent-dark); background: var(--accent-soft);
       padding: 0.1em 0.4em; border-radius: 4px; }

/* ─── Typography ────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  color: var(--text-0);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.85rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.65rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent-strong);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--text-1);
  max-width: 640px;
}

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

/* ─── Layout ────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: clamp(56px, 8.5vh, 96px) 0;
  position: relative;
}

.section-title {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}
.section-title .eyebrow { margin-bottom: 1rem; }
.section-title p { margin-top: 1rem; font-size: 1.05rem; }

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

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Navigation ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-0);
  letter-spacing: -0.015em;
}
.nav-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: block;
  flex-shrink: 0;
}
.nav-brand-wordmark {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .nav-brand-wordmark { height: 26px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-1);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-0); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-0);
}
.nav-toggle:hover { background: var(--bg-2); }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
  }
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -4px rgba(79, 70, 229, 0.35);
}
.btn-secondary {
  background: var(--bg-0);
  color: var(--text-0);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-1);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
}
.btn-ghost:hover { color: var(--accent-dark); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1rem; }
.btn-arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 60% at 50% -10%,
                    rgba(79, 70, 229, 0.11), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 100%,
                    rgba(5, 150, 105, 0.04), transparent 70%),
    var(--bg-0);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 10%, transparent 72%);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(115deg, var(--accent) 0%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero .lead {
  margin: 0 auto 2rem;
  max-width: 660px;
  color: var(--text-1);
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-2);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-meta-item svg { color: var(--accent); }

/* Hero terminal — kept dark for contrast and drama */
.terminal {
  margin: 70px auto 0;
  max-width: 820px;
  background: var(--bg-code-dark);
  border: 1px solid #1e293b;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  text-align: left;
  position: relative;
}
.terminal::after {
  /* Subtle glow under the terminal */
  content: '';
  position: absolute;
  bottom: -30px;
  left: 20%; right: 20%;
  height: 40px;
  background: var(--accent);
  filter: blur(40px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 12px 16px;
  background: #192032;
  border-bottom: 1px solid #263044;
}
.terminal-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #2e3a54;
}
.terminal-dot.r { background: #e57373; }
.terminal-dot.y { background: #ffb74d; }
.terminal-dot.g { background: #81c784; }
.terminal-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terminal-title::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}
.terminal-body {
  padding: 22px 26px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.85;
  color: #cbd5e1;
  min-height: 180px;
}
.terminal-body .prompt { color: #6ee7b7; user-select: none; }
.terminal-body .cmd    { color: #f1f5f9; }
.terminal-body .flag   { color: #93c5fd; }
.terminal-body .str    { color: #fbbf24; }
.terminal-body .comment{ color: #64748b; }
.terminal-body .ok     { color: #34d399; }
.terminal-body .warn   { color: #fbbf24; }
.terminal-body .err    { color: #f87171; }
.terminal-body .muted  { color: #64748b; }

/* ─── Stat strip ───────────────────────────────────────────────────────── */

.stat-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.stat-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-strip .stat-num {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-strip .stat-num.accent  { color: var(--accent); }
.stat-strip .stat-num.red     { color: var(--red); }
.stat-strip .stat-num.orange  { color: var(--orange); }
.stat-strip .stat-num.emerald { color: var(--emerald); }
.stat-strip .stat-label {
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .stat-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ─── Cards ────────────────────────────────────────────────────────────── */

.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-strong);
}
.card-icon.indigo  { background: var(--indigo-soft); color: var(--indigo); border-color: var(--accent-strong); }
.card-icon.orange  { background: var(--orange-soft); color: var(--orange); border-color: var(--orange-strong); }
.card-icon.red     { background: var(--red-soft);    color: var(--red);    border-color: var(--red-strong); }
.card-icon.green   { background: var(--green-soft);  color: var(--green);  border-color: var(--green-strong); }
.card-icon.emerald { background: var(--emerald-soft); color: var(--emerald); border-color: var(--emerald-strong); }
.card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  color: var(--text-0);
}
.card p {
  font-size: 0.93rem;
  color: var(--text-1);
  line-height: 1.6;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.card:hover .card-link::after { transform: translateX(3px); }

/* ─── Feature split (alternating) ──────────────────────────────────────── */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split.reverse .feature-split-content { order: 2; }
.feature-split h2 { margin-bottom: 16px; }
.feature-split .eyebrow { margin-bottom: 12px; }
.feature-split p { margin-bottom: 16px; }
.feature-split ul {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.feature-split ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-1);
}
.feature-split ul li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'><path d='M3 8l3.5 3.5L13 5' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 860px) {
  .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse .feature-split-content { order: 0; }
}

/* ─── Architecture diagram containers ──────────────────────────────────── */

.diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.diagram-caption {
  margin-top: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-2);
  font-style: italic;
}

/* ─── Comparison / data tables ─────────────────────────────────────────── */

.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.comparison thead th {
  padding: 15px 20px;
  text-align: left;
  background: var(--bg-2);
  color: var(--text-0);
  font-weight: 600;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-strong);
}
.comparison tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-1);
}
.comparison tbody tr:last-child td { border-bottom: none; }
.comparison tbody tr:hover { background: var(--bg-1); }
.comparison td:first-child { color: var(--text-0); font-weight: 500; }
.comparison .check   { color: var(--emerald); font-weight: 600; }
.comparison .cross   { color: var(--red); }
.comparison .partial { color: var(--orange); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-ok      { background: var(--green-soft);   color: var(--emerald); border-color: var(--green-strong); }
.badge-no      { background: var(--red-soft);     color: var(--red);     border-color: var(--red-strong); }
.badge-partial { background: var(--orange-soft);  color: var(--orange);  border-color: var(--orange-strong); }
.badge-accent  { background: var(--accent-soft);  color: var(--accent);  border-color: var(--accent-strong); }
.badge-planned { background: var(--bg-2);         color: var(--text-2);  border-color: var(--border-strong); }

/* ─── Compliance panels ────────────────────────────────────────────────── */

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.compliance-panel {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease);
}
.compliance-panel:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.compliance-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
}
.compliance-panel.indigo::before  { background: var(--indigo); }
.compliance-panel.orange::before  { background: var(--orange); }
.compliance-panel.green::before   { background: var(--emerald); }
.compliance-panel.emerald::before { background: var(--emerald); }
.compliance-panel h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 8px;
}
.compliance-panel h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--text-0);
}
.compliance-panel p {
  font-size: 0.9rem;
  color: var(--text-1);
  margin-bottom: 16px;
}
.compliance-panel .coverage {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ─── CTA section ──────────────────────────────────────────────────────── */

.cta-section {
  padding: 100px 0;
  background:
    radial-gradient(ellipse 65% 60% at 50% 50%,
                    rgba(79, 70, 229, 0.08), transparent 70%),
    var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 580px; margin: 0 auto 32px; color: var(--text-1); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 300px;
}
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-1);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ─── Page hero (non-landing pages) ────────────────────────────────────── */

.page-hero {
  padding: 140px 0 52px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 40% 60% at 80% 0%,
                    rgba(79, 70, 229, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 100%,
                    rgba(5, 150, 105, 0.05), transparent 70%),
    var(--bg-0);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 820px;
  margin-bottom: 16px;
}
.page-hero .lead { max-width: 720px; }

/* ─── Contact form ─────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-full { grid-column: 1 / -1; }
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-0);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-0);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field .hint { font-size: 0.8rem; color: var(--text-3); }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ─── Code block (light) ───────────────────────────────────────────────── */

.codeblock {
  background: var(--bg-code-dark);
  border: 1px solid #1e293b;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: #cbd5e1;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.codeblock .key     { color: #93c5fd; }
.codeblock .str     { color: #fbbf24; }
.codeblock .comment { color: #64748b; }

/* ─── Mock panels (dashboard, alert, etc.) ─────────────────────────────── */

.mock-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mock-panel-header {
  padding: 14px 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-panel-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.mock-panel-body {
  padding: 24px;
}
.mock-stat-card {
  padding: 14px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mock-stat-label {
  font-size: 0.76rem;
  color: var(--text-2);
  margin-bottom: 4px;
  font-weight: 500;
}
.mock-stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-0);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.mock-stat-delta {
  font-size: 0.78rem;
  margin-top: 2px;
  font-weight: 500;
}
.mock-row {
  padding: 10px 14px;
  background: var(--bg-1);
  border-left: 3px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.mock-row.ok     { border-left-color: var(--emerald); }
.mock-row.warn   { border-left-color: var(--orange); }
.mock-row.crit   { border-left-color: var(--red); }
.mock-row-head   { display: flex; justify-content: space-between; gap: 12px; }
.mock-row-time   { color: var(--text-2); }
.mock-row-status { font-weight: 700; }
.mock-row-detail { color: var(--text-1); margin-top: 4px; }

/* Live indicator */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6);
  animation: pulse 1.8s infinite;
}
.live-dot.red {
  background: var(--red);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

/* ─── Animations ───────────────────────────────────────────────────────── */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ─── Reveal animation ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Utility ──────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.muted   { color: var(--text-2); }
.accent  { color: var(--accent); }
.emerald { color: var(--emerald); }
.red     { color: var(--red); }
.orange  { color: var(--orange); }
.mt-0    { margin-top: 0; }
.mb-0    { margin-bottom: 0; }
.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;
}
