
/* ================================================================
   DESIGN SYSTEM
   ================================================================ */
:root {
  /* Colors */
  /* ---- COLOR TOKENS (matched to original medsyncai.us palette) ---- */
  /* Warm earth-tone scale, not navy */
  --ink:        #2C1810;   /* deep warm brown — primary text */
  --ink-2:      #3d2418;   /* slightly lighter brown */
  --ink-3:      #5C3317;   /* mid brown — body text */
  --ink-mute:   #8a6a4a;   /* muted warm brown */
  --rule:       #efe4d3;   /* warm cream border */
  --rule-soft:  #f7eede;
  --bg:         #FFFDF8;   /* cream — primary body background */
  --bg-tint:    #FFF9EE;   /* slightly warmer cream — section bg */
  --bg-tint-2:  #FFF5E6;   /* warmer cream still — dark accent bg */

  /* Brand bronze accent — the original palette */
  --accent:       #CD7F32;       /* bronze */
  --accent-700:   #A0522D;       /* bronze-dark */
  --accent-300:   #EEDC82;       /* bronze-light / champagne */
  --accent-50:    #FBF1E0;       /* very pale bronze tint */
  --accent-100:   #F5DDB6;       /* pale bronze tint */

  /* Bronze gradients (original signature pattern) */
  --gradient-bronze: linear-gradient(135deg, #CD7F32, #A0522D, #EEDC82);
  --gradient-button: linear-gradient(90deg, #CD7F32 0%, #A0522D 50%, #EEDC82 100%);

  /* Functional */
  --ok:         #107a4d;
  --warn:       #d97706;
  --err:        #c0392b;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 40px);

  /* Effects (warm-tinted) */
  --shadow-sm:  0 1px 2px rgba(101, 67, 33, 0.04), 0 2px 6px rgba(101, 67, 33, 0.05);
  --shadow-md:  0 4px 14px rgba(101, 67, 33, 0.07), 0 8px 30px rgba(101, 67, 33, 0.06);
  --shadow-lg:  0 12px 40px rgba(101, 67, 33, 0.09), 0 24px 60px rgba(160, 82, 45, 0.08);
  --shadow-bronze: 0 8px 32px rgba(160, 82, 45, 0.25);
  --radius:     14px;
  --radius-sm:  8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle grain texture in background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ================================================================
   TYPOGRAPHY UTILITIES
   ================================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  background: rgba(205, 127, 50, 0.10);
  border: 1px solid rgba(205, 127, 50, 0.30);
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: eyebrow-pulse 2s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.display-1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.display-1 em {
  font-style: italic;
  font-weight: 400;
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.display-2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.display-2 em {
  font-style: italic;
  font-weight: 500;
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
}

.lede {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  color: var(--ink);
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  line-height: 1;
}
/* The bronze M serves as both icon AND first letter of MedSyncAI */
.nav-brand-m {
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
  margin-right: -2px;
  flex-shrink: 0;
}
.nav-brand-rest {
  display: inline-block;
  margin-left: 0;
  background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.nav-brand-tagline {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-700);
  /* Indent slightly so it aligns with the visual start of the wordmark */
  padding-left: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent-700); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--gradient-button);
  background-size: 200% 100%;
  color: white !important;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.28);
  transition: background-position 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background-position: 100% 0%;
  box-shadow: 0 6px 20px rgba(160, 82, 45, 0.38);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}
.btn-primary {
  background: var(--gradient-button);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: white;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-bronze);
}
.btn-primary:hover {
  background-position: 100% 0%;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(160, 82, 45, 0.32);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(205, 127, 50, 0.35);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(205, 127, 50, 0.06);
  color: var(--accent-700);
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(40px, 6vh, 72px) 0 clamp(20px, 3vh, 32px);
  overflow: hidden;
  background: linear-gradient(160deg, #FFFDF8 0%, #FFF5E6 40%, #FFFDF8 100%);
}

/* Subtle bronze/brown radial pattern (matches original) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(205, 127, 50, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-content .eyebrow { margin-bottom: 22px; }
.hero-content h1 { margin-bottom: 20px; max-width: 14ch; }
.hero-content .lede { margin-bottom: 28px; }

/* Status-quo pain strip above the headline */
.hero-pains {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 28px;
  padding: 14px 18px;
  background: rgba(70, 50, 40, 0.04);
  border: 1px solid rgba(70, 50, 40, 0.12);
  border-radius: 8px;
  position: relative;
}
.hero-pains-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(70, 50, 40, 0.55);
  padding-right: 16px;
  border-right: 1px solid rgba(70, 50, 40, 0.18);
  white-space: nowrap;
}
.hero-pains-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-pain {
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
}
.hero-pain:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(70, 50, 40, 0.15);
}
.hero-pain strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(70, 50, 40, 0.85);
  white-space: nowrap;
}
.hero-pain span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(70, 50, 40, 0.55);
}
@media (max-width: 720px) {
  .hero-pains { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-pains-label { padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid rgba(70, 50, 40, 0.18); width: 100%; }
  .hero-pains-items { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-pain:not(:last-child)::after { display: none; }
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 540px) {
  .hero-proof { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* Full-width 7-item proof row — spans both hero-grid columns.
   Treated as a dark "proof bar" to contrast against the cream hero. */
.hero-proof-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  margin-top: clamp(28px, 4vh, 40px);
  padding: 24px clamp(24px, 3vw, 36px);
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 0 16px 40px -20px rgba(44, 24, 16, 0.35);
  position: relative;
  overflow: hidden;
}
.hero-proof-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bronze);
  opacity: 0.85;
}
@media (max-width: 980px) {
  .hero-proof-row { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
}
@media (max-width: 560px) {
  .hero-proof-row { grid-template-columns: repeat(2, 1fr); row-gap: 22px; padding: 20px 22px; }
}

.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.hero-proof-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -10px;
  width: 1px;
  background: rgba(238, 220, 130, 0.18);
}
@media (max-width: 980px) {
  .hero-proof-item::after { display: none; }
}
.hero-proof-item strong {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
  white-space: nowrap;
}
.hero-proof-item span {
  font-size: 10.5px;
  color: rgba(238, 220, 130, 0.78);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Hero visual: stylized app mockup */
.hero-visual {
  position: relative;
  perspective: 1600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.hero-visual .hero-pains { margin: 0; }
.app-mockup {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 80px -20px rgba(160, 82, 45, 0.30), 0 16px 32px -12px rgba(44, 24, 16, 0.18);
  overflow: hidden;
  transform: rotateY(-2deg) rotateX(1deg);
  transform-origin: center;
}

/* Feature pills below the mockup */
.feature-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 28px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: rgba(255, 246, 224, 0.6);
  border: 1px solid rgba(205, 127, 50, 0.25);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}
.feature-pill .check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-bronze);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.feature-pill .check svg {
  width: 10px;
  height: 10px;
  stroke: white;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 720px) {
  .feature-pills { flex-wrap: wrap; }
  .feature-pill { flex: 0 1 auto; font-size: 11px; padding: 9px 16px 9px 9px; }
  .feature-pill .check { width: 20px; height: 20px; }
  .feature-pill .check svg { width: 11px; height: 11px; }
}
.app-mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--rule);
}
.app-mockup-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.app-mockup-bar .dot.r { background: #ff5f57; }
.app-mockup-bar .dot.y { background: #febc2e; }
.app-mockup-bar .dot.g { background: #28c840; }
.app-mockup-bar .title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.app-mockup-bar .live {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ok);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-mockup-bar .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.app-mockup-body {
  padding: 22px;
  display: grid;
  gap: 18px;
}
@media (max-width: 540px) {
  .app-mockup-body { padding: 14px; gap: 12px; }
  .flow-node { padding: 8px 4px; }
  .flow-node .label { font-size: 9px; }
  .flow-node .sub { font-size: 8px; }
  .flow-arrow { width: 8px; }
  .prompt-box-text { font-size: 12.5px; }
}

.prompt-box {
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
}
.prompt-box-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-700);
  margin-bottom: 8px;
}
.prompt-box-text {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.prompt-box-text .cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--accent);
  margin-left: 1px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.flow-canvas {
  position: relative;
  background: linear-gradient(180deg, var(--bg-tint-2) 0%, var(--bg-tint) 100%);
  border-radius: 10px;
  padding: 20px 16px;
  border: 1px solid var(--rule);
  min-height: 130px;
}
.flow-canvas-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.flow-canvas-label .name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.flow-canvas-label .build {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-700);
  font-weight: 500;
}
.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.flow-node {
  flex: 1;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
  animation: node-pop 0.4s ease-out backwards;
}
.flow-node .icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent-50);
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
}
.flow-node .icon svg { width: 11px; height: 11px; stroke: var(--accent-700); }
.flow-node .label { font-family: var(--font-mono); font-size: 10px; }
.flow-node .sub { font-size: 9px; color: var(--ink-mute); margin-top: 2px; }

.flow-node:nth-child(1) { animation-delay: 0.4s; }
.flow-node:nth-child(3) { animation-delay: 0.7s; }
.flow-node:nth-child(5) { animation-delay: 1.0s; }
.flow-node:nth-child(7) { animation-delay: 1.3s; }

@keyframes node-pop {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.flow-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 14px;
  position: relative;
  align-self: center;
  display: flex;
  align-items: center;
}
/* The dashed line: bronze dashes that "flow" left-to-right via background-position animation */
.flow-arrow::before {
  content: "";
  flex: 1;
  height: 2px;
  background-image: linear-gradient(90deg, var(--accent-700) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: 0 50%;
  animation: flow-dash 1.2s linear infinite;
  opacity: 0.85;
  margin-right: -3px;
}
/* Arrowhead chevron at the right end */
.flow-arrow::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--accent-700);
  flex-shrink: 0;
}
@keyframes flow-dash {
  from { background-position: 0 50%; }
  to   { background-position: 16px 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-arrow::before { animation: none; }
}

.test-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ecf6f1;
  border-radius: 8px;
  border-left: 3px solid var(--ok);
}
.test-result .left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ok);
}
.test-result .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ok);
  color: white;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.test-result .right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
}

.deploy-btn {
  width: 100%;
  padding: 12px;
  background: var(--gradient-button);
  background-size: 200% 100%;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(160, 82, 45, 0.3);
}

/* ================================================================
   WORKFLOW ANIMATION (7.5s loop — 2× speed)
   Timeline (% of loop, time @ 7.5s):
     0–7%    (0.0–0.5s)  Empty state — Studio frame visible, prompt empty
     7–20%   (0.5–1.5s)  Prompt fades in
     20–35%  (1.5–2.6s)  Build counter ticks 0→12
     27%     (2.0s)      Node 1 (ListenHL7) appears
     37%     (2.8s)      Arrow 1 + Node 2 (ValidateHL7)
     47%     (3.5s)      Arrow 2 + Node 3 (MapToJSON)
     57%     (4.3s)      Arrow 3 + Node 4 (PutDataLake)
     66–77%  (5.0–5.8s)  Test row appears, counter ticks 0→250
     78–86%  (5.9–6.5s)  Deploy button pulses
     86%+    (6.5s+)     Label flips to "PROMOTED — LIVE IN PROD", LIVE turns green
     97%     (7.3s)      Hold final state
     100%    (7.5s)      Loop restarts
   ================================================================ */

.workflow-anim { position: relative; }

/* Progress bar at top of mockup */
.anim-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(160, 82, 45, 0.08);
  overflow: hidden;
  z-index: 5;
  border-radius: 18px 18px 0 0;
}
.anim-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-bronze);
  animation: anim-progress 7.5s linear infinite;
}
@keyframes anim-progress {
  0%   { width: 0%; }
  97%  { width: 100%; }
  100% { width: 100%; }
}

/* Live dot only "lives" near the end (when promoted) */
.workflow-anim .anim-live {
  opacity: 0.35;
  animation: anim-live 7.5s linear infinite;
}
@keyframes anim-live {
  0%, 84%   { opacity: 0.35; color: var(--ink-mute); }
  85%, 100% { opacity: 1; color: #28C840; }
}

/* Prompt fade-in: empty for ~0.5s, then text fades in over 2s */
.workflow-anim .anim-typing-wrap {
  position: relative;
  display: block;
  min-height: 1.5em;
}
.workflow-anim .anim-typed {
  display: inline-block;
  vertical-align: bottom;
  opacity: 0;
  animation: anim-type 7.5s linear infinite;
}
@keyframes anim-type {
  0%        { opacity: 0; }
  3.3%      { opacity: 0; }   /* 0.5s — pause then start */
  20%       { opacity: 1; }   /* 3.0s — fully visible */
  100%      { opacity: 1; }
}
.workflow-anim .anim-cursor {
  animation: anim-cursor-fade 7.5s linear infinite, blink 1s infinite;
}
@keyframes anim-cursor-fade {
  0%, 22%   { opacity: 1; }
  25%, 100% { opacity: 0; }
}

/* Build counter visible after 3s; ticks 0 → 12 over 6s */
.workflow-anim .anim-build {
  opacity: 0;
  animation: anim-build-fade 7.5s linear infinite;
}
@keyframes anim-build-fade {
  0%, 22%   { opacity: 0; }
  25%, 100% { opacity: 1; }
}

/* Flow nodes — fade + slight pop in sequence */
.workflow-anim .anim-node {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  animation: anim-node-in 7.5s ease-out infinite;
}
.workflow-anim .anim-node-1 { animation-delay: 0s; }
.workflow-anim .anim-node-2 { animation-delay: 0s; --node-start: 36.66%; --node-vis: 38%; }
.workflow-anim .anim-node-3 { animation-delay: 0s; --node-start: 46.66%; --node-vis: 48%; }
.workflow-anim .anim-node-4 { animation-delay: 0s; --node-start: 56.66%; --node-vis: 58%; }

/* Single shared keyframe per node uses CSS variables for timing */
@keyframes anim-node-in {
  0%, 25%   { opacity: 0; transform: translateY(8px) scale(0.95); }
  28%       { opacity: 1; transform: translateY(0) scale(1); }
  100%      { opacity: 1; transform: translateY(0) scale(1); }
}
.workflow-anim .anim-node-2 { animation-name: anim-node-2-in; }
.workflow-anim .anim-node-3 { animation-name: anim-node-3-in; }
.workflow-anim .anim-node-4 { animation-name: anim-node-4-in; }
@keyframes anim-node-2-in {
  0%, 36%   { opacity: 0; transform: translateY(8px) scale(0.95); }
  39%       { opacity: 1; transform: translateY(0) scale(1); }
  100%      { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anim-node-3-in {
  0%, 46%   { opacity: 0; transform: translateY(8px) scale(0.95); }
  49%       { opacity: 1; transform: translateY(0) scale(1); }
  100%      { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes anim-node-4-in {
  0%, 56%   { opacity: 0; transform: translateY(8px) scale(0.95); }
  59%       { opacity: 1; transform: translateY(0) scale(1); }
  100%      { opacity: 1; transform: translateY(0) scale(1); }
}

/* Arrows — fade in synchronously with the node they point TO */
.workflow-anim .anim-arrow {
  opacity: 0;
  animation: anim-arrow-in 7.5s ease-out infinite;
}
.workflow-anim .anim-arrow-1 { animation-name: anim-arrow-1-in; }
.workflow-anim .anim-arrow-2 { animation-name: anim-arrow-2-in; }
.workflow-anim .anim-arrow-3 { animation-name: anim-arrow-3-in; }
@keyframes anim-arrow-1-in {
  0%, 35%   { opacity: 0; }
  39%, 100% { opacity: 1; }
}
@keyframes anim-arrow-2-in {
  0%, 45%   { opacity: 0; }
  49%, 100% { opacity: 1; }
}
@keyframes anim-arrow-3-in {
  0%, 55%   { opacity: 0; }
  59%, 100% { opacity: 1; }
}

/* Test result — appears at ~10s (66%), animates green border on pass */
.workflow-anim .anim-test {
  opacity: 0;
  transform: translateY(6px);
  animation: anim-test-in 7.5s ease-out infinite;
}
@keyframes anim-test-in {
  0%, 64%   { opacity: 0; transform: translateY(6px); }
  68%       { opacity: 1; transform: translateY(0); }
  76%       { opacity: 1; transform: translateY(0); background: rgba(40, 200, 64, 0.06); }
  100%      { opacity: 1; transform: translateY(0); }
}

/* Deploy button — promoted state pulses near the end */
.workflow-anim .anim-deploy {
  opacity: 0.55;
  animation: anim-deploy-in 7.5s ease-out infinite;
}
@keyframes anim-deploy-in {
  0%, 78%   { opacity: 0.55; transform: scale(1); box-shadow: 0 4px 14px rgba(160, 82, 45, 0.3); }
  82%       { opacity: 1; transform: scale(1.015); box-shadow: 0 6px 24px rgba(160, 82, 45, 0.45); }
  86%       { opacity: 1; transform: scale(1); }
  100%      { opacity: 1; transform: scale(1); }
}

/* Deploy label cross-fades from "PROMOTE" to "PROMOTED" near the end.
   The original label fades but reserves space; the success label is absolutely
   positioned over the whole button so it stays centered. */
.workflow-anim .anim-deploy {
  position: relative;
}
.workflow-anim .anim-deploy-label {
  display: inline-block;
  animation: anim-deploy-label-out 7.5s linear infinite;
}
@keyframes anim-deploy-label-out {
  0%, 86%   { opacity: 1; }
  92%, 100% { opacity: 0; }
}
.workflow-anim .anim-deploy::after {
  content: "PROMOTED \2014 LIVE IN PROD";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: white;
  opacity: 0;
  animation: anim-deploy-label-in 7.5s linear infinite;
  pointer-events: none;
}
@keyframes anim-deploy-label-in {
  0%, 86%   { opacity: 0; }
  92%, 100% { opacity: 1; }
}

/* Respect reduced-motion preference — show final state, no looping */
@media (prefers-reduced-motion: reduce) {
  .workflow-anim *,
  .workflow-anim *::before,
  .workflow-anim *::after {
    animation: none !important;
    transition: none !important;
  }
  .workflow-anim .anim-typed { clip-path: none; }
  .workflow-anim .anim-cursor { display: none; }
  .workflow-anim .anim-node,
  .workflow-anim .anim-arrow,
  .workflow-anim .anim-test,
  .workflow-anim .anim-build,
  .workflow-anim .anim-deploy { opacity: 1; transform: none; }
  .workflow-anim .anim-progress { display: none; }
}

/* ================================================================
   SECTION HEADER
   ================================================================ */
.section {
  padding: clamp(24px, 3vh, 48px) 0;
  position: relative;
}
.section.tinted { background: var(--bg-tint); }
.section.dark { background: var(--ink); color: white; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: 40px;
  align-items: end;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 56ch; }
.section.dark .lede { color: rgba(255,255,255,0.78); }

/* ================================================================
   PROBLEM SECTION
   ================================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 980px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pain-grid { grid-template-columns: 1fr; } }

.pain-card {
  background: white;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pain-card .num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-700);
  letter-spacing: 0.04em;
  font-variation-settings: "opsz" 14;
}
.pain-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-variation-settings: "opsz" 36;
}
.pain-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-item {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
}
.faq-item p {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Time comparison */
.timeline-card {
  margin-top: 56px;
  background: linear-gradient(160deg, #2C1810 0%, #3d2418 60%, #2C1810 100%);
  color: white;
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 90% 0%, rgba(205, 127, 50, 0.18), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(238, 220, 130, 0.06), transparent 60%);
  pointer-events: none;
}
.timeline-card-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 32px;
}
.timeline-card-header .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-300);
  text-transform: uppercase;
}

.timeline-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  position: relative;
  z-index: 1;
}
@media (max-width: 720px) {
  .timeline-compare { grid-template-columns: 1fr; gap: 32px; }
}
.timeline-compare::before {
  content: "";
  position: absolute;
  top: 24px; bottom: 64px;
  left: 50%;
  width: 1px;
  background: rgba(205, 127, 50, 0.25);
  background-image: linear-gradient(180deg, rgba(205,127,50,0.25) 50%, transparent 50%);
  background-size: 1px 8px;
}
@media (max-width: 720px) {
  .timeline-compare::before { display: none; }
}

.timeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(205, 127, 50, 0.35);
}
.timeline-col-header.legacy { border-bottom-color: rgba(255, 253, 248, 0.18); }
.timeline-col-header .col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.timeline-col-header.legacy .col-label { color: rgba(255, 253, 248, 0.55); }
.timeline-col-header.medsync .col-label { color: var(--accent-300); }
.timeline-col-header .badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.timeline-col-header.medsync .badge {
  background: var(--gradient-button);
  color: white;
}

.timeline-phase {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 253, 248, 0.06);
}
.timeline-phase:last-child { border-bottom: none; }
.timeline-phase-label .name {
  font-size: 14px;
  font-weight: 600;
  color: #FFFDF8;
  margin-bottom: 4px;
}
.timeline-phase-label .duration {
  font-size: 11px;
  color: rgba(255, 253, 248, 0.55);
}
.timeline-phase-bar {
  height: 12px;
  border-radius: 4px;
  align-self: center;
}
.timeline-col.legacy .timeline-phase-bar {
  background: linear-gradient(90deg, rgba(160, 82, 45, 0.6) 0%, rgba(92, 51, 23, 0.4) 100%);
}
.timeline-col.medsync .timeline-phase-bar {
  background: var(--gradient-bronze);
}

.timeline-total {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(205, 127, 50, 0.30);
}
.timeline-total .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 253, 248, 0.55);
  margin-bottom: 6px;
}
.timeline-col.medsync .timeline-total .label { color: var(--accent-300); }
.timeline-total .big {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #FFFDF8;
}
.timeline-col.medsync .timeline-total .big {
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.timeline-card-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 253, 248, 0.55);
  font-style: italic;
  position: relative;
  z-index: 1;
}

/* ================================================================
   MIGRATION / IMPORT
   ================================================================ */
.migration-section {
  background: linear-gradient(180deg, var(--bg-tint) 0%, white 100%);
}
.migration-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 0 24px 60px -28px rgba(160, 82, 45, 0.18);
}
@media (max-width: 980px) {
  .migration-card { grid-template-columns: 1fr; }
}
.migration-content .eyebrow { margin-bottom: 18px; }
.migration-content h2 { margin-bottom: 20px; }
.migration-content h2 em {
  font-style: italic;
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.migration-content .lede { margin-bottom: 24px; max-width: 56ch; }
.migration-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.migration-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.migration-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-bronze);
}
.migration-bullets strong { color: var(--ink); font-weight: 600; }

/* Visual: source pills → arrow → target */
.migration-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
@media (max-width: 720px) {
  .migration-visual { grid-template-columns: 1fr; gap: 14px; }
  .migration-arrow svg { transform: rotate(90deg); }
}
.migration-source {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.migration-source-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.migration-source-pill {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}
.migration-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.migration-arrow svg { width: 64px; height: 20px; }
.migration-arrow-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.migration-target {
  position: relative;
  background: var(--gradient-bronze);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}
.migration-target-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,253,248,0.35), transparent 60%);
  pointer-events: none;
}
.migration-target-label {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.migration-target-sub {
  position: relative;
  font-family: var(--font-body);
  font-size: 11.5px;
  opacity: 0.92;
  margin-bottom: 12px;
  line-height: 1.4;
}
.migration-target-time {
  position: relative;
  display: inline-block;
  background: rgba(255,253,248,0.22);
  border: 1px solid rgba(255,253,248,0.4);
  border-radius: 999px;
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 880px) { .steps-grid { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 36px 22px 28px;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 12px 12px;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-bronze);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.step-arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-bronze);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-6px, 0) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 14px -4px rgba(160, 82, 45, 0.45);
}
.step-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}
.step:hover {
  background-color: rgba(255, 246, 224, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(160, 82, 45, 0.30), 0 4px 12px -6px rgba(44, 24, 16, 0.08);
}
.step:hover::before { transform: scaleX(1); }
.step:hover .step-arrow { opacity: 1; transform: translate(0, 0) scale(1); }
.step:hover .num { color: transparent; background: var(--gradient-bronze); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step:hover .step-quote { border-left-width: 3px; background: rgba(255, 246, 224, 0.9); }

.step .num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent-700);
  margin-bottom: 20px;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.step h3 em { font-style: italic; color: var(--accent-700); }
.step p {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 38ch;
}
.step-quote {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  transition: background-color 0.25s ease, border-left-width 0.25s ease;
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .step,
  .step::before,
  .step::after,
  .step .num,
  .step-quote { transition: none; }
}

/* ================================================================
   AI ENGINE
   ================================================================ */
.engine-section {
  background: linear-gradient(180deg, white 0%, var(--bg-tint) 100%);
}
.engine-grid {
  display: block;
}

.engine-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 880px) { .engine-intro { grid-template-columns: 1fr; gap: 40px; } }

.engine-copy h2 { margin-bottom: 24px; }
.engine-copy .lede { margin-bottom: 0; }

.engine-features {
  display: grid;
  gap: 18px;
}
.engine-feature {
  display: flex;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.engine-feature:first-child { border-top: none; padding-top: 0; }
.engine-feature .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.engine-feature .icon svg { width: 18px; height: 18px; stroke: var(--accent-700); }
.engine-feature .text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.engine-feature .text p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

.engine-diagram {
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF5E6 100%);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 8px 32px rgba(160, 82, 45, 0.10), 0 2px 8px rgba(160, 82, 45, 0.06);
  position: relative;
  overflow: hidden;
}
.engine-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(205, 127, 50, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(160, 82, 45, 0.08) 0%, transparent 40%);
  pointer-events: none;
}
.engine-diagram > * { position: relative; z-index: 1; }

.engine-diagram-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.engine-diagram-label .name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.engine-diagram-label .name::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: eyebrow-pulse 2s ease-in-out infinite;
}
.engine-diagram-label .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(205, 127, 50, 0.12);
  border: 1px solid rgba(205, 127, 50, 0.30);
  color: var(--accent-700);
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.engine-svg-wrap {
  width: 100%;
  overflow: visible;
}

/* Animated edges in the agentic AI workflow diagram.
   Three flavors — flow (forward bronze), warn (amber retry), success (green commit).
   stroke-dashoffset animation gives the appearance of dashes flowing along the path. */
.engine-svg-wrap .flow-edge {
  stroke-dasharray: 8 6;
  animation: edge-flow 1.4s linear infinite;
}
.engine-svg-wrap .warn-edge {
  /* Already has stroke-dasharray="6 4" inline; animate slowly with a slight ease */
  animation: edge-warn 2.6s linear infinite;
}
.engine-svg-wrap .success-edge {
  stroke-dasharray: 6 5;
  animation: edge-success 1.8s ease-in-out infinite;
}

@keyframes edge-flow {
  0%   { stroke-dashoffset: 28; }
  100% { stroke-dashoffset: 0; }
}
@keyframes edge-warn {
  0%   { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}
@keyframes edge-success {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.92; }
  50%      { stroke-dashoffset: -22; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .engine-svg-wrap .flow-edge,
  .engine-svg-wrap .warn-edge,
  .engine-svg-wrap .success-edge {
    animation: none;
  }
}
.engine-legend {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-mute);
}
.engine-legend-item {
  display: flex; align-items: center; gap: 6px;
}
.engine-legend-item .swatch {
  width: 10px; height: 10px; border-radius: 3px;
}

/* ================================================================
   ARCHITECTURE
   ================================================================ */
.arch-section { background: var(--bg-tint); }
.arch-card {
  background: linear-gradient(160deg, #2C1810 0%, #3d2418 60%, #2C1810 100%);
  border: 1px solid rgba(205, 127, 50, 0.30);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 12px 40px rgba(44, 24, 16, 0.30), 0 4px 14px rgba(160, 82, 45, 0.10);
  position: relative;
  overflow: hidden;
  color: #FFFDF8;
}
.arch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(205, 127, 50, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(238, 220, 130, 0.08) 0%, transparent 45%);
  pointer-events: none;
}
.arch-card > * { position: relative; z-index: 1; }
.arch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.arch-card-header h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: #FFFDF8;
}
.arch-card-header .marketplace {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #FFFDF8;
  padding: 8px 14px;
  background: rgba(205, 127, 50, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(205, 127, 50, 0.35);
}
.arch-card-header .marketplace .azure-icon {
  width: 16px; height: 16px;
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 880px) {
  .arch-grid { grid-template-columns: 1fr; }
}

.arch-tenant {
  background: rgba(255, 253, 248, 0.04);
  border: 1px solid rgba(238, 220, 130, 0.18);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(2px);
}
.arch-tenant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.arch-tenant-header .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.arch-tenant-header .pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(238, 220, 130, 0.12);
  border: 1px solid rgba(238, 220, 130, 0.30);
  border-radius: 999px;
  color: var(--accent-300);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.arch-tenant h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 14px;
  color: #FFFDF8;
}

.arch-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.arch-service {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(238, 220, 130, 0.14);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}
.arch-service .name {
  font-weight: 700;
  color: #FFFDF8;
  margin-bottom: 2px;
  font-size: 12.5px;
}
.arch-service .desc {
  color: rgba(255, 253, 248, 0.55);
  font-size: 11px;
  line-height: 1.4;
}
.arch-service.full { grid-column: 1 / -1; }

.arch-connectors {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
}
@media (max-width: 880px) {
  .arch-connectors { flex-direction: row; padding: 16px 0; }
}
.connector-pill {
  background: rgba(205, 127, 50, 0.15);
  border: 1px solid rgba(205, 127, 50, 0.45);
  color: var(--accent-300);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  position: relative;
}
.connector-pill::before,
.connector-pill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.55), transparent);
  transform: translateY(-50%);
}
.connector-pill::before { right: 100%; }
.connector-pill::after { left: 100%; transform: translateY(-50%) scaleX(-1); }
@media (max-width: 880px) {
  .connector-pill::before, .connector-pill::after { display: none; }
}

/* ================================================================
   SOVEREIGNTY
   ================================================================ */
/* Data sovereignty diagram — full dark warm-brown card */
.sov-diagram {
  background: linear-gradient(160deg, #2C1810 0%, #3d2418 60%, #2C1810 100%);
  border: 1px solid rgba(205, 127, 50, 0.30);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.sov-diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(205, 127, 50, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(238, 220, 130, 0.06) 0%, transparent 45%);
  pointer-events: none;
}
.sov-diagram > * { position: relative; z-index: 1; }
.sov-diagram-svg-wrap {
  width: 100%;
  overflow: visible;
}
.sov-diagram-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-300);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.sov-tenant {
  background: rgba(255, 253, 248, 0.05);
  border: 1px solid rgba(205, 127, 50, 0.45);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  background-image: radial-gradient(circle at 11px 11px, rgba(205, 127, 50, 0.18) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}
.sov-tenant-header {
  margin-bottom: 18px;
}
.sov-tenant-header .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-300);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.sov-tenant-header h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: #FFFDF8;
}

.sov-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .sov-sources { grid-template-columns: repeat(2, 1fr); }
}
.sov-source {
  background: rgba(255, 253, 248, 0.06);
  border: 1px solid rgba(205, 127, 50, 0.30);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.sov-source-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #FFFDF8;
  margin-bottom: 4px;
}
.sov-source-tag {
  font-size: 11px;
  color: rgba(255, 253, 248, 0.65);
}

.sov-flow {
  background: rgba(205, 127, 50, 0.10);
  border: 1.5px dashed rgba(205, 127, 50, 0.65);
  border-radius: 12px;
  padding: 18px;
}
.sov-flow-label {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-300);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sov-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.sov-flow-node {
  background: rgba(255, 253, 248, 0.10);
  border: 1px solid rgba(205, 127, 50, 0.50);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 11.5px;
  color: #FFFDF8;
  font-weight: 600;
}
.sov-flow-arrow {
  color: rgba(205, 127, 50, 0.7);
  font-weight: 700;
}

.sov-boundary-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(205, 127, 50, 0.25);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 253, 248, 0.65);
  font-style: italic;
}
.sov-boundary-note strong { color: var(--accent-300); font-style: normal; }

.sov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 880px) { .sov-grid { grid-template-columns: 1fr; } }
.sov-card {
  background: white;
  padding: 36px 32px;
}
.sov-card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-50);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.sov-card .icon svg { width: 20px; height: 20px; stroke: var(--accent-700); }
.sov-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.sov-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.sov-certs {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 20px 24px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: space-around;
}
.sov-cert {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sov-cert .badge-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(205, 127, 50, 0.12);
  border: 1px solid rgba(205, 127, 50, 0.30);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sov-cert .badge-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent-700);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sov-cert .badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sov-cert strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sov-cert span {
  font-size: 11.5px;
  color: var(--ink-mute);
}

/* ================================================================
   USE CASES
   ================================================================ */
.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .uc-grid { grid-template-columns: 1fr; } }

.uc-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.uc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-100);
}
.uc-card.is-open {
  border-color: var(--accent-100);
  box-shadow: var(--shadow-md);
}
.uc-card .uc-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 14px;
}
.uc-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.uc-card p {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.uc-card .uc-tags {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}
.uc-svg {
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  place-items: center;
  min-height: 140px;
}

/* Learn more action row inside card */
.uc-action {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.uc-tags-inline {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uc-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 14px 7px 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  flex-shrink: 0;
}
.uc-toggle:hover {
  border-color: var(--accent-700);
  color: var(--accent-700);
  background: var(--accent-50);
}
.uc-toggle .chev {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.uc-card.is-open .uc-toggle .chev {
  transform: rotate(180deg);
}
.uc-card.is-open .uc-toggle {
  border-color: var(--accent-700);
  color: var(--accent-700);
  background: var(--accent-50);
}

/* Expandable detail panel */
.uc-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.uc-detail-inner {
  overflow: hidden;
  min-height: 0;
}
.uc-card.is-open .uc-detail {
  grid-template-rows: 1fr;
}

.uc-detail-content {
  padding-top: 28px;
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.uc-card.is-open .uc-detail-content {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 720px) {
  .uc-detail-content { grid-template-columns: 1fr; gap: 24px; }
}

.uc-detail-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uc-detail-block h4::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.uc-detail-block p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.uc-detail-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.uc-detail-block ul li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-3);
  padding: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.uc-detail-block ul li:last-child { border-bottom: none; }
.uc-detail-block ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Outcome stat row */
.uc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
.uc-stat {
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 14px;
  border-left: 2px solid var(--accent);
}
.uc-stat .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 4px;
}
.uc-stat .l {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.35;
}

/* Technical pattern flow visualization inside detail */
.uc-flow {
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
  margin-top: 4px;
}
.uc-flow-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.uc-flow-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.uc-flow-step {
  flex: 1;
  min-width: 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-flow-step.accent {
  background: var(--accent-50);
  border-color: var(--accent-100);
  color: var(--accent-700);
  font-weight: 600;
}
.uc-flow-arr {
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* When a card is open, span 2 columns to give the detail panel breathing room */
.uc-card.is-open {
  grid-column: 1 / -1;
}
@media (max-width: 880px) {
  .uc-card.is-open { grid-column: auto; }
}

/* ================================================================
   OPS DASHBOARD
   ================================================================ */
.ops-section { background: var(--ink); color: white; }
.ops-section h2 { color: white; }
.ops-section .lede { color: rgba(255, 255, 255, 0.85); }
.ops-section .eyebrow { color: var(--accent-100); }
.ops-section .eyebrow::before { background: var(--accent-100); }

.ops-dashboard {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.ops-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.ops-bar-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ops-bar-left .title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.ops-bar-left .time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.ops-bar-right {
  display: flex;
  gap: 8px;
}
.ops-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.ops-badge.live {
  background: rgba(16, 122, 77, 0.2);
  color: #4cd998;
}
.ops-badge.audit {
  background: rgba(184, 94, 31, 0.22);
  color: var(--accent-100);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px;
}
.kpi .label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.kpi .value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}
.kpi .delta {
  font-size: 11px;
  color: var(--accent-100);
  font-weight: 500;
}
.kpi .delta.warn { color: #f0ad4e; }

.ops-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .ops-bottom { grid-template-columns: 1fr; } }

.ops-chart {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
}
.ops-chart-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ops-events {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.ops-events-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ops-event {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  align-items: center;
  font-size: 12px;
}
.ops-event:last-child { border-bottom: none; }
.ops-event .time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255,255,255,0.4);
}
.ops-event .type {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: white;
}
.ops-event .route {
  color: rgba(255,255,255,0.6);
  font-size: 11.5px;
}
.ops-event .status {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ops-event .status.ok { color: #4cd998; }
.ops-event .status.retry { color: #f0ad4e; }

/* ================================================================
   STACK
   ================================================================ */
/* Platform stack — 5 layered cards stacked vertically (matches original site) */
.platform-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.platform-layer {
  background: #FFFDF8;
  border: 1px solid rgba(205, 127, 50, 0.30);
  border-radius: 14px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.platform-layer::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 6px;
  height: 100%;
  background: var(--gradient-bronze);
  border-radius: 3px 0 0 3px;
}
.platform-layer-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(205, 127, 50, 0.12);
  border: 1px solid rgba(205, 127, 50, 0.30);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.platform-layer-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-700);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.platform-layer-text h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.platform-layer-text p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.platform-layer-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  background: rgba(205, 127, 50, 0.15);
  border: 1px solid rgba(205, 127, 50, 0.40);
  color: var(--accent-700);
  border-radius: 999px;
  white-space: nowrap;
}
.platform-stack-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}
@media (max-width: 720px) {
  .platform-layer {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .platform-layer-badge { grid-column: 1 / -1; justify-self: start; }
}

/* ================================================================
   CTA
   ================================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-card {
  background: var(--ink);
  color: white;
  border-radius: 24px;
  padding: clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 20% 30%, rgba(205, 127, 50, 0.20), transparent 70%),
    radial-gradient(50% 50% at 80% 70%, rgba(205, 127, 50, 0.14), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-pitch .eyebrow {
  color: var(--accent-300);
  margin-bottom: 24px;
  background: rgba(205, 127, 50, 0.18);
  border-color: rgba(205, 127, 50, 0.35);
}
.cta-pitch h2 {
  color: white;
  margin-bottom: 24px;
}
.cta-pitch .lede {
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  max-width: 50ch;
}
.cta-pitch .micro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.cta-pitch .micro a { color: var(--accent-300); text-decoration: none; }
.cta-pitch .micro a:hover { text-decoration: underline; }

/* Form card */
.cta-form {
  background: linear-gradient(180deg, #FFFDF8 0%, #FFF5E6 100%);
  border: 1px solid var(--accent-100);
  border-radius: 16px;
  padding: clamp(28px, 3.5vw, 40px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  color: var(--ink);
}
.cta-form .form-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.cta-form .form-subtitle {
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(205, 127, 50, 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 96px;
  font-family: inherit;
  line-height: 1.55;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.form-recaptcha {
  margin: 16px 0 4px;
  display: flex;
  justify-content: center;
  /* reCAPTCHA's iframe is fixed at 304px; allow it to scale on small screens */
  transform: scale(1);
  transform-origin: center top;
}
@media (max-width: 380px) {
  .form-recaptcha { transform: scale(0.86); margin-bottom: -16px; }
}
.form-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--err); }
.form-foot {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-mute);
  text-align: center;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand p {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 32ch;
  margin-top: 16px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 12px;
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
  }
}
