/* ==========================================================================
   Nexo Hunters — landing page
   Implementation of the "Nexo Hunters Landing" Claude Design file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Neutrals — light */
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #1c2228;
  --ink-soft: #39424a;
  --muted: #5b656e;
  --muted-2: #7b858e;
  --muted-3: #9aa3ab;

  --line: #e4e7e9;
  --line-strong: #cdd3d7;
  --line-faint: #f0f2f3;
  --track: #eef0f1;

  /* Neutrals — dark ramp (used by the stacked process cards) */
  --slate-100: #5a636c;
  --slate-200: #4f5860;
  --slate-300: #454d55;
  --slate-400: #3b434a;
  --slate-500: #3a424a;
  --slate-600: #2f363d;
  --slate-700: #20262b;
  --slate-050: #4d565f;

  /* Accent */
  --accent: #3f7f92;
  --accent-hover: #2e6273;
  --accent-soft: #cfe0e6;
  --sky: #9fc4cf;

  /* Type */
  --font-display: Sora, "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --gutter: 28px;
  --section-y: 88px;
  --header-h: 58px;

  /* Card frame geometry */
  --frame-bleed: 16px;
  --tick: 14px;

  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
}

.section {
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.section--surface { background: var(--surface); }
.section--tight { padding-block: 76px; }
.section--flush { border-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.eyebrow--light { color: var(--sky); text-transform: none; }

.section-title {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 44px;
  max-width: 22ch;
}
.section-title--narrow { max-width: 20ch; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  white-space: nowrap;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--solid {
  background: #fff;
  color: var(--slate-600);
  font-weight: 600;
}
.btn--solid:hover {
  background: var(--sky);
  color: var(--slate-700);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 500;
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.btn--lg { padding: 16px 28px; }

.btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(58, 66, 74, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  height: 26px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav__link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.site-nav__link:hover { color: #fff; }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav__cta:hover {
  background: #fff;
  color: var(--slate-500);
  border-color: #fff;
}

/* ES / EN switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  flex: none;
}
.lang-switch__opt {
  padding: 5px 9px;
  border-radius: 1px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
}
a.lang-switch__opt:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.lang-switch__opt.is-active {
  color: var(--slate-600);
  background: #fff;
  font-weight: 500;
}

/* Mobile menu button — hidden until the nav collapses */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(140deg, var(--slate-050) 0%, var(--slate-500) 55%, var(--slate-600) 100%);
  color: #fff;
  padding: 96px var(--gutter) 104px;
}

.hero__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  max-width: 52ch;
}

/* Hero diagram ------------------------------------------------------------ */
.diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 564 / 410;
}

.diagram__grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}

.diagram__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.diagram__wire { stroke: rgba(255, 255, 255, 0.20); stroke-width: 1; fill: none; }
.diagram__pulse {
  stroke: var(--sky);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 34 300;
  animation: nx-dash 4.2s linear infinite;
}

.diagram__chip {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.diagram__core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  background: rgba(47, 54, 61, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.diagram__core img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
.diagram__ring {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1px solid rgba(159, 196, 207, 0.4);
  animation: nx-ring 3.2s ease-in-out infinite;
}

@keyframes nx-dash {
  from { stroke-dashoffset: 340; }
  to   { stroke-dashoffset: -340; }
}
@keyframes nx-ring {
  0%, 100% { transform: scale(1);    opacity: .45; }
  50%      { transform: scale(1.14); opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. Card grid
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 32px;
  padding: 1px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.card-grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--half { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* second row of the "problems" grid, centred under the first */
.card-grid--remainder {
  margin-top: 32px;
  max-width: min(100%, 644px);
  margin-inline: auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  background: var(--surface);
  background-image: radial-gradient(50% 80% at 25% 0%, rgba(63, 127, 146, 0.07), transparent);
  padding: 30px 26px 26px;
  transition: background-image .3s ease;
}
.card:hover {
  background-image: radial-gradient(50% 80% at 25% 0%, rgba(63, 127, 146, 0.16), transparent);
}

/* Hairline frame that bleeds past the card, plus the corner ticks. */
.card__frame {
  position: absolute;
  inset: calc(var(--frame-bleed) * -1);
  pointer-events: none;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ab' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ab' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: var(--tick) var(--tick), var(--tick) var(--tick);
  background-position:
    calc(var(--frame-bleed) - var(--tick) / 2) calc(var(--frame-bleed) - var(--tick) / 2),
    calc(100% - var(--frame-bleed) + var(--tick) / 2) calc(100% - var(--frame-bleed) + var(--tick) / 2);
}
/* vertical hairlines, full bleed height */
.card__frame::before {
  content: "";
  position: absolute;
  inset: 0 var(--frame-bleed);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
/* horizontal hairlines, full bleed width */
.card__frame::after {
  content: "";
  position: absolute;
  inset: var(--frame-bleed) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card__icon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(63, 127, 146, 0.04);
  transition: border-color .3s ease;
}
.card:hover .card__icon { border-color: rgba(63, 127, 146, 0.5); }
.card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--slate-600);
}

.card__body {
  position: relative;
  z-index: 2;
}

.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-3);
  margin-bottom: 8px;
}

.card__label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.card__title--lg { font-size: 19px; margin-bottom: 10px; }
.card__title--gap { margin-bottom: 10px; }

.card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.card__text--sm { font-size: 14.5px; }

/* --------------------------------------------------------------------------
   8. Callout
   -------------------------------------------------------------------------- */
.callout {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
}
.callout p {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   9. Process — stacked sticky steps
   -------------------------------------------------------------------------- */
.process { padding-bottom: 120px; }

.process__stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  position: sticky;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 44px 48px;
  box-shadow: 0 -8px 40px rgba(31, 37, 43, 0.18);
}
.step--1 { top: 86px;  background: var(--slate-100); }
.step--2 { top: 112px; background: var(--slate-200); }
.step--3 { top: 138px; background: var(--slate-300); }
.step--4 { top: 164px; background: var(--slate-400); }
.step--5 { top: 190px; background: var(--slate-600); }

.step__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.step__title {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.step__arrow {
  width: 34px;
  height: 34px;
  flex: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  fill: none;
}

.step__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: end;
}

.step__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sky);
  margin-bottom: 14px;
}
.step__lead {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.step__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
  max-width: 44ch;
  text-wrap: pretty;
}

/* Deck mode — the "fold away to reveal the next step" variant.
   Added by main.js only on wide viewports when motion is allowed. Without JS,
   with reduced motion, or on phones, none of this applies and the section keeps
   the CSS-only sticky stack above. */
.process__stack.is-deck {
  display: block;
  gap: 0;
  position: relative;
}
.process__stack.is-deck .process__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  /* clear the sticky site header so a centred card never sits under it */
  padding-top: var(--header-h);
}
.process__stack.is-deck .process__deck {
  position: relative;
  perspective: 1600px;
  perspective-origin: 50% 0%;
}
.process__stack.is-deck .step {
  position: absolute;
  inset: 0 0 auto 0;
  top: 0;
  /* sticky offsets and the dark ramp both belong to the stacked variant */
  background: var(--slate-500);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
}
/* Keep a little tonal separation so the deck still reads as layered. */
.process__stack.is-deck .step--1 { background: var(--slate-100); }
.process__stack.is-deck .step--2 { background: var(--slate-200); }
.process__stack.is-deck .step--3 { background: var(--slate-300); }
.process__stack.is-deck .step--4 { background: var(--slate-400); }
.process__stack.is-deck .step--5 { background: var(--slate-600); }

/* Mock UI panel ----------------------------------------------------------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  color: var(--ink);
}

.panel__tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.panel__tab {
  font-size: 13px;
  color: var(--muted-3);
}
.panel__tab--active {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
  margin-bottom: -13px;
}

.panel__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-faint);
}
.panel__row-main { flex: 1; min-width: 0; }
.panel__row-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
}
.panel__row-sub {
  font-size: 12px;
  color: var(--muted-3);
  margin-top: 2px;
}

.pill {
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  flex: none;
}
.tag {
  font-size: 11.5px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
  flex: none;
}

/* meter rows (step 02) */
.meter { padding: 9px 0; }
.meter__head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.meter__value {
  font-family: var(--font-mono);
  color: var(--muted-3);
}
.meter__track {
  height: 6px;
  background: var(--track);
  border-radius: 3px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  background: var(--accent);
}
.meter__fill--mid { background: var(--slate-100); }
.meter__fill--low { background: var(--line-strong); }

/* flow chips (step 03) */
.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 18px;
}
.flow__node {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 6px;
}
.flow__node--active {
  color: var(--ink);
  border-color: var(--accent);
}
.flow__link {
  width: 16px;
  height: 1px;
  background: var(--line-strong);
  flex: none;
}

/* checklist (step 05) */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13.5px;
  color: var(--ink);
}
.check--todo { color: var(--muted-3); }
.check__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  flex: none;
}
.check--todo .check__dot {
  border-color: var(--line-strong);
  background: transparent;
}
.panel__note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-faint);
  font-size: 12.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Integrations
   -------------------------------------------------------------------------- */
.split {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.split__title {
  font-size: 30px;
  line-height: 1.25;
}

.tool-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tool-grid__item {
  background: var(--surface);
  padding: 24px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   11. Human-in-the-loop band
   -------------------------------------------------------------------------- */
.band {
  background: var(--slate-500);
  color: #fff;
  padding: var(--section-y) var(--gutter);
}
.band__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.band__title {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.band__text {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 50ch;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.duo__col {
  background: var(--slate-500);
  padding: 26px 22px;
}
.duo__head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--sky);
}
.duo__head--muted { color: rgba(255, 255, 255, 0.6); }
.duo__list {
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   12. About
   -------------------------------------------------------------------------- */
.about {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.about__logo {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}
.about__text {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
  align-self: center;
}

/* --------------------------------------------------------------------------
   13. Closing CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: 104px var(--gutter);
  background: linear-gradient(140deg, var(--slate-050) 0%, var(--slate-500) 60%, var(--slate-600) 100%);
  color: #fff;
}
.cta__inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.cta__title {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--slate-600);
  color: rgba(255, 255, 255, 0.62);
  padding: 40px var(--gutter);
}
.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo {
  height: 22px;
  width: auto;
  display: block;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.site-footer__link { color: rgba(255, 255, 255, 0.72); }
.site-footer__link:hover { color: #fff; }
.site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #fff;
}
.site-footer__wa:hover {
  background: #fff;
  color: var(--slate-600);
  border-color: #fff;
}
.site-footer__legal {
  max-width: var(--container);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero__inner,
  .split,
  .band__inner,
  .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero__title { font-size: 46px; }
  .step__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .step__title { font-size: 36px; }
  .step { padding: 36px 32px 40px; }
  .about__text { align-self: start; }
}

@media (max-width: 860px) {
  :root { --section-y: 64px; --gutter: 20px; }

  /* Collapse the nav into a toggle-driven panel */
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    /* Solid, and deliberately without backdrop-filter: the panel hangs outside
       the header box, and a nested backdrop-filter leaves the page showing
       through it. A dropdown over content needs to be opaque anyway. */
    background: var(--slate-600);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav__cta {
    margin-top: 16px;
    justify-content: center;
    padding: 14px 16px;
  }
  .lang-switch {
    margin-top: 16px;
    align-self: flex-start;
  }
  .site-header__inner { position: relative; }

  .hero { padding: 64px var(--gutter) 72px; }
  .hero__title { font-size: 38px; }
  .hero__lead { font-size: 17px; }

  .section-title { font-size: 28px; margin-bottom: 32px; }
  .cta__title { font-size: 30px; }
  .band__title, .split__title { font-size: 26px; }

  /* The stacked-card effect needs viewport height it no longer has. */
  .process { padding-bottom: var(--section-y); }
  .step { position: static; }
  .process__stack { gap: 20px; }

  .card-grid--half,
  .card-grid--wide,
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .card-grid--remainder { margin-top: 32px; }

  .callout { padding: 22px 24px; }
  .callout p { font-size: 17px; }

  .about__logo { max-width: 220px; }
  .about__text { font-size: 17px; }
}

@media (max-width: 560px) {
  .diagram__chip { font-size: 11px; padding: 8px 10px; }
  .duo { grid-template-columns: 1fr; }
  .step { padding: 28px 22px 32px; }
  .step__title { font-size: 30px; }
  .panel { padding: 16px 16px; }
  .panel__tabs { gap: 12px; overflow-x: auto; }
  .panel__row { flex-wrap: wrap; gap: 8px; }
  .flow { flex-wrap: wrap; }
  .flow__link { display: none; }
  .site-footer__links { gap: 14px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   16. Motion / print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .diagram__pulse { display: none; }
}

@media print {
  .site-header, .nav-toggle { position: static; }
  .step { position: static; box-shadow: none; }
  body { background: #fff; }
}
