/* ==========================================================================
   Multifunnels design system — 2026
   Midnight editorial base · warm off-white type · project accent colors
   RTL-safe via logical properties · prefers-reduced-motion respected
   ========================================================================== */

:root {
  /* Base */
  --bg: #0a0d13;
  --bg-elev: #0f131b;
  --bg-panel: #131926;
  --ink: #f4efe6;
  --ink-strong: #fbf8f1;
  --muted: #a4abb6;
  --faint: #7e8794; /* AA on --bg for small text */
  --line: rgba(244, 239, 230, 0.11);
  --line-strong: rgba(244, 239, 230, 0.2);

  /* Brand */
  --teal: #23b5ac;
  --teal-bright: #3ddad0;
  --coral: #ff7a59;
  --gold: #e4b95b;

  /* Project accents */
  --agentroam: #22d3ee;
  --agentroam-violet: #8b5cf6;
  --agentroam-green: #34d399;
  --agentroam-bg: #0b1220;
  --moodtrip: #ff7a59;
  --flights: #e4b95b;
  --mcp: #2dd4bf;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1240px;

  --font-display: "Fraunces", "Georgia", "Noto Sans Hebrew", "Noto Sans Arabic", "Hiragino Mincho ProN", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial,
    "Noto Sans Hebrew", "Noto Sans Arabic", "Hiragino Sans", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { overflow-wrap: anywhere; margin: 0; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.016em;
  color: var(--ink-strong);
  text-wrap: balance;
}

a { color: inherit; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Endpoints and code always read LTR, even in RTL layouts */
.ltr-code, code, pre { direction: ltr; unicode-bidi: isolate; text-align: start; }

::selection { background: rgba(45, 212, 191, 0.32); }

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--teal);
  color: #06231f;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

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

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(10, 13, 19, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 13, 19, 0.9);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink-strong);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #061513;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  border-radius: 9px;
}

.brand-mark-img {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2.2vw, 26px);
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 10px 4px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink-strong); }

.header-tools {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.language-picker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
select {
  min-width: 108px;
  min-height: 44px;
  padding: 0 30px 0 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a4abb6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
[dir="rtl"] select {
  padding: 0 12px 0 30px;
  background-position: left 12px center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.button.primary {
  color: #06231f;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(45, 212, 191, 0.22);
}
.button.secondary {
  color: var(--ink-strong);
  border-color: var(--line-strong);
  background: transparent;
}
.button.secondary:hover { border-color: var(--ink); }
.button.small { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }

.header-cta { display: inline-flex; }

/* Mobile menu */
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 16px 8px;
  color: var(--ink-strong);
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 1.4rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.mobile-menu .button { margin-top: 22px; }

/* ── Sections ───────────────────────────────────────────────────────── */

.section {
  padding: clamp(72px, 9vw, 130px) clamp(20px, 5vw, 64px);
}
.section-inner { max-width: var(--max); margin-inline: auto; }

.section-kicker, .eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-kicker::before, .eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  flex: none;
}
[dir="rtl"] .section-kicker::before, [dir="rtl"] .eyebrow::before {
  background: linear-gradient(270deg, currentColor, transparent);
}

.section h2 {
  max-width: 21ch;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.03;
}
.section-heading { margin-bottom: clamp(32px, 5vw, 56px); }
.section-lede {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

.divider-line { border: 0; height: 1px; margin: 0; background: var(--line); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  min-height: calc(100svh - 72px);
  max-width: calc(var(--max) + 120px);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 44% at 78% 22%, rgba(35, 181, 172, 0.13), transparent 68%),
    radial-gradient(40% 36% at 12% 84%, rgba(255, 122, 89, 0.07), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.7rem, 6.3vw, 5rem);
  line-height: 1.02;
}
.hero-copy {
  max-width: 56ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-proof {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 30px;
  color: var(--faint);
  font-size: 0.9rem;
}
.hero-proof::before {
  content: "";
  align-self: center;
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--agentroam-green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

/* Orchestration canvas */
.orchestration {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, rgba(19, 25, 38, 0.7), rgba(15, 19, 27, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.orchestration svg { display: block; width: 100%; height: auto; direction: ltr; }
.orchestration text { font-family: var(--font-mono); }

.flow-line {
  fill: none;
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.85;
}
.flow-node rect, .flow-node circle { transition: opacity 0.4s ease; }

@media (prefers-reduced-motion: no-preference) {
  .orchestration.is-animated .flow-line {
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: drawline 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .orchestration.is-animated .flow-node,
  .orchestration.is-animated .flow-output {
    opacity: 0;
    animation: nodein 0.6s ease forwards;
  }
  .orchestration.is-animated .flow-pulse {
    animation: pulse 2.6s ease-in-out 2.4s 2;
  }
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes nodein { to { opacity: 1; } }
@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ── Live product strip ─────────────────────────────────────────────── */

.proof-strip {
  display: flex;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 22px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.proof-strip a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.15s ease;
}
.proof-strip a:hover { color: var(--ink-strong); }
.proof-strip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--agentroam-green);
}

/* ── Project cards ──────────────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.project-card {
  --accent: var(--teal);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .project-card:hover { transform: none; }
}

.project-card.card-agentroam {
  grid-column: span 12;
  --accent: var(--agentroam);
  border-color: rgba(34, 211, 238, 0.26);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(34, 211, 238, 0.06), transparent 60%),
    var(--bg-elev);
}
.card-agentroam .project-headline { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.project-card.card-moodtrip { grid-column: span 7; --accent: var(--moodtrip); }
.project-card.card-flights { grid-column: span 5; --accent: var(--flights); }

/* Flights card leads with the product screen — breaks the repeated card anatomy */
.card-flights .product-visual {
  order: -1;
  margin: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: clamp(24px, 3vw, 40px);
}
.project-topline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.project-logo {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-weight: 900;
  font-size: 1.05rem;
  color: #060a10;
  background: var(--accent);
  border-radius: 10px;
  flex: none;
}
.project-name { font-size: 1.2rem; font-weight: 800; color: var(--ink-strong); }
.project-category { color: var(--muted); font-size: 0.88rem; }

.status-live {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-inline-start: auto;
  padding: 5px 12px;
  color: var(--agentroam-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(52, 211, 153, 0.34);
  border-radius: 999px;
  white-space: nowrap;
}
.status-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--agentroam-green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.project-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 560;
  line-height: 1.12;
  color: var(--ink-strong);
}
.project-copy { max-width: 62ch; color: var(--muted); line-height: 1.65; }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 5px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.project-proof {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: color-mix(in srgb, var(--accent) 78%, var(--ink));
  font-size: 0.9rem;
  font-weight: 650;
}

.project-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
}
.link-arrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.link-arrow .arrow { transition: transform 0.18s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .link-arrow .arrow { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover .arrow { transform: scaleX(-1) translateX(4px); }
.link-arrow.subtle { color: var(--muted); }
.link-arrow.subtle:hover { color: var(--ink-strong); }

/* Product visual (browser composition) */
.product-visual {
  position: relative;
  margin: 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c1018;
}
.card-agentroam .product-visual { background: var(--agentroam-bg); }
.browser-chrome {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  direction: ltr;
}
.browser-chrome .dots { display: flex; gap: 5px; }
.browser-chrome .dots i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.18);
}
.browser-chrome .url {
  flex: 1;
  padding: 4px 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product-screen { padding: clamp(14px, 2vw, 22px); direction: ltr; }
.product-screen svg { display: block; width: 100%; height: auto; }
.product-screen-img { display: block; width: 100%; height: auto; }

/* Split layout for the featured AgentRoam card */
.card-featured-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}
.card-featured-split .product-visual { margin: clamp(24px, 3vw, 40px); }

/* ── MCP infrastructure ─────────────────────────────────────────────── */

.mcp-section { background: var(--bg-elev); border-block: 1px solid var(--line); }

.mcp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mcp-card {
  --accent: var(--mcp);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
}
.mcp-card.accent-agentroam { --accent: var(--agentroam-violet); }
.mcp-card.accent-flights { --accent: var(--flights); }
.mcp-card h3 { font-size: 1.15rem; color: var(--ink-strong); }
.mcp-card p { color: var(--muted); font-size: 0.95rem; }

.endpoint-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
}
.endpoint-row code {
  flex: 1;
  display: block;
  padding: 11px 12px;
  color: var(--teal-bright);
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-button:hover { color: var(--ink-strong); border-color: var(--line-strong); }
.copy-button.is-copied { color: var(--agentroam-green); border-color: rgba(52, 211, 153, 0.4); }

.mcp-links { display: flex; gap: 16px; flex-wrap: wrap; }
.mcp-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.mcp-links a:hover { color: var(--ink-strong); }

.tool-flow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 34px;
  padding: 18px clamp(16px, 2vw, 26px);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  direction: ltr;
}
.tool-flow code {
  padding: 7px 12px;
  color: var(--ink);
  font-size: 0.8rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  white-space: nowrap;
}
.tool-flow code.confirm-gate {
  color: var(--agentroam-green);
  border-color: rgba(52, 211, 153, 0.4);
}
.tool-flow .flow-arrow { color: var(--faint); font-size: 0.85rem; }
.tool-flow-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.86rem;
}

/* ── Capabilities (editorial list) ──────────────────────────────────── */

.capability-list { display: flex; flex-direction: column; }
.capability-row {
  display: grid;
  grid-template-columns: minmax(70px, 130px) minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.capability-row:last-child { border-bottom: 1px solid var(--line); }
.capability-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  color: var(--faint);
  line-height: 1;
}
.capability-row h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink-strong); }
.capability-detail { color: var(--muted); }
.capability-example {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.84rem;
}
.capability-example a { color: var(--muted); text-underline-offset: 3px; }

/* ── Process flow — one continuous line, nodes along it ─────────────── */

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.process-flow::before {
  content: "";
  position: absolute;
  top: 21px;
  inset-inline: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-bright), rgba(61, 218, 208, 0.12));
}
[dir="rtl"] .process-flow::before {
  background: linear-gradient(270deg, var(--teal-bright), rgba(61, 218, 208, 0.12));
}
.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.process-step .step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 12px;
  color: #06231f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--bg-elev);
}
.process-step h3 { font-size: 1.1rem; color: var(--ink-strong); }
.process-step p { color: var(--muted); font-size: 0.94rem; }

/* ── Proof section ──────────────────────────────────────────────────── */

/* Editorial hairline list — no boxes */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-top: 1px solid var(--line);
}
.proof-item strong { color: var(--ink-strong); font-size: 1.02rem; }
.proof-item span { color: var(--muted); font-size: 0.92rem; }

/* ── Contact ────────────────────────────────────────────────────────── */

.contact-section {
  background:
    radial-gradient(56% 60% at 50% 0%, rgba(35, 181, 172, 0.1), transparent 70%),
    var(--bg-elev);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-side p { color: var(--muted); max-width: 52ch; }
.contact-email {
  display: inline-flex;
  margin-top: 24px;
}

.project-form { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}
.form-field label .optional { color: var(--faint); font-weight: 500; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--teal-bright);
  outline-offset: 1px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none;
  padding: 16px 18px;
  color: var(--agentroam-green);
  font-weight: 650;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--radius);
}
.form-success.is-visible { display: block; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px) 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  max-width: var(--max);
  margin-inline: auto;
}
.footer-brand p { max-width: 40ch; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }
.footer-col h4 {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.footer-col a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  color: var(--muted);
  font-size: 0.93rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--ink-strong); }
.footer-bottom {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.86rem;
}

/* ── Case-study pages ───────────────────────────────────────────────── */

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--max);
  margin-inline: auto;
  padding: 22px clamp(20px, 5vw, 64px) 0;
  color: var(--faint);
  font-size: 0.86rem;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { color: var(--ink-strong); }
.breadcrumbs .sep { opacity: 0.6; }

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
}
.case-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.04;
}
.case-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.case-meta .project-category { font-weight: 650; }
.case-hero .hero-copy { margin-top: 20px; }

.case-section { padding-block: clamp(52px, 7vw, 88px); }
.case-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.flow-list { counter-reset: flowstep; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.flow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.flow-list li:last-child { border-bottom: 1px solid var(--line); }
.flow-list li::before {
  counter-increment: flowstep;
  content: counter(flowstep, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--faint);
  font-size: 0.9rem;
}
.flow-list li strong { color: var(--ink-strong); }
.flow-list li.confirm-step::before { color: var(--agentroam-green); }
.flow-list li.confirm-step strong { color: var(--agentroam-green); }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.safeguard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.safeguard {
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.safeguard strong { display: block; margin-bottom: 6px; color: var(--ink-strong); font-size: 0.98rem; }
.safeguard span { color: var(--muted); font-size: 0.9rem; }

pre.code-block {
  margin: 0;
  padding: 22px;
  color: #d9fff8;
  font-size: 0.84rem;
  line-height: 1.6;
  overflow-x: auto;
  background: #0a0f16;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.related-card:hover { border-color: var(--line-strong); }
.related-card strong { color: var(--ink-strong); }
.related-card span { color: var(--muted); font-size: 0.88rem; }

.cta-band {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: clamp(32px, 4vw, 48px);
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(35, 181, 172, 0.12), transparent 65%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 24ch; }
.cta-band p { margin-top: 10px; color: var(--muted); max-width: 52ch; }

/* Stats band (verified figures only) */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-band div {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  min-height: 116px;
  padding: 18px;
  text-align: center;
  background: var(--bg-elev);
  border-inline-end: 1px solid var(--line);
}
.stat-band div:last-child { border-inline-end: 0; }
.stat-band strong {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1;
  color: var(--ink-strong);
}
.stat-band span { color: var(--muted); font-size: 0.88rem; font-weight: 650; }

/* Scroll-reveal animation removed intentionally: content must never depend
   on JS to become visible, and blanket fade-ups read as template decoration.
   The hero orchestration animation is the site's single motion statement. */

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { display: none; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .card-featured-split { grid-template-columns: 1fr; }
  .project-card.card-moodtrip, .project-card.card-flights { grid-column: span 12; }
  .mcp-grid { grid-template-columns: 1fr; }
  .capability-row { grid-template-columns: minmax(56px, 72px) minmax(0, 1fr); }
  .capability-detail { grid-column: 2; }
  .process-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-flow::before { display: none; }
  .process-step .step-node { box-shadow: none; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid, .two-col, .case-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .safeguard-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-band div:nth-child(2n) { border-inline-end: 0; }
  .stat-band div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .section { padding-inline: 18px; padding-block: 56px; }
  .section-heading { margin-bottom: 26px; }
  .capability-row { padding-block: 22px; }
  .proof-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    justify-items: start;
    padding-block: 14px;
  }
  .proof-strip a { font-size: 0.86rem; min-height: 40px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-actions .button { flex: 1 1 auto; }
  .orchestration { padding: 12px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .process-flow { grid-template-columns: 1fr; gap: 22px; }
  .process-flow::before {
    display: block;
    top: 21px;
    bottom: 40px;
    inset-inline: auto;
    inset-inline-start: 21px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--teal-bright), rgba(61, 218, 208, 0.12));
  }
  .process-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .process-step .step-node { grid-row: 1 / span 2; margin-bottom: 0; box-shadow: 0 0 0 8px var(--bg-elev); }
  .process-step h3, .process-step p { grid-column: 2; }
  .proof-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .safeguard-grid, .related-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .tool-flow { overflow-x: auto; flex-wrap: nowrap; }
  .card-featured-split .product-visual { margin: 0 18px 18px; }
}
