*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --bg2:      #0a0a0a;
  --bg3:      #111111;
  --bg4:      #1a1a1a;
  --border:   rgba(255,255,255,0.08);
  --primary:  #00e5ff;
  --accent:   #7c3aed;
  --text:     #e8e8f0;
  --text-dim: #888899;
  --text-muted: #555566;
  --red:      #ef4444;
  --orange:   #f97316;
  --green:    #22c55e;
  --sidebar-w: 240px;
  --radius:   10px;
  --font:     'Inter', sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary);
  display: block;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links { list-style: none; flex: 1; overflow-y: auto; }
.nav-links li { padding: 1px 12px; }
.nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link:hover::before { transform: scaleY(1); }
.nav-link.active { color: var(--primary); background: rgba(0,229,255,0.08); }
.nav-link.active::before { transform: scaleY(1); }

.sidebar-footer {
  padding: 16px 20px 0;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 16px;
  font-family: var(--mono);
}

/* HAMBURGER */
.hamburger {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 200;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* MAIN */
.main { margin-left: var(--sidebar-w); min-height: 100vh; }

/* HERO */
.hero {
  padding: 96px 64px 80px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid rgba(0,229,255,0.4);
  border-radius: 4px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--mono);
}
.hero-title {
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 24px;
}
.hero-title span {
  color: var(--primary);
}
.hero-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: var(--mono);
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* SECTIONS */
.section {
  padding: 72px 64px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.section-title::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary);
  margin-top: 10px;
  transition: width 0.5s ease;
}
.section-title.animated::after {
  width: 32px;
}
.section-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
  max-width: 600px;
  line-height: 1.7;
}
.section-desc strong { color: var(--text); font-weight: 600; }

/* CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cards-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards-grid--2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card {
  background: var(--bg2);
  padding: 28px;
  transition: background 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  background: var(--bg3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.06);
}
.card:hover::after { transform: scaleX(1); }
.card--accent { background: rgba(124,58,237,0.06); }
.card--red { background: rgba(239,68,68,0.04); }
.card--orange { background: rgba(249,115,22,0.04); }
.card--green { background: rgba(34,197,94,0.04); }
.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ARCHITECTURE */
.arch-diagram {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 640px;
}
.arch-layer {
  width: 100%;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-bottom: none;
}
.arch-layer:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.arch-layer:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
.arch-layer--ui     { background: rgba(0,229,255,0.04); border-left: 3px solid var(--primary); }
.arch-layer--domain { background: rgba(124,58,237,0.04); border-left: 3px solid var(--accent); }
.arch-layer--data   { background: rgba(34,197,94,0.04); border-left: 3px solid var(--green); }
.arch-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
}
.arch-items { display: flex; gap: 8px; flex-wrap: wrap; }
.arch-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text-dim);
}
.arch-connector {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin-left: 40px;
}

/* CODE BLOCK */
.code-block {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
}
.code-header {
  background: var(--bg3);
  padding: 9px 16px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}
pre { padding: 20px; overflow-x: auto; }
code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #a8d8ea;
  line-height: 1.75;
}
.code-inline {
  display: inline-block;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
}

/* ROLES */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.role-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}
.role-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.role--participant { border-top: 2px solid var(--primary); }
.role--organizer   { border-top: 2px solid #f59e0b; }
.role--observer    { border-top: 2px solid #8b5cf6; }
.role--admin       { border-top: 2px solid var(--red); }
.role-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.role-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; color: #fff; }
.role-card ul { list-style: none; }
.role-card ul li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0 4px 14px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.role-card ul li:last-child { border-bottom: none; }
.role-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-size: 10px;
}

/* SCREENS TABLE */
.screens-table-wrap {
  overflow-x: auto;
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.screens-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.screens-table thead tr { background: var(--bg3); }
.screens-table th {
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
}
.screens-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-dim);
  font-size: 13px;
}
.screens-table td:first-child {
  color: var(--text);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 12px;
}
.screens-table td code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: var(--primary);
  font-family: var(--mono);
}
.screens-table tbody tr:hover { background: rgba(255,255,255,0.015); }
.screens-table tbody tr:last-child td { border-bottom: none; }

/* AI FEATURES */
.ai-features { display: flex; flex-direction: column; gap: 1px; margin: 32px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ai-feature {
  display: flex;
  gap: 24px;
  background: var(--bg2);
  padding: 22px 24px;
  transition: background 0.15s, transform 0.2s ease, border-left-color 0.2s;
  border-left: 2px solid transparent;
}
.ai-feature:hover {
  background: var(--bg3);
  transform: translateX(4px);
  border-left-color: var(--primary);
}
.ai-feature-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--mono);
  min-width: 28px;
  padding-top: 3px;
}
.ai-feature-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: #fff; }
.ai-feature-body p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ANTICHEAT */
.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  background: var(--bg2);
  transition: background 0.15s, color 0.15s, padding-left 0.2s ease;
}
.feature-item:last-child { border-bottom: none; }
.feature-item:hover {
  background: var(--bg3);
  color: var(--text);
  padding-left: 22px;
}
.feature-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* AUTH */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.auth-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.25s ease, box-shadow 0.25s ease;
}
.auth-card:hover {
  border-color: rgba(0,229,255,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,229,255,0.05);
}
.auth-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.auth-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 10px; }

/* DATA MODELS */
.models-grid { display: flex; flex-direction: column; gap: 0; }

/* FOOTER */
.footer {
  padding: 28px 64px;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .main { margin-left: 0; }
  .hero { padding: 72px 24px 56px; }
  .section { padding: 48px 24px; }
  .footer { padding: 24px; }
  .hero-stats { gap: 28px; }
}

/* HERO DESC GRID */
.hero-desc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 1100px) {
  .hero-desc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hero-desc-grid { grid-template-columns: repeat(2, 1fr); }
}
.hero-desc-item {
  background: var(--bg2);
  padding: 14px 18px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-desc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,229,255,0.07) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-desc-item:hover {
  background: var(--bg3);
  transform: translateY(-2px);
}
.hero-desc-item:hover::before {
  opacity: 1;
}
.hero-desc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-bottom: 4px;
  transition: color 0.2s;
}
.hero-desc-item:hover .hero-desc-label {
  color: var(--primary);
}
.hero-desc-val {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.hero-desc-item:hover .hero-desc-val {
  color: #fff;
}

/* FLOW DIAGRAM */
.flow-diagram {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.flow-node {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--mono);
  text-align: center;
}
.flow-start { border-color: var(--primary); color: var(--primary); }
.flow-admin { border-color: var(--red); }
.flow-supabase { border-color: var(--green); }
.flow-arrow {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.4;
}
.flow-row {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
}
.flow-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* SECTION TITLE UNDERLINE ANIMATION — handled above */

/* SCREENS TABLE ROW HOVER */
.screens-table tbody tr {
  transition: background 0.15s, opacity 0.3s ease, transform 0.3s ease;
}

/* CODE BLOCK HOVER GLOW */
.code-block {
  transition: border-color 0.25s ease, box-shadow 0.25s ease,
              opacity 0.45s ease, transform 0.45s ease;
}
.code-block:hover {
  border-color: rgba(0,229,255,0.2);
  box-shadow: 0 0 20px rgba(0,229,255,0.04);
}

/* STAT NUM PULSE ON HOVER */
.hero-stat:hover .stat-num {
  animation: pulse-num 0.4s ease;
}
@keyframes pulse-num {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); color: #fff; }
  100% { transform: scale(1); }
}

/* FLOW NODE HOVER */
.flow-node {
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.flow-node:hover {
  background: var(--bg3);
  border-color: rgba(0,229,255,0.3);
  transform: scale(1.03);
}

/* ARCH LAYER HOVER */
.arch-layer {
  transition: background 0.2s, transform 0.2s;
}
.arch-layer:hover {
  transform: translateX(4px);
}

/* ── FLOW DIAGRAM (redesign) ─────────────────────────────────────────────── */
.flow-wrap {
  margin: 40px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.flow-title {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--mono);
}
.flow-canvas {
  background: var(--bg2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Flow node base */
.fn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  flex-direction: column;
  text-align: center;
  min-width: 160px;
}
.fn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.fn-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.5px;
}
.fn-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Start node */
.fn-start {
  border-color: var(--primary);
  background: rgba(0,229,255,0.06);
  color: var(--primary);
  box-shadow: 0 0 16px rgba(0,229,255,0.1);
}
.fn-start:hover { box-shadow: 0 0 28px rgba(0,229,255,0.18); }
.fn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* Mid node */
.fn-mid {
  border-color: rgba(255,255,255,0.12);
  background: var(--bg4);
}
.fn-mid:hover { border-color: rgba(255,255,255,0.22); }
.fn-icon { font-size: 8px; color: var(--text-muted); }

/* Red branch */
.fn-red {
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.05);
}
.fn-red:hover { border-color: rgba(239,68,68,0.7); box-shadow: 0 6px 20px rgba(239,68,68,0.1); }
.fn-red .fn-badge { background: rgba(239,68,68,0.15); color: var(--red); }

/* Green branch */
.fn-green {
  border-color: rgba(34,197,94,0.4);
  background: rgba(34,197,94,0.05);
}
.fn-green:hover { border-color: rgba(34,197,94,0.7); box-shadow: 0 6px 20px rgba(34,197,94,0.1); }
.fn-green .fn-badge { background: rgba(34,197,94,0.15); color: var(--green); }

/* End nodes */
.fn-end {
  font-size: 12px;
}
.fn-red-end {
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.04);
  color: #fca5a5;
}
.fn-green-end {
  border-color: rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.04);
  color: #86efac;
}

/* Vertical line */
.flow-line-v {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--primary), rgba(0,229,255,0.1));
  position: relative;
}
.flow-line-v::after {
  content: '▼';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: var(--primary);
  opacity: 0.6;
}
.flow-line-v.short { height: 24px; }

/* Fork */
.flow-fork {
  width: 100%;
  max-width: 480px;
  position: relative;
  height: 32px;
  margin: 0;
}
.flow-fork-line {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, rgba(239,68,68,0.5), rgba(34,197,94,0.5));
}
.flow-fork-line::before,
.flow-fork-line::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1px;
  height: 32px;
  background: var(--border);
}
.flow-fork-line::before { left: 0; background: linear-gradient(to bottom, rgba(239,68,68,0.5), rgba(239,68,68,0.1)); }
.flow-fork-line::after  { right: 0; background: linear-gradient(to bottom, rgba(34,197,94,0.5), rgba(34,197,94,0.1)); }
.flow-fork-label {
  position: absolute;
  top: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--mono);
}
.flow-fork-label.left  { left: 8%;  color: var(--red);   }
.flow-fork-label.right { right: 8%; color: var(--green); }

/* Two branches side by side */
.flow-branches {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
}
.flow-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (max-width: 600px) {
  .flow-branches { flex-direction: column; align-items: center; gap: 24px; }
  .flow-fork { display: none; }
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────────────────── */
* { cursor: none !important; }

.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  box-shadow: 0 0 8px rgba(0,229,255,0.8);
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(0,229,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease,
              border-color 0.25s ease, background 0.25s ease;
}

/* Hover state — ring expands, dot grows */
body.cursor-hover .cursor-dot {
  width: 10px; height: 10px;
  background: #fff;
  box-shadow: 0 0 14px rgba(0,229,255,1);
}
body.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  border-color: rgba(0,229,255,0.8);
  background: rgba(0,229,255,0.04);
}

/* Click state */
body.cursor-click .cursor-dot {
  width: 4px; height: 4px;
  background: var(--primary);
}
body.cursor-click .cursor-ring {
  width: 20px; height: 20px;
  border-color: var(--primary);
  background: rgba(0,229,255,0.1);
}
