/* ═══════════════════════════════════════════════════════════
   OBHOLZ SOLUTIONS — Full showcase.
   Martin-centric hero + scroll sections with system presence.
   ═══════════════════════════════════════════════════════════ */

/* Demo hint badge — identical to .mic-hint, arrow points up, bobs top→bottom */
.demo-hint {
  display: block;
  margin: 10px auto 0;
  width: fit-content;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--color-accent);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(225,31,46,0.25);
  pointer-events: none;
  position: relative;
  opacity: 0;
  animation: demo-hint-in 0.5s 2.8s ease forwards, demo-hint-bob 2s 3.3s ease-in-out infinite;
}
/* Arrow pointing up toward the button */
.demo-hint::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--color-accent);
  border-top: 0;
}
@keyframes demo-hint-in {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes demo-hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

:root {
  --color-bg: var(--os-color-bg, #ffffff);
  --color-text: var(--os-color-text, #0a0a0b);
  --color-muted: var(--os-color-muted, #6b6b70);
  --color-line: var(--os-color-line, #e6e6e8);
  --color-accent: var(--os-color-accent, #e11f2e);
  --color-dark: #0b0b0c;
  --color-dark-surface: #141416;
  --radius: 10px;
  --radius-sm: 6px;
  --tracking-logo: 0.08em;
  --tracking-wide: 0.14em;
  --pad: clamp(20px, 4vw, 64px);
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Screen-reader only — visible to crawlers + assistive tech, invisible to users */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 56px;
  font-family: var(--os-font-primary, "Montserrat", system-ui, -apple-system, sans-serif);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Dark Hero Sections (unified OS Style) ── */
/* Override CSS custom properties inside dark heroes so body color doesn't cascade */
.services-hero, .cases-hero, .products-hero, .solutions-hero,
.pricing-hero, .blog-hero, .about-hero, .contact-hero,
.faq-hero, .hww-hero, .security-hero,
[class$="-hero"] {
  --color-text: #fff;
  --color-muted: rgba(255, 255, 255, 0.5);
  --os-color-text: #fff;
}
[class*="-hero"][style*="background:#0b0b0c"],
section.services-hero, section.cases-hero, section.products-hero, section.solutions-hero,
section.pricing-hero, section.blog-hero, section.about-hero, section.contact-hero,
section.faq-hero, section.hww-hero, section.security-hero {
  color: #fff !important;
}
section.services-hero h1, section.cases-hero h1, section.products-hero h1, section.solutions-hero h1,
section.pricing-hero h1, section.blog-hero h1, section.about-hero h1, section.contact-hero h1,
section.faq-hero h1, section.hww-hero h1, section.security-hero h1 {
  color: #fff !important;
}
section.services-hero p, section.cases-hero p, section.products-hero p, section.solutions-hero p,
section.pricing-hero p, section.blog-hero p, section.about-hero p, section.contact-hero p,
section.faq-hero p, section.hww-hero p, section.security-hero p {
  color: rgba(255,255,255,0.5) !important;
}
section.services-hero .eyebrow, section.cases-hero .eyebrow, section.products-hero .eyebrow,
section.solutions-hero .eyebrow, section.pricing-hero .eyebrow, section.blog-hero .eyebrow,
section.about-hero .eyebrow, section.contact-hero .eyebrow, section.faq-hero .eyebrow,
section.faq-hero .hero-eyebrow, section.hww-hero .eyebrow, section.hww-hero .hero-eyebrow,
section.security-hero .eyebrow,
section.services-hero__eyebrow, section.cases-hero__eyebrow {
  color: #e11f2e !important;
}

/* ── Top Bar ── */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(var(--pad), calc((100% - var(--max-w)) / 2 + var(--pad)));
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
  transition: transform 0.35s ease;
}

.top-bar.is-hidden {
  transform: translateY(-100%);
}

.logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-icon { height: 24px; width: auto; }
.logo-text { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-logo); }

/* ── Subpage Header (Services, Cases, Blog, EN pages) ── */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--color-line, #e6e6e8); padding: 0.75rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-logo { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--color-text, #0a0a0b); }
.brand-logo img { height: 28px; width: auto; }
.brand-name { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-logo, 0.08em); }
.header-actions { display: flex; align-items: center; gap: 1.2rem; }
.nav-link { font-size: 0.82rem; font-weight: 500; color: var(--color-muted, #6b6b70); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--color-text, #0a0a0b); }
.nav-icon { color: var(--color-accent, #e11f2e); }

.top-nav {
  display: flex;
  gap: 1.4rem;
}

.top-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.top-nav a:hover { color: var(--color-text); }

.claim {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
}

/* ── Hero ── */

.hero {
  padding: clamp(80px, 10vw, 160px) var(--pad) clamp(80px, 10vw, 140px);
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.hero-left {
  padding-top: 1rem;
  max-width: 360px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.6rem, 4vw + 1rem, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Hero Telemetry ── */

.hero-telemetry {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 6vw, 6rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.tel { text-align: center; }

.tel-value {
  display: block;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.06em;
}

.tel-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  margin-top: 0.35rem;
}

/* ── Chat ── */

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: none;
}

.chat-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  margin-top: clamp(-6rem, -10vw, -4rem);
  margin-bottom: auto;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.chat-history {
  height: clamp(300px, 42vh, 500px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d0 transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.chat-scroll {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: flex-end;
  padding: 0.8rem 0 1.6rem;
}

.chat-line { max-width: 88%; font-size: 0.95rem; line-height: 1.55; }
.chat-text { white-space: pre-wrap; }
.chat-assistant { align-self: flex-start; }
.chat-user { align-self: flex-end; text-align: right; }
.chat-user.is-draft .chat-text { color: #bbb; }
.chat-user.is-committed .chat-text { color: var(--color-muted); }
.chat-user.is-draft:not(.is-visible) { display: none; }

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  background: var(--color-accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1, start) infinite;
}

/* ── Input Bar ── */

.input-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 60px;
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  background: linear-gradient(135deg, #f8f8f9 0%, #f2f2f4 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-bar:hover {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  transform: translateY(-1px);
}

.input-bar:focus-within {
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(225, 31, 46, 0.1), 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.input-bar textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-text);
  resize: none;
  height: 24px;
  line-height: 1.5;
  overflow: hidden;
}

.input-bar textarea::placeholder {
  color: var(--color-muted);
  font-weight: 300;
}

.input-hint {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--color-muted);
}

/* ── Attach Button ── */

.attach-btn {
  border: 0; background: none; appearance: none; -webkit-appearance: none;
  box-shadow: none; padding: 0; width: 30px; height: 30px; min-width: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-muted); cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.attach-btn svg { width: 18px; height: 18px; }
.attach-btn:hover { color: var(--color-accent); background: rgba(225,31,46,0.06); }

.attach-input { display: none; }

/* ── File Preview ── */

.file-preview {
  display: none;
  gap: 0.4rem;
  padding: 0 0.2rem;
  flex-wrap: wrap;
}
.file-preview.has-files { display: flex; }

.file-chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(225,31,46,0.06);
  border: 1px solid rgba(225,31,46,0.15);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: var(--color-text);
  max-width: 160px;
}
.file-chip-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-chip-remove {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--color-muted); font-size: 0.8rem; line-height: 1;
  transition: color 0.15s;
}
.file-chip-remove:hover { color: var(--color-accent); }

.file-chip-thumb {
  width: 20px; height: 20px; border-radius: 3px;
  object-fit: cover; flex-shrink: 0;
}

/* ── Mic ── */

.mic-wrap {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; min-width: 38px;
}

.mic-btn {
  border: 0; background: var(--color-accent); appearance: none; -webkit-appearance: none;
  box-shadow: none; padding: 0; width: 38px; height: 38px; min-width: 38px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.mic-btn svg { width: 18px; height: 18px; }
.mic-btn:hover { transform: scale(1.08); background: #c91a27; }
.mic-btn.is-listening { background: var(--color-accent); animation: pulse 1.5s ease-in-out infinite; }
.mic-btn.is-disabled { opacity: 0.3; cursor: not-allowed; }

/* Spinner replaces mic button during STT processing */
.mic-spinner {
  width: 38px; height: 38px; display: none; position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(225,31,46,0.06);
}
.mic-spinner::before {
  content: ""; box-sizing: border-box; position: absolute;
  top: 6px; left: 6px; width: 26px; height: 26px;
  border: 2.5px solid var(--color-line); border-top-color: var(--color-accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
.mic-spinner.is-visible { display: flex; align-items: center; justify-content: center; }

/* "Hold to talk" badge */
.mic-hint {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: var(--color-accent);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(225,31,46,0.25);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  animation: mic-hint-in 0.5s 2.8s ease forwards, mic-hint-bob 2s 3.3s ease-in-out infinite;
}
/* Small arrow pointing right toward the mic button */
.mic-hint::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%; transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-accent);
  border-right: 0;
}
.mic-hint.is-hidden {
  animation: mic-hint-out 0.3s ease forwards;
}

@keyframes mic-hint-in {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.8); }
  60%  { opacity: 1; transform: translateY(-50%) scale(1.05); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
@keyframes mic-hint-bob {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50%      { transform: translateY(-50%) translateX(-6px); }
}
@keyframes mic-hint-out {
  to { opacity: 0; transform: translateY(-50%) scale(0.8); }
}

/* ── Sections ── */

.section {
  padding: clamp(64px, 10vw, 120px) var(--pad);
}

.section--dark {
  background: var(--color-dark);
  color: #ffffff !important;
}

/* !important prevents NabuLingo translation from overriding white text on dark backgrounds */
.section--dark .eyebrow { color: var(--color-accent) !important; }
.section--dark h2, .section--dark h2 * { color: #ffffff !important; }
.section--dark h3, .section--dark h3 * { color: #ffffff !important; }
.section--dark p, .section--dark p * { color: rgba(255,255,255,0.65) !important; }
.section--dark a { color: #ffffff !important; }
.section--dark li, .section--dark li * { color: rgba(255,255,255,0.65) !important; }

.section--subtle {
  background: #fafafa;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 50ch;
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.section--dark .section-lead {
  color: rgba(255,255,255,0.55);
}

/* ── Agent Grid ── */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.agent-domain {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--color-dark);
  transition: background 0.3s ease;
}

.agent-domain:hover {
  background: var(--color-dark-surface);
}

.agent-count {
  display: block;
  font-size: 2.4rem;
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1;
  color: #ffffff;
}

.agent-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #ffffff;
}

.agent-desc {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ── Capability Grid ── */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.capability h3 {
  color: var(--color-text);
}

.capability p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}

.capability {
  padding-left: 1rem;
  border-left: 2px solid var(--color-line);
  transition: border-color 0.3s ease;
}

.capability:hover {
  border-color: var(--color-accent);
}

/* ── Process Timeline ── */

/* Vertical timeline — center line, alternating left/right */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
  position: relative;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Central vertical line (gray base) */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-line);
  transform: translateX(-50%);
  z-index: 0;
}

/* Animated red line overlay */
.process-timeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0;
  background: var(--color-accent);
  transform: translateX(-50%);
  z-index: 1;
  transition: height 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-timeline.line-drawn::after {
  height: 100%;
}

.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 50%;
  padding: 0 2.5rem 3rem;
  z-index: 2;
}

/* Odd steps: right side (push to right) */
.process-step:nth-child(odd) {
  align-self: flex-end;
  text-align: left;
  flex-direction: row;
}

/* Even steps: left side (stay left, text right-aligned) */
.process-step:nth-child(even) {
  align-self: flex-start;
  text-align: right;
  flex-direction: row-reverse;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  background: #fafafa;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  position: relative;
  z-index: 3;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

/* Position step-nums on the center line */
.process-step:nth-child(odd) .step-num {
  margin-left: -22px;
  margin-right: 1.5rem;
}

.process-step:nth-child(even) .step-num {
  margin-right: -22px;
  margin-left: 1.5rem;
}

/* Slide-in animations */
.process-step.reveal {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.reveal:nth-child(odd) {
  transform: translateX(40px);
}

.process-step.reveal:nth-child(even) {
  transform: translateX(-40px);
}

.process-step.reveal.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Activated step-num: red glow */
.process-step.reveal.is-visible .step-num {
  border-color: var(--color-accent);
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: 0 0 20px rgba(225, 31, 46, 0.3);
  animation: step-glow 2s ease-in-out 0.4s forwards;
}

@keyframes step-glow {
  0% { box-shadow: 0 0 20px rgba(225, 31, 46, 0.3); }
  50% { box-shadow: 0 0 30px rgba(225, 31, 46, 0.15); }
  100% { box-shadow: 0 0 0px rgba(225, 31, 46, 0); border-color: var(--color-accent); }
}

.process-step-content {
  flex: 1;
}

.process-step h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.process-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: #ffffff;
  background: var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.process-btn:hover {
  color: #ffffff;
  background: #c91a27;
  box-shadow: 0 4px 16px rgba(225, 31, 46, 0.25);
}

/* ── CTA Section ── */

.cta-section {
  text-align: center;
  background: #fafafa;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.cta-text {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--color-dark);
  background: var(--color-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-button:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.cta-button .label-dot {
  width: 5px;
  height: 5px;
}

/* ── Trust Strip ── */

.trust-strip {
  padding: 1.5rem var(--pad);
  border-bottom: 1px solid var(--color-line);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.trust-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex-wrap: wrap;
}

.trust-logo {
  color: var(--color-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.trust-logo:hover {
  opacity: 0.7;
}

.trust-logo svg {
  height: 13px;
  width: auto;
  overflow: visible;
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 2rem;
}

.pricing-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(225,31,46,0.02) 0%, transparent 40%);
}

.pricing-card--featured:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(225,31,46,0.1);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.pricing-tier {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
}

.pricing-price {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 200;
  line-height: 1.1;
  margin: 0.6rem 0 0.4rem;
  letter-spacing: -0.02em;
}

.pricing-currency {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--color-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0 0 1.2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  padding-left: 1.2rem;
}

.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-50%);
}

.pricing-ideal {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
}

/* ── FAQ ── */

.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-muted);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1.5px;
  transform: translateX(-50%);
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

details[open] .faq-icon::before,
details[open] .faq-icon::after {
  background: var(--color-accent);
}

.faq-answer {
  padding: 0 0 1.2rem;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Hamburger ── */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  z-index: 102;
}

.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Hero Network Canvas ── */

.hero {
  position: relative;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content,
.hero-telemetry {
  position: relative;
  z-index: 1;
}

/* ── Footer ── */

.bottom-bar {
  background: var(--color-dark);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem var(--pad);
  font-size: 0.72rem;
}

.footer-inner-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-left { display: flex; align-items: center; gap: 1rem; }
.footer-brand { font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-logo); color: #ffffff; }
.footer-claim { color: rgba(255,255,255,0.4); }
.footer-center { display: flex; gap: 1.5rem; }
.footer-center a { color: rgba(255,255,255,0.5); transition: color 0.2s ease; }
.footer-center a:hover { color: #ffffff; }
.footer-right { display: flex; gap: 1.2rem; }
.footer-copy { color: rgba(255,255,255,0.3); }

/* ── Subpages (Legal, etc.) ── */

.subpage-content {
  padding: clamp(100px, 12vw, 160px) var(--pad) clamp(64px, 8vw, 120px);
  max-width: 720px;
  margin: 0 auto;
}

.subpage-logo {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 0 2rem;
}

.subpage-logo--center {
  margin-left: auto;
  margin-right: auto;
}

.subpage-content h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.subpage-content .subpage-meta {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin: 0 0 2.5rem;
}

.subpage-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.subpage-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subpage-content p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin: 0 0 0.8rem;
}

.subpage-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.subpage-content ul li {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}

.subpage-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}

.subpage-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.subpage-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.agent-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.agent-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.agent-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.agent-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.agent-grid .reveal:nth-child(6) { transition-delay: 0.4s; }

.capability-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.capability-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.capability-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.capability-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.capability-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.process-timeline .reveal:nth-child(1) { transition-delay: 0s; }
.process-timeline .reveal:nth-child(2) { transition-delay: 0.15s; }
.process-timeline .reveal:nth-child(3) { transition-delay: 0.3s; }
.process-timeline .reveal:nth-child(4) { transition-delay: 0.45s; }
.process-timeline .reveal:nth-child(5) { transition-delay: 0.6s; }
.process-timeline .reveal:nth-child(6) { transition-delay: 0.75s; }

.pricing-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

.faq-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.faq-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.faq-list .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ── Hero Entrance — staggered fade-in ── */

.hero-left .eyebrow { animation: hero-in 0.8s ease both; animation-delay: 0.1s; }
.hero-left h1 { animation: hero-in 0.9s ease both; animation-delay: 0.25s; }
.hero-left .hero-sub { animation: hero-in 0.8s ease both; animation-delay: 0.5s; }
.hero-right { animation: hero-in 0.9s ease both; animation-delay: 0.4s; }

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

/* ── Telemetry red line draw ── */

.hero-telemetry {
  position: relative;
  border-top: none !important;
}

.hero-telemetry::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-line);
}

.hero-telemetry::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--color-accent);
  animation: line-draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

@keyframes line-draw {
  to { width: 100%; }
}

/* ── Agent Domain hover glow ── */

.agent-domain {
  position: relative;
  overflow: hidden;
}

.agent-domain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(225, 31, 46, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.agent-domain:hover::after {
  opacity: 1;
}

/* ── Agent count number animate on hover ── */

.agent-count {
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.agent-domain:hover .agent-count {
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

/* ── Capability border grow animation ── */

.capability {
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent)) no-repeat left top;
  background-size: 2px 0%;
  border-left: 2px solid var(--color-line);
  transition: border-color 0.3s ease, background-size 0.4s ease;
}

.capability:hover {
  border-color: transparent;
  background-size: 2px 100%;
}

/* ── Process stagger delays ── */

/* ── Input bar idle shimmer ── */

.input-bar {
  animation: input-breathe 4s ease-in-out infinite;
}

@keyframes input-breathe {
  0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,0.8); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8); }
}

.input-bar:focus-within {
  animation: none;
}

/* ── CTA button shimmer sweep ── */

.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(225, 31, 46, 0.08), transparent);
  animation: shimmer 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 140%; }
}

/* ── Scroll progress indicator (red line at top) ── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 101;
  transition: width 0.1s linear;
}

/* ── Parallax subtle offset ── */

.hero-left {
  will-change: transform;
}

/* ── Animations ── */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-left {
    max-width: none;
  }

  .hero-telemetry {
    justify-content: space-between;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .process-timeline::before,
  .process-timeline::after {
    left: 21px;
    transform: none;
  }

  .process-step {
    width: 100%;
    align-self: flex-start !important;
    text-align: left !important;
    flex-direction: row !important;
    padding: 0 0 2.5rem 3.5rem;
  }

  .process-step:nth-child(odd) .step-num,
  .process-step:nth-child(even) .step-num {
    position: absolute;
    left: 0;
    margin: 0;
  }

  .process-step.reveal:nth-child(odd),
  .process-step.reveal:nth-child(even) {
    transform: translateX(30px);
  }

  .process-step.reveal.is-visible {
    transform: translateX(0);
  }

  /* Mobile nav — inline, wrapping, always visible */
  .top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .top-nav a {
    font-size: 0.65rem;
  }

  .burger {
    display: none;
  }

  .claim {
    display: none;
  }

  .trust-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .trust-logos {
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-telemetry {
    flex-wrap: wrap;
    gap: 1.2rem;
  }

  .tel { flex: 1; min-width: 80px; }

  .agent-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

}

/* ═══ NabuLingo Translation Protection ═══
 * NabuLingo wraps translated text in <font> or <span> with inline color.
 * This overrides any inherited white text on dark backgrounds.
 * Fix: Force color via !important on all elements in dark contexts.
 * The * selector catches NabuLingo-injected wrapper elements.
 */
/* NabuLingo color protection — only on NON-hero dark sections */
.bottom-bar *, .bottom-bar a,
.agent-count, .agent-count *,
.agent-name, .agent-name * {
  color: inherit !important;
}

