/* ============================================================
   Albor — design tokens
   Concept: the brand's own name (first light of dawn) becomes the
   palette's logic — a page that moves from deep pre-dawn navy into
   a warm gold horizon line, with a literal cream "paper chaos" vs
   dark "glass precision" contrast standing in for Excel vs Albor.
   Type: Fraunces (display, the editorial/dawn warmth) + Inter (UI)
   ============================================================ */

:root {
  /* pre-dawn base */
  --navy-950: #070B14;
  --navy-900: #0C1220;
  --navy-800: #131B2E;
  --navy-700: #1B2540;
  --navy-line: rgba(233, 238, 250, 0.09);
  --navy-line-strong: rgba(233, 238, 250, 0.16);

  /* dawn horizon accents */
  --indigo: #6E7BFF;
  --indigo-soft: #4B4FD1;
  --indigo-bg: rgba(110, 123, 255, 0.14);
  --emerald: #33DDA6;
  --emerald-bg: rgba(51, 221, 166, 0.13);
  --dawn: #F6AC3E;
  --dawn-deep: #D98A1F;
  --dawn-bg: rgba(246, 172, 62, 0.15);
  --rust: #FF7A68;
  --rust-bg: rgba(255, 122, 104, 0.13);

  /* the "old world": paper */
  --paper: #F3EFE4;
  --paper-2: #EAE3D2;
  --paper-ink: #2B2415;
  --paper-line: #D9CFB6;

  /* text on dark */
  --text: #EEF1FA;
  --text-soft: #AEB7D1;
  --text-dim: #7C87A6;

  --shadow-lift: 0 24px 70px rgba(3, 6, 14, 0.55);
  --shadow-soft: 0 10px 30px rgba(3, 6, 14, 0.35);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-950);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety net: nothing can push the page sideways */
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 540;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; overflow-wrap: break-word; }
h2, h3 { overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }
em { font-style: italic; color: var(--text); }
a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: #06070C;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--navy-line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(56px, 8vw, 68px);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.1vw, 9px);
  background: #FFFFFF; /* matches the white background of the logo images */
  padding: clamp(4px, 0.8vw, 6px) clamp(11px, 2.2vw, 16px) clamp(4px, 0.8vw, 6px) clamp(4px, 0.8vw, 6px);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(3, 6, 14, 0.4);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.brand:hover .brand-lockup { box-shadow: 0 8px 20px rgba(3, 6, 14, 0.5); transform: translateY(-1px); }
.brand-logo-img {
  display: block;
  width: clamp(22px, 3vw, 30px);
  height: clamp(22px, 3vw, 30px);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-name-img { display: block; height: clamp(12px, 1.7vw, 16px); width: auto; flex-shrink: 0; }

.brand-lockup-footer { gap: clamp(5px, 1vw, 7px); padding: clamp(4px, 0.8vw, 5px) clamp(9px, 1.8vw, 13px) clamp(4px, 0.8vw, 5px) clamp(4px, 0.8vw, 5px); }
.brand-lockup-footer .brand-logo-img { width: clamp(19px, 2.4vw, 24px); height: clamp(19px, 2.4vw, 24px); }
.brand-lockup-footer .brand-name-img { height: clamp(11px, 1.4vw, 13px); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-soft) 100%);
  color: #F8F9FF;
  box-shadow: 0 10px 26px rgba(110, 123, 255, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(110, 123, 255, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--navy-line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--indigo); background: rgba(110, 123, 255, 0.08); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dawn);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, gap 0.15s ease;
}
.text-link:hover { border-color: var(--dawn); }

/* ---------------- Sections ---------------- */

.section { padding: 100px 0; }
.section-alt { background: var(--navy-900); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dawn);
  margin-bottom: 14px;
}
.section-lede { font-size: 1.08rem; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 84px 0 100px;
  background:
    radial-gradient(ellipse 900px 500px at 78% -10%, rgba(246, 172, 62, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 5% 30%, rgba(110, 123, 255, 0.14), transparent 60%),
    var(--navy-950);
  overflow: hidden;
  border-bottom: 1px solid var(--navy-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-800);
  border: 1px solid var(--navy-line-strong);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--text-soft);
  margin-bottom: 22px;
  max-width: 100%;
}
.hero-pill .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-bg); }

.hero-sub { font-size: 1.13rem; max-width: 54ch; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 24px;
}

.hero-trust {
  font-size: 0.88rem;
  color: var(--text-dim);
  border-top: 1px solid var(--navy-line);
  padding-top: 16px;
  max-width: 50ch;
}

/* --- hero dashboard mockup --- */

.hero-visual { position: relative; min-width: 0; }
.hero-copy { min-width: 0; }

.dash-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--navy-line-strong);
  border-radius: var(--radius-l);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 20px;
  animation: dash-float 7s ease-in-out infinite;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: hero-in 0.7s cubic-bezier(.2,.7,.2,1) 0.15s forwards, dash-float 7s ease-in-out 0.9s infinite;
}

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dash-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--navy-line-strong); }
.dash-title { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 600; color: var(--emerald);
  background: var(--emerald-bg); padding: 4px 10px; border-radius: 999px;
}
.dash-live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

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

.dash-stat {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 16px;
  min-width: 0;
}
.dash-stat-label { font-size: 0.74rem; color: var(--text-dim); margin-bottom: 6px; }
.dash-stat-value { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: 4px; }
.dash-stat-delta { font-size: 0.76rem; color: var(--emerald); font-weight: 600; }

/* hero stat — the one number that matters most, given top billing */
.dash-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 16px;
  margin-bottom: 12px;
}
.dash-hero-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--dawn-bg);
  color: var(--dawn);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.dash-hero-body { flex: 1; min-width: 0; }
.dash-hero-body .dash-stat-label { margin-bottom: 3px; }
.dash-hero-body .dash-stat-value { font-size: 1.65rem; margin-bottom: 0; }
.dash-hero .dash-stat-delta {
  flex-shrink: 0;
  background: var(--emerald-bg);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* secondary row — two equal, scannable mini-cards */
.dash-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.dash-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 13px;
  min-width: 0;
}
.dash-ring {
  width: 74px; height: 74px; border-radius: 50%;
  background: conic-gradient(var(--indigo) 0deg 328deg, rgba(255,255,255,0.08) 328deg 360deg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.dash-ring::before {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--navy-900);
}
.dash-ring span { position: relative; font-size: 0.86rem; font-weight: 700; color: var(--text); }
.dash-ring-sm { width: 46px; height: 46px; flex-shrink: 0; }
.dash-ring-sm::before { inset: 5px; }
.dash-ring-sm span { font-size: 0.62rem; }
.dash-mini-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--indigo-bg);
  display: flex; align-items: center; justify-content: center;
}
.dash-mini-icon .feature-icon { width: 20px; height: 20px; margin: 0; }
.dash-mini-body { min-width: 0; }
.dash-mini-value {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 1rem; color: var(--text);
  margin: 0 0 2px;
}
.dash-mini-tag {
  font-family: var(--font-body); font-size: 0.64rem; font-weight: 700;
  color: var(--emerald); background: var(--emerald-bg);
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
}
.dash-mini-label { font-size: 0.72rem; color: var(--text-dim); margin: 0; }
.dash-progress {
  height: 4px; border-radius: 2px;
  background: var(--navy-line-strong);
  margin-top: 8px; overflow: hidden;
}
.dash-progress-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--dawn), var(--dawn-deep)); }

/* action row — the one thing that needs a decision, visually distinct */
.dash-action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rust-bg);
  border: 1px solid rgba(255, 122, 104, 0.28);
  border-radius: var(--radius-m);
  padding: 11px 14px;
}
.dash-action-icon {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 122, 104, 0.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.8rem;
}
.dash-action-text { flex: 1; font-size: 0.82rem; color: #FFD8D0; }
.dash-action-text b { color: #fff; }
.dash-action-chevron { flex-shrink: 0; color: var(--rust); font-weight: 700; }

.hero-badge-float {
  position: absolute;
  right: -14px;
  top: -18px;
  background: var(--navy-800);
  border: 1px solid var(--navy-line-strong);
  border-radius: var(--radius-m);
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  animation: hero-in 0.7s cubic-bezier(.2,.7,.2,1) 0.5s forwards;
}
.hero-badge-float .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--emerald-bg); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800;
}

/* ---------------- Hub diagram (problem/solution) ---------------- */

.hub-section { position: relative; }
.hub-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }

.hub-copy .check-list { margin-top: 26px; }

.check-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-soft);
  max-width: 54ch;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 6px;
  background: var(--emerald-bg); border: 1px solid var(--emerald);
}
.check-list li::after {
  content: "✓";
  position: absolute; left: 4px; top: 0.5px;
  color: var(--emerald); font-size: 0.78rem; font-weight: 700;
}

.hub-diagram-frame {
  background: var(--navy-800);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-l);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.hub-svg { width: 100%; height: auto; display: block; }

.chaos-file-card { fill: var(--paper); stroke: var(--paper-line); stroke-width: 1.4; filter: drop-shadow(0 3px 6px rgba(3,6,14,0.3)); }
.chaos-file-line { fill: var(--paper-ink); }
.chaos-file-line-1 { opacity: 0.42; }
.chaos-file-line-2 { opacity: 0.22; }
.hub-funnel { fill: none; stroke: var(--navy-line-strong); stroke-width: 2; stroke-dasharray: 5 6; }
.hub-core-ring { fill: none; stroke: var(--dawn); stroke-width: 1.4; opacity: 0.55; }
.hub-core-card { fill: url(#hubGradient); filter: drop-shadow(0 6px 16px rgba(217,138,31,0.35)); }
.hub-core-screen { fill: #0B0E18; opacity: 0.92; }
.hub-core-pulse { fill: var(--emerald); animation: pulse 1.8s ease-in-out infinite; }
.hub-core-bars rect { opacity: 0.92; }
.hub-core-label { fill: #0B0E18; font-family: "Inter", sans-serif; font-weight: 700; }
.hub-spoke { stroke: var(--navy-line-strong); stroke-width: 1.6; }
.hub-node { fill: var(--navy-700); stroke: var(--navy-line-strong); stroke-width: 1.4; }
.hub-node-label { fill: var(--text-soft); font-family: "Inter", sans-serif; font-size: 11px; font-weight: 600; }
.hub-node-dot { fill: var(--indigo); }

/* ---------------- Modules overview video ---------------- */

/* ---------------- Overview video (top of page) ---------------- */

.video-intro {
  padding: 48px 0 0;
  background:
    radial-gradient(ellipse 900px 500px at 78% -10%, rgba(246, 172, 62, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 5% 40%, rgba(110, 123, 255, 0.12), transparent 60%),
    var(--navy-950);
  border-bottom: 1px solid var(--navy-line);
}

.video-box {
  width: 100%;
  padding-top: 32px;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border-top: 1px solid var(--navy-line-strong);
}

.video-box-head { text-align: center; margin-bottom: 24px; }
.video-box-intro {
  max-width: 760px;
  margin: 0 auto 18px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-soft);
}
.video-box-intro-highlight {
  font-size: 1.35em;
  font-weight: 700;
  color: var(--dawn);
}
.video-box-head .section-eyebrow { margin-bottom: 10px; }
.video-box-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }

.video-box .modules-video { margin-bottom: 0; }

.modules-video { margin-bottom: 48px; max-width: 100%; overflow: hidden; }

.modules-video-frame {
  position: relative;
  width: min(92%, calc((100vh - 140px) * 16 / 9));
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 420px at 80% 0%, rgba(246, 172, 62, 0.16), transparent 60%),
    radial-gradient(ellipse 600px 420px at 5% 100%, rgba(110, 123, 255, 0.16), transparent 60%),
    var(--navy-900);
}

.modules-video-el {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #05070D;
}

.modules-video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--navy-line-strong);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}
.modules-video-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-bg); }

.modules-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(56px, 8vw, 76px);
  height: clamp(56px, 8vw, 76px);
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-soft) 100%);
  color: #F8F9FF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(110, 123, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.modules-video-play:hover { transform: scale(1.06); box-shadow: 0 14px 36px rgba(110, 123, 255, 0.55); }
.modules-video-play svg { width: 40%; height: 40%; margin-left: 4%; }

.modules-video-frame.is-playing .modules-video-play,
.modules-video-frame.is-playing .modules-video-badge { display: none; }

/* ---------------- Features ---------------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.feature-tile {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-tile:hover {
  border-color: var(--navy-line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--indigo-bg);
  margin-bottom: 16px;
}
.feature-icon { width: 20px; height: 20px; fill: none; stroke: var(--indigo); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon .accent { stroke: var(--dawn); }

.feature-tile h3 { margin-bottom: 8px; font-size: 1.03rem; }
.feature-tile p { font-size: 0.92rem; margin: 0; }

.feature-snippet {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--navy-line);
}
.feature-snippet i { flex: 1; border-radius: 2px 2px 0 0; background: var(--navy-line-strong); align-self: flex-end; }
.feature-snippet i.on { background: var(--indigo); }

/* ---------------- Roles ---------------- */

.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }

.role-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover {
  border-color: var(--navy-line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.role-card h3 { margin-bottom: 8px; }
.role-card p { font-size: 0.94rem; }
.role-caps {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--navy-line);
  font-size: 0.82rem;
  color: var(--text-dim);
}
.role-caps-label { color: var(--text-soft); font-weight: 600; }

.role-note {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.role-note p { margin: 0; font-size: 0.95rem; }
.role-note b { color: var(--text); }

/* ---------------- Comparison ---------------- */

.compare-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}

.compare-card { border-radius: var(--radius-l); padding: 26px; }

.compare-card-old {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.1deg);
}
.compare-card-old .compare-card-title { color: var(--paper-ink); }
.compare-card-old .compare-card-sub { color: #6b6142; }
.chaos-row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--paper-line);
  border-radius: 6px; padding: 9px 11px; margin-top: 9px;
  transform: rotate(0.6deg);
  font-size: 0.82rem; color: #6b6142;
}
.chaos-row:nth-child(3) { transform: rotate(-0.8deg); }
.chaos-row:nth-child(4) { transform: rotate(1.1deg); }
.chaos-row .tag-bad { color: var(--rust); font-weight: 700; }

.compare-card-new {
  background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1px solid var(--navy-line-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lift);
}
.compare-card-title { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 2px; }
.compare-card-sub { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 14px; }
.clean-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.035); border: 1px solid var(--navy-line);
  border-radius: 8px; padding: 10px 13px; margin-top: 8px;
  font-size: 0.84rem; color: var(--text-soft);
}
.clean-row .tag-good { color: var(--emerald); font-weight: 700; font-size: 0.78rem; }

.compare-arrow-mid {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--dawn);
}
.compare-arrow-mid svg { width: 32px; height: 32px; }
.compare-arrow-mid span { font-size: 0.72rem; color: var(--text-dim); text-align: center; max-width: 8ch; }

.compare-table {
  border-top: 1px solid var(--navy-line-strong);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.compare-row-tbl {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  border-bottom: 1px solid var(--navy-line);
}
.compare-row-tbl:nth-child(even) { background: rgba(255,255,255,0.018); }
.compare-head-tbl { background: var(--navy-800); border-bottom: 1px solid var(--navy-line-strong); }
.compare-head-tbl > div { padding: 14px 18px; font-weight: 600; font-size: 0.86rem; }
.compare-col-bad { color: var(--rust); }
.compare-col-good { color: var(--emerald); }
.compare-row-tbl > div { padding: 15px 18px; font-size: 0.94rem; }
.compare-label { font-weight: 600; color: var(--text); }
.compare-row-tbl .compare-col-bad { color: var(--text-dim); }
.compare-row-tbl .compare-col-good { color: var(--text-soft); }

.x-mark { color: var(--rust); font-weight: 700; margin-right: 8px; }
.check-mark { color: var(--emerald); font-weight: 700; margin-right: 8px; }

.compare-footnote { margin-top: 22px; font-size: 0.92rem; max-width: 62ch; }

/* ---------------- Contact ---------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 60px; }

.contact-copy h2 { max-width: 22ch; }
.contact-copy > p { font-size: 1.03rem; max-width: 52ch; }

.contact-details { display: flex; gap: 34px; flex-wrap: wrap; margin: 28px 0 32px; padding-top: 22px; border-top: 1px solid var(--navy-line); }
.contact-label { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.contact-value { margin: 0; font-weight: 600; color: var(--text); }
.contact-value a { text-decoration: none; color: var(--dawn); }
.contact-value a:hover { text-decoration: underline; }

.social-block { padding-top: 22px; border-top: 1px solid var(--navy-line); }
.social-block p:not(.contact-label) { font-size: 0.94rem; max-width: 48ch; }

/* ---------------- Footer ---------------- */

.site-footer { border-top: 1px solid var(--navy-line); padding: 30px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.brand-footer { font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-nav a { white-space: nowrap; }
.footer-nav a { text-decoration: none; font-size: 0.88rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--text); }
.footer-fine { font-size: 0.82rem; color: var(--text-dim); margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1020px) {
  .hub-layout { grid-template-columns: minmax(0, 1fr); }
  .hub-diagram-frame { order: -1; width: 100%; max-width: 520px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-visual { grid-template-columns: minmax(0, 1fr); }
  .compare-arrow-mid { flex-direction: row; justify-content: center; }
  .compare-arrow-mid svg { transform: rotate(90deg); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; max-width: 420px; margin: 32px auto 0; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--navy-line);
    padding: 18px 28px 24px;
    gap: 16px;
  }
  .site-header.nav-open .header-actions .btn-small { display: inline-flex; }

  .compare-row-tbl { grid-template-columns: 1fr; }
  .compare-head-tbl { display: none; }
  .compare-row-tbl > div { padding: 6px 18px; }
  .compare-label { padding-top: 16px !important; font-size: 1rem; }
  .compare-row-tbl { padding-bottom: 10px; }

  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .solution-stats { grid-template-columns: minmax(0, 1fr); }
  .compare-row-tbl { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .hero-badge-float { position: static; margin-top: 14px; display: inline-flex; }
  .video-intro { padding: 28px 0 0; }
  .video-box { padding-top: 22px; }
}

/* Small phones, or any phone with a larger system font size */
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .modules-video-badge { font-size: 0.72rem; padding: 5px 10px; top: 10px; left: 10px; }
  .dash-card { padding: 16px; }
  .dash-secondary { grid-template-columns: minmax(0, 1fr); }
  .dash-hero { flex-wrap: wrap; }
  .dash-head { gap: 10px; }
  .dash-dots { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
