/* ============================================================
   Cargoful – production design system (ported from v5_1)
   Dark theme · blue #1ba0ea + magenta #ef218c · Palatino/Iowan serif
   / Manrope sans / platform mono
   ============================================================ */

/* Animated border-draw angle for Dave card */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --black: #050508;
  --black-2: #0d0d12;
  --black-3: #13131a;
  --white: #fafaf7;
  --bone: #ece9e2;
  --gray-1: #1a1a22;
  --gray-2: #2a2a32;
  --gray-3: #5a5a65;
  --gray-4: #8a8a92;
  --gray-5: #b8b6b0;
  --accent: #1ba0ea;
  --accent-light: #3eb5f2;
  --accent-deep: #0b7fc7;
  --magenta: #ef218c;
  --magenta-light: #ff4da3;
  --magenta-glow: rgba(239, 33, 140, 0.15);
  --live: #2ee6a6;
  --ink-blue: #0a1a3a;
  --serif: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --serif-hero: var(--serif);
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --nav-h: 64px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--gray-5);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-light); text-decoration: none; }

/* ---- bilingual toggle ---- */
.lang-en { display: none; }
html[lang="en"] .lang-it { display: none; }
html[lang="en"] .lang-en { display: revert; }

/* ---- typography ---- */
h1, h2, h3 { color: var(--white); font-weight: 500; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
h1 em, h2 em, .em-serif {
  font-family: var(--serif-hero);
  font-style: normal;
  font-weight: 400;
  color: var(--accent-light);
}
h1 .em-mag, h2 .em-mag, .em-mag {
  font-family: var(--serif-hero);
  font-style: normal;
  font-weight: 400;
  color: var(--accent-light);
}
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--gray-5); max-width: 640px; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 1.2rem;
}
.eyebrow.mag { color: var(--accent-light); }

/* ---- layout ---- */
.sec { position: relative; padding: 6.5rem 2rem; max-width: 1280px; margin: 0 auto; }
.sec.tight { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.sec-full { position: relative; padding: 6.5rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.hr-top { border-top: 1px solid var(--gray-1); }
.hr-bottom { border-bottom: 1px solid var(--gray-1); }

/* ---- flowing decorative lines in each page hero ----
   A grey field of smooth, slowly undulating lines that main.js positions in the
   open space between the hero copy and the scroll-down arrow. Its top/height are
   set inline (measured from the text and the arrow) so it never overlaps text.
   Edges fade on all four sides so the lines emerge and dissolve softly. */
.flow-lines {
  position: absolute;
  left: 0; right: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  mask-composite: intersect;
}
.flow-lines svg { display: block; width: 100%; height: 100%; }
.flow-lines path {
  fill: none;
  stroke: var(--gray-3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
/* keep the hero copy above the decorative band (leave the absolute arrow alone) */
.page-intro.has-flow > *:not(.flow-lines):not(.scroll-arrow) { position: relative; z-index: 1; }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.6rem;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-1);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img, .nav-logo svg { height: 22px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.9rem; color: var(--gray-5);
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.lang-toggle {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--gray-4); background: none;
  border: 1px solid var(--gray-2); border-radius: 8px;
  padding: 0.38rem 0.7rem; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover { color: var(--white); border-color: var(--gray-3); }

.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: 1px solid var(--gray-2); border-radius: 8px;
  padding: 0 9px; cursor: pointer;
}
.nav-burger span {
  display: block; height: 1.5px; background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--gray-1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    padding: 0.6rem 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 1.6rem; font-size: 1rem; }
}

/* ---- focus-visible ---- */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* ---- buttons ---- */
.btn-pri, .btn-sec {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  border-radius: 10px; padding: 0.72rem 1.35rem;
  cursor: pointer; transition: all 0.22s ease;
  border: 1px solid transparent;
}
.btn-pri { background: var(--accent); color: #fff; }
.btn-pri:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(27, 160, 234, 0.35); }
.btn-sec { background: transparent; color: var(--white); border-color: var(--gray-2); }
.btn-sec:hover { border-color: var(--gray-3); background: var(--black-3); }
.btn-mag { background: var(--magenta); color: #fff; }
.btn-mag:hover { background: var(--magenta-light); box-shadow: 0 6px 24px var(--magenta-glow); }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2rem) 2.5rem 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero--sub {
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  padding-top: calc(var(--nav-h) + 6rem);
  padding-bottom: 5rem;
}
.hero--sub .hero-ctas { justify-content: flex-start; }
.hero--sub .lead { max-width: 720px; }

/* ---- page-intro: centered standalone hero for sub-pages ---- */
.page-intro {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 2.5rem 4rem;
  text-align: center;
}
.page-intro h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.08; max-width: 820px; margin: 0 auto; }
.page-intro .lead { margin: 1.4rem auto 0; max-width: 680px; }
.page-intro .hero-ctas { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
@media (max-width: 768px) {
  .page-intro { min-height: 100svh; padding: calc(var(--nav-h) + 2rem) 1.4rem 3rem; }
}

/* ---- scroll-down arrow ---- */
.scroll-arrow {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--gray-3);
  border-radius: 50%;
  cursor: pointer;
  animation: scrollBounce 2.4s ease-in-out infinite;
  transition: border-color 0.3s, opacity 0.3s;
  z-index: 2;
  opacity: 0.75;
  background: none;
  color: inherit;
  padding: 0;
}
.scroll-arrow.hidden { opacity: 0; pointer-events: none; }
.scroll-arrow:hover { border-color: var(--gray-5); opacity: 1; }
.scroll-arrow svg { width: 20px; height: 20px; stroke: var(--gray-5); fill: none; transition: stroke 0.3s; }
.scroll-arrow:hover svg { stroke: var(--bone); }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(27, 160, 234, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 60% at 20% 70%, rgba(239, 33, 140, 0.12), transparent 60%),
    linear-gradient(180deg, #050816 0%, #070a1a 40%, #050508 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(27, 160, 234, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 160, 234, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(800px) rotateX(65deg) translateY(30%) scale(2);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
}
.hero-svg {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  opacity: 0.85; pointer-events: none;
}
.hero-svg circle.node { fill: var(--accent-light); filter: drop-shadow(0 0 6px var(--accent-light)); }
.hero-svg circle.pulse { fill: var(--accent-light); filter: drop-shadow(0 0 10px var(--accent-light)); }
.hero-svg line { stroke: rgba(62, 181, 242, 0.25); stroke-width: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(5, 5, 8, 0.3) 0%, rgba(5, 5, 8, 0.1) 30%,
    rgba(5, 5, 8, 0.7) 80%, rgba(5, 5, 8, 1) 100%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px);
  z-index: 1; opacity: 0.5; pointer-events: none;
}
.orb-1 {
  top: 20%; right: 15%; width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: float1 12s ease-in-out infinite;
}
.orb-2 {
  bottom: 30%; left: 10%; width: 400px; height: 400px;
  background: radial-gradient(circle, #1a3aaa 0%, transparent 70%);
  animation: float2 16s ease-in-out infinite;
}
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.15); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, 20px) scale(0.9); } }

.hero-content {
  position: relative; z-index: 5;
  width: 100%; max-width: 1400px; margin: 0 auto;
}
.hero-content h1,
.hero-content h1 .em-mag {
  font-family: var(--serif-hero);
  font-style: normal;
}
.hero-content h1 {
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem); line-height: 0.98;
  letter-spacing: -0.035em; margin-bottom: 2.5rem; max-width: 1100px;
}
.hero-sub {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 4rem; align-items: end;
}
.hero-tagline {
  font-size: 1.2rem; line-height: 1.55; color: var(--bone);
  max-width: 620px; font-weight: 300;
}
.hero-tagline strong { color: var(--white); font-weight: 500; }

/* ---- hero text-streaming effect ---- */
[data-stream] .stream-char {
  opacity: 0;
  filter: blur(4px);
  display: inline;
  transition: opacity 0.06s ease, filter 0.18s ease;
}
[data-stream] .stream-char.vis {
  opacity: 1;
  filter: blur(0);
}
/* prefers-reduced-motion disabled — animations always run */

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .hero-sub { grid-template-columns: 1fr; gap: 2rem; }
  .hero-ctas { justify-content: flex-start; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(46, 230, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); }
}

/* ---- logo marquee ---- */
.marquee { overflow: hidden; border-top: 1px solid var(--gray-1); border-bottom: 1px solid var(--gray-1); padding: 1.4rem 0; }
.marquee-track {
  display: flex; align-items: center; gap: 0; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-item {
  padding: 0 2.4rem; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.marquee-item img {
  height: 22px; width: auto; opacity: 0.45;
  filter: grayscale(1) brightness(1.8);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- customer logo wall (4×3 rotating grid) ---- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-1);
  border-left: 1px solid var(--gray-1);
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  min-height: 140px; padding: 2rem 1.5rem;
  border-right: 1px solid var(--gray-1);
  border-bottom: 1px solid var(--gray-1);
  position: relative;
}
.logo-cell.is-hidden { display: none; }
.logo-cell img {
  max-height: 38px; max-width: 100%; width: auto; object-fit: contain;
  transition: opacity 0.5s ease;
}
.logo-cell img.logo-md { max-height: 48px; }
.logo-cell img.logo-lg { max-height: 56px; }
.logo-cell.is-swapping img { opacity: 0; }
.logo-cell.is-entering img { opacity: 0; }
.logo-cell.is-entering.is-visible img { opacity: 1; }

/* ---- partner / recognition marquee (one-row carousel) ---- */
.partner-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.partner-track {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  width: max-content;
  animation: partnerScroll 35s linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
.partner-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.7rem; flex-shrink: 0; padding: 1.4rem 0.5rem; text-align: center;
}
.partner-cell img {
  height: 56px; max-width: 140px; width: auto; object-fit: contain;
  opacity: 0.55; transition: opacity 0.3s;
}
.partner-cell:hover img { opacity: 0.85; }
.partner-cap {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-3); line-height: 1.4;
}
@keyframes partnerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { min-height: 120px; }
}

/* ---- keyword slider / marquee ---- */
.slider-sec {
  padding: 8rem 0 8rem;
  position: relative;
  overflow: hidden;
}
.slider-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
}
.slider-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.slider-head h2 em { font-style: normal; color: var(--accent-light); }
.slider-head p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-5);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}
.marquee-row {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  margin-bottom: 1rem;
}
.marquee-track {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  padding-right: 1rem;
  animation: scroll-l 50s linear infinite;
}
.marquee-row.reverse .marquee-track { animation: scroll-r 60s linear infinite; }
.marquee-row.slow .marquee-track { animation-duration: 70s; }
@keyframes scroll-l {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scroll-r {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-5);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s;
}
.pill:hover { border-color: var(--accent); color: var(--white); background: rgba(27,160,234,0.08); }
.pill.accent { background: rgba(27,160,234,0.08); border-color: rgba(27,160,234,0.25); color: var(--accent-light); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); opacity: 0.7; }

/* ---- live ops ticker ---- */
.liveops {
  margin-top: 3rem; border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--black-2), var(--black));
  overflow: hidden;
}
.liveops-head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--gray-1);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-4);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  animation: pulse 1.8s infinite;
}
.ticker { display: flex; white-space: nowrap; overflow: hidden; }
.ticker-track { display: flex; align-items: center; padding: 0.9rem 0; width: max-content; animation: marquee 32s linear infinite; }
.ticker-event {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0 1.4rem; font-family: var(--mono); font-size: 0.82rem; color: var(--gray-4);
  border-right: 1px solid var(--gray-1);
}
.ticker-event b { color: var(--white); font-weight: 500; }
.ticker-event .ok { color: var(--live); }
.ticker-event .mg { color: var(--magenta-light); }

/* ---- cards ---- */
.card {
  border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--black-2), var(--black));
  padding: 1.8rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover { border-color: var(--gray-2); transform: translateY(-3px); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.94rem; color: var(--gray-4); margin: 0; }
.card .n {
  font-family: var(--mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.1em; display: block; margin-bottom: 0.8rem;
}
.pov { padding-top: 1.4rem; border-top: 1px solid var(--gray-2); }
.pov .n { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.pov h3 { margin: 0.7rem 0 0.5rem; }
.pov p { font-size: 0.94rem; color: var(--gray-5); margin: 0; }

/* ---- stats / metrics band ---- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gray-1); border: 1px solid var(--gray-1); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--black-2); padding: 2rem 1.6rem; }
.stat-cell .num {
  font-family: var(--mono); font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white); display: block; margin-bottom: 0.4rem;
}
.stat-cell .num .u { color: var(--magenta-light); }
.stat-cell .lbl { font-size: 0.86rem; color: var(--gray-4); }

/* ---- testimonial carousel ---- */
.tst-carousel { position: relative; overflow: hidden; }
.tst-track { display: flex; transition: transform 0.5s ease; }
.tst-slide { flex: 0 0 100%; padding: 0 1px; }
.tst-card {
  border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: var(--black-2); padding: 2.4rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.tst-quote { font-size: 1.25rem; line-height: 1.5; color: var(--white); font-weight: 400; }
.tst-quote em { font-family: var(--serif); font-style: normal; color: var(--accent-light); }
.tst-who { display: flex; align-items: center; gap: 0.9rem; }
.tst-face {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-2); display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.85rem; color: var(--white);
  border: 1px solid var(--gray-2);
}
.tst-name { color: var(--white); font-size: 0.92rem; font-weight: 500; }
.tst-role { color: var(--gray-4); font-size: 0.82rem; }
.tst-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.4rem; }
.tst-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-2); border: none; cursor: pointer; padding: 0; }
.tst-dot.active { background: var(--accent-light); }

/* ---- FAQ ---- */
.faq-item { border-top: 1px solid var(--gray-1); }
.faq-item:last-child { border-bottom: 1px solid var(--gray-1); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  padding: 1.3rem 0.2rem; text-align: left;
  color: var(--white); font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
}
.faq-q::after { content: '+'; font-family: var(--mono); color: var(--accent-light); font-size: 1.2rem; transition: transform 0.25s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 0.2rem 1.4rem; color: var(--gray-4); font-size: 0.95rem; max-width: 720px; }

/* ---- trust chips ---- */
.trust-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--gray-5); border: 1px solid var(--gray-2); border-radius: 999px;
  padding: 0.5rem 1rem; background: var(--black-2);
}
.trust-chip::before { content: '✓'; color: var(--live); }
.trust-note { font-size: 0.82rem; color: var(--gray-3); margin-top: 1rem; }

/* ---- footer compliance badges ---- */
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.footer-badges img { height: 42px; width: auto; opacity: 0.85; transition: opacity 0.2s ease; }
.footer-badges img:hover { opacity: 1; }

/* ============================================================
   AI ADOPTION STACK – scroll-driven "hamburger" layer animation
   Three isometric planes, closed at first, opening as you scroll:
   1 your data infrastructure · 2 secure integrations · 3 ML + agents
   Driven by --p (0→1) set by JS on .stack-scroll
   ============================================================ */
.stack-scroll { position: relative; height: 340vh; }
.stack-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center; gap: 3rem;
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  overflow: hidden;
}
.stack-copy { position: relative; z-index: 2; }
.stack-step { position: absolute; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; max-width: 460px; }
.stack-step.active { opacity: 1; pointer-events: auto; }
.stack-step p { color: var(--gray-4); font-size: 1rem; }
.stack-step .idx { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); display: block; margin-bottom: 1rem; }
.stack-step[data-step="3"] .idx { color: var(--magenta-light); }

.stack-stage {
  position: relative; height: 72vh; min-height: 420px;
  perspective: 1400px;
}
.stack-plane {
  position: absolute; left: 50%; top: 50%;
  width: min(30rem, 78%); aspect-ratio: 1.55;
  border-radius: 18px;
  border: 1px solid var(--gray-2);
  transform-style: preserve-3d;
  /* isometric base pose; JS moves --sep 0→1 per layer */
  transform:
    translate(-50%, -50%)
    rotateX(58deg) rotateZ(-42deg)
    translateZ(calc(var(--base, 0px) + var(--lift, 0px)));
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background:
    linear-gradient(135deg, rgba(27, 160, 234, 0.07), rgba(13, 13, 18, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px);
  background-color: var(--black-2);
}
.stack-plane .tag {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotateZ(42deg) rotateX(-58deg);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gray-4);
  white-space: nowrap;
  opacity: var(--tag-o, 0);
  transition: opacity 0.3s ease;
}
.stack-plane.l1 { --base: -70px; }
.stack-plane.l2 { --base: 0px; }
.stack-plane.l3 { --base: 70px; }
.stack-plane.hot { border-color: var(--accent); box-shadow: 0 0 60px rgba(27, 160, 234, 0.25); }
.stack-plane.l3.hot { border-color: var(--magenta); box-shadow: 0 0 70px var(--magenta-glow); }
.stack-plane.l3 {
  background:
    linear-gradient(135deg, rgba(239, 33, 140, 0.09), rgba(13, 13, 18, 0.9)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.035) 31px 32px);
  background-color: var(--black-2);
}
/* Dave chip floats above the top plane */
.stack-dave {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotateX(58deg) rotateZ(-42deg) translateZ(calc(70px + var(--lift, 0px) + 46px));
  transform-style: preserve-3d;
  opacity: var(--dave-o, 0);
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.stack-dave .chip {
  transform: rotateZ(42deg) rotateX(-58deg);
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--white);
  border: 1px solid rgba(239, 33, 140, 0.5); border-radius: 999px;
  background: rgba(13, 13, 18, 0.92); padding: 0.5rem 1rem;
  box-shadow: 0 0 30px var(--magenta-glow);
  white-space: nowrap;
}
.stack-dave .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.stack-progress {
  position: absolute; bottom: 2rem; left: 2rem;
  display: flex; gap: 0.45rem; z-index: 3;
}
.stack-progress i { width: 26px; height: 2px; background: var(--gray-2); transition: background 0.3s ease; }
.stack-progress i.on { background: var(--accent-light); }

@media (max-width: 900px) {
  .stack-scroll { height: auto; }
  .stack-sticky { position: static; height: auto; grid-template-columns: 1fr; padding: 4rem 1.4rem; overflow: visible; }
  .stack-copy { display: flex; flex-direction: column; gap: 2.2rem; }
  .stack-step { position: static; transform: none; opacity: 1; pointer-events: auto; }
  .stack-stage { height: 380px; min-height: 0; }
}

/* ---- Dave agent card ---- */
.agent-card {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1.2rem; align-items: center;
  border: 1px solid rgba(239, 33, 140, 0.35); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239, 33, 140, 0.06), var(--black-2));
  padding: 1.5rem 1.8rem;
}
.agent-avatar {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--black-3); border: 1px solid var(--gray-2);
  font-family: var(--mono); font-size: 1.4rem; color: var(--magenta-light);
}
.agent-name { color: var(--white); font-size: 1.15rem; font-weight: 600; }
.agent-status {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.74rem; color: var(--gray-4); margin-top: 0.25rem;
}
.agent-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
@media (max-width: 640px) { .agent-card { grid-template-columns: 56px 1fr; } .agent-card .btn-mag { grid-column: 1 / -1; justify-content: center; } }

/* ---- ROI calculator ---- */
.roi {
  border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--black-2), var(--black));
  padding: 2.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}
.roi-field { margin-bottom: 1.6rem; }
.roi-field label { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--gray-5); margin-bottom: 0.6rem; }
.roi-field label output { font-family: var(--mono); color: var(--white); }
.roi input[type="range"] {
  width: 100%; accent-color: var(--accent); height: 4px; cursor: pointer;
}
.roi-result { border-left: 1px solid var(--gray-1); padding-left: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.roi-num { font-family: var(--mono); font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--white); }
.roi-num .u { color: var(--magenta-light); }
.roi-note { font-size: 0.8rem; color: var(--gray-3); margin-top: 1rem; }
@media (max-width: 860px) { .roi { grid-template-columns: 1fr; } .roi-result { border-left: none; padding-left: 0; border-top: 1px solid var(--gray-1); padding-top: 1.8rem; } }

/* ============================================================
   WORKFLOW ENGINE – guitar-hero multi-branch flow (home)
   Vertical n8n-style graph on a perspective-tilted plane;
   blocks fall in from the far top, land, execute top-down
   through parallel branches, then flow out past the viewer.
   Fixed 1200×560 design stage, scaled to container by JS.
   ============================================================ */
/* Embedded inside the "Deploy your agents" diagram view — fills the box,
   JS scales the fixed 1200×560 stage to fit and centers it. */
.wf {
  position: absolute; inset: 0;
  background: transparent;
  overflow: hidden;
}

.wf-canvas {
  position: absolute; inset: 0; overflow: hidden;
}
/* depth fog removed – workflow blends with page background */
.wf-canvas::after { display: none; }
.wf-stage {
  position: absolute; top: 0; left: 0;
  width: 960px; height: 800px;
  transform-origin: 0 0;
  perspective: 1200px;
}
/* the tilted "highway" plane – dotted fretboard fading into the distance */
.wf-scene {
  position: absolute; inset: 0;
  transform: rotateX(22deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.5px);
  background-size: 30px 30px;
}

/* connectors */
.wf-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wf-link {
  fill: none; stroke: var(--gray-3); stroke-width: 1.5;
  stroke-dasharray: 5 6;
  opacity: 0; transition: opacity 0.45s ease;
  animation: wf-dash 1.1s linear infinite;
}
.wf-link.is-on { opacity: 0.8; }
@keyframes wf-dash { to { stroke-dashoffset: -44; } }

/* nodes – waiting far up the highway, fall in guitar-hero style */
.wf-node {
  position: absolute; width: 250px; height: 64px;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0 0.9rem;
  border: 1px solid var(--gray-2); border-radius: 12px;
  background: linear-gradient(180deg, var(--black-3), var(--black-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.45);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translate3d(0, -460px, 30px);
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}
/* extruded back face – the "kinda 3D" body of the block */
.wf-node::before {
  content: ''; position: absolute; inset: 0; border-radius: 12px;
  background: #07070b;
  transform: translateZ(-12px);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.6);
}
.wf-node.is-in { opacity: 1; transform: translate3d(0, 0, 12px); }
/* transient state used only by wfScale() to measure resting node bounds
   without waiting for the entrance animation (see main.js) */
.wf.is-measuring .wf-node {
  transition: none !important;
  opacity: 1 !important;
  transform: translate3d(0, 0, 12px) !important;
}
.wf-node.is-out {
  opacity: 0;
  transform: translate3d(0, 500px, 100px);
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.75, 0.2), opacity 0.45s ease 0.12s;
}
.wf-node.is-run {
  border-color: rgba(62, 181, 242, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 34px rgba(27, 160, 234, 0.18), 0 14px 34px rgba(0, 0, 0, 0.45);
}
.wf-node.mag.is-run {
  border-color: rgba(239, 33, 140, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 34px var(--magenta-glow), 0 14px 34px rgba(0, 0, 0, 0.45);
}
/* AI agent node – reads as the "brain" of the flow, faint accent even at rest */
.wf-node.ai { border-color: rgba(62, 181, 242, 0.4); }
.wf-node.ai .wf-icon {
  background: linear-gradient(150deg, rgba(62, 181, 242, 0.25), rgba(27, 160, 234, 0.1));
  color: var(--accent-light);
}
.wf-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(27, 160, 234, 0.1); color: var(--accent-light);
  font-family: var(--mono); font-size: 0.95rem;
}
.wf-icon svg { width: 16px; height: 16px; }
.wf-node.mag .wf-icon { background: rgba(239, 33, 140, 0.1); color: var(--magenta-light); }
.wf-body { display: flex; flex-direction: column; min-width: 0; }
.wf-title { color: var(--white); font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.wf-sub {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--gray-3);
  white-space: nowrap; margin-top: 2px;
}
.wf-state { position: relative; margin-left: auto; flex: 0 0 18px; width: 18px; height: 18px; }
.wf-spin {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(62, 181, 242, 0.22); border-top-color: var(--accent-light);
  opacity: 0; transition: opacity 0.2s ease;
}
.wf-node.is-run .wf-spin { opacity: 1; animation: wf-spin 0.7s linear infinite; }
.wf-node.mag .wf-spin { border-color: rgba(239, 33, 140, 0.22); border-top-color: var(--magenta-light); }
@keyframes wf-spin { to { transform: rotate(360deg); } }
.wf-check {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--live); color: #03150e;
  font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wf-node.is-done .wf-check { transform: scale(1); }
/* ports – vertical flow: in on top edge, out on bottom edge */
.wf-port {
  position: absolute; left: 50%; margin-left: -4.5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--black); border: 1px solid var(--gray-3);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.wf-port.in { top: -5px; }
.wf-port.out { bottom: -5px; }
.wf-node.is-done .wf-port.out {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 10px rgba(27, 160, 234, 0.6);
}
.wf-node.mag.is-done .wf-port.out {
  background: var(--magenta); border-color: var(--magenta);
  box-shadow: 0 0 10px rgba(239, 33, 140, 0.6);
}

/* ---- forms ---- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; color: var(--gray-5); margin-bottom: 0.45rem; }
.field .req { color: var(--magenta-light); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black-3); color: var(--white);
  border: 1px solid var(--gray-2); border-radius: 10px;
  font-family: var(--sans); font-size: 0.95rem;
  padding: 0.75rem 0.9rem; outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.8rem; color: var(--gray-4); margin: 1.2rem 0 1.6rem; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.form-success {
  display: none; text-align: center; padding: 3rem 1rem;
}
.form-success.show { display: block; }
.fs-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1.2rem;
  background: rgba(239, 33, 140, 0.12);
  border: 1px solid rgba(239, 33, 140, 0.4);
  color: var(--magenta-light); font-size: 1.4rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---- journey timeline ---- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.journey-step { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--gray-2); }
.journey-step::before {
  content: ''; position: absolute; top: -4px; left: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.journey-step .wk { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.journey-step h3 { font-size: 1.02rem; margin: 0.6rem 0 0.4rem; }
.journey-step p { font-size: 0.88rem; color: var(--gray-4); margin: 0; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--gray-1); background: var(--black-2); margin-top: 4rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 3.5rem 2rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-3); margin: 0 0 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-grid a { color: var(--gray-4); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid var(--gray-1); padding-top: 1.6rem;
  font-size: 0.78rem; color: var(--gray-3);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---- cookie consent system ---- */

/* backdrop overlay */
.cc-overlay {
  position: fixed; inset: 0; z-index: 299;
  background: rgba(5,5,8,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cc-overlay.show { opacity: 1; pointer-events: auto; }

/* banner (first layer) */
.cookie-banner {
  position: fixed; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; z-index: 300;
  max-width: 520px; margin: 0 auto;
  display: none; flex-direction: column; gap: 0.85rem;
  background: var(--black-3); border: 1px solid var(--gray-2); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; font-size: 0.83rem; color: var(--gray-4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
}
.cookie-banner.show { display: flex; transform: translateY(0); opacity: 1; }
.cookie-banner p { margin: 0; line-height: 1.55; }
.cookie-banner p a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner .cc-actions {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.cookie-banner .cc-actions button { font-size: 0.78rem; padding: 0.5rem 0.95rem; flex: 1; min-width: 0; }
.cookie-banner .cc-manage {
  background: none; border: none; color: var(--gray-3); font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; padding: 0.2rem 0; transition: color 0.2s;
}
.cookie-banner .cc-manage:hover { color: var(--gray-5); }

/* preference center (second layer) */
.cc-prefs {
  position: fixed; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; z-index: 301;
  max-width: 480px; margin: 0 auto;
  display: none; flex-direction: column;
  background: var(--black-3); border: 1px solid var(--gray-2); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  max-height: calc(100dvh - 2.4rem); overflow-y: auto;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), opacity 0.35s ease;
}
.cc-prefs.show { display: flex; transform: translateY(0); opacity: 1; }
.cc-prefs-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.4rem 0.7rem; border-bottom: 1px solid var(--gray-1);
}
.cc-prefs-head h3 {
  font-family: var(--serif); font-size: 1.05rem; font-weight: 400;
  color: var(--white); margin: 0;
}
.cc-prefs-close {
  background: none; border: none; color: var(--gray-3); font-size: 1.1rem;
  cursor: pointer; padding: 0.2rem; line-height: 1; transition: color 0.2s;
}
.cc-prefs-close:hover { color: var(--white); }
.cc-prefs-body { padding: 0.6rem 1.4rem 1rem; }
.cc-cat {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-1);
}
.cc-cat:last-child { border-bottom: none; }
.cc-cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.cc-cat-label {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--white);
}
.cc-cat-desc {
  font-size: 0.76rem; color: var(--gray-4); line-height: 1.5;
  margin: 0.3rem 0 0; max-width: 85%;
}
.cc-cat-always {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--live); white-space: nowrap;
}

/* toggle switch */
.cc-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-toggle-track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--gray-2); border-radius: 10px;
  transition: background 0.25s ease;
}
.cc-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gray-4);
  transition: transform 0.25s ease, background 0.25s ease;
}
.cc-toggle input:checked + .cc-toggle-track { background: var(--accent); }
.cc-toggle input:checked + .cc-toggle-track::after {
  transform: translateX(16px); background: #fff;
}
.cc-toggle input:focus-visible + .cc-toggle-track {
  outline: 2px solid var(--accent-light); outline-offset: 2px;
}

/* footer actions */
.cc-prefs-foot {
  display: flex; gap: 0.5rem; padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--gray-1);
}
.cc-prefs-foot button { flex: 1; font-size: 0.78rem; padding: 0.5rem 0.8rem; }

/* floating re-open widget */
.cc-float {
  position: fixed; bottom: 1rem; left: 1rem; z-index: 198;
  width: 36px; height: 36px;
  display: none; align-items: center; justify-content: center;
  background: var(--black-3); border: 1px solid var(--gray-2); border-radius: 50%;
  color: var(--gray-3); font-size: 0.85rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.cc-float.show { display: flex; }
.cc-float:hover { color: var(--white); border-color: var(--gray-3); transform: scale(1.08); }
.cc-float svg { width: 16px; height: 16px; }

/* mobile tweaks */
@media (max-width: 560px) {
  .cookie-banner { left: 0.7rem; right: 0.7rem; bottom: 0.7rem; padding: 1rem; }
  .cookie-banner .cc-actions { flex-direction: column; }
  .cookie-banner .cc-actions button { flex: unset; }
  .cc-prefs { left: 0.7rem; right: 0.7rem; bottom: 0.7rem; max-height: calc(100dvh - 1.4rem); }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cc-prefs, .cc-overlay { transition: none; }
  .cc-toggle-track, .cc-toggle-track::after { transition: none; }
}

/* ============================================================
   CORE FUNCTIONALITIES – interactive tabs + switchable UI mockups
   Ported from Cargoful_branded_ITENG_2.html
   ============================================================ */
.features {
  padding: 6.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--gray-1);
}
.features-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}
.features-head .eyebrow { justify-content: center; }
.features-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  margin-bottom: 1.2rem;
}
.features-head p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gray-5);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}
.features-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.features-list { display: flex; flex-direction: column; gap: 0; }
.feat {
  padding: 1.5rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  border: 1px solid transparent;
  position: relative;
}
.feat.active {
  background: linear-gradient(135deg, rgba(27,160,234,0.08), rgba(27,160,234,0.02));
  border-color: rgba(27,160,234,0.25);
  box-shadow: 0 0 32px rgba(27,160,234,0.08);
}
.feat:not(.active):hover { background: rgba(255,255,255,0.02); }
.feat-name {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.feat:not(.active) .feat-name { color: var(--gray-5); }
.feat-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray-5);
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.feat.active .feat-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.25rem;
}

/* Diagram container */
.feat-diagram {
  position: relative;
  aspect-ratio: 1.1/1;
  background: radial-gradient(ellipse at center, rgba(27,160,234,0.06), transparent 70%),
              linear-gradient(135deg, #0a1220, #050508);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.feat-diagram::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(27,160,234,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,160,234,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
/* Floating mode (Deploy your agents): drop the window chrome so the
   workflow appears to float directly on the page background. */
.feat-diagram.is-floating {
  background: none;
  border-color: transparent;
  overflow: visible;
}
.feat-diagram.is-floating::before { display: none; }
.feat-diagram.is-floating .wf,
.feat-diagram.is-floating .wf-canvas { overflow: visible; }

/* Switchable views */
.diagram-view {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}
.diagram-view.active {
  opacity: 1;
  visibility: visible;
}

/* Connection lines SVG (view 1) */
.feat-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Node cards (view 1: deploy your agents) */
.node-card {
  position: absolute;
  background: rgba(20,22,30,0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  min-width: 130px;
  transition: transform 0.3s, border-color 0.3s;
  z-index: 2;
}
.node-card.accent {
  border-color: rgba(62,181,242,0.4);
  box-shadow: 0 4px 20px rgba(27,160,234,0.2);
}
.node-card .nc-title {
  font-weight: 600;
  color: var(--white);
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem;
}
.node-card .nc-title svg { width: 11px; height: 11px; color: var(--accent-light); }
.node-card .nc-sub {
  font-size: 0.65rem;
  color: var(--gray-5);
  font-weight: 300;
  margin-top: 0.25rem;
  font-family: var(--mono);
}
.nc-badge {
  display: inline-block; margin-top: 0.35rem;
  font-family: var(--mono); font-size: 0.55rem; font-weight: 600;
  color: var(--accent-light); letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem; border-radius: 4px;
  background: rgba(62,181,242,0.1); border: 1px solid rgba(62,181,242,0.2);
}
.nc-badge-ok { color: var(--live); background: rgba(46,230,166,0.1); border-color: rgba(46,230,166,0.2); }
.nc-select { top: 30%; left: 35%; min-width: 180px; }
.nc-select .search {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.4rem;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  margin: 0.5rem 0 0.3rem;
  color: var(--gray-4);
}
.nc-select .action-line {
  display: flex; gap: 0.35rem;
  padding: 0.22rem 0;
  font-size: 0.65rem;
  color: var(--gray-5);
  align-items: center;
}
.nc-select .action-line.hl {
  color: var(--accent-light);
  background: rgba(62,181,242,0.06);
  border-radius: 3px;
  padding: 0.22rem 0.3rem;
  margin: 0 -0.3rem;
}
.nc-select .action-line::before {
  content: ''; width: 3px; height: 3px; background: var(--accent-light); border-radius: 50%;
}
.nc-filter { top: 15%; left: 6%; }
.nc-optimize { top: 5%; right: 6%; }
.nc-split { bottom: 8%; left: 14%; }
.nc-email { bottom: 20%; right: 4%; }
.nc-travel { bottom: 35%; right: 18%; }

/* Shared glass-card base for UI mockups (views 2-4) */
.gc {
  position: absolute;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  color: white;
  font-size: 0.7rem;
  z-index: 3;
}
.gc-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-bottom: none;
}
.gc-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: none;
  color: #8eaaff;
  display: flex; align-items: center; justify-content: center;
}
.gc-icon svg { width: 11px; height: 11px; }
.gc-title-text { font-weight: 600; font-size: 0.78rem; }
.gc-search {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  padding: 0.4rem 0.8rem;
  margin: 0.4rem;
  background: none;
  border-radius: 4px;
}
.gc-mini-header {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.6rem 0.8rem;
  border-bottom: none;
  background: none;
  border-radius: 12px 12px 0 0;
}

/* Map backgrounds — backgroundless, elements float freely */
.map-bg {
  position: absolute; inset: 0;
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
  background: none;
}
.map-bg svg { width: 100%; height: 100%; display: block; }

/* Real GL maps (MapLibre) inside the feature widgets.
   width/height 100% (not just inset) because maplibre-gl.css loads later
   and resets .maplibregl-map to position:relative. */
.map-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-gl canvas { outline: none; }
/* fade the basemap into the page background at the edges. The mask must sit
   on the canvas itself: .maplibregl-canvas-container has zero layout height,
   so a mask there has no paint area and blanks the whole map. Masking the
   canvas keeps markers and the OSM/Carto attribution fully visible. */
.map-gl .maplibregl-canvas {
  -webkit-mask-image: radial-gradient(130% 130% at 50% 45%, #000 58%, transparent 99%);
  mask-image: radial-gradient(130% 130% at 50% 45%, #000 58%, transparent 99%);
}
/* attribution: maplibre-gl.css loads after main.css, so these overrides need
   the extra .maplibregl-ctrl class to outrank its white default background */
.map-gl .maplibregl-ctrl.maplibregl-ctrl-attrib,
.map-gl .maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(10,14,22,0.55);
  border-radius: 6px;
  font-size: 9px;
}
.map-gl .maplibregl-ctrl-attrib a,
.map-gl .maplibregl-ctrl.maplibregl-ctrl-attrib a { color: rgba(255,255,255,0.45); }
.map-gl .maplibregl-ctrl-attrib-button { filter: invert(1) opacity(0.5); }

/* Fleet map markers */
.flt-truck {
  width: 21px; height: 21px; border-radius: 50%;
  background: #3eb5f2; border: 2px solid rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 14px rgba(62,181,242,0.75), 0 2px 8px rgba(0,0,0,0.5);
  position: relative;
}
.flt-truck span { font: 700 8.5px/1 var(--sans); color: #fff; letter-spacing: 0.02em; }
.flt-truck::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1.5px solid rgba(62,181,242,0.6);
  animation: fltPulse 2.4s ease-out infinite;
}
.flt-truck.flt-late { background: #f0a030; box-shadow: 0 0 14px rgba(240,160,48,0.75), 0 2px 8px rgba(0,0,0,0.5); }
.flt-truck.flt-late::before { border-color: rgba(240,160,48,0.6); }
@keyframes fltPulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.flt-stop {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(150,162,182,0.85); border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
  transition: background 0.35s, box-shadow 0.35s;
}
.flt-stop.flt-done { background: #2ee6a6; box-shadow: 0 0 9px rgba(46,230,166,0.85); }
.flt-hub { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.flt-hub i {
  width: 22px; height: 22px; border-radius: 5px;
  background: rgba(62,181,242,0.3); border: 2px solid #3eb5f2;
  box-shadow: 0 0 22px rgba(62,181,242,0.6);
  position: relative;
}
.flt-hub i::after {
  content: ''; position: absolute; inset: -6px; border-radius: 9px;
  border: 1.5px solid rgba(62,181,242,0.5);
  animation: fltPulse 2.8s ease-out infinite;
}
.flt-hub b {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  background: rgba(10,14,22,0.55); padding: 1px 5px; border-radius: 3px;
}
/* prefers-reduced-motion disabled — fleet animations always run */

/* View 2: zone design */
.gc-zones { top: 36%; left: 6%; width: 56%; padding-bottom: 0.5rem; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 0.66rem; }
.gc-table th {
  text-align: left; color: rgba(255,255,255,0.5); font-weight: 400;
  padding: 0.4rem 0.8rem 0.3rem; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gc-table td {
  padding: 0.35rem 0.8rem; color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.gc-table td:first-child { display: flex; align-items: center; gap: 0.35rem; }
.gc-table tr.z-highlight td { background: rgba(77,127,255,0.12); }
.z-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.gc-count {
  margin-left: auto; font-family: var(--mono); font-size: 0.55rem;
  color: rgba(255,255,255,0.4); letter-spacing: 0.04em;
}
.gc-zone-info { top: 4%; right: 2%; width: 36%; padding-bottom: 0.5rem; }
.zi-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0.8rem; font-size: 0.65rem;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.zi-row:last-child { border-bottom: none; }
.zi-row strong { color: white; font-weight: 600; font-size: 0.75rem; }
.zi-efficiency {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0.8rem; margin-top: 0.1rem;
  background: rgba(140,120,230,0.08); border-radius: 0 0 12px 12px;
}
.zi-eff-label { font-size: 0.6rem; color: rgba(255,255,255,0.5); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.zi-eff-val { font-size: 0.85rem; font-weight: 700; color: #a395e8; }

.gc-route-mini {
  bottom: 4%; right: 3%; width: 42%; height: 30%;
  padding: 0; overflow: hidden; position: absolute;
}
.gc-route-mini svg { width: 100%; height: 100%; display: block; border-radius: 12px; }
.route-ctrls {
  position: absolute; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.route-ctrls div {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: white;
}

/* View 3: control tower */
.ct-head { top: 3%; left: 4%; }
.ct-head .gc-header { padding: 0.4rem 0; gap: 0.5rem; }
.ct-head .tower-live { margin-left: 0.5rem; }

/* Pop-up notification toasts (top right) */
.ct-toasts {
  position: absolute; top: 4%; right: 3%;
  width: 58%; max-width: 300px;
  display: flex; flex-direction: column; gap: 0.4rem;
  z-index: 3; pointer-events: none;
}
.ct-toast {
  display: flex; align-items: flex-start; gap: 0.45rem;
  padding: 0.42rem 0.6rem;
  background: rgba(10,14,22,0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 9px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  font-size: 0.62rem; color: rgba(255,255,255,0.85); line-height: 1.35;
  opacity: 0;
}
.ct-toast .sf-ts { min-width: auto; }
.ct-toast .sf-badge { margin-left: 0.1rem; }
.ct-toast-body { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; }
.diagram-view[data-id="execution"].active .ct-toast { animation: ctToast 12s ease-in-out infinite; }
.diagram-view[data-id="execution"].active .ct-toast:nth-child(1) { animation-delay: 0.4s; }
.diagram-view[data-id="execution"].active .ct-toast:nth-child(2) { animation-delay: 3.5s; }
@keyframes ctToast {
  0% { opacity: 0; transform: translateY(8px) scale(0.97); }
  3% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(0) scale(1); }
  58% { opacity: 0; transform: translateY(-6px) scale(0.98); }
  100% { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
/* prefers-reduced-motion disabled — toast animations always run */

.gc-tower { top: 22%; left: 4%; width: 56%; padding-bottom: 0.4rem; }
.tower-live {
  margin-left: auto; display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--live);
}
.tower-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 8px var(--live);
  animation: pulseLive 1.8s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 4px rgba(46,230,166,0.4); }
  50% { box-shadow: 0 0 12px rgba(46,230,166,0.9); }
}
.tower-head {
  display: grid; grid-template-columns: 14px 1fr 1fr 1.8fr;
  gap: 0.3rem; padding: 0.45rem 0.8rem 0.3rem;
  font-size: 0.58rem; color: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--mono);
}
.tower-row {
  display: grid; grid-template-columns: 14px 1fr 1fr 1.8fr;
  gap: 0.3rem; align-items: center;
  padding: 0.32rem 0.8rem; font-size: 0.66rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.tower-row.tr-active {
  background: rgba(62,181,242,0.06);
}
.td-ontime { background: var(--live) !important; box-shadow: 0 0 4px rgba(46,230,166,0.5); }
.td-late { background: #f0a030 !important; box-shadow: 0 0 4px rgba(240,160,48,0.5); }
.td-waiting { background: transparent !important; border: 1px solid rgba(255,255,255,0.2) !important; }
.tl-truck { color: rgba(255,255,255,0.7); font-family: var(--mono); font-size: 0.6rem; }
.features .bar,
.app-showcase .bar {
  height: 10px; background: rgba(255,255,255,0.06);
  border-radius: 100px; position: relative; overflow: hidden;
}
.features .bar-fill,
.app-showcase .bar-fill {
  height: 100%; border-radius: 100px; color: white;
  font-size: 0.5rem; font-weight: 600;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 6px;
}
.bar-anim { width: var(--bar-w, 0%); animation: barGrow 1.2s ease-out forwards; }
@keyframes barGrow { from { width: 0%; } to { width: var(--bar-w); } }

.gc-dest { top: 4%; right: 3%; width: 38%; padding-bottom: 0.3rem; }
.dest-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0.8rem; font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 0.5rem;
}
.dest-row:last-child { border-bottom: none; }
.dest-row strong { color: white; font-weight: 600; font-size: 0.72rem; }
.dest-status {
  color: var(--live); font-weight: 500; font-size: 0.65rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.dest-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); display: inline-block;
  box-shadow: 0 0 6px var(--live);
}
.dest-eta-bar {
  margin: 0.5rem 0.8rem 0.6rem; height: 3px;
  background: rgba(255,255,255,0.08); border-radius: 10px;
  overflow: hidden;
}
.dest-eta-fill {
  width: 66%; height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--live), #3eb5f2);
  animation: etaPulse 2s ease-in-out infinite;
}
@keyframes etaPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.gc-chips {
  position: absolute; bottom: 6%; right: 3%;
  display: flex; flex-direction: column; gap: 0.35rem;
  z-index: 3;
}
.features .chip,
.app-showcase .chip {
  padding: 0.4rem 0.7rem; border-radius: 100px; font-size: 0.62rem;
  display: flex; align-items: center; gap: 0.35rem;
  background: none; backdrop-filter: none;
  border: none; color: rgba(255,255,255,0.85);
  font-family: var(--mono); letter-spacing: 0.02em;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cd-ok { background: var(--live); box-shadow: 0 0 5px rgba(46,230,166,0.5); }
.cd-late { background: #f0a030; box-shadow: 0 0 5px rgba(240,160,48,0.4); }
.cd-wait { background: transparent; border: 1px solid rgba(255,255,255,0.3); }
.chip-count {
  margin-left: auto; font-weight: 700; font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
}
.features .chip-ok,
.app-showcase .chip-ok { color: var(--live); }

/* View 4: Dave / dashboard */
.gc-ring {
  top: 3%; left: 8%; width: 28%; aspect-ratio: 1/1;
  background: transparent; border: none; box-shadow: none;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.gc-ring svg { width: 100%; height: 100%; }
.ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.ring-num {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500; line-height: 1;
}
.ring-sub {
  font-size: 0.62rem; color: rgba(255,255,255,0.6);
  margin-top: 0.2rem; letter-spacing: 0.05em;
}

.gc-km { top: 4%; right: 3%; width: 42%; padding: 0.7rem 0.8rem 0.6rem; }
.km-head { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; }
.km-label { font-size: 0.65rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.km-num {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  line-height: 1; margin: 0.2rem 0;
}
.km-sub { font-size: 0.58rem; color: var(--live); margin-bottom: 0.3rem; }
.km-chart { width: 100%; height: 30px; display: block; margin-bottom: 0.2rem; }
.km-months {
  display: flex; justify-content: space-between;
  font-size: 0.55rem; color: rgba(255,255,255,0.4); font-family: var(--mono);
}

.gc-chat { bottom: 5%; left: 10%; width: 62%; padding: 0; }
.gc-chat-dave {
  --border-angle: 0deg;
  border: none;
  box-shadow: none;
  background: rgba(13,13,18,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  overflow: hidden;
}
/* Animated border that draws around the card */
.gc-chat-dave::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0deg,
    rgba(27,160,234,0.5) 0deg,
    rgba(27,160,234,0.15) 60deg,
    transparent 120deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
/* Active state: draw border + show content */
.diagram-view.active .gc-chat-dave::before {
  opacity: 1;
  animation: daveBorderDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes daveBorderDraw {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}
/* After the draw completes, keep a subtle static border glow */
.diagram-view.active .gc-chat-dave::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(27,160,234,0.15);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: daveBorderSettle 0.4s 1.2s ease forwards;
}
@keyframes daveBorderSettle {
  to { opacity: 1; }
}
/* Inner content fades in after border finishes drawing */
.gc-chat-dave > * {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}
.diagram-view.active .gc-chat-dave > * {
  animation: daveContentReveal 0.5s 0.8s ease forwards;
}
@keyframes daveContentReveal {
  to { opacity: 1; }
}
.chat-head {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg,#4d7fff,#8b6de8);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-family: var(--mono); color: var(--white); font-weight: 700;
}
.dave-avatar {
  background: linear-gradient(135deg, var(--accent), #4dc4ff);
  box-shadow: 0 0 10px rgba(27,160,234,0.3);
}
.chat-name { font-weight: 600; font-size: 0.72rem; }
.chat-role { font-weight: 400; color: rgba(255,255,255,0.5); font-size: 0.62rem; }
.chat-status {
  font-size: 0.58rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 0.25rem;
}
.chat-dot {
  width: 6px; height: 6px; background: #3eb5f2;
  border-radius: 50%; box-shadow: 0 0 6px #3eb5f2;
}
.dave-dot {
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: pulseLive 1.8s ease-in-out infinite;
}
.chat-actions {
  margin-left: auto; display: flex; gap: 0.35rem;
}
.chat-btn {
  width: 22px; height: 22px; border-radius: 5px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chat-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.chat-body { max-height: 200px; overflow: hidden; }
.chat-msg {
  margin: 0.35rem 0.7rem; padding: 0.5rem 0.7rem;
  font-size: 0.66rem; line-height: 1.4;
  border-radius: 10px; max-width: 78%;
}
.chat-ai {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 3px;
}
.gc-chat-dave .chat-ai { background: rgba(27,160,234,0.04); }
.chat-user {
  background: linear-gradient(135deg, var(--accent), #0d7cc4);
  color: white; margin-left: auto; align-self: flex-end;
  border-bottom-right-radius: 3px;
}
.chat-chart { width: 100%; height: 30px; margin-top: 0.35rem; display: block; }
.chat-typing {
  display: flex; gap: 4px; padding: 0.4rem 0.7rem; margin: 0 0.7rem 0.4rem;
}
.typing-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(27,160,234,0.5);
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-input-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.45rem 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: none;
  border-radius: 0 0 16px 16px;
}
.chat-input-placeholder {
  font-size: 0.62rem; color: rgba(255,255,255,0.3); font-family: var(--mono);
}
.chat-send {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(27,160,234,0.3);
}

/* ============ STORY FEED (shared across views 2, 3, 4) ============ */

/* Story log card — used for views 2 & 3 */
.gc-story-log { top: 4%; left: 4%; width: 58%; max-height: 88%; overflow: hidden; }
.story-feed { padding: 0.3rem 0; max-height: 320px; overflow: hidden; }

/* Individual feed lines */
.sf-line {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.38rem 0.8rem;
  font-size: 0.64rem; color: rgba(255,255,255,0.8);
  line-height: 1.4;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sf-line.sf-visible { opacity: 1; transform: translateY(0); }

/* Timestamp */
.sf-ts {
  font-family: var(--mono); font-size: 0.55rem; color: rgba(255,255,255,0.35);
  white-space: nowrap; min-width: 50px; padding-top: 1px;
  letter-spacing: 0.03em;
}

/* Status icons */
.sf-icon {
  width: 14px; height: 14px; flex-shrink: 0;
  border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.sf-i-zone { background: rgba(140,120,230,0.3); box-shadow: 0 0 6px rgba(140,120,230,0.3); }
.sf-i-zone::after { content: '◆'; font-size: 6px; color: #a395e8; }
.sf-i-ok { background: rgba(46,230,166,0.2); box-shadow: 0 0 6px rgba(46,230,166,0.2); }
.sf-i-ok::after { content: '✓'; font-size: 7px; color: #2ee6a6; font-weight: 700; }
.sf-i-add { background: rgba(62,181,242,0.25); box-shadow: 0 0 8px rgba(62,181,242,0.2); }
.sf-i-add::after { content: '+'; font-size: 9px; color: #3eb5f2; font-weight: 700; line-height: 1; }
.sf-i-calc { background: rgba(255,255,255,0.08); }
.sf-i-calc::after { content: '⟳'; font-size: 8px; color: rgba(255,255,255,0.5); animation: sfSpin 1.5s linear infinite; }
@keyframes sfSpin { to { transform: rotate(360deg); } }
.sf-i-truck { background: rgba(62,181,242,0.2); }
.sf-i-truck::after { content: '⬤'; font-size: 5px; color: #3eb5f2; }
.sf-i-warn { background: rgba(240,160,48,0.25); box-shadow: 0 0 8px rgba(240,160,48,0.2); }
.sf-i-warn::after { content: '!'; font-size: 8px; color: #f0a030; font-weight: 700; }
.sf-i-star { background: rgba(62,181,242,0.3); box-shadow: 0 0 10px rgba(62,181,242,0.25); }
.sf-i-star::after { content: '★'; font-size: 7px; color: #3eb5f2; }

/* Highlight text */
.sf-highlight { color: #f0a030; font-weight: 500; }
.sf-result .sf-highlight, .sf-result { color: #3eb5f2; }
.sf-result { font-weight: 500; }

/* Truck tags */
.sf-truck-tag {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 600;
  color: #3eb5f2; background: rgba(62,181,242,0.1);
  padding: 0.1rem 0.35rem; border-radius: 3px;
  white-space: nowrap;
}
.sf-truck-late { color: #f0a030; background: rgba(240,160,48,0.1); }

/* Status badges */
.sf-badge {
  font-family: var(--mono); font-size: 0.5rem; font-weight: 600;
  padding: 0.1rem 0.35rem; border-radius: 3px;
  margin-left: auto; white-space: nowrap;
}
.sf-badge-ok { color: #2ee6a6; background: rgba(46,230,166,0.1); }

/* ============ VIEW 2: NETWORK SIMULATION (redesigned) ============ */

.nw-overlay {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}
.nw-overlay > * { pointer-events: auto; }

/* Sim header */
.nw-header {
  position: absolute; top: 3%; left: 3.5%; z-index: 4;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nw-header.sf-visible { opacity: 1; transform: translateY(0); }
.nw-title {
  font-family: var(--serif); font-size: 1rem;
  color: white; font-weight: 400; letter-spacing: -0.01em;
}
.nw-meta {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--mono); font-size: 0.52rem;
  color: rgba(255,255,255,0.4); margin-top: 0.15rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.nw-live {
  display: flex; align-items: center; gap: 0.25rem;
  color: var(--live);
}
.nw-meta-sep { color: rgba(255,255,255,0.15); }

/* KPI stat cards */
.nw-stats {
  position: absolute; top: 16%; left: 3.5%; z-index: 4;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  width: 28%;
}
.nw-stat {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  background: rgba(10,15,30,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nw-stat.sf-visible { opacity: 1; transform: translateY(0); }
.nw-stat-label {
  display: block;
  font-family: var(--mono); font-size: 0.44rem;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 0.2rem;
}
.nw-stat-val {
  font-family: var(--mono); font-size: 0.95rem; font-weight: 700;
  color: white; letter-spacing: -0.02em;
}
.nw-stat-delta {
  font-family: var(--mono); font-size: 0.48rem; font-weight: 600;
  margin-left: 0.3rem; letter-spacing: 0.02em;
}
.nw-up { color: #2ee6a6; }
.nw-down { color: #3eb5f2; }

/* Zone list panel */
.nw-zone-list {
  position: absolute; top: 3%; right: 2%; z-index: 4;
  width: 28%; max-height: 85%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(10,15,30,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  opacity: 0; transform: translateX(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nw-zone-list.sf-visible { opacity: 1; transform: translateX(0); }
.nw-zl-head {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.65rem;
  font-family: var(--mono); font-size: 0.56rem; font-weight: 600;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nw-zl-count {
  margin-left: auto;
  font-size: 0.5rem; color: rgba(255,255,255,0.3);
}
.nw-zl-items { padding: 0.15rem 0; }
.nw-zl-row {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.58rem; color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.2s;
}
.nw-zl-row:last-child { border-bottom: none; }
.nw-zl-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.nw-zl-name {
  font-weight: 500; flex: 1; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.nw-zl-time {
  font-family: var(--mono); font-size: 0.5rem;
  color: rgba(255,255,255,0.35); white-space: nowrap;
}
.nw-zl-km {
  font-family: var(--mono); font-size: 0.5rem;
  color: rgba(255,255,255,0.3); white-space: nowrap;
  min-width: 32px; text-align: right;
}
.nw-zl-new {
  color: rgba(239,33,140,0.7);
  border-top: 1px solid rgba(239,33,140,0.1);
  margin-top: 0.1rem; padding-top: 0.4rem;
}
.nw-zl-new .nw-zl-name { font-weight: 600; }

/* Dave notification card */
.nw-dave-note {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%) translateY(8px);
  z-index: 5; width: 52%; max-width: 320px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(12,18,40,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.nw-dave-note.sf-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.nw-note-head {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--mono); font-size: 0.46rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 0.35rem;
}
.nw-note-body {
  font-size: 0.6rem; color: rgba(255,255,255,0.7);
  line-height: 1.5; margin-bottom: 0.45rem;
}
.nw-note-body strong { color: white; }
.nw-note-hl { color: #2ee6a6; }
.nw-note-actions {
  display: flex; gap: 0.4rem;
}
.nw-note-btn {
  font-family: var(--mono); font-size: 0.5rem; font-weight: 600;
  padding: 0.25rem 0.55rem; border-radius: 5px;
  cursor: pointer; transition: background 0.2s;
  letter-spacing: 0.02em;
}
.nw-note-dismiss {
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.nw-note-dismiss:hover { background: rgba(255,255,255,0.1); }
.nw-note-apply {
  color: white; background: var(--accent);
  border: 1px solid var(--accent);
}
.nw-note-apply:hover { background: var(--accent-light); }

/* Zone story SVG animation */
.sz { opacity: 0; transition: opacity 0.6s ease; }
.sz.sz-visible { opacity: 1; }
.sz-new.sz-visible {
  animation: szPulse 2s ease-in-out infinite;
}
@keyframes szPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Dave chat story mode (view 4) — full-width centered */
.gc-chat-story {
  position: absolute;
  top: 3%; left: 5%; right: 5%; bottom: 3%;
  width: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
}
.gc-chat-story .chat-body {
  max-height: none;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.3rem;
  scroll-behavior: smooth;
}
.gc-chat-story .chat-msg.sf-step,
.gc-chat-story .chat-typing.sf-step {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gc-chat-story .sf-step.sf-visible {
  opacity: 1; transform: translateY(0);
}
/* Hide typing dots once next message appears */
.gc-chat-story .chat-typing.sf-done { display: none; }

/* KPI row inside Dave answer */
.chat-kpi-row {
  display: flex; gap: 0.6rem; margin-top: 0.45rem;
  padding-top: 0.4rem; border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-kpi { display: flex; flex-direction: column; gap: 0.1rem; }
.chat-kpi-val {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: white;
}
.chat-kpi-label {
  font-size: 0.52rem; color: rgba(255,255,255,0.4);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---- Dave order tracking card ---- */
.dave-order-card { display: flex; flex-direction: column; gap: 0.5rem; }
.dave-order-head {
  display: flex; align-items: center; justify-content: space-between;
}
.dave-order-id {
  font-family: var(--mono); font-weight: 700; font-size: 0.7rem;
  color: white; letter-spacing: 0.02em;
}
.dave-order-badge {
  font-family: var(--mono); font-size: 0.52rem; font-weight: 600;
  color: var(--accent); background: rgba(27,160,234,0.12);
  padding: 0.15rem 0.45rem; border-radius: 100px;
  letter-spacing: 0.03em; text-transform: uppercase;
}
.dave-order-track {
  display: flex; align-items: center; gap: 0; padding: 0.2rem 0;
}
.dave-track-step {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.15); background: none;
  transition: all 0.3s;
}
.dave-track-step.done {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 6px rgba(27,160,234,0.3);
}
.dave-track-step.active {
  border-color: var(--accent); background: none;
  box-shadow: 0 0 8px rgba(27,160,234,0.2);
  animation: davePulseStep 2s ease-in-out infinite;
}
@keyframes davePulseStep {
  0%, 100% { box-shadow: 0 0 4px rgba(27,160,234,0.2); }
  50% { box-shadow: 0 0 10px rgba(27,160,234,0.5); }
}
.dave-track-line {
  flex: 1; height: 1.5px; background: rgba(255,255,255,0.1);
}
.dave-track-line.done { background: var(--accent); }
.dave-track-line.active {
  background: linear-gradient(90deg, var(--accent), rgba(27,160,234,0.2));
}
.dave-order-labels {
  display: flex; justify-content: space-between;
  font-size: 0.48rem; color: rgba(255,255,255,0.35);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.03em;
}
.dave-order-active { color: var(--accent); font-weight: 600; }
.dave-order-detail {
  display: flex; gap: 1rem;
  font-size: 0.56rem; color: rgba(255,255,255,0.5);
  font-family: var(--mono);
}
.dave-order-detail strong { color: white; }

/* ---- Dave weekly summary card ---- */
.dave-summary { display: flex; flex-direction: column; gap: 0.5rem; }
.dave-summary-title {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 600;
  color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em;
}
.dave-summary-kpis {
  display: flex; gap: 1rem;
}
.dave-kpi { display: flex; flex-direction: column; gap: 0.05rem; }
.dave-kpi-val {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: white;
}
.dave-kpi-label {
  font-size: 0.48rem; color: rgba(255,255,255,0.35);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.04em;
}
.dave-chart {
  width: 100%; height: 80px; display: block; margin-top: 0.1rem;
}
.dave-summary-note {
  font-size: 0.6rem; color: rgba(255,255,255,0.55); line-height: 1.45;
}

/* ---- Mobile feature chip (replaces full tab list on small screens) ---- */
.feat-mobile-chip {
  display: none; /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.fmc-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.01em;
  min-height: 1.3em;
  transition: opacity 0.3s ease;
}
.fmc-arrow {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.35);
  padding: 0.3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.fmc-arrow:hover { color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.06); }
.fmc-dots {
  display: flex; gap: 0.4rem; align-items: center;
}
.fmc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.fmc-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(27,160,234,0.5);
  transform: scale(1.25);
}

/* Features responsive — tablets & landscape phones */
@media (max-width: 900px) {
  .features { padding: 4rem 1.4rem; }
  .features-list { display: none; }
  .feat-mobile-chip { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.6rem; }
  .fmc-dots { width: 100%; justify-content: center; }
  .features-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feat-diagram { aspect-ratio: 1.2/1; }
  .node-card { transform: scale(0.75); transform-origin: left top; }
  .nc-badge { font-size: 0.5rem; padding: 0.1rem 0.3rem; }
  .tower-live { font-size: 0.5rem; }
  .chat-input-bar { padding: 0.35rem 0.6rem; }
  .chat-send { width: 16px; height: 16px; }
  .chat-btn { width: 18px; height: 18px; }
  .gc-count { font-size: 0.5rem; }
  .zi-efficiency { padding: 0.35rem 0.6rem; }
  .gc-story-log { width: 92%; left: 4%; }
  /* Execution: toasts + chips */
  .ct-toasts { width: 58%; right: 2%; }
  .ct-toast { font-size: 0.56rem; padding: 0.35rem 0.5rem; }
  .gc-chips { bottom: 4%; right: 2%; gap: 0.25rem; }
  .features .chip { padding: 0.3rem 0.55rem; font-size: 0.56rem; }
  /* Dave chat — scrollable on mobile so the full conversation fits */
  .gc-chat-story { left: 2%; right: 2%; top: 2%; bottom: 2%; }
  .gc-chat-story .chat-body {
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gc-chat-story .chat-body::-webkit-scrollbar { display: none; }
  .chat-msg { margin: 0.35rem 0.6rem; padding: 0.5rem 0.7rem; font-size: 0.72rem; max-width: 85%; }
  .dave-order-labels { font-size: 0.5rem; }
  .dave-order-detail { font-size: 0.6rem; gap: 0.7rem; }
  .dave-summary-kpis { gap: 0.8rem; }
  .dave-kpi-val { font-size: 0.88rem; }
  .dave-kpi-label { font-size: 0.5rem; }
  .dave-chart { height: 70px; }
  .dave-summary-note { font-size: 0.62rem; }
  /* Planning: stats + Dave note */
  .nw-stats { width: 42%; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .nw-stat { padding: 0.35rem 0.45rem; }
  .nw-stat-label { font-size: 0.4rem; }
  .nw-stat-val { font-size: 0.82rem; }
  .nw-stat-delta { font-size: 0.44rem; }
  .nw-zone-list { display: none; }
  .nw-dave-note { width: 72%; max-width: none; }
  .nw-note-body { font-size: 0.56rem; }
  .nw-note-btn { font-size: 0.46rem; padding: 0.2rem 0.45rem; }
  /* Workflow: nodes keep their 250×64 design size at every breakpoint —
     the stage layout + JS scaling handle sizing, so ports, blocks and
     connector lines always stay aligned. */
}

/* Features responsive — phones (portrait diagram box → JS switches the
   workflow to its narrow mobile stage layout) */
@media (max-width: 640px) {
  .feat-diagram { aspect-ratio: 0.66/1; }
}

/* Features responsive — phones (≤ 480px) */
@media (max-width: 480px) {
  .features { padding: 3rem 1rem; }
  .features-split { gap: 1.5rem; }
  .feat { padding: 1rem 1rem; }
  .feat-name { font-size: 0.95rem; }
  .feat-desc { font-size: 0.82rem; }
  .feat-diagram { aspect-ratio: 0.66/1; min-height: 380px; }
  /* Planning: full-width stats, bigger note */
  .nw-header { left: 3%; }
  .nw-title { font-size: 0.85rem; }
  .nw-meta { font-size: 0.46rem; }
  .nw-stats { width: 58%; left: 3%; gap: 0.3rem; }
  .nw-stat { white-space: nowrap; }
  .nw-stat { padding: 0.35rem 0.45rem; border-radius: 6px; }
  .nw-stat-label { font-size: 0.44rem; margin-bottom: 0.1rem; }
  .nw-stat-val { font-size: 0.84rem; }
  .nw-stat-delta { font-size: 0.48rem; margin-left: 0.2rem; }
  .nw-dave-note { width: 84%; bottom: 6%; padding: 0.55rem 0.65rem; }
  .nw-note-head { font-size: 0.5rem; margin-bottom: 0.3rem; }
  .nw-note-body { font-size: 0.62rem; line-height: 1.45; margin-bottom: 0.4rem; }
  .nw-note-btn { font-size: 0.52rem; padding: 0.22rem 0.5rem; }
  /* Execution: full-width toasts, bottom chips compact */
  .ct-head { left: 3%; }
  .ct-toasts { width: 66%; right: 2%; top: 3%; max-width: none; }
  .ct-toast { font-size: 0.58rem; padding: 0.35rem 0.5rem; gap: 0.35rem; border-radius: 7px; }
  .ct-toast .sf-ts { font-size: 0.48rem; }
  .gc-chips { bottom: 3%; right: 2%; }
  .features .chip { padding: 0.25rem 0.45rem; font-size: 0.5rem; gap: 0.25rem; }
  .chip-dot { width: 5px; height: 5px; }
  /* Dave chat: full-bleed card, desktop-or-larger type so it stays legible */
  .gc-chat-story { left: 1.5%; right: 1.5%; top: 1.5%; bottom: 1.5%; border-radius: 12px; }
  .chat-head { padding: 0.5rem 0.7rem; gap: 0.45rem; }
  .chat-avatar { width: 24px; height: 24px; font-size: 0.75rem; }
  .chat-name { font-size: 0.74rem; }
  .chat-status { font-size: 0.58rem; }
  .chat-msg { margin: 0.35rem 0.55rem; padding: 0.5rem 0.7rem; font-size: 0.74rem; max-width: 90%; border-radius: 9px; }
  .dave-order-card { gap: 0.5rem; }
  .dave-order-id { font-size: 0.76rem; }
  .dave-order-badge { font-size: 0.56rem; padding: 0.15rem 0.45rem; }
  .dave-track-step { width: 10px; height: 10px; }
  .dave-order-labels { font-size: 0.5rem; }
  .dave-order-detail { font-size: 0.62rem; gap: 0.7rem; }
  .dave-summary-title { font-size: 0.6rem; }
  .dave-summary-kpis { gap: 0.8rem; }
  .dave-kpi-val { font-size: 0.9rem; }
  .dave-kpi-label { font-size: 0.52rem; }
  .dave-chart { height: 72px; }
  .dave-summary-note { font-size: 0.64rem; }
  .chat-input-bar { padding: 0.4rem 0.6rem; }
  .chat-input-placeholder { font-size: 0.6rem; }
}

/* ---- reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---- responsive grids ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sec { padding: 4rem 1.4rem; }
  .hero { padding: calc(var(--nav-h) + 4rem) 1.4rem 3.5rem; }
  .hero--sub { padding-top: calc(var(--nav-h) + 4rem); }
}
@media (max-width: 700px) {
  .nav .btn-pri { display: none; }
}
@media (max-width: 480px) {
  .stats-band, .journey { grid-template-columns: 1fr; }
  .nav-logo img, .nav-logo svg { height: 18px; }
}

/* ============================================================
   CONTACT PAGE
   Full-page immersive layout: radial bg, grid overlay, animated
   network SVG, glass-morphism split card (intent router + form),
   location cards.
   ============================================================ */

.contact-wrap {
  position: relative;
  min-height: 0;
  padding: 0 2.5rem 4rem;
}

.contact-inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* header */
.contact-head {
  text-align: center;
  margin-bottom: 4rem;
  animation: contactFadeUp 1s ease both;
}
.contact-head .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}
@keyframes contactBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.contact-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}
.contact-head h1 em { font-style: normal; color: var(--accent-light); }
.contact-head .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--bone);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}
.contact-head .lead strong { color: var(--white); font-weight: 500; }

@keyframes contactFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* glass split card */
.main-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: linear-gradient(135deg, rgba(20,25,40,0.45), rgba(10,12,25,0.45));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: contactFadeUp 1s 0.15s ease both;
  max-width: 720px;
  margin: 0 auto;
}

/* intent selector (horizontal tabs) */
.intent-head {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray-4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}
.intent-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.intent-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  color: var(--gray-5);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.intent-tab:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.intent-tab:hover {
  border-color: rgba(62,181,242,0.3);
  background: rgba(27,160,234,0.04);
  color: var(--white);
}
.intent-tab.selected {
  border-color: rgba(62,181,242,0.5);
  background: rgba(27,160,234,0.08);
  color: var(--white);
  box-shadow: 0 0 20px rgba(27,160,234,0.1);
}
.intent-tab-icon {
  width: 20px; height: 20px;
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.6;
  transition: opacity 0.25s;
}
.intent-tab.selected .intent-tab-icon,
.intent-tab:hover .intent-tab-icon { opacity: 1; }
.intent-tab-icon svg { width: 16px; height: 16px; }
.intent-tab-label { line-height: 1; }

/* quick actions */
.quick-actions {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.qa-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gray-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.qa-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.qa-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-5);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.qa-item:hover { color: var(--white); }
.qa-item .qa-icon {
  width: 16px; height: 16px; color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.7;
}
.qa-item strong { color: var(--white); font-weight: 500; }

/* form */
.main-split form {
  display: grid;
  gap: 1.25rem;
}
.main-split .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.main-split .field { margin-bottom: 0; }
.main-split .field label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--gray-4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.main-split .field label .req { color: var(--accent-light); }
.main-split .field input,
.main-split .field textarea,
.main-split .field select {
  background: rgba(10,12,25,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  border-radius: 8px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.main-split .field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.main-split .field input:focus,
.main-split .field textarea:focus,
.main-split .field select:focus {
  outline: none;
  border-color: rgba(62,181,242,0.4);
  background: rgba(10,12,25,0.8);
}
.main-split .field input::placeholder,
.main-split .field textarea::placeholder {
  color: var(--gray-3);
}
.main-split .field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='%23b8b6b0' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.main-split .consent {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-5);
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem 0;
  margin: 0;
}
.main-split .consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  min-width: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(10,12,25,0.5);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: all 0.15s;
  padding: 0;
}
.main-split .consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.main-split .consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.main-split .consent a { color: var(--accent-light); text-decoration: none; }
.main-split .consent a:hover { text-decoration: underline; }

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  flex-wrap: wrap;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--accent);
  color: var(--black);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,160,234,0.4);
}
.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.submit-note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray-4);
  letter-spacing: 0.03em;
}
.submit-note .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  margin-right: 0.4rem;
  vertical-align: 1px;
  animation: contactBlink 2s infinite;
  box-shadow: 0 0 6px var(--accent-light);
}

/* form success state */
.contact-wrap .form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}
.contact-wrap .form-success.show { display: block; }
.contact-wrap form.submitted { display: none; }
.contact-wrap .fs-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(27,160,234,0.12);
  border: 1px solid rgba(62,181,242,0.35);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}
.contact-wrap .form-success h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.contact-wrap .form-success p {
  color: var(--gray-5);
  font-weight: 300;
  line-height: 1.5;
}

/* contact faq */
.contact-faq {
  max-width: 1300px;
  margin: 5rem auto 0;
  padding: 0 2.5rem;
  animation: contactFadeUp 1s 0.4s ease both;
}
.contact-faq .eyebrow { margin-bottom: 1rem; }
.contact-faq h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.contact-faq h2 em { font-style: normal; color: var(--accent-light); }

/* locations */
.locations {
  max-width: 1300px;
  margin: 5rem auto 0;
  position: relative;
  z-index: 5;
  animation: contactFadeUp 1s 0.3s ease both;
}
.locations-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.locations-head .eyebrow {
  justify-content: center;
  margin-bottom: 1rem;
}
.locations-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.locations-head h2 em { font-style: normal; color: var(--accent-light); }

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.loc-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20,25,40,0.5), rgba(10,12,25,0.5));
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: border-color 0.3s, transform 0.3s;
}
.loc-card:hover {
  border-color: rgba(27,160,234,0.3);
  transform: translateY(-3px);
}
.loc-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(27,160,234,0.1);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.loc-icon svg { width: 20px; height: 20px; }
.loc-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--accent-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.loc-address {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.loc-city {
  font-size: 0.85rem;
  color: var(--gray-5);
  font-weight: 300;
  margin-bottom: 1rem;
}
.loc-link {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.25s;
}
.loc-link:hover { gap: 0.6rem; }

/* contact responsive */
@media (max-width: 1024px) {
  .locations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .contact-wrap { padding: 0 1.25rem 3rem; }
  .main-split { padding: 2rem 1.25rem; }
  .main-split .form-row { grid-template-columns: 1fr; }
  .intent-row { gap: 0.4rem; }
  .intent-tab { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
  .intent-tab-icon { width: 16px; height: 16px; }
  .intent-tab-icon svg { width: 13px; height: 13px; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
  .qa-list { grid-template-columns: 1fr; }
}

/* ---- reduced motion ---- */
/* ---- Communication orbit widget ---- */
.comms-orbit {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.comms-center {
  position: relative; z-index: 2;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: rgba(239, 33, 140, 0.08);
  border: 1px solid rgba(239, 33, 140, 0.25);
  box-shadow: 0 0 60px rgba(239, 33, 140, 0.12);
}
.comms-logo { width: 60px; height: auto; filter: brightness(1.1); }

/* Dashed orbit tracks (pure CSS circles) */
.comms-track {
  position: absolute; border-radius: 50%;
  border: 1.2px dashed rgba(239, 33, 140, 0.25);
  pointer-events: none;
}
.comms-track-1 { width: 260px; height: 260px; }
.comms-track-2 { width: 380px; height: 380px; border-width: 1px; border-color: rgba(239, 33, 140, 0.15); }

/* Rotating ring containers */
.comms-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.comms-ring-1 {
  width: 260px; height: 260px;
  animation: comms-spin 30s linear infinite;
}
.comms-ring-2 {
  width: 380px; height: 380px;
  animation: comms-spin 45s linear infinite reverse;
}
@keyframes comms-spin { to { transform: rotate(360deg); } }

/* Each icon: positioned on the edge with rotate+translate, wrapped in a
   counter-spin span to stay upright while the ring rotates. */
.comms-icon {
  position: absolute; z-index: 3;
  left: 50%; top: 50%;
  margin: -22px 0 0 -22px;
  /* Position on circle: rotate to angle → translate out → counter-rotate to upright */
  transform: rotate(var(--a)) translateY(var(--r)) rotate(var(--na, 0deg));
}
.comms-icon-inner {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}
.comms-ring-1 .comms-icon { --r: -130px; }
.comms-ring-2 .comms-icon { --r: -190px; }
/* Counter-rotate inner to cancel the ring's continuous spin */
.comms-ring-1 .comms-icon-inner { animation: comms-unspin 30s linear infinite; }
.comms-ring-2 .comms-icon-inner { animation: comms-unspin 45s linear infinite reverse; }
@keyframes comms-unspin { to { transform: rotate(-360deg); } }
.comms-icon-inner svg { width: 20px; height: 20px; }
.comms-i1 .comms-icon-inner { color: #25d366; }
.comms-i5 .comms-icon-inner { color: #e01e5a; }

/* Communication orbit — responsive sizing */
@media (max-width: 900px) {
  .comms-center { width: 64px; height: 64px; border-radius: 16px; }
  .comms-logo { width: 46px; }
  .comms-track-1 { width: 200px; height: 200px; }
  .comms-track-2 { width: 300px; height: 300px; }
  .comms-ring-1 { width: 200px; height: 200px; }
  .comms-ring-2 { width: 300px; height: 300px; }
  .comms-ring-1 .comms-icon { --r: -100px; }
  .comms-ring-2 .comms-icon { --r: -150px; }
  .comms-icon { margin: -18px 0 0 -18px; }
  .comms-icon-inner { width: 36px; height: 36px; border-radius: 10px; }
  .comms-icon-inner svg { width: 17px; height: 17px; }
}
@media (max-width: 480px) {
  .comms-center { width: 56px; height: 56px; border-radius: 14px; }
  .comms-logo { width: 40px; }
  .comms-track-1 { width: 170px; height: 170px; }
  .comms-track-2 { width: 260px; height: 260px; }
  .comms-ring-1 { width: 170px; height: 170px; }
  .comms-ring-2 { width: 260px; height: 260px; }
  .comms-ring-1 .comms-icon { --r: -85px; }
  .comms-ring-2 .comms-icon { --r: -130px; }
  .comms-icon { margin: -16px 0 0 -16px; }
  .comms-icon-inner { width: 32px; height: 32px; border-radius: 9px; }
  .comms-icon-inner svg { width: 15px; height: 15px; }
}

/* prefers-reduced-motion disabled — all global animations always run */

/* ============================================================
   Legal / privacy pages
   ============================================================ */
.legal-hero {
  max-width: 820px; margin: 0 auto;
  padding: calc(var(--nav-h) + 5rem) 2.5rem 2.5rem;
}
.legal-crumb {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-4); margin-bottom: 1.3rem;
}
.legal-crumb a { color: var(--gray-4); transition: color 0.2s ease; }
.legal-crumb a:hover { color: var(--accent-light); }
.legal-crumb .sep { color: var(--gray-2); }
.legal-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.08; }
.legal-hero .lead { margin-top: 1.3rem; }
.legal-meta {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-3); margin-top: 1.5rem;
}
.legal-body {
  max-width: 820px; margin: 0 auto;
  padding: 1rem 2.5rem 5.5rem;
  font-size: 1.02rem; line-height: 1.75; color: var(--gray-5);
}
.legal-body h2 { font-size: 1.35rem; margin: 2.6rem 0 0.9rem; color: var(--white); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.08rem; margin: 2rem 0 0.7rem; color: var(--white); }
.legal-body p { margin: 0 0 1rem; }
.legal-body strong { color: var(--white); font-weight: 600; }
.legal-body ul { margin: 0 0 1.2rem; padding-left: 1.4rem; list-style: none; }
.legal-body ul li { position: relative; padding-left: 0.2rem; margin-bottom: 0.5rem; }
.legal-body ul li::before {
  content: '–'; position: absolute; left: -1.2rem;
  color: var(--accent); font-weight: 500;
}
.legal-body hr { border: none; border-top: 1px solid var(--gray-1); margin: 2.4rem 0; }
.legal-note {
  border: 1px solid var(--gray-1); background: var(--black-2);
  border-radius: var(--radius);
  padding: 1rem 1.3rem; margin: 0 0 2.2rem;
  font-size: 0.9rem; color: var(--gray-4);
}
.legal-table-wrap {
  overflow-x: auto; margin: 1.6rem 0 2rem;
  border: 1px solid var(--gray-1); border-radius: var(--radius);
  background: var(--black-2);
}
.legal-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.88rem; }
.legal-table th {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-4); text-align: left;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--gray-1);
}
.legal-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-1);
  vertical-align: top; color: var(--gray-5); line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table td.mono { font-family: var(--mono); font-size: 0.78rem; color: var(--white); white-space: nowrap; }
.legal-table td.dim { color: var(--gray-4); font-size: 0.82rem; }

/* hub cards */
.legal-grid {
  max-width: 820px; margin: 0 auto;
  padding: 0.5rem 2.5rem 1.5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.legal-card {
  display: flex; flex-direction: column; gap: 0.55rem;
  border: 1px solid var(--gray-1); background: var(--black-2);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.legal-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.legal-card .lc-num {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.16em; color: var(--accent-light);
}
.legal-card h3 { color: var(--white); font-size: 1.05rem; }
.legal-card p { margin: 0; flex: 1; font-size: 0.88rem; line-height: 1.55; color: var(--gray-4); }
.legal-card .lc-arrow { font-size: 0.9rem; color: var(--accent-light); }
.legal-outro {
  max-width: 820px; margin: 0 auto;
  padding: 1.5rem 2.5rem 6rem;
  font-size: 1.02rem; line-height: 1.75; color: var(--gray-5);
}
.legal-outro p { margin: 0 0 1rem; }

@media (max-width: 640px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-hero, .legal-body, .legal-grid, .legal-outro { padding-left: 1.4rem; padding-right: 1.4rem; }
}
