/* ==========================================================================
   FlowJoe — Base + Hero
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-200);
  background: radial-gradient(60vw 60vw at 10% -8%, var(--amber-glow), transparent 60%), radial-gradient(60vw 60vw at 90% 2%, var(--cyan-glow), transparent 60%), var(--bg-800);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { color: var(--text-100); line-height: 1.08; font-weight: 600; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--font-mono); }

::selection { background: var(--amber-glow); color: #fff; }

/* ---- Layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-300);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber-400));
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,14,20,0.85), rgba(10,14,20,0.35));
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--glass-border);
  background: rgba(8,11,16,0.9);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav__logo { height: 26px; width: auto; }
.nav__logo img { height: 100%; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--text-300);
  transition: color .2s ease;
}
.nav__links a:hover { color: var(--text-100); }
.nav__links a.is-active { color: var(--amber-300); font-weight: 500; }
.nav__right { display: flex; align-items: center; gap: 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .3s ease, background .3s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  color: #1a0d02;
  background: linear-gradient(180deg, var(--amber-400), var(--amber-500));
  box-shadow: 0 8px 26px -8px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.35);
}
.btn--primary:hover { box-shadow: 0 12px 34px -8px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn--ghost {
  color: var(--text-100);
  background: var(--glass);
  border-color: var(--glass-border-strong);
}
.btn--ghost:hover { background: var(--glass-strong); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(60px, 8vw, 120px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy { max-width: 540px; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-display);
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.hero__title .accent {
  background: linear-gradient(100deg, var(--amber-300), var(--amber-500) 55%, var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--text-300);
  margin-bottom: 32px;
}
.hero__lead strong { color: var(--text-100); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--text-400);
  letter-spacing: 0.02em;
}

/* ---- Hero mockup (3D perspective app) ---- */
.hero__stage { position: relative; perspective: 1600px; }
.app {
  position: relative;
  transform: rotateX(6deg) rotateY(-13deg) rotateZ(1.5deg);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--glass-strong), rgba(12,16,22,0.92));
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-float), var(--glow-amber);
  overflow: hidden;
  will-change: transform;
}
.app__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.app__title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-400);
  letter-spacing: 0.04em;
}
.app__body { display: grid; grid-template-columns: 168px 1fr; min-height: 340px; }

/* tree panel (the spine) */
.tree { border-right: 1px solid var(--glass-border); padding: 12px 10px; background: rgba(0,0,0,0.18); }
.tree__head { font-family: var(--font-mono); font-size: 0.62rem; color: var(--amber-300); letter-spacing: 0.14em; margin-bottom: 10px; text-transform: uppercase; }
.tree__row { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 6px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-300); }
.tree__row .node { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.tree__row.is-active { background: var(--amber-glow-soft); color: var(--text-100); }
.tree__row.indent { padding-left: 16px; }
.tree__row.indent2 { padding-left: 28px; }

/* gallery (the canvas) */
.gallery { padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; }
.card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  background: var(--bg-700);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.7);
}
.card__media { height: 96px; position: relative; }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.35));
}
.card__meta { padding: 8px 9px; }
.card__title { font-size: 0.66rem; color: var(--text-200); font-weight: 600; }
.card__sub { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-400); margin-top: 3px; }
.swatch--iris   { background: linear-gradient(135deg, #3a2a5e, #8a5cff, #4db8ff); }
.swatch--amber  { background: linear-gradient(135deg, #5e2a2a, var(--amber-500), #ffce8a); }
.swatch--cyan   { background: linear-gradient(135deg, #123a4a, var(--cyan-500), #8ad6ff); }
.swatch--indigo { background: linear-gradient(135deg, #2a2a3e, #6b6bff, #b8c6ff); }
.swatch--rose   { background: linear-gradient(135deg, #4a2a3a, #ff6bb0, #ffb8d8); }
.swatch--mint   { background: linear-gradient(135deg, #2a4a2a, #6bd17a, #b8ffce); }

/* ---- Callouts (glowing connector labels, like the deck) ---- */
.callout {
  position: absolute;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-panel);
  max-width: 210px;
}
.callout__label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; font-weight: 600; }
.callout__text { font-size: 0.78rem; color: var(--text-300); margin-top: 2px; }
.callout--amber { border-color: rgba(254,115,12,0.4); box-shadow: var(--glow-amber); }
.callout--amber .callout__label { color: var(--amber-300); }
.callout--cyan { border-color: rgba(53,169,255,0.4); box-shadow: var(--glow-cyan); }
.callout--cyan .callout__label { color: var(--cyan-300); }

.callout--tree { top: calc(8% + 20px); left: -6%; }
.callout--gallery { top: 4%; right: -8%; }
.callout--joe { bottom: calc(-4% - 20px); left: 50%; }
.callout--joe .callout__label { color: var(--amber-300); }
.callout--joe { background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, linear-gradient(135deg, var(--amber-400), var(--cyan-400)) border-box; border: 1px solid transparent; box-shadow: var(--glow-amber), var(--shadow-panel); }

/* ==========================================================================
   Generic Section Styles
   ========================================================================== */
.section {
  padding-block: clamp(60px, 10vw, 140px);
  position: relative;
  border-top: 1px solid var(--glass-border);
}
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  letter-spacing: -0.01em;
  margin-block: 16px 20px;
  line-height: 1.1;
}
.section-lead {
  font-size: var(--fs-lead);
  color: var(--text-200);
  margin-bottom: 24px;
}

/* ==========================================================================
   Section 2 — The Problem (The Context Collapse)
   ========================================================================== */
.problem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--gap-grid-lg);
  align-items: center;
}
.problem__copy {
  max-width: 500px;
}
.accent-red {
  background: linear-gradient(100deg, #ff5b5b, #ff8a2b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-amber {
  background: linear-gradient(100deg, var(--amber-400), var(--amber-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-cyan {
  background: linear-gradient(100deg, var(--cyan-500), var(--cyan-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.problem__text {
  color: var(--text-300);
  margin-bottom: 30px;
}
.problem__quote {
  display: inline-flex;
  padding: 10px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  color: var(--text-300);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.02em;
}

/* Chaos Box Layout */
.chaos-box {
  position: relative;
  height: 450px;
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 20, 0.4);
  border: 1px dashed var(--glass-border-strong);
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}
.chaos-box__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.chaos-box__lines path {
  fill: none;
  stroke: rgba(255, 91, 91, 0.45);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(255, 91, 91, 0.35));
}

.chaos-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  transition: transform 0.3s ease, border-color 0.3s ease;
  max-width: 240px;
  z-index: 2;
}
.chaos-item:hover {
  border-color: rgba(255, 91, 91, 0.3);
  transform: translateY(-2px) scale(1.02);
}

.chaos-icon {
  font-size: 1.4rem;
}
.chaos-meta {
  display: flex;
  flex-direction: column;
}
.chaos-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-100);
}
.chaos-tools {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-400);
}

/* Individual scattered positioning */
.chaos-item--notes { top: 15%; left: 8%; }
.chaos-item--files { top: 22%; right: 8%; }
.chaos-item--chats { bottom: 15%; left: 12%; }
.chaos-item--tasks { bottom: 22%; right: 4%; }

.chaos-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}
.chaos-badge {
  background: #4b1a15;
  border: 1px solid rgba(255, 91, 91, 0.4);
  color: #ff8b8b;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(255, 91, 91, 0.15);
}
.chaos-sub {
  font-size: 0.75rem;
  color: var(--text-300);
  margin-top: 8px;
}

/* ==========================================================================
   Section 3 — Hemispheres (No Trade-Off)
   ========================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-lead { max-width: 720px; }
.accent-amber-cyan {
  background: linear-gradient(100deg, var(--amber-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--text-300); }

.hemispheres__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 50px auto 60px;
}

.hemi-panel {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.hemi-panel:hover {
  border-color: var(--glass-border-strong);
}
.hemi-panel--left:hover { box-shadow: 0 10px 40px -10px var(--amber-glow-soft); }
.hemi-panel--right:hover { box-shadow: 0 10px 40px -10px var(--cyan-glow-soft); }

.hemi-panel__glow {
  position: absolute;
  width: 250px; height: 250px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  z-index: 1;
  pointer-events: none;
}
.hemi-panel__glow--amber {
  top: -80px; left: -80px;
  background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
}
.hemi-panel__glow--cyan {
  bottom: -80px; right: -80px;
  background: radial-gradient(circle, var(--cyan-500) 0%, transparent 70%);
}

.hemi-panel__content {
  position: relative;
  z-index: 2;
}
.hemi-panel__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.color-amber { color: var(--amber-300); }
.color-cyan { color: var(--cyan-300); }

.hemi-panel__title {
  font-size: var(--fs-h3);
  margin-block: 10px 12px;
}
.hemi-panel__lead {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.hemi-panel__callout {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}
.hemi-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  flex: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}
.hemi-panel__icon svg { width: 22px; height: 22px; }
.hemi-panel__callout-text {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-200);
}
.hemi-panel--left .hemi-panel__icon {
  color: var(--amber-300);
  background: var(--amber-glow-soft);
  border-color: rgba(254, 115, 12, 0.4);
}
.hemi-panel--right .hemi-panel__icon {
  color: var(--cyan-300);
  background: var(--cyan-glow-soft);
  border-color: rgba(53, 169, 255, 0.25);
}

/* Slider Widget Styling — framed inside the shared .app-mockup window chrome */
.slider-widget {
  max-width: 1000px;
  margin: 0 auto 50px;
}
.slider-widget__container {
  position: relative;
  height: var(--widget-height, 280px);
  overflow: hidden;
  user-select: none;
}

.slider-widget__side {
  position: absolute;
  top: 0; bottom: 0;
  height: 100%;
  overflow: hidden;
}
.slider-widget__side--left {
  left: 0;
  width: var(--slider-default); /* Adjusted dynamically by JS */
  z-index: 2;
}
.slider-widget__side--right {
  right: 0;
  width: 100%;
  background: rgba(53, 169, 255, 0.05);
  z-index: 1;
}

/* Inside Left Tree Side */
.widget-tree {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
/* Inside Right Canvas Side */
.widget-canvas {
  padding: 30px;
  height: 100%;
  position: relative;
}
.widget-card {
  position: absolute;
  width: var(--card-size, 110px);
  height: var(--card-size, 110px);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-panel);
  left: var(--card-left, 50%);
  top: var(--card-top, 50%);
  transform: rotate(var(--card-rotate, 0deg));
  transition: left var(--card-transition) ease-out, top var(--card-transition) ease-out, transform var(--card-transition) ease-out, width var(--card-transition) ease-out, height var(--card-transition) ease-out;
  will-change: left, top, transform, width, height;
}
.widget-card__thumb {
  height: 100%; width: 100%;
  border-radius: 6px;
}

/* Slider Handle */
.slider-widget__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--slider-default); /* Adjusted dynamically by JS */
  width: 2px;
  background: linear-gradient(180deg, var(--amber-400), var(--cyan-400));
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}
.slider-widget__button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-700);
  border: 2px solid var(--text-200);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.slider-widget__handle:hover .slider-widget__button {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--amber-300);
}
.slider-widget__arrow {
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--text-100);
}

.slider-widget__label {
  text-align: center;
  margin-top: 15px;
  color: var(--text-400);
  font-size: var(--fs-mono);
}

/* ==========================================================================
   Section 4 — UI Architecture
   ========================================================================== */
.architecture__mockup {
  max-width: 1000px;
  margin-inline: auto;
  margin-bottom: 50px;
}
.app-mockup {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--glass-strong), rgba(12,16,22,0.95));
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.app-mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.app-mockup__title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-400);
}
.app-mockup__body {
  display: grid;
  grid-template-columns: 200px 30px 1fr;
  min-height: 320px;
  position: relative;
}

/* Hot Zones inside Mockup */
.hot-zone {
  position: relative;
  padding: 20px;
  transition: background 0.3s ease;
}
.hot-zone__badge {
  position: absolute;
  top: 15px; right: 15px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 10;
}
.hot-zone__badge--spine { background: var(--amber-500); color: #000; }
.hot-zone__badge--resizer { background: var(--text-100); color: #000; }
.hot-zone__badge--canvas { background: var(--cyan-500); color: #000; }

.mockup-spine:hover {
  background: rgba(254, 115, 12, 0.04);
}

.mockup-resizer {
  padding: 0;
  cursor: ew-resize;
  display: flex;
  justify-content: center;
}
.mockup-resizer__line {
  width: 1px;
  height: 100%;
  background: var(--glass-border-strong);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.mockup-resizer:hover .mockup-resizer__line {
  background: linear-gradient(180deg, var(--amber-400), var(--cyan-400));
  box-shadow: 0 0 10px rgba(53,169,255,0.5);
}

.mockup-canvas {
  background: rgba(255,255,255,0.01);
  padding: 20px;
}
.mockup-canvas:hover {
  background: rgba(53, 169, 255, 0.02);
}
.mockup-canvas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mockup-card {
  background: var(--bg-700);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mockup-card__header {
  height: 60px;
}
.mockup-card__body {
  padding: 8px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* Walkthrough cards beneath mockup */
.architecture__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin-inline: auto;
}
.arch-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-strong);
}
.arch-card--spine { border-top: 2px solid var(--amber-400); }
.arch-card--resizer { border-top: 2px solid var(--text-200); }
.arch-card--canvas { border-top: 2px solid var(--cyan-400); }

.arch-card__badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.arch-card__badge--spine { background: rgba(254, 115, 12, 0.15); color: var(--amber-300); }
.arch-card__badge--resizer { background: rgba(255, 255, 255, 0.1); color: var(--text-200); }
.arch-card__badge--canvas { background: rgba(53, 169, 255, 0.15); color: var(--cyan-300); }

.arch-card__title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.arch-card__subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-400);
  display: block;
  margin-bottom: 12px;
}
.arch-card__text {
  font-size: 0.88rem;
  color: var(--text-300);
  line-height: 1.5;
}

/* ==========================================================================
   Section 4 — The Home-Base
   ========================================================================== */
.homebase__header { margin-bottom: 50px; }

.homebase__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-grid-lg);
  align-items: center;
  max-width: var(--maxw);
  margin-inline: auto;
}

.homebase__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--text-100);
  margin-bottom: 12px;
}
.homebase__lead {
  font-size: var(--fs-lead);
  color: var(--text-300);
  line-height: 1.55;
  margin-bottom: 28px;
}

.homebase__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.homebase__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.homebase__icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(254, 115, 12, 0.12);
  border: 1px solid var(--glass-border);
  color: var(--amber-300);
}
.homebase__icon svg { width: 20px; height: 20px; }
.homebase__item-body { display: flex; flex-direction: column; gap: 3px; }
.homebase__item-title {
  font-weight: 600;
  color: var(--text-100);
  font-size: 0.98rem;
}
.homebase__item-text {
  font-size: 0.88rem;
  color: var(--text-300);
  line-height: 1.5;
}

/* Home-base mockup grid */
.homebase__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
}
.homebase__tile {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--bg-700);
  padding: 18px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.homebase__tile:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-strong);
}
.homebase__tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
}
.homebase__tile--amber::before { background: var(--amber-400); }
.homebase__tile--cyan::before  { background: var(--cyan-400); }
.homebase__tile--iris::before  { background: #8a5cff; }
.homebase__tile--mint::before  { background: var(--ok); }
.homebase__tile-label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-400);
}
.homebase__tile-title {
  font-weight: 600;
  color: var(--text-100);
  font-size: 1rem;
  margin-top: auto;
}
.homebase__tile-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-400);
}

@media (max-width: 860px) {
  .homebase__split { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Section 5 — Core Features
   ========================================================================== */
/* Carousel controls (hint + arrows) */
.features__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto 20px;
}
.features__hint {
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-400);
}
.features__arrows { display: flex; gap: 10px; }
.features__arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-200);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.2s var(--ease-out);
}
.features__arrow svg { width: 20px; height: 20px; }
.features__arrow:hover:not(:disabled) {
  border-color: var(--glass-border-strong);
  color: var(--text-100);
  transform: translateY(-2px);
}
.features__arrow:disabled { opacity: 0.35; cursor: default; }

/* Horizontal scroll-snap carousel */
.features__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  /* Bleed to the container edges so cards can scroll off-screen cleanly */
  margin-inline: -24px;
  padding: 6px 24px 22px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border-strong) transparent;
  -webkit-overflow-scrolling: touch;
}
.features__grid::-webkit-scrollbar { height: 6px; }
.features__grid::-webkit-scrollbar-track { background: transparent; }
.features__grid::-webkit-scrollbar-thumb {
  background: var(--glass-border-strong);
  border-radius: 999px;
}

.feat-card {
  flex: 0 0 clamp(280px, 80vw, 360px);
  scroll-snap-align: start;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}
.feat-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-4px);
}

/* A single hairline accent along the top edge (sleek, unobtrusive) */
.feat-card--amber::before,
.feat-card--cyan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  opacity: 0.85;
}
.feat-card--amber::before { background: linear-gradient(90deg, var(--amber-400), transparent 70%); }
.feat-card--cyan::before { background: linear-gradient(90deg, var(--cyan-400), transparent 70%); }
.feat-card--amber:hover { box-shadow: var(--glow-amber); }
.feat-card--cyan:hover { box-shadow: var(--glow-cyan); }

/* Content column keeps chips pinned to the bottom for a clean baseline */
.feat-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.feat-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.feat-card__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--text-200);
}
.feat-card__icon svg { width: 21px; height: 21px; }
.feat-card--amber .feat-card__icon {
  background: rgba(254, 115, 12, 0.12);
  border-color: rgba(254, 115, 12, 0.28);
  color: var(--amber-300);
}
.feat-card--cyan .feat-card__icon {
  background: rgba(53, 169, 255, 0.12);
  border-color: rgba(53, 169, 255, 0.28);
  color: var(--cyan-300);
}

.feat-card__badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-400);
}

.feat-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text-100);
}
.feat-card__text {
  font-size: 0.9rem;
  color: var(--text-300);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 40ch;
}

/* Chip row — pinned to the card baseline for a clean, aligned edge */
.feat-card__footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.feat-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--text-300);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.feat-card:hover .feat-tag {
  border-color: var(--glass-border-strong);
  color: var(--text-200);
}

/* ==========================================================================
   Section 6 — AI Collaboration (Meet Joe)
   ========================================================================== */
.ai-collaboration {
  background: radial-gradient(100% 70% at 20% 50%, rgba(254,115,12,0.035) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.ai-glow {
  position: absolute;
  top: 50%; left: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--amber-glow-soft) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--gap-grid-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Chat Mockup Styling */
.chat-panel {
  background: linear-gradient(160deg, var(--glass-strong), rgba(12,16,22,0.95));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  max-width: 500px;
  margin-inline: auto;
}
.chat-panel__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.02);
}
.chat-avatar {
  font-size: 1.5rem;
}
.chat-meta {
  display: flex;
  flex-direction: column;
}
.chat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-100);
}
.chat-status {
  font-size: 0.65rem;
  color: var(--amber-300);
  letter-spacing: 0.04em;
}

.chat-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 480px;
  overflow-y: auto;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.msg--user {
  align-self: flex-end;
}
.msg--user .msg__text {
  background: var(--bg-700);
  border: 1px solid var(--glass-border-strong);
  border-radius: 14px 14px 2px 14px;
  color: var(--text-100);
}
.msg--joe {
  align-self: flex-start;
  max-width: 100%;
}
.msg--joe .msg__text {
  color: var(--text-200);
}
.msg__text {
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Transparency Funnel Widget */
.transparency-funnel {
  background: rgba(254, 115, 12, 0.05);
  border: 1px solid rgba(254, 115, 12, 0.2);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.funnel-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--amber-300);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.funnel-badge .icon { font-size: 0.85rem; }
.funnel-details {
  font-size: 0.65rem;
  color: var(--text-300);
  line-height: 1.4;
}
.funnel-details code {
  color: var(--text-100);
}

/* AI Seatbelt Gated Loop Card */
.seatbelt-card {
  background: rgba(168, 85, 247, 0.035);
  border: 1px solid rgba(168, 85, 247, 0.16);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.seatbelt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(168, 85, 247, 0.1);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.seatbelt-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-100);
  display: flex;
  align-items: center;
  gap: 6px;
}
.seatbelt-title .icon { color: #c084fc; }
.seatbelt-status {
  font-size: 0.65rem;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.seatbelt-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.seatbelt-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-400);
}
.seatbelt-steps .step-num {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-700);
  border: 1px solid var(--glass-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}
.seatbelt-steps .step.is-completed {
  color: var(--text-200);
}
.seatbelt-steps .step.is-completed .step-num {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.seatbelt-steps .step.is-active {
  color: var(--text-100);
}
.seatbelt-steps .step.is-active .step-num {
  background: rgba(254, 115, 12, 0.15);
  border-color: var(--amber-400);
  color: var(--amber-300);
  box-shadow: 0 0 10px var(--amber-glow-soft);
}

.seatbelt-actions {
  display: flex;
  gap: 10px;
}
.seatbelt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--bg-700);
  color: var(--text-200);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.seatbelt-btn:hover {
  background: var(--bg-600);
}
.seatbelt-btn--primary {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.seatbelt-btn--primary:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.5);
}
.seatbelt-btn--secondary {
  background: transparent;
  border-color: var(--glass-border-strong);
  color: var(--text-300);
}
.seatbelt-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}
.seatbelt-waiting {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-400);
  text-align: center;
}

/* AI Feature Descriptions */
.ai-copy {
  max-width: 540px;
}
.ai-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
.ai-feat__title {
  font-size: 1.05rem;
  color: var(--text-100);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-feat__title .icon {
  color: var(--amber-300);
  font-size: 1.2rem;
}
.ai-feat__text {
  font-size: 0.88rem;
  color: var(--text-300);
  line-height: 1.5;
}

/* Token Transparency caption that lives below the chat mockup */
.ai-mockup__note {
  max-width: 500px;
  margin: 24px auto 0;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(254, 115, 12, 0.05) 0%, rgba(20, 26, 36, 0.6) 100%);
  border: 1px solid rgba(254, 115, 12, 0.15);
  border-left: 4px solid var(--amber-400);
  box-shadow: var(--shadow-panel), 0 4px 20px rgba(254, 115, 12, 0.02);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ai-mockup__note-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--amber-300);
  margin-top: 1px;
}
.ai-mockup__note-icon svg {
  width: 100%;
  height: 100%;
}
.ai-mockup__note-content {
  flex: 1;
}
.ai-mockup__note-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-300);
  line-height: 1.5;
}
.ai-mockup__note-highlight {
  color: var(--text-100);
  font-weight: 600;
}

/* ==========================================================================
   Section 7 — Trade-Off Refusal Matrix (Comparison)
   ========================================================================== */
.matrix-compare {
  background: radial-gradient(100% 70% at 80% 50%, rgba(53,169,255,0.02) 0%, transparent 100%);
}
.matrix-container {
  max-width: 960px;
  margin-inline: auto;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  background: var(--glass-strong);
  box-shadow: var(--shadow-float);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 760px; /* Force table to preserve columns on smaller viewports with scroll */
}

.compare-table th, 
.compare-table td {
  padding: 22px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-300);
  background: rgba(255,255,255,0.01);
}

.col-feature {
  width: 32%;
}

.row-feature {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.row-feature strong {
  font-size: 0.95rem;
  color: var(--text-100);
}
.row-sub {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Badges / Status styling */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--ok {
  background: rgba(52, 209, 122, 0.08);
  border: 1px solid rgba(52, 209, 122, 0.25);
  color: var(--ok);
}
.badge--no {
  background: rgba(255, 91, 91, 0.08);
  border: 1px solid rgba(255, 91, 91, 0.25);
  color: var(--no);
}
.badge--ok-strong {
  background: rgba(254, 115, 12, 0.15);
  border: 1px solid var(--amber-400);
  color: var(--amber-300);
  box-shadow: 0 0 15px rgba(254, 115, 12, 0.25);
}

/* FlowJoe Column Highlight */
.compare-table td.col-flowjoe,
.compare-table th.col-flowjoe {
  background: rgba(254, 115, 12, 0.03);
  border-left: 1px solid rgba(254, 115, 12, 0.15);
  border-right: 1px solid rgba(254, 115, 12, 0.15);
  position: relative;
}
.compare-table td.col-flowjoe {
  text-align: center;
}
.compare-table th.col-flowjoe {
  background: rgba(254, 115, 12, 0.06);
  border-top: 1px solid rgba(254, 115, 12, 0.2);
  color: var(--amber-300);
  font-weight: bold;
  text-align: center;
}
.compare-table tr:last-child td.col-flowjoe {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: var(--radius-lg);
}

/* Cell alignment centering */
.compare-table td:not(.row-feature) {
  text-align: center;
}

/* ==========================================================================
   Section 8 — Ecosystem & Final CTA
   ========================================================================== */
.ecosystem__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 8vw, 80px);
  row-gap: clamp(20px, 4vw, 40px);
  align-items: center;
}
.ecosystem__cta-row {
  grid-column: 1 / -1;
}

/* Ecosystem tech stack (extensible layers on a local-first core) */
.stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.stack__layer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: transform 0.25s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Tiered widths so it reads as a stack built on a wide foundation.
   Explicit z-index (upper > lower) keeps each card — and its plug — above the
   card below, even when the hover transform creates a new stacking context. */
.stack__layer:nth-child(1) { width: 86%; z-index: 3; }
.stack__layer:nth-child(2) { width: 93%; z-index: 2; }
.stack__layer:nth-child(3) { width: 100%; z-index: 1; }
.stack__layer:hover { transform: translateY(-2px); border-color: var(--glass-border-strong); }

/* Plug: each upper layer plugs down into the layer below it */
.stack__layer:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  background: url("../img/plug.svg") center/contain no-repeat;
  filter: hue-rotate(356deg);
}
/* Socket: a recessed slot on the top of each lower layer to receive the prongs */
.stack__layer:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  transform: translateX(-50%);
  width: 34px;
  height: 8px;
  z-index: 3;
  background: var(--bg-900);
  border: 1px solid var(--glass-border-strong);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.6);
}
/* Core card carries an amber theme, so tint its socket to match the seam */
.stack__layer--core::before { border-color: rgba(254, 115, 12, 0.4); }

.stack__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  font-size: 1.15rem;
  flex: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
}
.stack__meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.stack__title { font-size: 0.98rem; font-weight: 600; color: var(--text-100); line-height: 1.2; }
.stack__text { font-size: 0.82rem; color: var(--text-300); line-height: 1.45; }
.stack__tag {
  flex: none;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--text-400);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Extensible layers (cyan hemisphere) */
.stack__layer--cyan .stack__icon { color: var(--cyan-300); background: var(--cyan-glow-soft); border-color: rgba(53, 169, 255, 0.25); }
.stack__layer--cyan:hover { border-color: rgba(53, 169, 255, 0.3); box-shadow: 0 12px 40px -16px var(--cyan-glow); }

/* Local core = emphasized foundation (amber hemisphere) */
.stack__layer--core {
  background: linear-gradient(160deg, var(--amber-glow-soft), var(--glass));
  border-color: rgba(254, 115, 12, 0.35);
  box-shadow: var(--glow-amber);
}
.stack__layer--core .stack__icon { color: var(--amber-300); background: var(--amber-glow-soft); border-color: rgba(254, 115, 12, 0.4); }
.stack__layer--core .stack__tag { color: var(--amber-300); border-color: rgba(254, 115, 12, 0.35); }

/* Reusable glass card with gradient border */
.glass-card {
  background: linear-gradient(160deg, var(--glass-strong), rgba(12,16,22,0.95)) padding-box,
              linear-gradient(135deg, var(--amber-400), var(--cyan-400)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-float);
}

/* CTA Box */
.cta-box {
  text-align: center;
  min-width: 0;
  max-width: 800px;
  margin: auto;
}
.cta-box__title {
  font-size: var(--fs-h2);
  margin-bottom: 20px;
  color: var(--text-100);
}
.cta-box__text {
  font-size: var(--fs-lead);
  color: var(--text-100);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.cta-box__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cta-box__note {
  font-size: 0.72rem;
  color: var(--text-400);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding-block: 80px 40px;
  background: var(--bg-900);
  position: relative;
  z-index: 2;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}
.footer__brand {
  max-width: 320px;
}
.footer__logo {
  height: 24px;
  margin-bottom: 18px;
}
.footer__desc {
  font-size: 0.88rem;
  color: var(--text-300);
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer__copyright {
  font-size: 0.72rem;
  color: var(--text-400);
  line-height: 1.5;
}
.footer__copyright a {
  text-decoration: underline;
}
.footer__copyright a:hover {
  color: var(--text-200);
}

.footer__links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__title {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-400);
  margin-bottom: 8px;
}
.footer__col a {
  font-size: 0.88rem;
  color: var(--text-300);
  transition: color 0.2s ease;
}
.footer__col a:hover {
  color: var(--text-100);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  /* ---- 1. Hero ---- */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 620px; }
  .hero__stage { margin-top: 20px; perspective: none; }
  .app { transform: none; will-change: auto; }
  .callout { position: static; display: inline-block; margin: 6px 6px 0 0; max-width: none; }
  .callout-layer { display: flex; flex-wrap: wrap; margin-top: 16px; }

  /* ---- 2. The Problem ---- */
  .problem__grid { grid-template-columns: 1fr; }
  .problem__visual { order: 2; }

  /* ---- 4. UI Architecture ---- */
  .architecture__cards { grid-template-columns: 1fr; }
  .architecture__mockup { display: none; }

  /* ---- 5. Core Features Grid ---- */
  .feat-card { min-height: 320px; }

  /* ---- 6. Meet Joe (AI Collaborator) ---- */
  .ai-grid { grid-template-columns: 1fr; }
  .ai-mockup { order: 2; margin-top: 30px; }
  .ai-mockup__note { width: 100%; margin-left: 0; margin-right: 0; }

  /* ---- 8. Ecosystem & Final CTA ---- */
  .ecosystem__grid { grid-template-columns: minmax(0, 1fr); }
  .ecosystem__visual { margin-top: 12px; }

  /* ---- Footer ---- */
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__links-group { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }

    /* ---- 3. The Big Idea ---- */
  .hemispheres__split { grid-template-columns: 1fr; }
  .slider-widget__container { height: auto; display: flex; flex-direction: column; }
  .slider-widget__side--left { position: relative; width: 100% !important; border-right: none; border-bottom: 1px dashed rgba(254, 115, 12, 0.3); }
  .slider-widget__side--right { position: relative; width: 100%; }
  .slider-widget__handle, .slider-widget__label { display: none; }
  .widget-canvas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px; height: auto; }
  .widget-card { position: static; transform: none; }
}
@media (max-width: 600px) {
  /* Hero app mockup: flat panel with a readable tree + compact 2-up gallery */
  .app__body { grid-template-columns: 118px 1fr; min-height: 0; }
  .tree__row.indent2 { padding-left: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; }
  .card__media { height: 84px; }

  /* Callout cards go full width with mobile-friendly spacing */
  .callout-layer { flex-direction: column; }
  .callout { width: 100%; max-width: none; margin: 0 0 10px 0; }

  /* You are the API */
  .chaos-box { height: 600px; }
  .chaos-item--notes { top: 12%; left: 8%; }
  .chaos-item--files { top: 27%; right: 5%; }
  .chaos-item--chats { bottom: 10%; left: 10%; }
  .chaos-item--tasks { bottom: 26%; right: 4%; }

  /* Final CTA box: tighter padding and full-width buttons so it never runs offscreen */
  .cta-box { padding: 26px 22px; }
  .cta-box__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-box__buttons .btn { width: 100%; justify-content: center; }

  /* Tech stack: drop the tapered widths so layers use the full column */
  .stack__layer:nth-child(1),
  .stack__layer:nth-child(2),
  .stack__layer:nth-child(3) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
}
