/* ═══════════════════════════════════════════════════════════════
   REGI-SYS LANDING — Main Stylesheet
   Brand: #0A1128 · #001F54 · #034078 · #1282A2 · #FEFCFB
═══════════════════════════════════════════════════════════════ */

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

:root {
  --navy:     #0A1128;
  --deep:     #001F54;
  --blue:     #034078;
  --cerulean: #1282A2;
  --ice:      #67D7F0;
  --white:    #FEFCFB;
  --muted:    rgba(254,252,251,0.55);
  --nav-h:    68px;
  --max:      1160px;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ── Skip link (accessibility) ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  background: var(--cerulean);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 0 0 6px 6px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Focus visible styles ───────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cerulean);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background 0.35s var(--ease), height 0.25s var(--ease),
              box-shadow 0.35s var(--ease);
}
#nav.solid {
  background: rgba(10,17,40,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  height: 60px;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo { flex-shrink: 0; line-height: 0; }
.nav-logo svg { height: 26px; width: auto; filter: brightness(0) invert(1); overflow: visible; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: rgba(254,252,251,0.55);
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.nav-active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

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

.nav-pro-trigger {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(103,215,240,0.45);
  border: 1px solid rgba(103,215,240,0.15);
  border-radius: 99px;
  padding: 5px 12px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-pro-trigger:hover {
  color: var(--ice);
  border-color: rgba(103,215,240,0.4);
  background: rgba(103,215,240,0.06);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--cerulean);
  color: var(--white);
  border-radius: 8px;
  border: 1px solid rgba(18,130,162,0.6);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 2px 10px rgba(18,130,162,0.35);
  cursor: pointer;
  font-family: inherit;
}
.btn-demo:hover {
  background: #1594b8;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(18,130,162,0.45);
}
.btn-demo:active { transform: translateY(0); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  cursor: pointer;
  padding: 0 7px;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: rgba(254,252,251,0.7);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
}
#mobile-drawer.open { pointer-events: all; }
.drawer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}
#mobile-drawer.open .drawer-overlay { background: rgba(0,0,0,0.6); }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(280px, 85vw);
  background: var(--deep);
  border-left: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
#mobile-drawer.open .drawer-panel { transform: translateX(0); }
.drawer-close {
  align-self: flex-end;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  color: rgba(254,252,251,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.drawer-panel a, .drawer-panel button.drawer-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(254,252,251,0.65);
  padding: 11px 14px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.drawer-panel a:hover, .drawer-panel button.drawer-link:hover {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}
.drawer-demo {
  margin-top: 12px;
  background: var(--cerulean) !important;
  color: var(--white) !important;
  text-align: center !important;
  font-weight: 700 !important;
  border-radius: 8px;
}
.drawer-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#hero {
  min-height: 100svh;
  background: linear-gradient(160deg, #030710 0%, #070d1c 30%, var(--navy) 60%, #060d1f 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 28px 60px;
}

.hero-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 65% 40%, rgba(18,130,162,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 15% 65%, rgba(3,64,120,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 78%, rgba(0,31,84,0.18) 0%, transparent 50%);
}

.hero-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(18,130,162,0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: grid-drift 20s linear infinite;
}
@keyframes grid-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 44px 44px; }
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18,130,162,0.10);
  border: 1px solid rgba(18,130,162,0.28);
  color: var(--ice);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 32px;
}
.eyebrow-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 8px rgba(103,215,240,0.8);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
  animation: hero-fade-up 0.8s var(--ease) both;
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: hero-fade-up 0.6s var(--ease) both; }
.hero-sub     { animation: hero-fade-up 0.8s 0.15s var(--ease) both; }
.hero-cta     { animation: hero-fade-up 0.8s 0.28s var(--ease) both; }
.hero-stats   { animation: hero-fade-up 0.8s 0.4s var(--ease) both; }
.hero-visual  { animation: hero-fade-up 0.9s 0.1s var(--ease) both; }

.hero-h1 .line-2 {
  color: var(--cerulean);
  text-shadow: 0 0 48px rgba(18,130,162,0.4);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(254,252,251,0.60);
  max-width: 480px;
  margin-bottom: 44px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--cerulean);
  color: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(18,130,162,0.6);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 20px rgba(18,130,162,0.4);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero-primary:hover {
  background: #1594b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(18,130,162,0.5);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  color: rgba(254,252,251,0.72);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  cursor: pointer;
  font-family: inherit;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.38);
  margin-bottom: 4px;
}
.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat-value span {
  font-size: 0.65em;
  color: var(--cerulean);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.hero-monogram-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-monogram-bg {
  width: 120px; height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(18,130,162,0.15), rgba(3,64,120,0.25));
  border: 1.5px solid rgba(18,130,162,0.4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 16px rgba(18,130,162,0.05), 0 0 0 32px rgba(18,130,162,0.03);
  animation: monogram-breathe 4s ease-in-out infinite;
}
@keyframes monogram-breathe {
  0%, 100% { box-shadow: 0 0 0 14px rgba(18,130,162,0.06), 0 0 0 28px rgba(18,130,162,0.03); }
  50%       { box-shadow: 0 0 0 20px rgba(18,130,162,0.09), 0 0 0 40px rgba(18,130,162,0.04); }
}
.hero-monogram-bg svg { width: 56px; height: auto; }

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(18,130,162,0.2);
  animation: orbit-spin linear infinite;
  pointer-events: none;
}
.orbit-1 { width: 220px; height: 220px; animation-duration: 30s; }
.orbit-2 { width: 340px; height: 340px; animation-duration: 48s; animation-direction: reverse; border-style: dotted; opacity: 0.7; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.op-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.op-node {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(10,17,40,0.9);
  border: 1.5px solid rgba(18,130,162,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ice);
  text-align: center;
  line-height: 1.2;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.op-node:nth-child(1) { top: calc(50% - 24px - 110px); left: calc(50% - 24px); }
.op-node:nth-child(2) { top: calc(50% - 24px - 77px);  left: calc(50% - 24px + 77px); }
.op-node:nth-child(3) { top: calc(50% - 24px);          left: calc(50% - 24px + 110px); }
.op-node:nth-child(4) { top: calc(50% - 24px + 77px);   left: calc(50% - 24px + 77px); }
.op-node:nth-child(5) { top: calc(50% - 24px + 110px);  left: calc(50% - 24px); }
.op-node:nth-child(6) { top: calc(50% - 24px + 77px);   left: calc(50% - 24px - 77px); }
.op-node:nth-child(7) { top: calc(50% - 24px);          left: calc(50% - 24px - 110px); }
.op-node:nth-child(8) { top: calc(50% - 24px - 77px);   left: calc(50% - 24px - 77px); }
.op-node:hover {
  border-color: var(--cerulean);
  background: rgba(18,130,162,0.15);
  transform: scale(1.15);
  pointer-events: all;
  z-index: 5;
}
.op-node-icon { font-size: 1rem; margin-bottom: 2px; line-height: 1; }

.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin: 0;
}

.lc-step-hint {
  display: none;
  text-align: center;
  font-size: 0.65rem;
  color: rgba(254,252,251,0.3);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
@media (pointer: coarse) {
  .lc-step-hint { display: block; }
}

.lc-detail { opacity: 1; transition: opacity 0.25s ease; }

.cap-card, .trust-card, .et-card, .ba-col, .of-step {
  will-change: opacity, transform;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 2 — PROBLEM / CHAOS STORY
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#problem {
  background: linear-gradient(180deg, var(--navy) 0%, #05101f 50%, #03090f 100%);
  padding: 110px 28px 120px;
  position: relative;
  overflow: hidden;
}
.problem-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

.sec-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 20px;
  opacity: 0.7;
}

.problem-headline {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 700px;
}
.problem-headline .easy { color: var(--cerulean); }
.problem-hed2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: rgba(254,252,251,0.45);
  margin-bottom: 56px;
  max-width: 700px;
}

.chaos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 72px;
}
.chaos-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 22px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}
.chaos-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
.chaos-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,100,100,0.25);
  transform: translateY(-3px);
}
.chaos-card-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}
.chaos-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.chaos-card-desc {
  font-size: 0.75rem;
  color: rgba(254,252,251,0.45);
  line-height: 1.6;
}
.chaos-card-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,100,80,0.7);
  background: rgba(255,100,80,0.08);
  border: 1px solid rgba(255,100,80,0.18);
  border-radius: 99px;
  padding: 3px 10px;
}

.chaos-statement {
  text-align: center;
  padding: 64px 0 48px;
  position: relative;
}
.chaos-statement::before,
.chaos-statement::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
}
.chaos-statement::before { top: 0; height: 48px; }
.chaos-statement::after  { bottom: 0; height: 40px; }

.chaos-line {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: rgba(254,252,251,0.35);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chaos-line.reveal { opacity: 1; transform: translateY(0); }
.chaos-line.big {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--white);
  margin-top: 16px;
}
.chaos-line.bigger {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.045em;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}
.pain-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.pain-item.reveal { opacity: 1; transform: translateY(0); }
.pain-item:last-child { border-bottom: none; }
.pain-problem {
  padding: 20px 24px;
  background: rgba(255,80,60,0.05);
  border: 1px solid rgba(255,80,60,0.15);
  border-radius: 10px;
}
.pain-problem-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,120,100,0.7);
  margin-bottom: 8px;
}
.pain-problem p {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(254,252,251,0.7);
  line-height: 1.6;
  font-style: italic;
}
.pain-solution {
  padding: 20px 24px;
  background: rgba(18,130,162,0.07);
  border: 1px solid rgba(18,130,162,0.2);
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.4s 0.2s var(--ease);
}
.pain-item.reveal .pain-solution { opacity: 1; }
.pain-solution-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 8px;
  opacity: 0.75;
}
.pain-solution p {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .chaos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .chaos-grid { grid-template-columns: 1fr; gap: 10px; }
  .pain-item { grid-template-columns: 1fr; gap: 12px; }
  #problem { padding: 80px 20px 90px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 3 — TRANSFORMATION + LIFECYCLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#transformation {
  background: linear-gradient(180deg, #03090f 0%, #050e1c 40%, var(--navy) 100%);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#transformation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(18,130,162,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.transform-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.transform-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px; height: 100px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18,130,162,0.18), rgba(3,64,120,0.28));
  border: 1.5px solid rgba(18,130,162,0.45);
  margin: 0 auto 40px;
  box-shadow: 0 0 0 20px rgba(18,130,162,0.06), 0 0 0 40px rgba(18,130,162,0.03);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.transform-monogram.reveal { opacity: 1; transform: scale(1); }
.transform-monogram svg { width: 48px; height: auto; }

.transform-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.65;
  margin-bottom: 20px;
}
.transform-h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s 0.2s var(--ease), transform 0.6s 0.2s var(--ease);
}
.transform-h2.reveal { opacity: 1; transform: translateY(0); }
.transform-h2 .accent { color: var(--cerulean); }
.transform-sub {
  font-size: 1rem;
  color: rgba(254,252,251,0.5);
  max-width: 520px;
  margin: 0 auto 64px;
  line-height: 1.75;
  opacity: 0;
  transition: opacity 0.6s 0.4s var(--ease);
}
.transform-sub.reveal { opacity: 1; }

#how-it-works {
  background: var(--navy);
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
}
#how-it-works::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 50%, rgba(3,64,120,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 50%, rgba(18,130,162,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.lifecycle-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.lifecycle-header {
  max-width: 580px;
  margin-bottom: 64px;
}
.lifecycle-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.lifecycle-header p {
  font-size: 0.95rem;
  color: rgba(254,252,251,0.5);
  line-height: 1.7;
}

.lifecycle-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: 0;
}
.lifecycle-flow::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10%);
  right: calc(10%);
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(18,130,162,0.2) 10%,
    rgba(18,130,162,0.5) 50%,
    rgba(18,130,162,0.2) 90%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}
.lc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
  cursor: pointer;
}
.lc-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(10,17,40,0.95);
  border: 2px solid rgba(18,130,162,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-bottom: 14px;
}
.lc-step:hover .lc-node,
.lc-step.active .lc-node {
  border-color: var(--cerulean);
  background: rgba(18,130,162,0.15);
  box-shadow: 0 0 0 8px rgba(18,130,162,0.08), 0 0 20px rgba(18,130,162,0.2);
  transform: scale(1.1);
}
.lc-name {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.55);
  transition: color 0.2s;
  margin-bottom: 4px;
}
.lc-step:hover .lc-name,
.lc-step.active .lc-name { color: var(--white); }
.lc-sub {
  font-size: 0.62rem;
  color: rgba(254,252,251,0.3);
  line-height: 1.5;
  transition: color 0.2s;
}
.lc-step:hover .lc-sub,
.lc-step.active .lc-sub { color: rgba(254,252,251,0.55); }

.lc-detail {
  margin-top: 48px;
  padding: 32px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(18,130,162,0.22);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 120px;
  transition: opacity 0.3s var(--ease);
}
.lc-detail-left h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}
.lc-detail-left p {
  font-size: 0.88rem;
  color: rgba(254,252,251,0.55);
  line-height: 1.7;
}
.lc-detail-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.lc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(18,130,162,0.1);
  border: 1px solid rgba(18,130,162,0.25);
  border-radius: 99px;
  padding: 4px 12px;
}

.lifecycle-flow-2 {
  margin-top: 40px;
  position: relative;
}
.lifecycle-flow-2::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10%);
  right: calc(10%);
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(18,130,162,0.2) 10%,
    rgba(18,130,162,0.5) 50%,
    rgba(18,130,162,0.2) 90%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 960px) {
  .lifecycle-flow { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 720px) {
  .lifecycle-flow, .lifecycle-flow-2 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
  }
  .lifecycle-flow::before,
  .lifecycle-flow-2::before { display: none; }
  .lc-detail { grid-template-columns: 1fr; gap: 20px; }
  .lc-detail-right { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .lifecycle-flow, .lifecycle-flow-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  #transformation { padding: 80px 20px; }
  #how-it-works { padding: 72px 20px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 4 — CAPABILITIES + WHY REGI-SYS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#capabilities {
  background: linear-gradient(180deg, var(--navy) 0%, #081222 100%);
  padding: 100px 28px;
  position: relative;
}
.cap-inner { max-width: var(--max); margin: 0 auto; }
.cap-header { max-width: 580px; margin-bottom: 60px; }
.cap-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.cap-header p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.7; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.cap-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(18,130,162,0), transparent);
  transition: background 0.2s;
}
.cap-card:hover {
  background: rgba(18,130,162,0.06);
  border-color: rgba(18,130,162,0.25);
  transform: translateY(-3px);
}
.cap-card:hover::after {
  background: linear-gradient(90deg, transparent, rgba(18,130,162,0.5), transparent);
}
.cap-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(18,130,162,0.10) 0%, rgba(3,64,120,0.12) 100%);
  border-color: rgba(18,130,162,0.3);
}
.cap-card.featured:hover { background: linear-gradient(135deg, rgba(18,130,162,0.15) 0%, rgba(3,64,120,0.18) 100%); }
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(18,130,162,0.12);
  border: 1px solid rgba(18,130,162,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.cap-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cap-card p { font-size: 0.78rem; color: rgba(254,252,251,0.5); line-height: 1.65; }
.cap-kicker {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(18,130,162,0.1);
  border: 1px solid rgba(18,130,162,0.2);
  border-radius: 99px;
  padding: 3px 10px;
  margin-top: 14px;
}

#form-builder {
  background: linear-gradient(180deg, #081222 0%, var(--navy) 100%);
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
}
.fb-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.fb-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.fb-text p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.7; margin-bottom: 20px; }
.fb-features { display: flex; flex-direction: column; gap: 10px; }
.fb-feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(254,252,251,0.65);
  line-height: 1.5;
}
.fb-feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cerulean);
  flex-shrink: 0;
  margin-top: 6px;
}
.fb-visual {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.fb-visual-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.3);
  margin-bottom: 20px;
}
.fb-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(254,252,251,0.55);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.fb-field:hover {
  border-color: rgba(18,130,162,0.4);
  background: rgba(18,130,162,0.06);
}
.fb-field-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(103,215,240,0.6);
  background: rgba(18,130,162,0.1);
  border: 1px solid rgba(18,130,162,0.18);
  border-radius: 99px;
  padding: 2px 8px;
}
.fb-add-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: rgba(18,130,162,0.08);
  border: 1.5px dashed rgba(18,130,162,0.3);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(103,215,240,0.6);
  letter-spacing: 0.04em;
  text-align: center;
  cursor: default;
}

@media (max-width: 880px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card.featured { grid-column: span 2; }
  .fb-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card.featured { grid-column: span 1; }
  #capabilities, #form-builder { padding: 72px 20px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 5 — EVENT MODE + COURSE MODE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#event-mode-section {
  background: linear-gradient(180deg, var(--navy) 0%, #050d1a 100%);
  padding: 110px 28px;
  position: relative;
  overflow: hidden;
}
#event-mode-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(18,130,162,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.mode-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.mode-header { max-width: 640px; margin-bottom: 60px; }
.mode-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 14px;
}
.mode-header p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.75; }

.event-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}
.et-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: default;
  position: relative;
}
.et-card:hover {
  background: rgba(18,130,162,0.08);
  border-color: rgba(18,130,162,0.3);
  transform: translateY(-3px);
}
.et-card-icon { font-size: 1.8rem; margin-bottom: 12px; line-height: 1; }
.et-card h4 { font-size: 0.85rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.et-card p  { font-size: 0.74rem; color: rgba(254,252,251,0.45); line-height: 1.6; }

.mode-diff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 36px;
  background: rgba(18,130,162,0.06);
  border: 1px solid rgba(18,130,162,0.18);
  border-radius: 14px;
}
.mode-diff-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(103,215,240,0.65);
  margin-bottom: 8px;
}
.mode-diff-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

#course-mode-section {
  background: linear-gradient(180deg, #050d1a 0%, var(--navy) 100%);
  padding: 110px 28px;
  position: relative;
  overflow: hidden;
}
#course-mode-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 40% 50%, rgba(3,64,120,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.cm-inner { max-width: var(--max); margin: 0 auto; position: relative; }

/* ── Course Mode: Section header ─────────────────────────── */
.cm-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.cm-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--white);
  margin: 10px 0 18px;
}
.cm-header .run-again { color: var(--cerulean); }
.cm-header-sub {
  font-size: 0.95rem;
  color: rgba(254,252,251,0.5);
  line-height: 1.75;
}

/* ── Use cases strip ─────────────────────────────────────── */
.cm-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
  margin-bottom: 56px;
}
.cm-uses-strip { /* same, strip variant uses flex */ }
.cm-use {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(254,252,251,0.55);
}
.cm-use-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cerulean);
  flex-shrink: 0;
}

/* ── Story grid ──────────────────────────────────────────── */
.cm-story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 52px;
}
.cm-story-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.25);
  margin-bottom: 20px;
}

/* ── Org diagram ─────────────────────────────────────────── */
.cm-org-diagram { display: flex; flex-direction: column; gap: 0; }
.cm-org-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.cm-org-connector-row {
  display: flex; justify-content: center; height: 20px;
}
.cm-org-connector-v {
  width: 1px;
  background: rgba(18,130,162,0.3);
}
.cm-org-node {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  position: relative;
}
.cm-org-node-icon { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.cm-org-node-name { font-size: 0.75rem; font-weight: 700; color: rgba(254,252,251,0.85); }
.cm-org-node-sub  { font-size: 0.65rem; color: rgba(254,252,251,0.35); margin-top: 1px; }
.root-node  { border-color: rgba(18,130,162,0.3); background: rgba(3,64,120,0.15); width: 100%; }
.branch-node { flex: 1; border-color: rgba(103,215,240,0.15); }
.batch-node  { flex: 1; border-color: rgba(255,255,255,0.06); font-size: 0.7rem; }
.session-node { flex: 1; border-color: rgba(255,255,255,0.06); }
.active-session { border-color: rgba(18,130,162,0.4); background: rgba(3,64,120,0.2); }
.cm-session-live {
  margin-left: auto;
  font-size: 0.52rem; font-weight: 900; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ADE80;
}

/* ── Feature cards ───────────────────────────────────────── */
.cm-story-right { display: flex; flex-direction: column; gap: 16px; }
.cm-feature-card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
}
.cm-feature-card.cm-feat-qr    { border-color: rgba(103,215,240,0.15); }
.cm-feature-card.cm-feat-comms { border-color: rgba(18,130,162,0.2); }
.cm-feature-card.cm-feat-reports { border-color: rgba(74,222,128,0.12); }
.cm-feat-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.cm-feat-icon { font-size: 1.15rem; line-height: 1; }
.cm-feat-title { font-size: 0.82rem; font-weight: 800; color: var(--white); }
.cm-feat-desc { font-size: 0.75rem; color: rgba(254,252,251,0.45); line-height: 1.65; margin-bottom: 12px; }

/* QR flow */
.cm-qr-flow {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.cm-qr-step {
  font-size: 0.65rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(254,252,251,0.6);
  white-space: nowrap;
}
.cm-qr-done {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.3);
  color: #4ADE80;
}
.cm-qr-arrow { font-size: 0.65rem; color: rgba(254,252,251,0.2); flex-shrink: 0; }

/* Communication tags */
.cm-comms-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-comms-tag {
  font-size: 0.62rem; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  background: rgba(3,64,120,0.2);
  border: 1px solid rgba(18,130,162,0.25);
  color: var(--ice);
}

/* Attendance preview mini-table */
.cm-attendance-preview {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.cm-att-row {
  display: grid;
  grid-template-columns: 1fr repeat(4, 28px);
  gap: 0;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  align-items: center;
}
.cm-att-row:last-child { border-bottom: none; }
.cm-att-row.header span {
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(254,252,251,0.25);
  text-align: center;
}
.cm-att-row.header span:first-child { text-align: left; }
.cm-att-name { font-size: 0.68rem; font-weight: 600; color: rgba(254,252,251,0.7); font-family: 'Courier New', monospace; }
.cm-att-p { font-size: 0.7rem; color: #4ADE80; text-align: center; font-weight: 700; }
.cm-att-a { font-size: 0.7rem; color: rgba(239,68,68,0.5); text-align: center; font-weight: 700; }

/* ── Bottom distinction ──────────────────────────────────── */
.cm-distinction {
  padding: 24px 28px;
  background: rgba(3,64,120,0.15);
  border: 1px solid rgba(18,130,162,0.25);
  border-radius: 12px;
}
.cm-distinction p {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white) !important;
  font-style: italic;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .event-types { grid-template-columns: repeat(2, 1fr); }
  .mode-diff { grid-template-columns: 1fr; gap: 16px; }
  .cm-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .cm-org-row.cm-org-batches { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .event-types { grid-template-columns: 1fr; }
  .cm-uses { gap: 8px 16px; }
  #event-mode-section, #course-mode-section { padding: 80px 20px; }
  .cm-qr-flow { gap: 4px; }
  .cm-att-row { grid-template-columns: 1fr repeat(4, 24px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 6 — BEFORE/AFTER + OFFLINE-FIRST + TRUST
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#before-after {
  background: linear-gradient(180deg, var(--navy) 0%, #081222 100%);
  padding: 100px 28px;
  position: relative;
}
.ba-inner { max-width: var(--max); margin: 0 auto; }
.ba-header { max-width: 580px; margin-bottom: 52px; }
.ba-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 12px;
}
.ba-header p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.7; }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ba-col { border-radius: 14px; overflow: hidden; }
.ba-col-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ba-col.without .ba-col-header {
  background: rgba(255,80,60,0.1);
  border: 1px solid rgba(255,80,60,0.2);
  border-bottom: none;
  color: rgba(255,140,120,0.9);
  border-radius: 14px 14px 0 0;
}
.ba-col.with .ba-col-header {
  background: rgba(18,130,162,0.1);
  border: 1px solid rgba(18,130,162,0.25);
  border-bottom: none;
  color: var(--ice);
  border-radius: 14px 14px 0 0;
}
.ba-col-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba-col.without .ba-col-body {
  background: rgba(255,80,60,0.04);
  border: 1px solid rgba(255,80,60,0.15);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.ba-col.with .ba-col-body {
  background: rgba(18,130,162,0.04);
  border: 1px solid rgba(18,130,162,0.18);
  border-top: none;
  border-radius: 0 0 14px 14px;
}
.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ba-item:last-child { border-bottom: none; }
.ba-col.without .ba-item { color: rgba(254,252,251,0.55); }
.ba-col.with    .ba-item { color: rgba(254,252,251,0.7); }
.ba-bullet {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.6rem;
  font-weight: 900;
}
.ba-col.without .ba-bullet {
  background: rgba(255,80,60,0.15);
  color: rgba(255,100,80,0.8);
}
.ba-col.with .ba-bullet {
  background: rgba(18,130,162,0.2);
  color: var(--ice);
}

#offline-first {
  background: linear-gradient(180deg, #081222 0%, var(--deep) 50%, var(--navy) 100%);
  padding: 100px 28px;
  position: relative;
  overflow: hidden;
}
#offline-first::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(3,64,120,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.of-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.of-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.of-text h2 span { color: var(--cerulean); }
.of-text p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.75; margin-bottom: 20px; }
.of-steps { display: flex; flex-direction: column; gap: 0; }
.of-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.of-step:last-child { border-bottom: none; }
.of-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(18,130,162,0.15);
  border: 1px solid rgba(18,130,162,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800;
  color: var(--ice);
  flex-shrink: 0;
}
.of-step h4 { font-size: 0.82rem; font-weight: 800; color: var(--white); margin-bottom: 3px; }
.of-step p  { font-size: 0.75rem; color: rgba(254,252,251,0.45); line-height: 1.55; margin: 0; }

.of-visual {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
}
.signal-bar {
  width: 10px;
  border-radius: 3px 3px 0 0;
  transition: opacity 0.4s;
}
.signal-bar:nth-child(1) { height: 20%; background: rgba(74,222,128,0.7); }
.signal-bar:nth-child(2) { height: 40%; background: rgba(74,222,128,0.7); }
.signal-bar:nth-child(3) { height: 60%; background: rgba(74,222,128,0.3); opacity: 0.4; }
.signal-bar:nth-child(4) { height: 80%; background: rgba(74,222,128,0.15); opacity: 0.2; }
.signal-bar:nth-child(5) { height: 100%; background: rgba(74,222,128,0.1); opacity: 0.1; }
.of-status-msg {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(254,252,251,0.5);
  letter-spacing: 0.04em;
}
.of-status-msg .status-ok { color: #4ADE80; }
.of-continue {
  padding: 20px 28px;
  background: rgba(18,130,162,0.08);
  border: 1px solid rgba(18,130,162,0.22);
  border-radius: 12px;
  text-align: left;
  width: 100%;
}
.of-continue-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ice); opacity: 0.7; margin-bottom: 10px; }
.of-continue-ops { display: flex; flex-direction: column; gap: 6px; }
.of-op {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; color: rgba(254,252,251,0.6);
}
.of-op-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; flex-shrink: 0; }

#trust {
  background: var(--navy);
  padding: 100px 28px;
  position: relative;
}
.trust-inner { max-width: var(--max); margin: 0 auto; }
.trust-header { max-width: 580px; margin-bottom: 52px; }
.trust-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 12px;
}
.trust-header p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.7; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.trust-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 26px 22px;
  transition: border-color 0.2s, background 0.2s;
}
.trust-card:hover {
  background: rgba(18,130,162,0.06);
  border-color: rgba(18,130,162,0.25);
}
.trust-card-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ice); opacity: 0.7;
  margin-bottom: 10px;
}
.trust-card h4 { font-size: 0.88rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.trust-card p  { font-size: 0.75rem; color: rgba(254,252,251,0.45); line-height: 1.65; }

@media (max-width: 860px) {
  .ba-grid { grid-template-columns: 1fr; gap: 12px; }
  .of-inner { grid-template-columns: 1fr; gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust-grid { grid-template-columns: 1fr; }
  #before-after, #offline-first, #trust { padding: 72px 20px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 7 — FINAL CTA + FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#final-cta {
  background: linear-gradient(160deg, #03090f 0%, #060e1c 40%, var(--navy) 100%);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(18,130,162,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.fcta-inner { max-width: 720px; margin: 0 auto; position: relative; }
.fcta-monogram {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(18,130,162,0.18), rgba(3,64,120,0.25));
  border: 1.5px solid rgba(18,130,162,0.4);
  margin: 0 auto 32px;
}
.fcta-monogram svg { width: 38px; height: auto; }
.fcta-h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.fcta-h2 span { color: var(--cerulean); }
.fcta-sub {
  font-size: 1rem;
  color: rgba(254,252,251,0.55);
  line-height: 1.75;
  margin-bottom: 44px;
}
.fcta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.btn-fcta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--cerulean);
  color: var(--white);
  border-radius: 10px;
  border: 1px solid rgba(18,130,162,0.6);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(18,130,162,0.45);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  font-family: inherit;
}
.btn-fcta-primary:hover {
  background: #1594b8;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(18,130,162,0.55);
}
.btn-fcta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  background: rgba(255,255,255,0.05);
  color: rgba(254,252,251,0.75);
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-fcta-secondary:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
  transform: translateY(-1px);
}
.fcta-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.25);
}

#contact-section {
  background: linear-gradient(180deg, var(--navy) 0%, #081020 100%);
  padding: 100px 28px;
  position: relative;
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 14px;
}
.contact-info p { font-size: 0.95rem; color: rgba(254,252,251,0.5); line-height: 1.75; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-detail-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: rgba(18,130,162,0.1);
  border: 1px solid rgba(18,130,162,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-text { font-size: 0.85rem; color: rgba(254,252,251,0.6); }
.contact-detail-text a { color: var(--ice); }
.contact-detail-text a:hover { text-decoration: underline; }

.demo-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 32px;
}
.demo-form-wrap h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(254,252,251,0.45);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  transition: border-color 0.15s;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(18,130,162,0.6);
  background: rgba(18,130,162,0.05);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(254,252,251,0.25); }
.form-field select option { background: var(--navy); color: var(--white); }
.btn-submit-demo {
  width: 100%;
  padding: 13px;
  background: var(--cerulean);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.15s, transform 0.12s;
  margin-top: 4px;
}
.btn-submit-demo:hover { background: #1594b8; transform: translateY(-1px); }
.form-success-msg {
  display: none;
  padding: 16px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  text-align: center;
  color: #4ADE80;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 14px;
}

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 56px 28px 28px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand svg { height: 22px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: 0.8rem; color: rgba(254,252,251,0.4); line-height: 1.8; max-width: 260px; }
.footer-tagline { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(254,252,251,0.2); margin-top: 12px; }
.footer-col h4 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(254,252,251,0.35);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
  font-size: 0.8rem; color: rgba(254,252,251,0.5);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-copy { font-size: 0.75rem; color: rgba(254,252,251,0.25); }
.footer-login { font-size: 0.75rem; color: rgba(254,252,251,0.25); }
.footer-login a { color: rgba(254,252,251,0.35); transition: color 0.15s; }
.footer-login a:hover { color: rgba(254,252,251,0.65); }

@media (max-width: 840px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .fcta-buttons { flex-direction: column; align-items: center; }
  .btn-fcta-primary, .btn-fcta-secondary { width: 100%; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  #final-cta, #contact-section { padding: 80px 20px; }
  footer { padding: 48px 20px 24px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PHASE 8 — PRO GAME MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#pro-modal {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
#pro-modal.open { opacity: 1; pointer-events: all; }
.pro-modal-bg {
  position: absolute; inset: 0;
  background: rgba(3,7,16,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pro-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 96vw);
  max-height: 92svh;
  background: linear-gradient(160deg, #070f20 0%, #0A1128 100%);
  border: 1px solid rgba(18,130,162,0.3);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(18,130,162,0.15);
}
.pro-modal-header {
  padding: 18px 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.pro-modal-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.7;
}
.pro-level-bar { display: flex; gap: 6px; align-items: center; }
.pro-level-pip {
  width: 28px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.pro-level-pip.done { background: #4ADE80; }
.pro-level-pip.active { background: #67D7F0; }
.pro-modal-close {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(254,252,251,0.5);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.pro-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.game-screen {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 22px;
  display: none;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}
.game-screen.active { display: flex; }

.game-intro-eyebrow {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ice); opacity: 0.6;
  text-align: center;
}
.game-intro-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.1;
  text-align: center;
  margin: 0;
}
.game-intro-sub {
  font-size: 0.82rem;
  color: rgba(254,252,251,0.45);
  text-align: center;
  line-height: 1.7;
  margin: 0;
}
.game-level-cards { display: flex; flex-direction: column; gap: 8px; }
.game-level-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 14px 16px;
}
.game-level-num {
  font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ice); opacity: 0.5;
  min-width: 28px;
}
.game-level-name { font-size: 0.8rem; font-weight: 800; color: var(--white); }
.game-level-desc { font-size: 0.7rem; color: rgba(254,252,251,0.4); margin-top: 2px; }
.game-btn-row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.game-level-badge {
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ice); opacity: 0.5;
}
.game-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.game-title { font-size: 0.82rem; font-weight: 800; color: var(--white); }
.game-score-bar { display: flex; gap: 14px; align-items: center; }
.game-score-item { font-size: 0.68rem; font-weight: 700; color: rgba(254,252,251,0.4); white-space: nowrap; }
.game-score-item span { color: var(--ice); font-size: 0.85rem; font-weight: 900; }

.status-bars { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; min-width: 42px;
}
.bar-label.chaos-lbl { color: rgba(239,68,68,0.7); }
.bar-label.time-lbl  { color: rgba(103,215,240,0.7); }
.bar-bg {
  flex: 1; height: 5px; border-radius: 99px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.35s ease;
}
.bar-fill.chaos-fill { background: linear-gradient(90deg, #4ADE80 0%, #FCD34D 55%, #EF4444 100%); }
.bar-fill.time-fill  { background: #1282A2; }

.arriving-banner {
  background: rgba(3,64,120,0.25);
  border: 1px solid rgba(18,130,162,0.3);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  min-height: 60px;
}
.arriving-icon { font-size: 1.4rem; line-height: 1; }
.arriving-text { flex: 1; font-size: 0.78rem; color: rgba(254,252,251,0.85); line-height: 1.5; }
.arriving-text strong { color: var(--white); }
.arriving-empty { color: rgba(254,252,251,0.25); font-size: 0.75rem; font-style: italic; }

/* ── L1 Queue panel ─────────────────────────────────────────── */
.l1-queue-panel {
  background: rgba(3,64,120,0.12);
  border: 1px solid rgba(18,130,162,0.25);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.l1-queue-header {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: rgba(3,64,120,0.2);
  border-bottom: 1px solid rgba(18,130,162,0.2);
}
.l1-queue-label {
  font-size: 0.56rem; font-weight: 900; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ice); opacity: 0.6;
}
.l1-queue-count-badge {
  font-size: 0.62rem; font-weight: 700; color: var(--ice);
}
.l1-queue-warn {
  margin-left: auto;
  font-size: 0.58rem; font-weight: 700; color: #EF4444;
  white-space: nowrap;
}
.l1-queue-body {
  max-height: 110px;
  overflow-y: auto;
  padding: 4px 0;
}
.l1-queue-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.l1-queue-item:last-child { border-bottom: none; }
.l1-queue-icon { font-size: 0.9rem; }
.l1-queue-name {
  flex: 1; font-size: 0.72rem; font-weight: 600;
  color: rgba(254,252,251,0.85); font-family: 'Courier New', monospace;
}
.l1-queue-badge {
  font-size: 0.54rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 99px;
  background: rgba(252,211,77,0.1); border: 1px solid rgba(252,211,77,0.25);
  color: #FCD34D;
}
.l1-queue-empty {
  padding: 8px 12px;
  font-size: 0.68rem; color: rgba(254,252,251,0.2); font-style: italic;
}

.master-list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.master-list-head {
  display: grid;
  grid-template-columns: 1fr 100px;
  padding: 7px 12px;
  background: rgba(3,64,120,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.master-list-head span {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(254,252,251,0.35);
}
.master-list-body { overflow-y: auto; flex: 1; }
.master-list-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  padding: 0 12px;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.master-list-row:last-child { border-bottom: none; }
.master-list-row:hover { background: rgba(18,130,162,0.08); }
.master-list-row.selected {
  background: rgba(18,130,162,0.2);
  border-color: rgba(18,130,162,0.4);
}
.master-list-row.checked-in { opacity: 0.4; cursor: default; pointer-events: none; }
.master-list-row.wrong-flash { background: rgba(239,68,68,0.18) !important; }
.row-name {
  font-size: 0.73rem; font-weight: 600; color: rgba(254,252,251,0.85);
  font-family: 'Courier New', monospace;
}
.row-status {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
  text-align: right;
}
.row-status.waiting  { color: rgba(254,252,251,0.3); }
.row-status.arrived  { color: #FCD34D; }
.row-status.done     { color: #4ADE80; }
.row-status.served   { color: #4ADE80; }
.row-status.missed   { color: #EF4444; }

.checkin-btn-wrap {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex-shrink: 0;
}
.checkin-msg {
  font-size: 0.7rem; color: rgba(254,252,251,0.4); flex: 1;
  min-width: 140px;
}
.checkin-msg.error { color: #EF4444; font-weight: 700; }
.checkin-msg.success { color: #4ADE80; font-weight: 700; }

.badge-seq { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-step {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(254,252,251,0.3);
  transition: all 0.25s;
}
.badge-step.lit {
  background: rgba(74,222,128,0.12);
  border-color: rgba(74,222,128,0.35);
  color: #4ADE80;
}

.rs-log-wrap {
  flex: 1; min-height: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(18,130,162,0.2);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rs-log-head {
  padding: 7px 14px;
  background: rgba(3,64,120,0.3);
  border-bottom: 1px solid rgba(18,130,162,0.2);
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ice); opacity: 0.7;
  flex-shrink: 0;
}
.rs-log-body { overflow-y: auto; flex: 1; padding: 6px 0; }
.rs-log-entry {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: rs-entry-in 0.2s ease;
}
.rs-log-entry:last-child { border-bottom: none; }
@keyframes rs-entry-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.rs-log-name {
  font-size: 0.72rem; font-weight: 600; color: rgba(254,252,251,0.8);
  font-family: 'Courier New', monospace; flex: 1;
}
.rs-log-steps { display: flex; gap: 4px; flex-wrap: wrap; }
.rs-log-step {
  font-size: 0.56rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 2px 7px; border-radius: 99px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25);
  color: #4ADE80;
}

.plates-counter {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 16px;
  flex-shrink: 0;
}
.plates-icon { font-size: 1.2rem; }
.plates-label { font-size: 0.68rem; color: rgba(254,252,251,0.4); }
.plates-num { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-left: auto; }

.feedback-field {
  position: relative;
  flex: 1; min-height: 180px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}
.feedback-exit-zone {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48px;
  background: rgba(239,68,68,0.06);
  border-left: 1px dashed rgba(239,68,68,0.25);
  display: flex; align-items: center; justify-content: center;
}
.feedback-exit-label {
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(239,68,68,0.4);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.feedback-attendee {
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(3,64,120,0.35);
  border: 1.5px solid rgba(18,130,162,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  touch-action: manipulation;
}
.feedback-attendee:hover { background: rgba(18,130,162,0.3); border-color: rgba(103,215,240,0.6); }
.feedback-attendee.collected {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.5);
  pointer-events: none;
  opacity: 0.5;
}
.feedback-attendee.escaped {
  border-color: rgba(239,68,68,0.5);
  background: rgba(239,68,68,0.1);
  pointer-events: none;
  opacity: 0.3;
}
.feedback-stats { display: flex; gap: 12px; flex-shrink: 0; }
.feedback-stat {
  flex: 1; padding: 10px 14px; border-radius: 8px; text-align: center;
}
.feedback-stat.collected-stat { background: rgba(74,222,128,0.07); border: 1px solid rgba(74,222,128,0.2); }
.feedback-stat.escaped-stat   { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.2); }
.feedback-stat-num { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.feedback-stat.collected-stat .feedback-stat-num { color: #4ADE80; }
.feedback-stat.escaped-stat   .feedback-stat-num { color: #EF4444; }
.feedback-stat-label { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(254,252,251,0.35); margin-top: 3px; }

.rs-feedback-panel {
  flex: 1; min-height: 0;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(18,130,162,0.2);
  border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.rs-feedback-head {
  padding: 8px 14px;
  background: rgba(3,64,120,0.3);
  border-bottom: 1px solid rgba(18,130,162,0.2);
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ice); opacity: 0.7;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
}
.rs-feedback-count { color: #4ADE80; opacity: 1; }
.rs-feedback-body { overflow-y: auto; flex: 1; padding: 6px 0; }
.rs-feedback-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: rs-entry-in 0.2s ease;
}
.rs-feedback-row:last-child { border-bottom: none; }
.rs-fb-name {
  font-size: 0.7rem; font-weight: 600; color: rgba(254,252,251,0.75);
  font-family: 'Courier New', monospace; flex: 1;
}
.rs-fb-badge {
  font-size: 0.56rem; font-weight: 800; padding: 2px 7px;
  border-radius: 99px;
  background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.25);
  color: #4ADE80;
}

.level-transition {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 24px 0;
}
.level-transition-check { font-size: 2.5rem; color: #4ADE80; line-height: 1; }
.level-transition-title {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 900; letter-spacing: -0.03em; color: var(--white); margin: 0;
}
.level-transition-sub { font-size: 0.75rem; color: rgba(254,252,251,0.45); margin: 0; }

.result-screen-title {
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 900; letter-spacing: -0.04em;
  color: var(--white); text-align: center; line-height: 1.1; margin: 0;
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-col { padding: 16px 18px; border-radius: 10px; text-align: center; }
.result-col.without { background: rgba(255,80,60,0.06); border: 1px solid rgba(255,80,60,0.2); }
.result-col.with    { background: rgba(18,130,162,0.08); border: 1px solid rgba(18,130,162,0.25); }
.result-col-label {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.result-col.without .result-col-label { color: rgba(255,120,100,0.7); }
.result-col.with    .result-col-label { color: var(--ice); }
.result-col-value { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.result-col.without .result-col-value { color: rgba(255,120,100,0.9); }
.result-col.with    .result-col-value { color: var(--white); }
.result-col-sub { font-size: 0.7rem; color: rgba(254,252,251,0.4); margin-top: 4px; }
.result-col-stats { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }
.result-col-stat { font-size: 0.65rem; color: rgba(254,252,251,0.35); }

.game-btn {
  padding: 11px 26px; border-radius: 8px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
  cursor: pointer; font-family: inherit; border: none;
  transition: background 0.15s, transform 0.1s;
  min-height: 44px;
}
.game-btn-primary { background: var(--cerulean); color: var(--white); }
.game-btn-primary:hover { background: #1594b8; transform: translateY(-1px); }
.game-btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(254,252,251,0.7);
}
.game-btn-secondary:hover { background: rgba(255,255,255,0.1); }
.game-btn-success { background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.35); color: #4ADE80; }
.game-btn-success:disabled { opacity: 0.4; cursor: not-allowed; }

.game-finale-ops {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
}
.game-finale-op {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; color: rgba(254,252,251,0.6);
  padding: 9px 11px;
  background: rgba(18,130,162,0.06); border: 1px solid rgba(18,130,162,0.15);
  border-radius: 8px;
}
.game-finale-check { color: #4ADE80; font-size: 0.8rem; }
.game-finale-tagline {
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  color: rgba(254,252,251,0.4); text-align: center; line-height: 1.7;
}
.game-finale-cta {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--ice); text-align: center; line-height: 1.2; margin: 0;
}

@media (max-width: 520px) {
  .result-grid { grid-template-columns: 1fr; }
  .game-finale-ops { grid-template-columns: 1fr 1fr; }
  .game-btn-row { flex-direction: column; align-items: stretch; }
  .game-btn-row .game-btn { text-align: center; }
  .feedback-stats { gap: 8px; }
}

/* ── Pro modal mobile polish ─────────────────────────────── */
@media (max-width: 600px) {
  /* Panel fills viewport width with a small inset */
  .pro-modal-panel {
    width: 100%;
    max-width: 100%;
    max-height: 100svh;
    border-radius: 14px 14px 0 0;
    margin-top: auto;
  }
  /* Align modal to bottom of screen on mobile */
  #pro-modal {
    align-items: flex-end;
  }
  /* Header compact */
  .pro-modal-header { padding: 14px 16px 0; }
  .pro-modal-title { font-size: 0.62rem; }
  /* Game screen padding tighter */
  .game-screen { padding: 14px 14px 18px; gap: 12px; }
  /* Arriving banner stays compact */
  .arriving-banner { padding: 10px 12px; min-height: 52px; }
  .arriving-text { font-size: 0.72rem; }
  /* Queue panel on mobile */
  .l1-queue-panel { max-height: 90px; }
  /* Checkin row stacks */
  .checkin-btn-wrap { flex-direction: column; gap: 8px; align-items: stretch; }
  .checkin-msg { min-width: unset; }
  /* Score bar wraps gracefully */
  .game-header { flex-wrap: wrap; gap: 6px; }
  .game-score-bar { gap: 10px; }
  /* Status bars full width */
  .bar-row { gap: 6px; }
  .bar-label { min-width: 36px; }
  /* RS log rows */
  .rs-log-entry { gap: 6px; flex-wrap: wrap; }
  .rs-log-steps { gap: 3px; }
  /* Plates counter */
  .plates-counter { padding: 8px 12px; }
  /* Badge seq wraps */
  .badge-seq { gap: 4px; }
  /* Feedback field min-height */
  .feedback-field { min-height: 140px; }
  /* Result grid single col already handled above; result-col padding */
  .result-col { padding: 12px 12px; }
  /* Level transition */
  .level-transition { padding: 16px 0; }
  /* Org diagram nodes compact */
  .cm-org-node { padding: 8px 10px; gap: 8px; }
  .cm-org-node-icon { font-size: 0.9rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FLOATING BOOK DEMO (sticky CTA)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#sticky-demo {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
#sticky-demo.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.sticky-demo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--cerulean);
  color: var(--white);
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(18,130,162,0.5), 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
  cursor: pointer;
  font-family: inherit;
  border: none;
}
.sticky-demo-btn:hover {
  background: #1594b8;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(18,130,162,0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
}

@media (max-width: 840px) {
  .nav-links, .nav-pro-trigger { display: none; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 360px; }
  .orbit-2 { width: 290px; height: 290px; }
  .orbit-1 { width: 190px; height: 190px; }
  .op-node:nth-child(1) { top: calc(50% - 24px - 95px);  left: calc(50% - 24px); }
  .op-node:nth-child(2) { top: calc(50% - 24px - 67px);  left: calc(50% - 24px + 67px); }
  .op-node:nth-child(3) { top: calc(50% - 24px);         left: calc(50% - 24px + 95px); }
  .op-node:nth-child(4) { top: calc(50% - 24px + 67px);  left: calc(50% - 24px + 67px); }
  .op-node:nth-child(5) { top: calc(50% - 24px + 95px);  left: calc(50% - 24px); }
  .op-node:nth-child(6) { top: calc(50% - 24px + 67px);  left: calc(50% - 24px - 67px); }
  .op-node:nth-child(7) { top: calc(50% - 24px);         left: calc(50% - 24px - 95px); }
  .op-node:nth-child(8) { top: calc(50% - 24px - 67px);  left: calc(50% - 24px - 67px); }
}

@media (max-width: 520px) {
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-h1 { font-size: 2.4rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-visual { height: 280px; }
  .orbit-2 { width: 240px; height: 240px; }
  .orbit-1 { width: 156px; height: 156px; }
  .op-node { width: 40px; height: 40px; font-size: 0.46rem; }
  .op-node-icon { font-size: 0.85rem; }
  .op-node:nth-child(1) { top: calc(50% - 20px - 78px);  left: calc(50% - 20px); }
  .op-node:nth-child(2) { top: calc(50% - 20px - 55px);  left: calc(50% - 20px + 55px); }
  .op-node:nth-child(3) { top: calc(50% - 20px);         left: calc(50% - 20px + 78px); }
  .op-node:nth-child(4) { top: calc(50% - 20px + 55px);  left: calc(50% - 20px + 55px); }
  .op-node:nth-child(5) { top: calc(50% - 20px + 78px);  left: calc(50% - 20px); }
  .op-node:nth-child(6) { top: calc(50% - 20px + 55px);  left: calc(50% - 20px - 55px); }
  .op-node:nth-child(7) { top: calc(50% - 20px);         left: calc(50% - 20px - 78px); }
  .op-node:nth-child(8) { top: calc(50% - 20px - 55px);  left: calc(50% - 20px - 55px); }
  #sticky-demo { bottom: 16px; right: 16px; }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
