/* ============================================================
   AI Nomics — ainomics.co
   Palette: #233757 dark blue | #0077f2 vivid blue | #fff | #000
   Typography: Inter + IBM Plex Mono (same pairing as ChatGPT / Codex UI;
   marketing pages use Söhne + Söhne Mono — not licensed for third-party web)
   ============================================================ */

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

:root {
  --dark: #233757;
  --blue: #0077f2;
  --blue-light: #e8f2fe;
  --blue-mid: #005ec2;
  --white: #ffffff;
  --black: #0a0a0a;
  --gray: #f7f7f8;
  --gray-mid: #ececf1;
  --text: #1a1a2e;
  --text-muted: #5e5e6a;
  --surface-soft: #f3f6fb;
  --surface-softer: #eef3fb;
  --surface-card-tint: linear-gradient(180deg, #fbfcff 0%, #ffffff 70%);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: 0.2s ease;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --nav-h: 64px;
  --focus-ring: var(--blue);
  --focus-ring-width: 2px;
  --focus-ring-offset: 3px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
  color: var(--text);
  background: #fafbfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--black);
}

em { font-style: italic; color: var(--blue); font-weight: 500; }

.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;
}

/* Skip link — visible only when focused (keyboard) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  z-index: 200;
}

.skip-link:focus {
  outline: none;
}

.skip-link:focus-visible {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.65rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(35, 55, 87, 0.25);
  outline: var(--focus-ring-width) solid var(--white);
  outline-offset: 2px;
}

/* Anchor targets clear fixed nav */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* Headings: reduce widows where supported */
.hero-title,
.section-title,
.cta-inner h2,
.stack-content h3 {
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .hero-title,
  .section-title,
  .cta-inner h2 {
    max-width: 100%;
  }
}

/* Focus-visible — keyboard and assistive tech */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.nav-links a:focus-visible,
.nav-logo:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.btn-primary:focus-visible {
  outline: var(--focus-ring-width) solid var(--white);
  outline-offset: var(--focus-ring-offset);
  box-shadow: 0 0 0 4px rgba(0, 119, 242, 0.45);
}

.btn-ghost:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.tab-btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: 2px;
}

/* Touch: avoid 300ms tap delay on controls */
a,
button {
  touch-action: manipulation;
}

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

  .eyebrow-dot {
    animation: none;
  }

  .showcase-msg-enter {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .showcase-thread {
    transition: none !important;
  }

  .showcase-welcome-layer {
    transition: none !important;
  }

  #showcase-chat-scroll {
    transition: none !important;
  }

  .showcase-msg-enter--first,
  .showcase-msg-enter--follow {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .showcase-typing span {
    animation: none !important;
  }

  .showcase-chart-bar {
    transition: none !important;
  }

  .fade-in {
    transition: none;
  }
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 7.5rem 0; }

/* Alternating bands — color without heaviness */
#solution,
#ask {
  background: var(--surface-soft);
  border-top: 1px solid rgba(0, 119, 242, 0.08);
  border-bottom: 1px solid rgba(0, 119, 242, 0.08);
}

#problem {
  background: var(--white);
}

#philosophy {
  background: var(--white);
  position: relative;
}

/* Centered copy (Codex-style marketing layout) */
.section .container {
  text-align: center;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(35, 55, 87, 0.06);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 119, 242, 0.22); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn-ghost:hover { border-color: #d1d1db; background: #fafafa; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }

.btn-lg { padding: 0.85rem 1.75rem; font-size: 16px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
}

.nav-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  gap: 0.125rem;
  margin: 0;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--dark); background: rgba(0, 0, 0, 0.04); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch__link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.lang-switch__link:hover {
  color: var(--blue);
  background: rgba(0, 119, 242, 0.08);
}

.lang-switch__link.is-active {
  color: var(--blue);
  pointer-events: none;
  cursor: default;
}

.lang-switch__sep {
  color: rgba(35, 55, 87, 0.35);
  user-select: none;
  font-weight: 500;
}

.nav-cta { padding: 0.55rem 1.2rem; font-size: 14px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 9rem;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% -20%, rgba(0, 119, 242, 0.07), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-headline {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 3rem;
}

.hero-headline-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 4.8vw, 62px);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--black);
  letter-spacing: -0.04em;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.hero-proof {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-mid);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- HERO SHOWCASE (Codex / Claude-style shell + conversation thread) ---- */
.hero-showcase {
  width: 100%;
  padding: 0 0 4.5rem;
  background: transparent;
}

.showcase-card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(35, 55, 87, 0.08);
  overflow: hidden;
}

.showcase-shell {
  position: relative;
  min-height: 420px;
  height: min(58vh, 560px);
  background: #ffffff;
}

/* Conversation thread layer (under welcome overlay until cycle runs) */
#showcase-chat-scroll {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 119, 242, 0.2) transparent;
}

.showcase-chat-scroll::-webkit-scrollbar {
  width: 6px;
}

.showcase-chat-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 119, 242, 0.2);
  border-radius: 99px;
}

/* Full empty-state overlay (Codex-style) — clips the zoom-into-composer */
.showcase-welcome-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  text-align: center;
  padding: 1.5rem 1.35rem;
  background: #ffffff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
}

/* Centers the mock UI vertically in the shell */
.showcase-welcome-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.showcase-welcome-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.showcase-empty {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.showcase-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.showcase-mark {
  width: auto;
  height: 44px;
  max-width: 48px;
  object-fit: contain;
  display: block;
}

.showcase-headline {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

.showcase-headline .showcase-name-accent {
  color: var(--blue);
  font-weight: 600;
}

.showcase-env {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #6b6b6b;
  background: none;
  border: none;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: default;
}

.showcase-env-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9ca3af;
  margin-top: 2px;
}

.showcase-suggestions {
  width: 100%;
}

.showcase-suggestions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.showcase-suggestions-spacer {
  flex: 1;
}

.showcase-explore {
  font-size: 12px;
  font-weight: 500;
  color: #888888;
  text-decoration: none;
}

.showcase-explore:hover {
  color: var(--blue);
}

.showcase-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  text-align: left;
}

.showcase-suggestion-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.75rem 0.65rem;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #333;
  cursor: default;
  text-align: left;
}

.showcase-suggestion-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.showcase-suggestion-text {
  flex: 1;
}

.showcase-composer {
  width: 100%;
}

.showcase-composer-field {
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #ffffff;
  padding: 0.85rem 1rem 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.showcase-composer-placeholder {
  font-size: 13px;
  line-height: 1.45;
  color: #a3a3a3;
  margin: 0 0 0.85rem;
  text-align: left;
}

.showcase-composer-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.showcase-composer-icon {
  font-size: 18px;
  font-weight: 300;
  color: #737373;
  width: 1.75rem;
  text-align: center;
  line-height: 1;
}

.showcase-composer-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.showcase-composer-mic {
  font-size: 14px;
  opacity: 0.5;
  padding: 0 0.25rem;
}

.showcase-composer-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.showcase-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem;
  box-sizing: border-box;
  text-align: left;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.showcase-thread--fadeout {
  opacity: 0;
}

.showcase-turn {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.showcase-msg-enter {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.42s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.32, 1);
}

.showcase-msg-enter.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* First line of the session — stronger “step into” motion (with chat zoom) */
.showcase-msg-enter--first {
  transform: translateY(22px) scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-msg-enter--first.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Rest of the thread — light, readable motion */
.showcase-msg-enter--follow {
  transform: translateY(10px);
  transition:
    opacity 0.38s ease,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-msg-enter--follow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* User turn — soft pill, brand-tinted (Claude user bubble feel) */
.showcase-user-msg {
  align-self: flex-start;
  max-width: 100%;
}

.showcase-user-msg .showcase-llm-query {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.45;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 119, 242, 0.12);
  box-shadow: 0 1px 2px rgba(35, 55, 87, 0.04);
  letter-spacing: -0.02em;
}

/* Assistant — plain prose column (Claude reply) */
.showcase-assistant-msg {
  padding-left: 0.15rem;
  border-left: 2px solid rgba(0, 119, 242, 0.35);
}

.showcase-llm-answer {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: rgba(35, 55, 87, 0.92);
  line-height: 1.58;
  margin: 0;
  padding: 0 0 0 0.65rem;
  letter-spacing: -0.018em;
}

.showcase-chart {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem 0.65rem;
  margin-left: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 119, 242, 0.04) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(0, 119, 242, 0.1);
  box-shadow: 0 1px 3px rgba(35, 55, 87, 0.05);
}

.showcase-chart-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(35, 55, 87, 0.55);
  margin-bottom: 0.65rem;
}

.showcase-chart-row {
  display: grid;
  grid-template-columns: minmax(4.5rem, 1fr) minmax(0, 2.5fr) auto;
  align-items: center;
  gap: 0.45rem 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 12px;
}

.showcase-chart-row:last-of-type {
  margin-bottom: 0;
}

.showcase-chart-label {
  font-weight: 500;
  color: rgba(35, 55, 87, 0.88);
  letter-spacing: -0.02em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-chart-bar-wrap {
  height: 8px;
  border-radius: 99px;
  background: rgba(0, 119, 242, 0.08);
  overflow: hidden;
  min-width: 0;
}

.showcase-chart-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue) 0%, #4a9ef0 100%);
  min-width: 4px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-msg-enter:not(.is-visible) .showcase-chart-bar {
  width: 0 !important;
}

.showcase-chart-value {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: rgba(35, 55, 87, 0.65);
  font-size: 11px;
  white-space: nowrap;
}

.showcase-chart-ref {
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(0, 119, 242, 0.2);
  font-size: 11px;
  line-height: 1.4;
  color: rgba(35, 55, 87, 0.55);
}

.showcase-assistant-actions {
  margin: 0.75rem 0 0 0.65rem;
}

.showcase-export-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid rgba(0, 119, 242, 0.35);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(35, 55, 87, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.showcase-export-btn:hover {
  background: rgba(0, 119, 242, 0.06);
  border-color: rgba(0, 119, 242, 0.5);
}

.showcase-export-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Typing indicator (between user and assistant) */
.showcase-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.5rem 0.75rem;
  align-self: flex-start;
  margin-left: 0.15rem;
}

.showcase-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(35, 55, 87, 0.35);
  animation: showcase-typing-dot 1.15s ease-in-out infinite;
}

.showcase-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.showcase-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes showcase-typing-dot {
  0%, 70%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  35% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ---- SECTION LABELS ---- */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.section-intro .section-eyebrow {
  margin-bottom: 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
}

.section-sub {
  font-size: 17px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 3.5rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* ---- PROBLEM — horizontal flow (white card, vivid blue icons) ---- */
.problem-flow {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 119, 242, 0.1);
  padding: 2.25rem 1.35rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 18px rgba(35, 55, 87, 0.06);
}

.problem-flow__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
}

.problem-flow__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 0 0.4rem;
}

.problem-flow__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  box-sizing: border-box;
}

.problem-flow__icon-img {
  width: 168px;
  height: 168px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  /* Monochrome line art → exact brand blue on transparent PNGs */
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2596%) hue-rotate(200deg) brightness(1.02) contrast(1.05);
}

.problem-flow__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.problem-flow__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.problem-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  color: rgba(0, 119, 242, 0.35);
  align-self: center;
  margin-top: 4.5rem;
}

.problem-flow__arrow svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .problem-flow__inner {
    flex-direction: column;
    gap: 0.4rem;
  }

  .problem-flow__icon {
    width: min(168px, 72vw);
    height: min(168px, 72vw);
  }

  .problem-flow__icon-img {
    width: min(168px, 72vw);
    height: min(168px, 72vw);
  }

  .problem-flow__arrow {
    width: 100%;
    margin: 0.25rem 0;
    transform: rotate(90deg);
  }

  .problem-flow__step {
    padding: 0.75rem 0.25rem;
  }
}

/* Section step number bubbles — shared pill (Stack) */
.stack-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.4rem;
  box-sizing: border-box;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
  background: var(--blue);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Problem section — headline stack + body copy (readable width, clear hierarchy) */
.section-title--problem {
  margin-bottom: 0.35rem;
  max-width: 52rem;
}

.problem-kicker {
  font-size: clamp(17px, 1.85vw, 20px);
  font-weight: 500;
  color: var(--blue);
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.problem-body {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  padding: 0 1rem;
  text-align: center;
}

.problem-body p {
  font-size: clamp(16px, 1.75vw, 18px);
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem;
}

.problem-body p:last-child {
  margin-bottom: 0;
}

.problem-body strong {
  color: var(--blue);
  font-weight: 600;
}

/* ---- SOLUTION — waterfall stack (top → bottom, cleaning first) */
.section--solution {
  position: relative;
}

.section--solution::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, 960px);
  height: min(720px, 90vh);
  background: radial-gradient(ellipse 78% 58% at 50% -5%, rgba(0, 119, 242, 0.1), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.section--solution .container {
  position: relative;
  z-index: 1;
}

.section--solution .section-sub {
  margin-bottom: 2.25rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.solution-stack-wrap {
  margin-top: 0.25rem;
}

.solution-stack-wrap--waterfall {
  position: relative;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.75rem;
}

/* Center spine — reads as a waterfall down the page */
.solution-stack-wrap--waterfall::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(0, 119, 242, 0.45) 0%,
    rgba(0, 119, 242, 0.18) 45%,
    rgba(0, 119, 242, 0.12) 100%
  );
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}

.solution-stack.stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.solution-stack--waterfall .stack-item {
  width: calc(50% - 1rem);
  max-width: none;
  flex-direction: row;
  align-items: flex-start;
  text-align: left;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
}

.solution-stack--waterfall .stack-item:nth-child(odd) {
  align-self: flex-start;
}

.solution-stack--waterfall .stack-item:nth-child(even) {
  align-self: flex-end;
}

.solution-stack--waterfall .stack-content {
  flex: 1;
  min-width: 0;
}

.stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.35rem;
  border: 1px solid rgba(0, 119, 242, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(35, 55, 87, 0.05);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  text-align: center;
}

.stack-item:hover {
  border-color: rgba(0, 119, 242, 0.22);
  box-shadow: 0 10px 36px rgba(35, 55, 87, 0.08);
}

.stack-item--accent {
  background: linear-gradient(180deg, rgba(0, 119, 242, 0.07) 0%, #ffffff 55%);
  border-color: rgba(0, 119, 242, 0.22);
  box-shadow: 0 8px 32px rgba(0, 119, 242, 0.1);
}

.stack-item--accent:hover {
  box-shadow: 0 12px 40px rgba(0, 119, 242, 0.14);
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.stack-item--accent .stack-tag { color: var(--blue-mid); }

.stack-content h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.solution-stack--waterfall .stack-content h3 {
  font-size: 18px;
}

.stack-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .solution-stack-wrap--waterfall::before {
    display: none;
  }

  .solution-stack--waterfall .stack-item {
    width: 100%;
    align-self: stretch !important;
  }
}

.solution-trust-line {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 2.75rem auto 0;
  padding: 0 1rem;
}

/* ---- PHILOSOPHY — constellation: gradient headline + floating signal nodes ---- */
.section--philosophy {
  overflow: hidden;
}

.philosophy-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(0, 119, 242, 0.09), transparent 58%),
    radial-gradient(ellipse 50% 45% at 100% 85%, rgba(0, 119, 242, 0.05), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 60%, rgba(74, 158, 240, 0.04), transparent 45%);
}

.philosophy-layout {
  position: relative;
  z-index: 1;
}

.philosophy-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 auto 0.25rem;
  max-width: 48rem;
  text-align: center;
}

.philosophy-heading__line {
  display: block;
  background: linear-gradient(
    95deg,
    #141b2e 0%,
    #1e3a5f 18%,
    var(--blue) 45%,
    #6eb8ff 55%,
    var(--blue) 62%,
    #141b2e 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: philosophy-hue-wave 5.5s ease-in-out infinite alternate;
}

.philosophy-heading__accent {
  display: block;
  margin-top: 0.12em;
  background: linear-gradient(
    95deg,
    #141b2e 0%,
    #1e3a5f 18%,
    var(--blue) 45%,
    #6eb8ff 55%,
    var(--blue) 62%,
    #141b2e 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: philosophy-hue-wave 5.5s ease-in-out infinite alternate;
  animation-delay: -1.75s;
}

.philosophy-glow {
  max-width: 30rem;
  margin: 2.75rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.philosophy-glow__line {
  margin: 0.65rem 0;
  font-size: clamp(15px, 1.65vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
  background: linear-gradient(
    95deg,
    rgba(65, 75, 95, 0.88) 0%,
    rgba(30, 58, 95, 0.95) 20%,
    var(--blue) 45%,
    #7ec0ff 52%,
    var(--blue) 58%,
    rgba(65, 75, 95, 0.88) 100%
  );
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: philosophy-hue-wave 6s ease-in-out infinite alternate;
}

.philosophy-glow__line:nth-child(1) {
  animation-delay: 0s;
}

.philosophy-glow__line:nth-child(2) {
  animation-delay: -2s;
}

.philosophy-glow__line:nth-child(3) {
  animation-delay: -4s;
}

/* Back-and-forth: alternate direction each pass so the highlight scans L→R then R→L */
@keyframes philosophy-hue-wave {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .philosophy-heading__line,
  .philosophy-heading__accent,
  .philosophy-glow__line {
    animation: none;
    background-size: 100% auto;
  }

  .philosophy-heading__line,
  .philosophy-heading__accent {
    background: linear-gradient(102deg, #0f1729 0%, var(--blue) 48%, #4a9ef0 100%);
  }

  .philosophy-glow__line {
    color: var(--text-muted);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* ---- TABS ---- */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto 2rem;
  background: rgba(0, 119, 242, 0.08);
  border: 1px solid rgba(0, 119, 242, 0.12);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.tab-btn:hover { color: var(--dark); }
.tab-btn.active { background: var(--white); color: var(--dark); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.question-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.question-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.question {
  font-size: 14px;
  color: var(--text);
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 119, 242, 0.12);
  border-radius: 10px;
  line-height: 1.5;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: default;
  box-shadow: 0 1px 2px rgba(35, 55, 87, 0.04);
}
.question:hover {
  border-color: rgba(0, 119, 242, 0.35);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 119, 242, 0.08);
}

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

@media (min-width: 1100px) {
  .questions-grid--four {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- CTA ---- */
.section-cta {
  background: linear-gradient(180deg, var(--surface-softer) 0%, #ffffff 55%);
  border-top: 1px solid rgba(0, 119, 242, 0.1);
  padding: 7rem 0;
  text-align: center;
}

.section-cta .container {
  text-align: center;
}

.cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-logo {
  width: auto;
  height: 80px;
  max-width: 96px;
  object-fit: contain;
}

.cta-inner h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--black);
  line-height: 1.08;
}

.cta-domain {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--white);
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 119, 242, 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.footer-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-logo {
  width: auto;
  height: 32px;
  max-width: 40px;
  object-fit: contain;
}

.footer-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    padding-top: 8rem;
  }
  .questions-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-actions {
    gap: 0.5rem;
  }
  .lang-switch {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .section-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .tab-nav { flex-direction: column; width: 100%; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .showcase-shell {
    min-height: 380px;
    height: min(62vh, 540px);
  }
  .showcase-welcome-center {
    justify-content: flex-start;
  }
  .showcase-cards {
    grid-template-columns: 1fr;
  }
  .showcase-thread {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .showcase-llm-answer {
    font-size: 15px;
  }
  .showcase-chart-row {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .showcase-chart-row .showcase-chart-bar-wrap {
    grid-column: 1 / -1;
  }
  .showcase-chart-row .showcase-chart-value {
    justify-self: end;
    grid-column: 1 / -1;
  }
}
