/* ============================================================
   AIDAFLO — global tokens  (monochrome / black & white)
   ============================================================ */
:root {
  --black: #000000;
  --ink: #060606;
  --panel: #0c0c0d;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f5f6;
  --muted: #a6a8ad;
  --faint: #5e6066;
  --accent: #ffffff;       /* everything is white-on-black now */
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Lock scroll while the landing gate is up */
body.intro-active { overflow: hidden; height: 100vh; }

::selection { background: #fff; color: #000; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, .nav__brand, .step__num, .section__title, .hero__title, .cta__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

/* silver gradient text — stays monochrome */
.grad {
  background: linear-gradient(100deg, #ffffff, #8a8c92 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ============================================================
   LANDING GATE — pitch black, click to enter (enables autoplay)
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}
.gate.is-gone {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.gate__inner {
  display: grid;
  justify-items: center;
  animation: gateIn 1s var(--ease) both;
}
@keyframes gateIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.gate__lockup {
  width: min(320px, 74vw);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 0 26px rgba(255,255,255,0.35));
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50%      { transform: translateY(-6px); opacity: 1; }
}
.gate__tag {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 38px;
}
.gate__btn { padding: 16px 38px; font-size: 17px; }
.gate__hint {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
}


/* ============================================================
   SITE — hidden behind intro until revealed
   ============================================================ */
.site {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
body.revealed .site { opacity: 1; }


/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, transform 0.6s var(--ease);
  border-bottom: 1px solid transparent;
  transform: translateY(-100%);
}
body.revealed .nav { transform: translateY(0); transition-delay: 0.5s; }
.nav.scrolled {
  background: rgba(6, 6, 6, 0.6);
  backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
}
.nav__logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.25));
}
.nav__logo {
  color: #fff;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.5));
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 15px; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  color: #000 !important;
  background: #fff;
  padding: 9px 18px;
  border-radius: 100px;
  transition: opacity 0.25s !important;
}
.nav__cta:hover { opacity: 0.85; }
.nav__menu-btn { display: none; }


/* ---------- HERO  (split: copy left · robot right) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1100px; height: 1100px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(255,255,255,0.07), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

/* robot media — large, pinned to the RIGHT side; copy lives on the left */
.hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 72%;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* cover = the robot fills this right-hand area at full height. Any cropped
   pixels are pure black, so nothing is lost and the page shows no seams. */
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s var(--ease), transform 1.8s var(--ease);
}
body.revealed .hero__video { opacity: 1; transform: scale(1); }
/* hold the final frame steady once the film freezes */
.hero__media.is-still .hero__video { transform: scale(1); }
/* blend the robot's left edge into the black page so text stays legible */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              #000 0%,
              rgba(0,0,0,0.6) 16%,
              rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.hero__eyebrow {
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(46px, 6.5vw, 96px);
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 26px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
}
.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 38px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.hero__scroll-dot {
  width: 4px; height: 8px; border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px "Inter", sans-serif;
  padding: 15px 30px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
}
.btn--primary {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 30px rgba(255,255,255,0.12);
}
.btn--primary:hover { box-shadow: 0 14px 44px rgba(255,255,255,0.22); }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }


/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--ink);
}
.marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: marquee 26s linear infinite;
  white-space: nowrap;
}
.marquee__track span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.marquee__track span:nth-child(even) { color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }


/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 40px);
}
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent); max-width: none; }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
/* keep the heading left-aligned to the content column (like the other
   sections) instead of being centered as a narrow block */
.section--alt .section__head { max-width: var(--maxw); }
.section--alt .section__head > * { max-width: 720px; }

.section__head { margin-bottom: 60px; max-width: 720px; }
.section__tag {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.section__title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 700;
}
.section__lead, .section__head p:not(.section__tag) {
  color: var(--muted); margin-top: 18px; font-size: 17px; line-height: 1.6;
}
.inline-link {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.inline-link:hover { border-color: #fff; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(255,255,255,0.07);
  padding: 2px 7px; border-radius: 6px; font-size: 0.88em; color: #fff;
}


/* ---------- CARDS ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: linear-gradient(180deg, var(--panel), rgba(12,12,13,0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,0.10), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.30); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  color: #fff;
}
.card__icon i {
  font-size: 26px;
  line-height: 1;
  display: block;
}
/* keep the icon tile crisp as the card lifts/glows on hover */
.card:hover .card__icon { border-color: rgba(255,255,255,0.30); }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--muted); line-height: 1.6; font-size: 15.5px; }

/* flagship card — spans two columns on wider grids */
.card--feature { grid-column: span 2; }
.card--feature h3 { font-size: 23px; }
.card__list {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.65;
}
@media (max-width: 720px) {
  .card--feature { grid-column: auto; }
}


/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step { padding: 28px 24px; border-left: 1px solid var(--line); }
.step__num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 44px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.55);
  display: block; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); line-height: 1.6; font-size: 15px; }


/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.gallery__item:hover img { transform: scale(1.07); filter: grayscale(0%); }
.gallery__item figcaption {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}


/* ---------- SHOWCASE REEL ---------- */
.reel { max-width: 1080px; margin: 0 auto; position: relative; }
.reel::before {
  content: "";
  position: absolute; inset: -8% -4% 0;
  background: radial-gradient(60% 60% at 50% 30%, rgba(255,255,255,0.10), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.reel__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 50px 130px rgba(0,0,0,0.65), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.reel__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.reel__controls { display: flex; justify-content: center; margin-top: 26px; }
.reel__replay { padding: 12px 26px; font-size: 15px; }


/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__inner { max-width: 640px; margin: 0 auto; }
.cta__title { font-size: clamp(38px, 6vw, 72px); line-height: 1; font-weight: 700; margin: 18px 0 20px; }
.cta__lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 36px; }
.cta__form {
  display: grid; gap: 12px;
  max-width: 440px; margin: 0 auto;
}
.cta__form input,
.cta__form textarea {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  color: #fff; font-size: 15px;
  font-family: inherit;
  transition: border-color 0.25s, background 0.25s;
}
.cta__form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.cta__form input::placeholder,
.cta__form textarea::placeholder { color: var(--faint); }
.cta__form input:focus,
.cta__form textarea:focus { outline: none; border-color: rgba(255,255,255,0.55); background: #111; }
.cta__form .btn { margin-top: 6px; }
.cta__direct { margin-top: 20px; color: var(--muted); font-size: 15px; }
.cta__note { margin-top: 18px; color: var(--muted); font-size: 14px; }


/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 50px clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  color: var(--muted); font-size: 14px;
}
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: "Space Grotesk"; font-weight: 600; color: #fff; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--muted); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }


/* ============================================================
   WORKFLOW VISUALIZER  (#workflow) — in-page node animation
   ============================================================ */
/* full-bleed: break out of the section to the full viewport width so the
   graph reads as part of the page rather than a boxed-in widget */
.wfviz {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 8px;
}
.wfviz__canvas {
  display: block;
  width: 100%;
  height: clamp(320px, 50vh, 640px);
}

/* button on the main page that jumps to the visualizer */
.wf-link { margin-top: 28px; }

/* ---- bridge: the workflow funnelling down into the dashboard ---- */
.wf-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 14px auto 2px;
}
.wf-bridge__svg {
  width: clamp(280px, 36vw, 460px);
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
}
.wf-bridge__line,
.wf-bridge__pipe {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: wfFlow 1s linear infinite;
}
.wf-bridge__line { stroke: rgba(255,255,255,0.5); stroke-width: 3; }
.wf-bridge__pipe { stroke: rgba(255,255,255,0.85); stroke-width: 5; }
@keyframes wfFlow { to { stroke-dashoffset: -20; } }
.wf-bridge__hub {
  fill: #fff;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
}
.wf-bridge__arrow { fill: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.7)); }
.wf-bridge__tag {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* ---- the dashboard mockup ---- */
.wf-dash { margin-top: 14px; }
.wf-dash__head { max-width: 640px; margin-bottom: 34px; }
.wf-dash__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.wf-dash__lead { color: var(--muted); font-size: 17px; line-height: 1.6; }

.dashboard {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #101012, #0a0a0b);
  box-shadow: 0 40px 110px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.dashboard__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.dashboard__dots { display: flex; gap: 7px; }
.dashboard__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.dashboard__name {
  font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 600;
  color: #d9d9de; letter-spacing: -0.01em;
}
.dashboard__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted);
}
.dashboard__livedot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
  animation: wfLive 1.8s var(--ease) infinite;
}
@keyframes wfLive {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.dashboard__body { display: flex; min-height: 360px; }
.dashboard__nav {
  flex: 0 0 196px;
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.012);
}
.dashboard__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14.5px; cursor: default;
  position: relative; transition: background 0.2s, color 0.2s;
}
.dashboard__nav a i { font-size: 17px; line-height: 1; }
.dashboard__nav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dashboard__nav a.is-active { color: #fff; background: rgba(255,255,255,0.07); }
.dashboard__nav a.is-active::before {
  content: ""; position: absolute; left: 0; top: 9px; bottom: 9px;
  width: 3px; border-radius: 3px; background: #fff;
}
.dashboard__main { flex: 1; padding: 22px clamp(16px, 2.4vw, 30px); display: grid; gap: 18px; align-content: start; }
.dashboard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  border: 1px solid var(--line); border-radius: 13px;
  padding: 16px 18px; background: rgba(255,255,255,0.02);
  display: grid; gap: 8px;
}
.stat__label { font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; }
.stat__value { font-family: "Space Grotesk", sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.dashboard__panel { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px 18px; background: rgba(255,255,255,0.02); }
.dashboard__panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 16px;
}
.dashboard__chip {
  font-size: 11px; letter-spacing: 0.08em; color: #cfcfd4;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px;
}
.dashboard__chart { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 10px); height: 130px; }
.dashboard__chart .bar {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.22));
  transform: scaleY(0.04); transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.wf-dash.in .dashboard__chart .bar { transform: scaleY(1); }
.dashboard__chart .bar:nth-child(odd) { background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.14)); }
.dashboard__chart .bar:nth-child(2) { transition-delay: 0.04s; }
.dashboard__chart .bar:nth-child(4) { transition-delay: 0.08s; }
.dashboard__chart .bar:nth-child(6) { transition-delay: 0.12s; }
.dashboard__chart .bar:nth-child(8) { transition-delay: 0.16s; }
.dashboard__chart .bar:nth-child(10) { transition-delay: 0.2s; }
.dashboard__chart .bar:nth-child(12) { transition-delay: 0.24s; }
.dashboard__chart .bar:nth-child(14) { transition-delay: 0.28s; }
.dashboard__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 8px 9px 16px; font-size: 14px; color: #d9d9de;
}
.switch {
  width: 38px; height: 22px; border-radius: 100px; position: relative;
  background: rgba(255,255,255,0.12); transition: background 0.25s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #777;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.switch.is-on { background: rgba(255,255,255,0.85); }
.switch.is-on::after { transform: translateX(16px); background: #0a0a0b; }
.dashboard__run { margin-left: auto; padding: 11px 22px; font-size: 14px; gap: 8px; }
.dashboard__run i { font-size: 14px; line-height: 1; }

@media (max-width: 680px) {
  .dashboard__nav { display: none; }
  .dashboard__stats { grid-template-columns: 1fr 1fr; }
  .dashboard__run { margin-left: 0; }
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
/* stagger children inside the same group */
.cards .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal.in:nth-child(4) { transition-delay: 0.24s; }
.steps .reveal.in:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal.in:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal.in:nth-child(4) { transition-delay: 0.24s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
/* tablet / narrow: robot drops behind the copy as a faded backdrop */
@media (max-width: 900px) {
  .hero { text-align: center; justify-content: center; }
  .hero__copy { max-width: 640px; margin: 0 auto; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__media {
    width: 100%;
    opacity: 0.22;
    filter: grayscale(100%);
  }
  .hero__glow { right: 50%; transform: translate(50%, -50%); }
}
@media (max-width: 820px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}
@media (max-width: 520px) {
  .hero__title { font-size: 46px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* footer stacks + fully centers on tablets / phones */
@media (max-width: 700px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }
  .footer p { line-height: 1.6; }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
  }
}


/* ============================================================
   ACCESSIBILITY — respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   WORKFLOWS PAGE  (+ index promo banner + gate buttons)
   ============================================================ */
.nav__links a.is-current { color: #fff; }

/* ---- hero: copy left, diagram right ---- */
.wf-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(130px, 16vh, 190px) clamp(20px, 5vw, 56px) clamp(50px, 7vw, 90px);
  min-height: 86vh;
}
.wf-hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.96; font-weight: 700; letter-spacing: -0.03em;
  margin: 6px 0 22px;
}
.wf-hero__sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; max-width: 480px; margin-bottom: 34px; }

/* ---- the workflow diagram panel ---- */
.flow {
  background: linear-gradient(180deg, var(--panel), rgba(12,12,13,0.5));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}
.flow__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.flow__dots { display: flex; gap: 6px; }
.flow__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.flow__name { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.flow__body { padding: 30px 28px; display: flex; flex-direction: column; }
.flow__node {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.flow__node--accent { border-color: rgba(255,255,255,0.42); box-shadow: 0 0 40px rgba(255,255,255,0.06); }
.flow__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-size: 18px; color: #fff; }
.flow__node--accent .flow__ico { background: #fff; color: #000; border-color: #fff; }
.flow__ico i { display: block; }
.flow__txt { display: flex; flex-direction: column; gap: 2px; }
.flow__txt b { font-size: 15px; font-weight: 600; }
.flow__txt span { font-size: 13px; color: var(--muted); }
.flow__wire { width: 2px; height: 34px; margin: 6px 0 6px 36px; background: var(--line); position: relative; }
.flow__pulse { position: absolute; left: -3px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; animation: flowPulse 1.9s var(--ease) infinite; }
@keyframes flowPulse { 0% { top: -6px; opacity: 0; } 25% { opacity: 1; } 100% { top: 34px; opacity: 0; } }

/* ---- collection grid ---- */
.wf-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 18px;
}
.wf-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), rgba(12,12,13,0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.wf-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx,50%) var(--my,0%), rgba(255,255,255,0.10), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.wf-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.28); }
.wf-card:hover::before { opacity: 1; }
.wf-card > * { position: relative; }
.wf-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wf-card__ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); font-size: 20px; color: #fff; }
.wf-card__ico i { display: block; }
.wf-card--dash .wf-card__ico { background: #fff; color: #000; border-color: #fff; }
.wf-card__title { font-size: 19px; margin-bottom: 9px; font-family: "Space Grotesk", sans-serif; }
.wf-card__desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.wf-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.wf-card__tags span { font-size: 11px; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 4px 10px; }
.wf-card__foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.wf-card__status { font-size: 12.5px; color: var(--faint); line-height: 1.4; }
.wf-card__foot .btn { width: 100%; }
.wf-card__foot .btn i { margin-right: 8px; }

/* ---- badges ---- */
.wf-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }
.wf-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: wfPulse 1.6s ease-in-out infinite; }
@keyframes wfPulse { 0%,100% { opacity: 0.3; box-shadow: 0 0 0 rgba(255,255,255,0); } 50% { opacity: 1; box-shadow: 0 0 10px rgba(255,255,255,0.6); } }
.wf-badge--dash { color: #fff; }

/* ---- coming-soon button ---- */
.btn--soon { background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); cursor: not-allowed; }
.btn--soon:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.05); }

/* ---- index promo banner ("Try our workflows for free") ---- */
.wf-promo { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px) clamp(40px, 6vw, 80px); }
.wf-promo__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 46px);
  position: relative; overflow: hidden;
}
.wf-promo__inner::before { content: ""; position: absolute; top: -40%; right: -8%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 65%); filter: blur(20px); pointer-events: none; }
.wf-promo__title { font-family: "Space Grotesk", sans-serif; font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 8px; }
.wf-promo__lead { color: var(--muted); max-width: 520px; font-size: 16px; line-height: 1.55; }
.wf-promo__btn { white-space: nowrap; }
.wf-promo__btn i { margin-left: 9px; }

/* ---- gate two-button row ---- */
.gate__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 860px) {
  .wf-hero { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .wf-hero__sub { margin-left: auto; margin-right: auto; }
  .wf-hero .hero__actions { justify-content: center; }
  .wf-hero__flow { max-width: 460px; margin: 0 auto; width: 100%; }
}
