/* ============================================================
   SYKE — style.css
   Single-viewport interactive landing page
   Design: dark HUD, glass morphism, 8px grid
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:           #050a18;
  --glass:        rgba(5, 10, 24, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-light: rgba(255, 255, 255, 0.1);

  --cyan:    #00d4ff;
  --purple:  #c084fc;
  --orange:  #ff6b35;
  --green:   #00ffaa;
  --gold:    #ffd700;
  --pink:    #ff69b4;

  --cyan-dim:  rgba(0, 212, 255, 0.12);
  --cyan-glow: rgba(0, 212, 255, 0.35);

  --text-primary:   #f0f4ff;
  --text-secondary: #8896b3;
  --text-muted:     #4a5878;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --topbar-h:    48px;
  --statusbar-h: 40px;
  --panel-w:     33.33vw;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── 3D Graph Canvas ────────────────────────────────────────── */
#graph-canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* Left edge reserved for panel */
  left: var(--panel-w);
  width: calc(100vw - var(--panel-w));
}

#graph-canvas canvas { outline: none; display: block; }

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(2.4);  opacity: 0; }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px var(--cyan-glow), 0 0 48px rgba(0,212,255,0.08); }
  50%       { box-shadow: 0 0 32px var(--cyan-glow), 0 0 80px rgba(0,212,255,0.18); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TOP BAR ────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 24px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__pulse {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.logo__pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: pulse-ring 2s ease-out infinite;
}

.logo__text {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 6px;
  transition: color 150ms, background 150ms;
  cursor: pointer;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn--github {
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-light);
}

.nav-btn--github:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* Auth links — always visible, even on mobile */
.topbar__auth {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-btn--login {
  color: var(--text-primary) !important;
  border: 1px solid var(--green);
  background: rgba(0, 255, 135, 0.08);
}

.nav-btn--login:hover {
  background: rgba(0, 255, 135, 0.18);
  border-color: var(--green);
}

.topbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 150ms;
}

.topbar__hamburger:hover { background: rgba(255,255,255,0.06); }

.topbar__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: background 150ms;
}

/* ── LEFT PANEL ─────────────────────────────────────────────── */
.panel {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: var(--statusbar-h);
  width: var(--panel-w);
  z-index: 40;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  overflow-x: hidden;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(168,196,255,0.12) transparent;
}

.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: rgba(168,196,255,0.12); border-radius: 2px; }

.panel__state {
  padding: 24px 20px;
  animation: panel-in 300ms var(--ease) both;
}

.panel__state--hidden {
  display: none;
}

/* ── Panel — Default / Hero state ───────────────────────────── */
.panel__hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade-in 400ms var(--ease) both;
}

.panel__logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel__pulse-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  position: relative;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.panel__pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: pulse-ring 2s ease-out infinite;
}

.panel__logo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.panel__headline {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text-primary);
}

.panel__body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel__compat {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.panel__hint {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel__hint-line {
  display: block;
  width: 100%;
  height: 1px;
  /* visual accent already from border-top */
}

.panel__hint-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ── Panel — Back button ────────────────────────────────────── */
.panel__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 150ms, border-color 150ms;
}

.panel__back:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-light);
}

/* ── Node Info State ────────────────────────────────────────── */
.node-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.node-info__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-info__file {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  word-break: break-all;
  line-height: 1.5;
}

.node-info__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

.node-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}

.node-info__key { color: var(--text-muted); }
.node-info__val { color: var(--text-secondary); font-weight: 600; }
.node-info__val--risk { color: var(--orange); }
.node-info__val--risk.low { color: var(--green); }
.node-info__val--risk.med { color: var(--gold); }

/* ── File Description Section ───────────────────────────────── */
.desc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-section__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.desc-section__text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 10px 12px;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.08);
  border-radius: 6px;
}

/* ── Impact Section ─────────────────────────────────────────── */
.impact-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.impact-section__title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.impact-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.impact-group__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.impact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 2px;
}

.impact-list li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.impact-list li::before {
  content: '·';
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── Gate Section ───────────────────────────────────────────── */
.gate-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gate-section__verdict {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gate-section__verdict.pass {
  background: rgba(0, 255, 170, 0.06);
  border-color: rgba(0, 255, 170, 0.2);
}

.gate-icon {
  font-size: 14px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

.gate-icon.pass { color: var(--green); }

/* ── Tab Content (Features / Pricing / Docs) ────────────────── */
.tab-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fade-in 300ms var(--ease) both;
}

.tab-content__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ── Feature List ───────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.feature-item:last-child { border-bottom: none; }

.feature-item__dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.feature-item__dot--cyan   { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.feature-item__dot--purple { background: var(--purple); }
.feature-item__dot--orange { background: var(--orange); }
.feature-item__dot--green  { background: var(--green); }

.feature-item__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-item__desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.pro-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  letter-spacing: 0.04em;
}

/* ── Price Tiers ────────────────────────────────────────────── */
.price-tier {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.018);
}

.price-tier--featured {
  border-color: rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.04);
}

.price-tier--cortex {
  border-color: rgba(192, 132, 252, 0.3);
  background: rgba(192, 132, 252, 0.05);
}

.price-tier--cortex .price-tier__name { color: var(--purple); }

.price-tier__header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-tier__name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.price-tier--featured .price-tier__name { color: var(--cyan); }

.price-tier__line {
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.price-tier__amount {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.price-tier__star {
  color: var(--gold);
  font-size: 12px;
}

.price-tier__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-tier__list li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-tier__list li::before {
  content: '·';
  color: var(--text-muted);
}

/* ── Docs ───────────────────────────────────────────────────── */
.doc-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-step__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
}

.code-box pre {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.t-comment { color: var(--text-muted); font-style: italic; }
.t-cyan    { color: var(--cyan); }
.t-green   { color: var(--green); }
.t-orange  { color: var(--orange); }
.t-purple  { color: var(--purple); }

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 5px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
  padding: 9px 18px;
  transition: background 200ms var(--ease), box-shadow 200ms, transform 120ms, color 200ms, border-color 200ms;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--cyan);
  color: #050a18;
}
.btn--primary:hover {
  background: #2de0ff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4);
  transform: translateY(-1px);
}

.btn--glow {
  animation: glow-pulse 3s ease-in-out infinite;
}
.btn--glow:hover { animation: none; box-shadow: 0 6px 28px rgba(0,212,255,0.55); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-light);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-light);
}
.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn--full { width: 100%; }

/* ── Mono Tags ──────────────────────────────────────────────── */
.mono-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(168,196,255,0.07);
  border: 1px solid rgba(168,196,255,0.14);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ── STATUS BAR ─────────────────────────────────────────────── */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--statusbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  pointer-events: auto;
}

.statusbar__layers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.layer-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 150ms, background 150ms, border-color 150ms, opacity 150ms;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.layer-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--glass-border-light);
  color: var(--text-secondary);
}

.layer-btn.active {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border-color: var(--glass-border);
}

.layer-btn:not(.active) {
  opacity: 0.4;
}

.layer-btn__dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--layer-color, #888);
  flex-shrink: 0;
}

.statusbar__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-left: auto;
}

.statusbar__sep { color: var(--text-muted); opacity: 0.5; }

.statusbar__version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.6;
  white-space: nowrap;
}

/* ── 3D Node Labels (HTML overlay) ─────────────────────────── */
#node-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.node-label-3d {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  padding: 2px 6px 3px;
  border-radius: 3px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: rgba(5, 10, 24, 0.82);
  will-change: transform;
  transform: translate(-50%, -100%);
  transition: opacity 0.15s;
}

.node-label-3d::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: currentColor;
  opacity: 0.3;
}

.nl-row1 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nl-depth {
  opacity: 0.6;
  margin-left: 4px;
}

.nl-row2 {
  opacity: 0.55;
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

/* ── Code Scroll Overlay ───────────────────────────────────── */
.code-scroll {
  position: fixed;
  bottom: calc(var(--statusbar-h) + 8px);
  left: calc(var(--panel-w) + 16px);
  width: 340px;
  height: 260px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 60%, transparent 100%);
}

.code-scroll__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.7;
  white-space: nowrap;
  color: rgba(136, 150, 179, 0.35);
  padding: 0 8px;
  animation: code-scroll-up 14s linear forwards;
  position: relative;
}

.code-scroll__line .kw { color: rgba(192, 132, 252, 0.5); }
.code-scroll__line .fn { color: rgba(0, 212, 255, 0.5); }
.code-scroll__line .str { color: rgba(0, 255, 170, 0.4); }
.code-scroll__line .cm { color: rgba(74, 88, 120, 0.5); font-style: italic; }
.code-scroll__line .ty { color: rgba(255, 215, 0, 0.45); }
.code-scroll__line .num { color: rgba(255, 107, 53, 0.5); }

@keyframes code-scroll-up {
  0%   { transform: translateY(0); opacity: 0; }
  5%   { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(-280px); opacity: 0; }
}

/* ── Mobile backdrop ────────────────────────────────────────── */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(5, 10, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-backdrop.visible { display: block; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 767px) {
  body { overflow: hidden; }

  #graph-canvas {
    left: 0;
    width: 100vw;
  }

  .topbar__nav { display: none; }
  .topbar__hamburger { display: flex; }

  .panel {
    top: var(--topbar-h);
    left: 0;
    right: auto;
    bottom: var(--statusbar-h);
    width: min(320px, 90vw);
    transform: translateX(-100%);
    transition: transform 300ms var(--ease);
    z-index: 45;
  }

  .panel.mobile-open {
    transform: translateX(0);
  }

  .code-scroll { display: none; }
  #node-labels { display: none; }
  .controls-hint { display: none; }

  .statusbar__layers { gap: 2px; }
  .layer-btn { padding: 3px 5px; font-size: 9px; }
  .statusbar__version { display: none; }
  .statusbar__stats { font-size: 9px; }
}

/* ── Focus accessibility ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Scrollbar (panel) ──────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168,196,255,0.12); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,196,255,0.25); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(0,212,255,0.2); color: var(--text-primary); }

/* ── Controls Hint Overlay ──────────────────────────────────── */
@keyframes hint-fade-out {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

.controls-hint {
  position: fixed;
  bottom: calc(var(--statusbar-h) + 16px);
  left: calc(var(--panel-w) + 16px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  animation: hint-fade-out 5s ease-out forwards;
  pointer-events: none;
}

.controls-hint__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}

.controls-hint__icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Feature Section Label ───────────────────────────────────── */
.feature-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-section__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 16px 0 8px;
  border-top: 1px solid var(--glass-border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-section:first-of-type .feature-section__label {
  border-top: none;
  padding-top: 0;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Hero Default State — Redesigned ────────────────────────── */

/* Version tag next to logo label */
.hero-version-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(168, 196, 255, 0.06);
  border: 1px solid rgba(168, 196, 255, 0.1);
  border-radius: 3px;
  padding: 1px 5px;
  letter-spacing: 0.06em;
  margin-left: 2px;
}

/* Subheadline — smaller supporting copy under the h1 */
.panel__subhead {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: -4px;
}

/* ── Cascade failure terminal block ─────────────────────────── */
.hero-cascade {
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 107, 53, 0.04);
}

.hero-cascade__header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: rgba(255, 107, 53, 0.06);
  border-bottom: 1px solid rgba(255, 107, 53, 0.12);
}

.hero-cascade__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-cascade__dot--red       { background: #ff5f57; }
.hero-cascade__dot--yellow    { background: #febc2e; }
.hero-cascade__dot--green-dim { background: #28c840; opacity: 0.35; }

.hero-cascade__title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-left: 4px;
  opacity: 0.85;
}

.hero-cascade__body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-cascade__line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  flex-wrap: wrap;
}

/* First line is the "AI said done" — slight visual separation */
.hero-cascade__line:first-child {
  padding-bottom: 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.hero-cascade__line--gap { margin-top: 2px; }

.hero-cascade__line--more {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 107, 53, 0.1);
}

/* Terminal text color utilities */
.hc-dim    { color: var(--text-muted); flex-shrink: 0; }
.hc-text   { color: var(--text-secondary); }
.hc-warn   { color: var(--orange); flex-shrink: 0; font-size: 10px; }
.hc-orange { color: var(--orange); font-weight: 600; }
.hc-red    { color: #ff5f57; font-weight: 600; }

/* ── Solution feature pills ─────────────────────────────────── */
.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 7px;
  transition: border-color 200ms, background 200ms;
}

.hero-pill:hover {
  border-color: rgba(0, 212, 255, 0.22);
  background: rgba(0, 212, 255, 0.07);
}

.hero-pill:nth-child(2) {
  background: rgba(192, 132, 252, 0.04);
  border-color: rgba(192, 132, 252, 0.1);
}

.hero-pill:nth-child(2):hover {
  border-color: rgba(192, 132, 252, 0.22);
  background: rgba(192, 132, 252, 0.07);
}

.hero-pill:nth-child(3) {
  background: rgba(0, 255, 170, 0.04);
  border-color: rgba(0, 255, 170, 0.1);
}

.hero-pill:nth-child(3):hover {
  border-color: rgba(0, 255, 170, 0.22);
  background: rgba(0, 255, 170, 0.07);
}

.hero-pill__icon {
  font-size: 8px;
  color: var(--cyan);
  margin-top: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.hero-pill__icon--purple { color: var(--purple); }
.hero-pill__icon--green  { color: var(--green); }

.hero-pill__name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.hero-pill__desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Trust stat strip ───────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 7px;
  gap: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.hero-stat__val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-stats__sep {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* ── Install snippet ────────────────────────────────────────── */
.hero-install {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-install__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-install__box {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 200ms;
}

.hero-install__box:hover {
  border-color: rgba(0, 212, 255, 0.25);
}

.hero-install__cmd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--cyan);
  padding: 9px 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.hero-install__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: var(--text-muted);
  border-left: 1px solid var(--glass-border);
  border-radius: 0;
  transition: color 150ms, background 150ms;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-install__copy:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.hero-install__copy:active {
  transform: scale(0.9);
}

/* ── "With SYKE" success cascade block ─────────────────────── */
.hero-cascade--success {
  border-color: rgba(0, 255, 170, 0.2);
  background: rgba(0, 255, 170, 0.04);
  margin-top: 8px;
}

.hero-cascade--success .hero-cascade__header {
  background: rgba(0, 255, 170, 0.06);
  border-bottom-color: rgba(0, 255, 170, 0.12);
}

.hero-cascade--success .hero-cascade__dot--green {
  background: #00ffaa;
}

.hero-cascade--success .hero-cascade__title {
  color: var(--green);
}

.hero-cascade--success .hero-cascade__line:first-child {
  border-bottom-color: rgba(0, 255, 170, 0.1);
}

.hc-green       { color: var(--green); flex-shrink: 0; font-size: 11px; }
.hc-green-bold  { color: var(--green); font-weight: 700; }
.hc-red-bold    { color: #ff5f57; font-weight: 700; }

/* ── CTA hint text ─────────────────────────────────────────── */
.panel__cta-hint {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
  letter-spacing: 0.01em;
}

/* ── Compat badges (improved) ──────────────────────────────── */
.panel__compat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  justify-content: center;
}

/* ── Privacy note ──────────────────────────────────────────── */
.panel__privacy-note {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
  line-height: 1.5;
}

/* ── Founding 100 Banner (hero section) ────────────────────── */
.founding-banner {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(0,255,170,0.25);
  border-radius: 6px;
  background: rgba(0,255,170,0.04);
  text-align: center;
}
.founding-banner__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00ffaa;
  background: rgba(0,255,170,0.12);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.founding-banner__text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.founding-banner__text strong {
  color: #00ffaa;
}
.founding-banner__cta {
  border-color: rgba(0,255,170,0.4) !important;
  color: #00ffaa !important;
}
.founding-banner__cta:hover {
  background: rgba(0,255,170,0.08) !important;
  border-color: #00ffaa !important;
}

/* ── Founding 100 Callout (pricing section) ───────────────── */
.founding-callout {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(0,255,170,0.3);
  border-radius: 6px;
  background: rgba(0,255,170,0.05);
  text-align: center;
}
.founding-callout__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00ffaa;
  background: rgba(0,255,170,0.15);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.founding-callout__text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.founding-callout__text strong {
  color: #00ffaa;
}

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: var(--statusbar-h);
  left: 0;
  right: 0;
  z-index: 51;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
}

.site-footer__links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.site-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms;
}

.site-footer__links a:hover {
  color: var(--cyan);
}

.site-footer__sep {
  color: var(--text-secondary);
  opacity: 0.5;
}

.site-footer__contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms;
}

.site-footer__contact a:hover {
  color: var(--cyan);
}

.site-footer__copy {
  color: var(--text-secondary);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    align-items: flex-end;
  }
  .site-footer__copy {
    display: none;
  }
}

/* ── Privacy Architecture Diagram ─────────────────────────── */
.privacy-arch {
  margin-top: 12px;
}
.privacy-arch__row {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.privacy-arch__box {
  flex: 1;
  border-radius: 10px;
  padding: 14px 12px 12px;
  position: relative;
}
.privacy-arch__box--local {
  background: rgba(0, 255, 170, 0.04);
  border: 1px solid rgba(0, 255, 170, 0.15);
}
.privacy-arch__box--cloud {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.privacy-arch__box-label {
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 8px;
  border-radius: 4px;
}
.privacy-arch__box--local .privacy-arch__box-label {
  background: var(--green);
  color: #050a18;
}
.privacy-arch__box--cloud .privacy-arch__box-label {
  background: var(--cyan);
  color: #050a18;
}
.privacy-arch__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.privacy-arch__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 11px;
  color: var(--text-primary);
  gap: 2px;
}
.privacy-arch__icon {
  font-size: 18px;
  line-height: 1;
}
.privacy-arch__tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 2px;
}
.privacy-arch__tag--green {
  background: rgba(0, 255, 170, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 170, 0.3);
}
.privacy-arch__sub {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
}
.privacy-arch__arrow {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1;
}
.privacy-arch__wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  flex-shrink: 0;
  position: relative;
}
.privacy-arch__wire-line {
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12) 0px,
    rgba(255, 255, 255, 0.12) 4px,
    transparent 4px,
    transparent 8px
  );
}
.privacy-arch__wire-label {
  font-size: 8px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  background: var(--bg);
  padding: 4px 6px;
  position: relative;
  z-index: 1;
}
.privacy-arch__wire-data {
  font-size: 9px;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  background: var(--bg);
  padding: 4px 6px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.privacy-arch__footer {
  margin-top: 10px;
}
.privacy-arch__badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 255, 170, 0.04);
  border: 1px solid rgba(0, 255, 170, 0.1);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.privacy-arch__badge strong {
  color: var(--green);
}
.privacy-arch__badge-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
