/* ============================================================
   BASE 38 — Redesign
   Brand: Navy #00577B + Amber #E09839 on warm white
   Type: Bricolage Grotesque (display) + Inter (body) + JetBrains Mono
   ============================================================ */

:root {
  --color-accent:        #00577B;
  --color-accent-light:  #2A5A8C;
  --color-accent-rgb:    0, 87, 123;

  --color-highlight:     #E09839;
  --color-highlight-rgb: 224, 152, 57;

  --color-bg:            #FBFAF7;          /* warm cream — distinguishes from current pure-white */
  --color-paper:         #FFFFFF;
  --color-surface:       #F4F1EA;
  --color-surface-2:     #ECE6D9;

  --color-text:          #0E0F12;
  --color-text-muted:    #5C5F66;
  --color-text-subtle:   #9CA0A8;

  --color-border:        rgba(14, 15, 18, 0.08);
  --color-border-strong: rgba(14, 15, 18, 0.16);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --nav-height: 72px;
  --section-px: clamp(1.25rem, 5vw, 6rem);
  --max-w: 1400px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --grid-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='1' fill='%230E0F12' fill-opacity='0.07'/%3E%3C/svg%3E");
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--color-highlight-rgb), 0.25);
  color: var(--color-text);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: rgba(var(--color-accent-rgb), 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--color-accent-rgb), 0.5); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ============================================================
   Section / layout helpers
   ============================================================ */

section {
  position: relative;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--color-text);
}

.h-display {
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.h-section {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.h-card {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.body-lg {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.body { color: var(--color-text-muted); }

.mono { font-family: var(--font-mono); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.btn-primary:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-highlight-rgb), 0.35);
}

.btn-amber {
  background: var(--color-highlight);
  color: white;
  border-color: var(--color-highlight);
}
.btn-amber:hover {
  background: #c97f20;
  border-color: #c97f20;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--color-highlight-rgb), 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn-arrow {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}
.btn-arrow::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}
.btn-arrow:hover::after { transform: scaleX(1); }
.btn-arrow svg {
  transition: transform 0.3s var(--ease-out-expo);
}
.btn-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--section-px);
  height: var(--nav-height);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.nav-logo-mark .num { color: var(--color-highlight); margin-left: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.04);
}
.nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ============================================================
   Corner brackets — kept as brand DNA
   ============================================================ */

.corner-brackets > div {
  position: absolute;
  width: 26px; height: 26px;
  border-color: var(--color-highlight);
  border-style: solid;
  opacity: 0.45;
  pointer-events: none;
  z-index: 5;
}
.corner-brackets .tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.corner-brackets .tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.corner-brackets .bl { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.corner-brackets .br { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-height) + 16px) 0 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.hero-canvas-wrap {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 60%;
  z-index: 1;
  pointer-events: none;
}
.hero-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-canvas-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, rgba(251,250,247,0.8) 22%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px) clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero-text { z-index: 3; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #34C759;
  border-radius: 50%;
  position: relative;
}
.hero-badge .dot::after {
  content: "";
  position: absolute; inset: -4px;
  background: #34C759;
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0; }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.4vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}

.hero-headline .rotator {
  display: inline-block;
  position: relative;
  height: 1em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 6.5em;
}
.hero-headline .rotator span {
  display: block;
  position: absolute;
  inset: 0;
  color: var(--color-highlight);
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.4s ease;
}
.hero-headline .rotator span.active {
  transform: translateY(0);
  opacity: 1;
}
.hero-headline .rotator span.exit {
  transform: translateY(-110%);
  opacity: 0;
}
.hero-headline .accent-stroke {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.hero-headline .accent-stroke::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -0.04em;
  height: 0.08em;
  background: var(--color-highlight);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  animation: drawUnder 1.2s var(--ease-out-expo) 1.4s forwards;
}
@keyframes drawUnder {
  to { transform: scaleX(1); }
}

.hero-subhead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 32ch;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid var(--color-border);
}
.hero-meta-item:last-child { border-right: none; padding-right: 0; }
.hero-meta-item .val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.hero-meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.6;
  z-index: 3;
}
.hero-scroll-hint .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-hint .line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--color-highlight);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -50%; }
  100% { top: 100%; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-canvas-wrap { width: 100%; opacity: 0.6; }
  .hero-canvas-fade { background: linear-gradient(180deg, transparent 0%, var(--color-bg) 75%); }
  .hero-headline { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-meta { display: none; }
  .hero-scroll-hint { display: none; }
}

/* ============================================================
   Marquee — tools
   ============================================================ */

.marquee-section {
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marqueeScroll 60s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: all 0.25s ease;
}
.tool-pill:hover {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
  transform: translateY(-2px);
}
.tool-pill .icon {
  width: 22px; height: 22px;
  background-color: var(--color-text-muted);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
  transition: background-color 0.25s ease;
}
.tool-pill:hover .icon { background-color: var(--color-highlight); }

/* ============================================================
   Pillars — What We Do — Bento grid
   ============================================================ */

.pillars {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
}

.pillars-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.pillars-header p { max-width: 36ch; }

@media (max-width: 800px) {
  .pillars-header { grid-template-columns: 1fr; align-items: start; }
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.bento-card {
  position: relative;
  padding: clamp(24px, 2.5vw, 36px);
  border-radius: 24px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.4s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.06);
  border-color: var(--color-border-strong);
}

.bento-card .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--color-highlight);
}
.bento-card h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.bento-card p { font-size: 0.95rem; color: var(--color-text-muted); }
.bento-card .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(var(--color-highlight-rgb), 0.12);
  color: var(--color-highlight);
}

.bento-1 { grid-column: span 7; }
.bento-2 { grid-column: span 5; background: var(--color-text); color: white; border-color: var(--color-text); }
.bento-2 h3 { color: white; }
.bento-2 p { color: rgba(255,255,255,0.7); }
.bento-2 .icon-pill { background: rgba(255,255,255,0.1); color: var(--color-highlight); }
.bento-3 { grid-column: span 4; }
.bento-4 { grid-column: span 4; background: var(--color-highlight); color: white; border-color: var(--color-highlight); }
.bento-4 h3, .bento-4 .num { color: white; }
.bento-4 p { color: rgba(255,255,255,0.85); }
.bento-4 .icon-pill { background: rgba(255,255,255,0.18); color: white; }
.bento-5 { grid-column: span 4; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 { grid-column: span 6; }
}

.bento-card .visual {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 180px; height: 180px;
  opacity: 0.08;
  pointer-events: none;
}
.bento-card .visual svg { width: 100%; height: 100%; }

/* ============================================================
   Use Cases — magazine layout w/ robot images
   ============================================================ */

.use-cases {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--color-text);
  color: white;
  position: relative;
  overflow: hidden;
}
.use-cases h2, .use-cases h3 { color: white; }
.use-cases .body, .use-cases p { color: rgba(255,255,255,0.7); }
.use-cases .eyebrow { color: var(--color-highlight); }

.uc-bg-grid {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='1' fill='white' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  pointer-events: none;
}
.uc-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-highlight-rgb), 0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.uc-glow-1 { top: -200px; left: -150px; }
.uc-glow-2 { bottom: -250px; right: -200px; background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.4), transparent 65%); }

.uc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  z-index: 2;
}
@media (max-width: 800px) { .uc-header { grid-template-columns: 1fr; } }

/* ============================================================
   Use Case Explorer — interactive, code-drawn scenes
   ============================================================ */

.uc-explorer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}
@media (max-width: 1000px) { .uc-explorer { grid-template-columns: 1fr; } }

/* LEFT RAIL */
.uc-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uc-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.uc-autoplay {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.uc-autoplay:hover { background: var(--color-highlight); color: white; border-color: var(--color-highlight); }

.uc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uc-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 18px 16px;
  border-radius: 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  transition: background 0.3s ease, color 0.3s ease;
}
.uc-item:hover button { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.03); }
.uc-item.active button {
  background: rgba(255,255,255,0.05);
  color: white;
}
.uc-item-progress {
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 14px;
}
.uc-item-progress .bar {
  display: block;
  height: 100%;
  background: var(--color-highlight);
  transition: width 0.05s linear;
}
.uc-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.uc-item.active .uc-item-num { color: var(--color-highlight); }
.uc-item-industry { color: rgba(255,255,255,0.65); }
.uc-item-time { margin-left: auto; }
.uc-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* RIGHT STAGE */
.uc-stage {
  position: relative;
  background: linear-gradient(180deg, #14161a 0%, #0e1014 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  isolation: isolate;
  animation: stageIn 0.7s var(--ease-out-expo);
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.uc-stage-corners .c {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--color-highlight);
  border-style: solid;
  opacity: 0.45;
  pointer-events: none;
  z-index: 5;
}
.uc-stage-corners .tl { top: 14px; left: 14px; border-width: 1.5px 0 0 1.5px; }
.uc-stage-corners .tr { top: 14px; right: 14px; border-width: 1.5px 1.5px 0 0; }
.uc-stage-corners .bl { bottom: 14px; left: 14px; border-width: 0 0 1.5px 1.5px; }
.uc-stage-corners .br { bottom: 14px; right: 14px; border-width: 0 1.5px 1.5px 0; }

.uc-stage-head {
  display: flex;
  justify-content: space-between;
  padding: 24px 32px 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.uc-stage-scene {
  flex: 1;
  position: relative;
  margin: 16px 32px 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(0, 87, 123, 0.25), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(224, 152, 57, 0.10), transparent 55%),
    #0a0c10;
  border: 1px solid rgba(255,255,255,0.05);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uc-stage-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 28px 32px 32px;
  align-items: end;
}
@media (max-width: 700px) { .uc-stage-footer { grid-template-columns: 1fr; } }

.uc-stage-text h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.uc-stage-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
  margin-bottom: 18px;
}
.uc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uc-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}
.uc-stage-metric {
  text-align: right;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 32px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 700px) { .uc-stage-metric { border-left: none; padding-left: 0; text-align: left; } }
.uc-metric-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.uc-metric-val .unit { color: var(--color-highlight); }
.uc-metric-unit {
  color: var(--color-highlight);
  font-size: 0.5em;
}
.uc-metric-lbl {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  max-width: 16ch;
  margin-left: auto;
}
@media (max-width: 700px) { .uc-metric-lbl { margin-left: 0; } }

/* ----------------------------------------------------------
   Scene base
   ---------------------------------------------------------- */

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

@keyframes drawArc { to { stroke-dashoffset: 0; } }
@keyframes spinHand { to { transform: rotate(360deg); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floatBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------
   Scene 01 — Kitchen
   ---------------------------------------------------------- */
.scene-kitchen { padding: 24px; }
.kitchen-clock {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 38%, 300px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kitchen-clock svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.kitchen-saved {
  position: relative;
  text-align: center;
  z-index: 2;
}
.kitchen-saved .num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #E09839;
  line-height: 0.9;
}
.kitchen-saved .lbl {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 6px;
}

.kitchen-chit {
  position: absolute;
  background: #FBFAF7;
  color: #1a1c20;
  padding: 14px 16px;
  border-radius: 8px;
  width: 180px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  animation: floatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards, floatBob 4s ease-in-out infinite;
}
.kitchen-chit.chit-1 { top: 8%; left: 4%; transform: rotate(-3deg); animation-delay: 0.4s, 1.2s; }
.kitchen-chit.chit-2 { bottom: 10%; left: 6%; transform: rotate(2deg); animation-delay: 0.7s, 1.5s; }
.kitchen-chit.chit-3 { top: 12%; right: 4%; transform: rotate(2.5deg); animation-delay: 1.0s, 1.8s; width: 160px; }
.chit-head { color: #00577B; font-weight: 600; letter-spacing: 0.12em; padding-bottom: 4px; border-bottom: 1px dashed rgba(0,0,0,0.15); margin-bottom: 4px; }
.chit-row { display: flex; justify-content: space-between; gap: 8px; }
.chit-row b { color: #00577B; }
.chit-stamp { display: inline-block; align-self: flex-start; margin-top: 4px; padding: 2px 6px; background: #E09839; color: white; font-size: 0.6rem; letter-spacing: 0.1em; border-radius: 3px; }

@media (max-width: 700px) {
  .kitchen-chit.chit-3 { display: none; }
  .kitchen-chit { width: 130px; font-size: 0.62rem; }
}

/* ----------------------------------------------------------
   Scene 02 — Accountant
   ---------------------------------------------------------- */
.scene-accountant { padding: 16px; }
.acc-graph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.acc-chat {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 42%, 320px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-chat-msg { display: flex; align-items: flex-end; gap: 8px; opacity: 0; animation: msgIn 0.6s 0.5s forwards; }
.acc-chat-msg.outgoing { animation-delay: 1.4s; flex-direction: row-reverse; }
.acc-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.acc-avatar.bot-av { background: var(--color-highlight); border-color: var(--color-highlight); color: white; }
.acc-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.4;
  max-width: 100%;
}
.acc-bubble.bot { background: rgba(0, 87, 123, 0.25); border-color: rgba(0, 87, 123, 0.4); }
.acc-bubble u { color: var(--color-highlight); text-decoration: underline; text-underline-offset: 2px; }
.acc-time { display: block; font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 0.06em; }
.acc-bot-row { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.acc-bot-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-highlight); animation: pulseDot 1.4s infinite; }
.acc-bot-dot:nth-child(2) { animation-delay: 0.2s; }
.acc-bot-dot:nth-child(3) { animation-delay: 0.4s; }

@media (max-width: 700px) { .acc-chat { display: none; } }

/* ----------------------------------------------------------
   Scene 03 — Barber
   ---------------------------------------------------------- */
.scene-barber { padding: 24px; }
.barber-phone {
  position: absolute;
  left: 28px; top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 440px;
  background: #14161a;
  border: 6px solid #1f2126;
  border-radius: 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.barber-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0a0c10;
  border-radius: 999px;
  z-index: 2;
}
.barber-screen {
  position: absolute;
  inset: 8px;
  background: #FBFAF7;
  border-radius: 28px;
  padding: 36px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.barber-app-head {
  position: absolute;
  top: 12px; left: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  color: #1a1c20;
  letter-spacing: 0.12em;
}
.barber-app-head .dot { width: 8px; height: 8px; border-radius: 50%; }
.barber-app-head .dot-g { background: #34C759; }
.barber-app-head .live { margin-left: auto; color: #E09839; font-weight: 600; }

.msg { display: flex; flex-direction: column; max-width: 80%; opacity: 0; animation: msgIn 0.5s forwards; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg-who { font-size: 0.55rem; color: #888; letter-spacing: 0.08em; margin-bottom: 2px; padding-left: 4px; }
.msg-bub {
  background: #ECE6D9;
  color: #1a1c20;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  line-height: 1.3;
}
.msg-bub.bot { background: #00577B; color: white; }

.barber-typing {
  align-self: flex-start;
  background: #ECE6D9;
  padding: 6px 10px;
  border-radius: 12px;
  display: inline-flex;
  gap: 3px;
  opacity: 0;
  animation: msgIn 0.5s forwards;
}
.barber-typing span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #888;
  animation: pulseDot 1.4s infinite;
}
.barber-typing span:nth-child(2) { animation-delay: 0.2s; }
.barber-typing span:nth-child(3) { animation-delay: 0.4s; }

.barber-heatmap {
  position: absolute;
  right: 28px; top: 60px;
  width: clamp(220px, 36%, 280px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
}
.bh-title { font-size: 0.65rem; letter-spacing: 0.16em; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.bh-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.bh-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(224, 152, 57, var(--o, 0.15));
  opacity: 0;
  animation: msgIn 0.4s forwards;
}
.bh-cell.sm { width: 12px; height: 12px; aspect-ratio: 1; opacity: 1; animation: none; }
.bh-legend { margin-top: 10px; display: flex; align-items: center; gap: 4px; font-size: 0.6rem; color: rgba(255,255,255,0.45); }

.barber-stat {
  position: absolute;
  right: 28px; bottom: 24px;
  width: clamp(220px, 36%, 280px);
  background: rgba(224, 152, 57, 0.12);
  border: 1px solid rgba(224, 152, 57, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-items: center;
}
.bs-num { grid-row: 1 / 3; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.04em; color: #E09839; line-height: 0.9; }
.bs-lbl { font-size: 0.62rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); text-transform: uppercase; align-self: end; }
.bs-spark { display: block; }
.bs-spark svg { width: 100%; max-width: 100px; height: 24px; }

@media (max-width: 800px) {
  .barber-phone { left: 50%; transform: translate(-50%, -50%); }
  .barber-heatmap, .barber-stat { display: none; }
}

/* ----------------------------------------------------------
   Scene 04 — Legal
   ---------------------------------------------------------- */
.scene-legal { padding: 28px; }
.legal-doc {
  position: absolute;
  left: 28px; top: 28px; bottom: 80px;
  width: clamp(220px, 36%, 320px);
  background: #FBFAF7;
  color: #1a1c20;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-1deg);
  animation: floatIn 0.8s 0.2s both;
}
.legal-doc-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.6rem;
  color: #00577B;
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.legal-doc-body {
  flex: 1;
  position: relative;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-line {
  height: 4px;
  background: #1a1c20;
  border-radius: 2px;
}
.legal-highlight {
  position: absolute;
  left: 8px;
  height: 14px;
  width: calc(100% - 16px);
  border-radius: 2px;
  opacity: 0;
  animation: floatIn 0.5s forwards;
  mix-blend-mode: multiply;
}
.legal-highlight.high { background: rgba(224, 80, 60, 0.35); animation-delay: 1s; }
.legal-highlight.med { background: rgba(224, 152, 57, 0.4); animation-delay: 1.6s; }
.legal-highlight.low { background: rgba(0, 87, 123, 0.3); animation-delay: 2.2s; }

.legal-flag {
  position: absolute;
  right: 28px;
  width: clamp(200px, 38%, 320px);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  opacity: 0;
  animation: msgIn 0.6s forwards, floatBob 5s ease-in-out infinite;
  animation-delay: var(--d, 0.6s), 2s;
}
.legal-flag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -28px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.4;
}
.legal-flag.high { color: #E0503C; border-color: rgba(224,80,60,0.4); }
.legal-flag.med { color: #E09839; border-color: rgba(224,152,57,0.4); }
.legal-flag.low { color: #00577B; border-color: rgba(0,87,123,0.5); }
.legal-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
}
.legal-flag-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.legal-flag-tag {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: currentColor;
}
.legal-flag-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.legal-verdict {
  position: absolute;
  left: 28px; right: 28px; bottom: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  animation: msgIn 0.6s 2.6s forwards;
}
.legal-verdict-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}
.legal-verdict-row:first-child { justify-content: space-between; }
.legal-time { color: var(--color-highlight); }
.legal-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224, 80, 60, 0.15);
  border: 1px solid rgba(224, 80, 60, 0.3);
  color: #E0503C;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-pill.amber { background: rgba(224,152,57,0.15); border-color: rgba(224,152,57,0.35); color: #E09839; }
.legal-pill.green { background: rgba(52, 199, 89, 0.12); border-color: rgba(52,199,89,0.3); color: #34C759; }

@media (max-width: 800px) {
  .legal-flag { display: none; }
  .legal-doc { width: calc(100% - 56px); }
}

/* ============================================================
   Process
   ============================================================ */

.process {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.process-grid-bg {
  position: absolute;
  inset: 0;
  background-image: var(--grid-pattern);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  pointer-events: none;
  opacity: 0.6;
}
.process-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  z-index: 2;
}
.process-header .eyebrow { justify-content: center; display: inline-flex; }
.process-header h2 { margin: 16px auto 0; max-width: 18ch; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}
.process-line {
  position: absolute;
  top: 48px;
  left: 16%;
  right: 16%;
  height: 2px;
  z-index: 1;
  background-image: repeating-linear-gradient(90deg, var(--color-highlight) 0, var(--color-highlight) 8px, transparent 8px, transparent 16px);
  background-size: 16px 2px;
  animation: dashFlow 1.5s linear infinite;
  opacity: 0.5;
}
@keyframes dashFlow { to { background-position: 16px 0; } }

@media (max-width: 800px) {
  .process-steps { grid-template-columns: 1fr; }
  .process-line { display: none; }
}

.proc-card {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
}
.proc-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-highlight);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.proc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
  margin-bottom: 24px;
  transition: all 0.4s var(--ease-out-expo);
}
.proc-card:hover .proc-num {
  background: var(--color-highlight);
  color: white;
  border-color: var(--color-highlight);
  transform: scale(1.05);
}
.proc-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.proc-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: 20px;
}
.proc-card p { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 24px; }
.proc-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--color-border-strong);
}
.proc-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-text);
}
.proc-deliverables li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-highlight);
  margin-top: 8px;
  flex-shrink: 0;
}

/* ============================================================
   Live Demo — interactive AI playground
   ============================================================ */

.live-demo {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--color-paper);
  position: relative;
  overflow: hidden;
}
.demo-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .demo-wrap { grid-template-columns: 1fr; } }

.demo-left h2 { margin-top: 16px; margin-bottom: 24px; }

.demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.demo-preset {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.demo-preset:hover, .demo-preset.active {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
}

.demo-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.04);
}
.demo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper);
}
.demo-card-head .traffic {
  display: flex; gap: 6px;
}
.demo-card-head .traffic span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.demo-card-head .traffic span:nth-child(1) { background: #FF5F56; opacity: 0.6; }
.demo-card-head .traffic span:nth-child(2) { background: #FFBD2E; opacity: 0.6; }
.demo-card-head .traffic span:nth-child(3) { background: #27C93F; opacity: 0.6; }
.demo-card-head .title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.demo-card-head .live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-highlight);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-card-head .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-highlight);
  animation: pulseDot 1.4s infinite;
}

.demo-input-wrap {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
}
.demo-input {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  min-height: 60px;
}
.demo-input:focus { border-color: var(--color-highlight); }

.demo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-subtle);
}
.demo-output {
  flex: 1;
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  overflow-y: auto;
  font-family: var(--font-body);
}
.demo-output .placeholder {
  color: var(--color-text-subtle);
  font-style: italic;
}
.demo-output .typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--color-highlight);
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   Stats — kinetic metrics ribbon
   ============================================================ */

.stats {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 24px;
  text-align: left;
  border-right: 1px solid var(--color-border);
}
.stat:last-child { border-right: none; }
@media (max-width: 800px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
  display: block;
}
.stat .num .unit { color: var(--color-highlight); }
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 12px;
  display: block;
}

/* ============================================================
   About — chat-style with Steven
   ============================================================ */

.about {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}
.about-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
@media (max-width: 900px) { .about-wrap { grid-template-columns: 1fr; } }

.about-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
}
.about-photo-card .photo {
  flex: 1;
  background-color: var(--color-bg);
  background-image: url('public/steven-bezemer.webp');
  background-size: 110%;
  background-position: center 20%;
  background-repeat: no-repeat;
  position: relative;
}
.about-photo-card .photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
}
.about-photo-card .credentials {
  padding: 24px 28px;
  background: var(--color-paper);
  border-top: 1px solid var(--color-border);
}
.about-photo-card .credentials .name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-photo-card .credentials .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.about-chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-chat .eyebrow { color: var(--color-accent); }
.about-chat h2 { margin-top: 8px; margin-bottom: 8px; }

.chat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-tab {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-tab.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.chat-tab:hover:not(.active) { border-color: var(--color-text); color: var(--color-text); }

.chat-bubble {
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px 32px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
  position: relative;
  margin-top: 8px;
  min-height: 200px;
}
.chat-bubble::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -8px;
  width: 16px; height: 16px;
  background: var(--color-paper);
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: rotate(45deg);
}
.chat-bubble .typed-text {
  display: inline;
}
.chat-bubble .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  vertical-align: text-bottom;
  background: var(--color-highlight);
  margin-left: 2px;
  animation: blink 0.8s steps(1) infinite;
}

/* ============================================================
   Contact / CTA
   ============================================================ */

.contact {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--color-paper);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-grid h2 { margin-top: 16px; margin-bottom: 24px; }

.contact-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}
.contact-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.contact-perks .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-highlight);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.04);
}

.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav {
  background: none;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cal-nav:hover { background: var(--color-surface); color: var(--color-text); }
.cal-month {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}
.cal-dow span {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  padding: 6px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s;
}
.cal-day:hover:not(:disabled) { background: var(--color-surface); }
.cal-day:disabled { color: var(--color-text-subtle); opacity: 0.4; cursor: default; }
.cal-day.selected { background: var(--color-text); color: var(--color-bg); font-weight: 600; }
.cal-day.today::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-highlight);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.time-slot {
  padding: 10px 4px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: transparent;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.15s;
}
.time-slot:hover { border-color: var(--color-highlight); }
.time-slot.selected { background: var(--color-highlight); color: white; border-color: var(--color-highlight); }

.book-btn {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.25s;
}
.book-btn:disabled { background: var(--color-surface-2); color: var(--color-text-subtle); cursor: default; }
.book-btn:not(:disabled):hover { background: var(--color-highlight); transform: translateY(-2px); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-text);
  color: white;
  padding: clamp(60px, 7vw, 100px) 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  color: white;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-highlight);
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  margin-bottom: 16px;
  line-height: 1;
}
.footer-mark .num { color: var(--color-highlight); }
.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  max-width: 32ch;
  line-height: 1.55;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--color-highlight); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-social {
  display: flex; gap: 8px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--color-highlight);
  border-color: var(--color-highlight);
}

.footer-cta {
  background: linear-gradient(135deg, var(--color-highlight), #c97f20);
  color: white;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-cta h3 {
  color: white;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.footer-cta p { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.footer-cta .btn {
  background: white;
  color: var(--color-text);
  border-color: white;
  align-self: flex-start;
}
.footer-cta .btn:hover {
  background: var(--color-text);
  color: white;
  border-color: var(--color-text);
  transform: translateY(-2px);
}

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

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