/* ═══════════════════════════════════════════════════════════════
   UIT SOFTWARE — DESIGN SYSTEM
   Engineering the Intelligence Layer for Healthcare
   Pure CSS3 · no framework · design tokens + components
═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces ── */
  --ink:        #05070b;   /* near-black navy — deep sections */
  --ink-2:      #0c1018;   /* raised dark surface (cards on dark) */
  --ink-3:      #141a26;   /* footer / secondary dark surface */
  --paper:      #f7f5f0;   /* warm off-white — light sections */
  --paper-dim:  #edeae2;   /* secondary light surface */
  --white:      #ffffff;

  /* ── Text ── */
  --text:       #0c0f14;   /* body text on light */
  --text-soft:  #4b5262;   /* muted text on light */
  --text-dim:   #7a8092;   /* faint text on light */
  --on-dark:        #f6f5f1;
  --on-dark-soft:   rgba(246,245,241,0.66);
  --on-dark-dim:    rgba(246,245,241,0.42);

  /* ── Brand accents (drawn from the UIT mark) ── */
  --amber:        #e2892e;  /* primary accent — from logo bulb/cross */
  --amber-dim:    #c46f1c;  /* hover / deeper amber */
  --amber-light:  #fbeee0;
  --amber-glow:   rgba(226,137,46,0.16);
  --teal:         #1a5f7a;  /* secondary tech accent — from logo wordmark */
  --teal-dim:     #144b61;
  --teal-light:   #4fa3c4;
  --teal-glow:    rgba(26,95,122,0.14);
  --signal:       #b3432f; /* reserved: rare emphasis only, never decorative */

  /* ── Structure ── */
  --border:      rgba(12,15,20,0.09);
  --border-mid:  rgba(12,15,20,0.16);
  --border-dark: rgba(246,245,241,0.10);
  --border-dark-mid: rgba(246,245,241,0.18);

  /* ── Type ── */
  --f-display: 'Syne', sans-serif;
  --f-body:    'DM Sans', sans-serif;
  --f-mono:    'DM Mono', monospace;

  /* ── Motion / shape ── */
  --ease:     cubic-bezier(0.16,1,0.3,1);
  --r-sm:  10px;
  --r:     14px;
  --r-lg:  22px;
  --r-xl:  32px;

  /* ── Elevation ── */
  --shadow-sm: 0 2px 10px rgba(5,7,11,0.06);
  --shadow-md: 0 10px 36px rgba(5,7,11,0.10);
  --shadow-lg: 0 28px 72px rgba(5,7,11,0.16);
  --shadow-amber: 0 10px 32px rgba(226,137,46,0.28);

  --container: 1240px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
.icon { width: 1em; height: 1em; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--ink); color: var(--on-dark); padding: 12px 20px;
  border-radius: var(--r-sm); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px;
}

/* ══════════ NAVIGATION ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 78px;
  background: rgba(5,7,11,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(246,245,241,0.08);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled { background: rgba(5,7,11,0.92); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo-text { font-family: var(--f-display); font-size: 19px; font-weight: 800; color: var(--on-dark); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--amber); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--on-dark-soft);
  text-decoration: none; position: relative; letter-spacing: 0.01em;
  padding: 6px 0; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1.5px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--on-dark); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber) !important; color: var(--ink) !important;
  padding: 10px 20px; border-radius: 40px; font-weight: 600 !important; font-size: 13px !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { background: #eea44d !important; transform: translateY(-1px); box-shadow: var(--shadow-amber); }
.nav-cta::after { display: none !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; z-index: 1100;
}
.nav-hamburger span { display: block; width: 22px; height: 1.6px; background: var(--on-dark); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--ink); flex-direction: column; justify-content: space-between;
  padding: 100px 28px 40px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.nav-mobile.open { display: flex; opacity: 1; pointer-events: auto; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-links a {
  font-family: var(--f-display); font-size: clamp(28px,8vw,38px); font-weight: 700;
  color: var(--on-dark); text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid var(--border-dark); letter-spacing: -0.02em;
}
.nav-mobile-foot { display: flex; flex-direction: column; gap: 18px; }
.nav-mobile-foot .btn-amber { justify-content: center; }
.nav-mobile-foot .mob-contact { font-family: var(--f-mono); font-size: 13px; color: var(--on-dark-soft); display: flex; flex-direction: column; gap: 6px; }
.nav-mobile-foot .mob-contact a { color: var(--on-dark-soft); text-decoration: none; }

@media (max-width: 860px) {
  .nav { padding: 0 20px; height: 66px; }
  .nav-logo img { height: 34px; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
}

/* ══════════ LAYOUT ══════════ */
section { padding: 116px 48px; }
.container { max-width: var(--container); margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }
@media (max-width: 1024px) { section { padding: 88px 32px; } }
@media (max-width: 640px)  { section { padding: 68px 20px; } }

.eyebrow {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; color: var(--amber-dim); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--amber); }
.dark .eyebrow, .eyebrow.on-dark { color: var(--amber); }

.h-title {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(30px, 3.6vw, 50px); color: var(--text);
}
.dark .h-title, .h-title.on-dark { color: var(--on-dark); }
.h-sub { font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text-soft); max-width: 560px; margin-top: 16px; }
.dark .h-sub, .h-sub.on-dark { color: var(--on-dark-soft); }

.dark { background: var(--ink); color: var(--on-dark); }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 14px 26px; border-radius: 40px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: all 0.25s var(--ease); font-family: var(--f-body);
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 20px rgba(226,137,46,0.22); }
.btn-amber:hover { background: #eea44d; transform: translateY(-2px); box-shadow: var(--shadow-amber); }
.btn-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn-dark:hover { background: #16202e; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-mid); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-outline.on-dark { color: var(--on-dark); border-color: var(--border-dark-mid); }
.btn-outline.on-dark:hover { border-color: var(--on-dark); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: var(--on-dark); border-color: rgba(255,255,255,0.14); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-block { width: 100%; justify-content: center; }
.hero-actions, .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ══════════ CARDS ══════════ */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(226,137,46,0.28); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: var(--amber-glow); color: var(--amber-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.teal { background: var(--teal-glow); color: var(--teal); }
.card h3 { font-family: var(--f-display); font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); margin-bottom: 9px; }
.card p { font-size: 13.6px; font-weight: 400; line-height: 1.7; color: var(--text-soft); }
.card-tag {
  display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 10px;
  padding: 4px 11px; border-radius: 20px; background: var(--amber-glow);
  border: 1px solid rgba(226,137,46,0.25); color: var(--amber-dim); letter-spacing: 0.06em;
}
a.card { text-decoration: none; display: block; }

.card-dark {
  background: var(--ink-2); border: 1px solid var(--border-dark); border-radius: var(--r-lg); padding: 30px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.card-dark:hover { background: #10151f; border-color: rgba(226,137,46,0.22); transform: translateY(-3px); }
.card-dark h3 { font-family: var(--f-display); font-size: 17.5px; font-weight: 700; color: var(--on-dark); margin-bottom: 9px; }
.card-dark p { font-size: 13.6px; font-weight: 400; line-height: 1.7; color: var(--on-dark-soft); }
.card-dark .card-icon { background: rgba(226,137,46,0.14); color: var(--amber); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.mt-lg { margin-top: 56px; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ══════════ PAGE HERO ══════════ */
.page-hero {
  padding: 168px 48px 88px; background: var(--ink); position: relative; overflow: hidden; color: var(--on-dark);
}
.page-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 75% at 82% 20%, rgba(226,137,46,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(26,95,122,0.20) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-family: var(--f-display); font-size: clamp(36px,5vw,62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; max-width: 840px; }
.page-hero p.lead { font-size: 17.5px; font-weight: 300; line-height: 1.75; color: var(--on-dark-soft); max-width: 600px; margin-top: 22px; }
.page-hero .hero-actions { margin-top: 34px; }
.breadcrumb { font-family: var(--f-mono); font-size: 11.5px; color: var(--on-dark-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }
@media (max-width: 640px) { .page-hero { padding: 118px 20px 60px; } }

/* ══════════ FEATURE ROW ══════════ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 34px; box-shadow: var(--shadow-md);
}
.dark .feature-visual { background: var(--ink-2); border-color: var(--border-dark); box-shadow: none; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--text-soft); font-weight: 400; line-height: 1.55; }
.dark .check-list li { color: var(--on-dark-soft); }
.check-list li svg { width: 15px; height: 15px; color: var(--amber); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; gap: 40px; } .feature-row.reverse { direction: ltr; } }

/* ══════════ STACK / FLOW DIAGRAM ══════════ */
.stack-flow { display: flex; align-items: stretch; gap: 0; margin-top: 56px; flex-wrap: wrap; }
.stack-node {
  flex: 1; min-width: 150px; background: var(--ink-2); border: 1px solid var(--border-dark);
  border-radius: var(--r-lg); padding: 26px 20px; text-align: center; position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.stack-node:hover { border-color: rgba(226,137,46,0.35); background: #10151f; }
.stack-node .num { font-family: var(--f-mono); font-size: 10.5px; color: var(--amber); letter-spacing: 0.1em; }
.stack-node h4 { font-family: var(--f-display); font-size: 15.5px; font-weight: 700; color: var(--on-dark); margin: 10px 0 8px; }
.stack-node p { font-size: 12.5px; color: var(--on-dark-soft); line-height: 1.55; }
.stack-arrow { display: flex; align-items: center; justify-content: center; width: 40px; flex-shrink: 0; color: var(--on-dark-dim); }
.stack-arrow svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .stack-flow { flex-direction: column; }
  .stack-arrow { width: 100%; height: 30px; transform: rotate(90deg); }
}

/* ══════════ PROCESS STEPS ══════════ */
.steps-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 56px; position: relative; }
.steps-row::after { content: ''; position: absolute; top: 25px; left: 8%; right: 8%; height: 1px; background: var(--border-mid); z-index: 0; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2,1fr); row-gap: 36px; } .steps-row::after { display: none; } }
.dark .steps-row::after { background: var(--border-dark); }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step-num {
  width: 50px; height: 50px; border-radius: 50%; background: var(--white); border: 2px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 16px; font-weight: 800;
  color: var(--text); margin-bottom: 16px; transition: all 0.3s;
}
.dark .step-num { background: var(--ink-2); border-color: var(--border-dark); color: var(--on-dark); }
.step:hover .step-num { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.step h4 { font-family: var(--f-display); font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 12px; color: var(--text-soft); line-height: 1.55; font-weight: 400; }
.dark .step p { color: var(--on-dark-soft); }

/* ══════════ FAQ ══════════ */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 44px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.dark .faq-item { background: var(--ink-2); border-color: var(--border-dark); }
.faq-q {
  padding: 19px 22px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; user-select: none;
  transition: background 0.2s; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--amber-glow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--amber-dim); transition: transform 0.3s; }
.faq-icon svg { width: 12px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; font-size: 14px; font-weight: 400; line-height: 1.8; color: var(--text-soft); }
.dark .faq-a { color: var(--on-dark-soft); }

/* ══════════ DATA TABLE ══════════ */
.data-table { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 13.8px; }
.data-table th { font-family: var(--f-display); font-size: 11.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 11px 16px; border-bottom: 2px solid var(--border-mid); text-align: left; }
.data-table td { padding: 13px 16px; color: var(--text-soft); border-bottom: 1px solid var(--border); font-weight: 400; line-height: 1.5; }
.data-table td:first-child { font-weight: 600; color: var(--text); }
.data-table-wrap { overflow-x: auto; }

/* ══════════ STAT ROW ══════════ */
.stat-row { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 44px; }
.stat-box { min-width: 130px; }
.stat-n { font-family: var(--f-display); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.dark .stat-n { color: var(--on-dark); }
.stat-l { font-size: 12.5px; color: var(--text-soft); margin-top: 4px; font-weight: 400; }
.dark .stat-l { color: var(--on-dark-soft); }

/* ══════════ CTA STRIP ══════════ */
.cta-strip { background: var(--ink); padding: 92px 48px; text-align: center; position: relative; overflow: hidden; color: var(--on-dark); }
.cta-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 90% at 50% 100%, rgba(226,137,46,0.16) 0%, transparent 70%); }
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { font-family: var(--f-display); font-size: clamp(28px,4vw,48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-strip p { font-size: 16px; font-weight: 300; color: var(--on-dark-soft); margin-bottom: 32px; }
.cta-strip .cta-actions { justify-content: center; }
@media (max-width: 640px) { .cta-strip { padding: 64px 20px; } }

/* ══════════ FOOTER ══════════ */
.footer { background: var(--ink-3); padding: 72px 48px 36px; color: var(--on-dark); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; text-decoration: none; }
.footer-brand .footer-logo img { height: 34px; width: auto; }
.footer-brand p { font-size: 13px; font-weight: 400; line-height: 1.7; color: var(--on-dark-dim); max-width: 250px; }
.footer-tagline { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--amber); text-transform: uppercase; margin-top: 16px; max-width: 210px; line-height: 1.6; }
.footer-col h4 { font-family: var(--f-display); font-size: 11px; font-weight: 700; color: var(--on-dark); letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; font-weight: 400; color: var(--on-dark-dim); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { font-size: 13px; color: var(--on-dark-soft); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 12px; color: var(--on-dark-dim); font-weight: 400; }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-links a { font-size: 12px; color: var(--on-dark-dim); text-decoration: none; }
.footer-legal-links a:hover { color: var(--amber); }
@media (max-width: 1024px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } .footer-top .footer-col:nth-child(5) { grid-column: span 3; } }
@media (max-width: 640px) { .footer { padding: 52px 20px 28px; } .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-top .footer-brand { grid-column: span 2; } .footer-top .footer-col:nth-child(5) { grid-column: span 2; } }

/* ══════════ FORMS ══════════ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.dark .field label { color: var(--on-dark); }
.field input, .field textarea, .field select {
  border: 1.5px solid var(--border-mid); border-radius: var(--r);
  padding: 12px 15px; font-family: var(--f-body); font-size: 14px;
  outline: none; background: var(--paper); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234b5262' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.req { color: var(--amber-dim); }
.form-status { display: none; margin-top: 14px; padding: 13px 18px; border-radius: var(--r); font-size: 13.5px; font-weight: 600; text-align: center; }
.form-status.success { display: block; background: rgba(226,137,46,0.1); border: 1px solid rgba(226,137,46,0.28); color: var(--amber-dim); }
.form-status.error { display: block; background: rgba(179,67,47,0.08); border: 1px solid rgba(179,67,47,0.24); color: var(--signal); }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ══════════ MISC ══════════ */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 40px; font-size: 12px; font-weight: 500; }
.pill-amber { background: var(--amber-glow); color: var(--amber-dim); border: 1px solid rgba(226,137,46,0.26); }
.pill-teal { background: var(--teal-glow); color: var(--teal); border: 1px solid rgba(26,95,122,0.26); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; padding: 4px 11px; border-radius: 20px; border: 1px solid var(--border-mid); color: var(--text-soft); }
.dark .tag { border-color: var(--border-dark-mid); color: var(--on-dark-soft); }
.divider { border: none; border-top: 1px solid var(--border); margin: 56px 0; }
.dark .divider { border-color: var(--border-dark); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .two-col, .three-col { grid-template-columns: 1fr; } }
.accent-bar { width: 38px; height: 3px; background: var(--amber); border-radius: 2px; margin-bottom: 22px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.callout {
  border-left: 3px solid var(--teal); background: var(--teal-glow); border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px; font-size: 14px; line-height: 1.7; color: var(--text-soft);
}
.dark .callout { color: var(--on-dark-soft); }
.badge-outcome { display: inline-flex; align-items: baseline; gap: 6px; background: var(--amber-glow); border: 1px solid rgba(226,137,46,0.24); border-radius: 40px; padding: 8px 16px; }
.badge-outcome b { font-family: var(--f-display); font-size: 20px; color: var(--amber-dim); }
.badge-outcome span { font-size: 11.5px; color: var(--text-soft); }

/* ══════════ TAXONOMY / CHIP GRID (capabilities lists) ══════════ */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 40px; border: 1px solid var(--border-mid); font-size: 13px; color: var(--text-soft);
  background: var(--white); transition: all 0.2s;
}
.chip:hover { border-color: rgba(226,137,46,0.4); color: var(--text); }
.dark .chip { background: var(--ink-2); border-color: var(--border-dark-mid); color: var(--on-dark-soft); }
.chip .chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ══════════ AGENT / ORG GRID (AgentOS page) ══════════ */
.agent-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 2px; margin-top: 56px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-dark); }
.agent-card { background: rgba(255,255,255,0.025); padding: 28px 22px; transition: background 0.3s; }
.agent-card:hover { background: rgba(226,137,46,0.08); }
.agent-card .card-icon { width: 40px; height: 40px; margin-bottom: 16px; }
.agent-card h4 { font-family: var(--f-display); font-size: 14.5px; font-weight: 700; color: var(--on-dark); margin-bottom: 6px; }
.agent-card p { font-size: 12px; line-height: 1.6; color: var(--on-dark-soft); }
@media (max-width: 1024px) { .agent-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px)  { .agent-grid { grid-template-columns: repeat(2,1fr); } }

/* ══════════ REVEAL ══════════
   Hidden-until-scrolled-into-view only applies when JS actually runs
   (the .js class is added synchronously in <head> before body paints).
   Without JS, .reveal content is visible immediately — never gated. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.v { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; } .reveal.d5 { transition-delay: 0.4s; }

/* ══════════ MARQUEE ══════════ */
.marquee { background: var(--ink); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 56px; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.04em; color: var(--on-dark-soft); display: flex; align-items: center; gap: 12px; }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); opacity: 0.7; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════ 404 ══════════ */
.error-section { min-height: 78vh; display: flex; align-items: center; padding: 140px 24px 60px; }
.error-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.error-code { font-family: var(--f-display); font-size: 108px; font-weight: 800; color: var(--amber); letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }

/* ══════════ LEGAL / LONG-FORM CONTENT ══════════ */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 14px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.prose p { font-size: 15px; line-height: 1.85; color: var(--text-soft); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul li { font-size: 15px; line-height: 1.75; color: var(--text-soft); padding-left: 22px; position: relative; }
.prose ul li::before { content: '—'; position: absolute; left: 0; color: var(--amber-dim); }
.prose a { color: var(--amber-dim); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.updated-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--on-dark-dim); margin-bottom: 4px; }

/* ══════════ INSIGHTS ══════════ */
.insight-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; height: 100%; transition: all 0.3s var(--ease); text-decoration: none; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(226,137,46,0.25); }
.insight-meta { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; color: var(--amber-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.insight-card h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); line-height: 1.3; }
.insight-card p { font-size: 13.6px; color: var(--text-soft); line-height: 1.7; }
.insight-read { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.insight-card:hover .insight-read { color: var(--amber-dim); }

/* ══════════ PRODUCT ══════════ */
.product-hero-visual { background: var(--ink-2); border: 1px solid var(--border-dark); border-radius: var(--r-xl); padding: 36px; }
.spec-row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dark .spec-row { border-color: var(--border-dark); }
.spec-row span:first-child { color: var(--text-dim); }
.dark .spec-row span:first-child { color: var(--on-dark-dim); }
.spec-row span:last-child { font-weight: 600; color: var(--text); text-align: right; }
.dark .spec-row span:last-child { color: var(--on-dark); }
