/* ==========================================================================
   ReIntellex - hand-crafted dark theme
   Brand: #FF6207 orange on near-black. Zero framework, zero build step.
   Headings: Mona Sans. Body: Geist.
   ========================================================================== */

:root {
  --bg: #0c0c0d;
  --bg-elev: #141416;
  --bg-card: #161619;
  --bg-card-hover: #1c1c21;
  --border: #262629;
  --border-strong: #37373d;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --brand: #ff6207;
  --brand-hover: #ff7a2b;
  --brand-dim: rgba(255, 98, 7, 0.12);
  --brand-glow: rgba(255, 98, 7, 0.35);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body:
    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-head: "Mona Sans", var(--font-body);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

h1,
h2,
h3,
h4,
.h-section,
.brand {
  font-family: var(--font-head);
}

a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section {
  padding-block: clamp(64px, 9vw, 118px);
  position: relative;
}
.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: 0.7;
}

.h-section {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 62ch;
}
.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}
.section-head .lead {
  margin-top: 16px;
}

/* ---- Buttons (less rounded) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition:
    transform 0.25s var(--ease),
    background 0.2s,
    box-shadow 0.25s,
    border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 22px -6px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px var(--brand-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}
.btn .arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---- Navbar ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(12, 12, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(12, 12, 13, 0.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Brand logo: the real ReIntellex wordmark asset */
.logo {
  height: 23px;
  width: auto;
  display: block;
}
.nav .logo {
  height: 23px;
}
.footer .logo {
  height: 28px;
}

/* Brand link */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.nav .nav__links {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition:
    color 0.2s,
    background 0.2s;
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--bg-card);
}
.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 3px;
}
.lang a,
.lang button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  color: var(--text-dim);
  transition:
    color 0.2s,
    background 0.2s;
}
.lang a.active,
.lang button.active {
  background: var(--brand);
  color: #fff;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  align-items: center;
  justify-content: center;
}
.burger svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  transform: translateY(-120%);
  transition: transform 0.35s var(--ease);
  padding: 16px 24px 24px;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 13px 8px;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.mobile-menu a.btn {
  border: none;
}
.mobile-menu .btn {
  width: 100%;
  margin-top: 14px;
  color: #fff;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(56px, 9vw, 100px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    closest-side,
    rgba(255, 98, 7, 0.18),
    transparent 70%
  );
  filter: blur(10px);
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 30%,
    transparent 75%
  );
}
.hero .container {
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.pill b {
  color: var(--text);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero p.sub {
  margin-top: 24px;
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.hero__stat .num {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__stat .num b {
  color: var(--brand);
}
.hero__stat .lbl {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Hero entrance animation */
.hero .pill,
.hero h1,
.hero .sub,
.hero__actions,
.hero__stats {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.8s var(--ease) forwards;
}
.hero h1 {
  animation-delay: 0.08s;
}
.hero .sub {
  animation-delay: 0.16s;
}
.hero__actions {
  animation-delay: 0.24s;
}
.hero__stats {
  animation-delay: 0.32s;
}
@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Tool strip (SVG icons) ---- */
.strip {
  border-block: 1px solid var(--border);
  background: var(--bg-elev);
  overflow: hidden;
}
.strip__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.strip__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  flex: none;
}
.marquee {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll 45s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}
/* every tool in an equal padded cell so icons + labels stay uniform and never overlap */
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 26px;
  height: 28px;
  color: var(--text-dim);
  transition:
    color 0.25s,
    opacity 0.25s;
  white-space: nowrap;
  opacity: 0.82;
  flex: none;
}
.tool:hover {
  color: var(--text);
  opacity: 1;
}
.tool svg {
  width: 21px;
  height: 21px;
  flex: none;
}
.tool em {
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease),
    background 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

/* two-path feature cards */
.paths {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.path {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.path:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}
.path .tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.path h3 {
  font-size: clamp(22px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.path > p {
  color: var(--text-muted);
  margin-bottom: 22px;
}
.path ul {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
}
.path ul li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
}
.path ul li svg {
  width: 19px;
  height: 19px;
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}
.path .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---- How it works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  position: absolute;
  top: 0;
  left: 0;
}
.step::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 34px;
  right: -10px;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
.step:last-child::after {
  display: none;
}
.step h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 6px;
}
.step p {
  font-size: 14.5px;
  color: var(--text-muted);
}
.step .meta {
  font-size: 12.5px;
  color: var(--brand);
  margin-top: 10px;
  font-weight: 600;
}

/* ---- Automations catalog (video cards) ---- */
.autos {
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.auto {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.auto:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.auto__media {
  position: relative;
  /* Matches the source videos (1592x814) so nothing is cropped. */
  aspect-ratio: 1592 / 814;
  background: #000;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.auto__media video,
.auto__media img {
  width: 100%;
  height: 100%;
  /* contain, not cover: SlotRescue is 1592x872 and would lose its edges. */
  object-fit: contain;
}
.auto__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.auto__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.auto h3 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.auto .price {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-dim);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.auto__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.auto__meta span {
  font-size: 12.5px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.auto__meta span svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}
.auto__meta b {
  color: var(--text-muted);
  font-weight: 600;
}
.auto > .auto__body > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.auto ul {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.auto ul li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.auto ul li svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}
.auto__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.auto__foot .tag {
  font-size: 12.5px;
  color: var(--text-dim);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  background: none;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---- Industries (tabs) ---- */
.ind {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
}
.ind__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ind__tab {
  text-align: left;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ind__tab:hover {
  color: var(--text);
  background: var(--bg-card);
}
.ind__tab.active {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
}
.ind__tab.active .dot {
  background: var(--brand);
}
.ind__tab .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background 0.2s;
  flex: none;
}
.ind__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.ind__panel h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.ind__panel > p,
.ind__pane > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 54ch;
}
/* Selector matches .ind__pane > p so it wins the margin/measure it sets. */
.ind__pane > p.ind__start {
  margin-top: 24px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  max-width: none;
  color: var(--text-muted);
  font-size: 14.5px;
}
.ind__start::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 9px;
  vertical-align: middle;
}
.ind__panel ul {
  display: grid;
  gap: 12px;
}
.ind__panel ul li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 15.5px;
}
.ind__panel ul li svg {
  width: 20px;
  height: 20px;
  color: var(--brand);
  flex: none;
}
.ind__pane {
  display: none;
}
.ind__pane.active {
  display: block;
  animation: fade 0.35s var(--ease);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Our work (detailed) ---- */
.cases {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.case:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.case__cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.case .stat {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case .stat small {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  display: block;
  margin-top: 8px;
  letter-spacing: 0;
  font-family: var(--font-body);
}
.case h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 18px 0 8px;
}
.case > p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.case__tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case__tags span {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ---- Training / Learn AI ---- */
.learn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.learn__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.learn__tools span {
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
}
.learn__tools span.hot {
  border-color: var(--brand);
  color: var(--brand);
}
.learn__card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
}
.learn__card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.learn__card > p {
  color: var(--text-muted);
  margin-bottom: 22px;
}
.learn__card ol {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  counter-reset: li;
}
.learn__card ol li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.learn__card ol li::before {
  counter-increment: li;
  content: counter(li);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
}
.learn__card ol li b {
  display: block;
  font-size: 15.5px;
}
.learn__card ol li span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---- Claude setup (sits under Learn AI, same section) ---- */
.cset {
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--border);
}
.cset__intro {
  max-width: 680px;
  margin-bottom: 32px;
}
.cset__intro h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cset__intro p {
  color: var(--text-muted);
  margin-top: 14px;
}
.cset__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cset__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.cset__item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.cset__item .ico {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--brand-dim);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.cset__item .ico svg {
  width: 18px;
  height: 18px;
}
.cset__item b {
  display: block;
  font-family: var(--font-head);
  font-size: 15.5px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.cset__item p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.cset__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.cset__note {
  font-size: 13.5px;
  color: var(--text-dim);
}

/* ---- Automation audit ---- */
.audit {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 36px);
}
.audit__head {
  max-width: 640px;
  margin-bottom: 24px;
}
/* Deliberately smaller than .h-section: this is a secondary offer. */
.audit__head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
}
.audit__head .eyebrow {
  margin-bottom: 12px;
}
.audit__head .lead {
  margin-top: 10px;
  font-size: 15px;
}
.audit__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: astep;
}
.audit__step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.audit__step::before {
  counter-increment: astep;
  content: counter(astep, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 8px;
}
.audit__step b {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.audit__step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.audit__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.audit__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 56ch;
  font-size: 13.5px;
  color: var(--text-muted);
}
.audit__note svg {
  width: 17px;
  height: 17px;
  color: var(--brand);
  flex: none;
  margin-top: 2px;
}

/* ---- FAQ ---- */
.faq {
  max-width: 800px;
  margin-inline: auto;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  font-family: var(--font-head);
  transition: color 0.2s;
}
.faq__q:hover {
  color: var(--brand);
}
.faq__q .ico {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition:
    transform 0.3s var(--ease),
    border-color 0.2s,
    background 0.2s;
  position: relative;
}
.faq__q .ico::before,
.faq__q .ico::after {
  content: "";
  position: absolute;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background 0.2s;
}
.faq__q .ico::before {
  width: 11px;
  height: 1.5px;
}
.faq__q .ico::after {
  width: 1.5px;
  height: 11px;
}
.faq__item.open .ico {
  transform: rotate(45deg);
  border-color: var(--brand);
  background: var(--brand-dim);
}
.faq__item.open .ico::before,
.faq__item.open .ico::after {
  background: var(--brand);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq__a p {
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 70ch;
}

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 68px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(
      120% 140% at 50% 0%,
      rgba(255, 98, 7, 0.16),
      transparent 60%
    ),
    var(--bg-card);
  border: 1px solid var(--border-strong);
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-band p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 48ch;
  margin-inline: auto;
}
.cta-band .hero__actions {
  justify-content: center;
}

/* ---- Contact / form ---- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact__info h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.contact__info > p {
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 44ch;
}
.contact__list {
  display: grid;
  gap: 18px;
}
.contact__list .row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact__list .row .ico {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--brand);
  flex: none;
}
.contact__list .row .ico svg {
  width: 20px;
  height: 20px;
}
.contact__list .row .lbl {
  font-size: 12.5px;
  color: var(--text-dim);
}
.contact__list .row .val {
  font-size: 15.5px;
  font-weight: 500;
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 18px;
}
.field.hidden {
  display: none;
}
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.field label .req {
  color: var(--brand);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form .btn {
  width: 100%;
  margin-top: 6px;
}
.form__note {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}
.form__status {
  font-size: 14.5px;
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.form__status.show {
  display: block;
}
.form__status.ok {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.form__status.err {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 56px 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 44px;
}
.footer__brand .brand {
  margin-bottom: 16px;
}
.footer__brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 36ch;
}
.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
  font-family: var(--font-body);
}
.footer__col ul {
  display: grid;
  gap: 11px;
}
.footer__col a,
.footer__col li {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__col a:hover {
  color: var(--brand);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 13.5px;
  color: var(--text-dim);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__legal a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s;
  cursor: pointer;
}
.footer__legal a:hover {
  color: var(--text-muted);
}

/* ---- Reveal on scroll (variants + stagger) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-l {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-l.in {
  opacity: 1;
  transform: none;
}
.reveal-r {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-r.in {
  opacity: 1;
  transform: none;
}
.reveal-s {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal-s.in {
  opacity: 1;
  transform: none;
}
[data-delay="1"] {
  transition-delay: 0.08s;
}
[data-delay="2"] {
  transition-delay: 0.16s;
}
[data-delay="3"] {
  transition-delay: 0.24s;
}
[data-delay="4"] {
  transition-delay: 0.32s;
}

/* ---- Cookie banner ---- */
.cookie {
  position: fixed;
  z-index: 200;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 460px;
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translateY(160%);
  transition: transform 0.5s var(--ease);
  opacity: 0;
}
.cookie.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie__emoji {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
}
.cookie h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cookie p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.cookie p a {
  color: var(--brand);
  text-decoration: underline;
}
.cookie__actions {
  display: flex;
  gap: 10px;
}
.cookie__actions .btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 14px;
}
.cookie__actions .btn-ghost {
  border-color: var(--border-strong);
}

/* ---- Legal pages ---- */
.legal-wrap {
  max-width: 820px;
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + 48px);
}
.legal-wrap .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-wrap .back:hover {
  color: var(--brand);
}
.legal-wrap h1 {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.legal-wrap .updated {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal-doc h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}
.legal-doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}
.legal-doc p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}
.legal-doc ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 4px;
}
.legal-doc ul li {
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  line-height: 1.6;
}
.legal-doc ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  margin-top: 9px;
}
.legal-doc a {
  color: var(--brand);
  text-decoration: underline;
}
.legal-doc strong {
  color: var(--text);
}
.legal-doc .callout {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}
.legal-doc .callout p {
  margin-bottom: 0;
  color: var(--text);
}
.legal-lang {
  display: none;
}
.legal-lang.active {
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  /* reveal from below on narrow screens: a sideways start state would push the
     page 8px wide and create a horizontal scroll */
  .reveal-l,
  .reveal-r {
    transform: translateY(24px);
  }
  .reveal-l.in,
  .reveal-r.in {
    transform: none;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step::after {
    display: none;
  }
  .cases {
    grid-template-columns: 1fr;
  }
  .learn {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cset__grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ind {
    grid-template-columns: 1fr;
  }
  .ind__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ind__tab {
    flex: 1 1 auto;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 720px) {
  /* Must match .nav .nav__links specificity or the desktop rule wins here. */
  .nav .nav__links,
  .nav__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  /* Label + marquee side by side leaves the marquee ~0px wide on a phone. */
  .strip__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .strip__label {
    white-space: normal;
  }
  .paths,
  .autos,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .cset__grid {
    grid-template-columns: 1fr;
  }
  .audit__steps {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    gap: 26px;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .container {
    padding-inline: 20px;
  }
  .cookie {
    max-width: none;
  }
}
