/* ============================================================
   AImagineThat — Design System
   Dark enterprise aesthetic · violet→cyan gradient system
   ============================================================ */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060c1a;
  --bg-raise: #0b1328;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --text-dim: #9aa1b5;
  --text-faint: #5d6478;
  --violet: #3b82f6;
  --cyan: #06b6d4;
  --green: #34d399;
  --hot: #fb7185;
  --grad: linear-gradient(120deg, var(--violet), var(--cyan));
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1200px;
  --shadow-glow: 0 0 60px rgba(59, 130, 246, 0.24);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-bg: rgba(6, 12, 26, 0.75);
  --input-bg: rgba(0, 0, 0, 0.35);
  --code-bg: rgba(0, 0, 0, 0.4);
  --btn-primary-text: #0a0a14;
  --glow-hero: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.1) 45%, transparent 70%);
  --glow-contact: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.16), transparent 65%);
  --grid-line: rgba(255, 255, 255, 0.025);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8ff;
  --bg-raise: #eaf1ff;
  --bg-card: #ffffff;
  --border: rgba(20, 51, 108, 0.12);
  --border-strong: rgba(20, 51, 108, 0.24);
  --text: #0d1a36;
  --text-dim: #34507a;
  --text-faint: #5b7297;
  --violet: #1d4ed8;
  --cyan: #0284c7;
  --green: #059669;
  --hot: #e11d48;
  --shadow-glow: 0 0 56px rgba(29, 78, 216, 0.12);
  --nav-bg: rgba(244, 248, 255, 0.88);
  --input-bg: rgba(15, 20, 45, 0.04);
  --code-bg: #0b0d16;
  --btn-primary-text: #ffffff;
  --glow-hero: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.14), rgba(2, 132, 199, 0.07) 45%, transparent 70%);
  --glow-contact: radial-gradient(ellipse at center, rgba(29, 78, 216, 0.1), transparent 65%);
  --grid-line: rgba(20, 51, 108, 0.06);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow--center { display: flex; justify-content: center; text-align: center; }

.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background-image: linear-gradient(180deg, transparent, rgba(2, 132, 199, 0.02)); }
.section__title {
  font-size: clamp(32px, 5vw, 52px);
  text-align: center;
  margin-bottom: 18px;
}
.section__title--left { text-align: left; }
.section__sub {
  color: var(--text-dim);
  font-size: 18px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124, 92, 255, 0.4); }
.btn--ghost { color: var(--text-dim); }
.btn--ghost:hover { color: var(--text); }
.btn--outline { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--cyan); }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(0.98); }
.btn.is-success {
  background: var(--green);
  color: #fff;
  box-shadow: none;
}

/* ---------- Pulse dot ---------- */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}
.pulse-dot--green { background: var(--green); }

/* ---------- Chips & badges ---------- */
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip--hot { color: var(--hot); border-color: rgba(251, 113, 133, 0.3); }
.chip--lg { font-size: 13px; padding: 10px 20px; color: var(--text); }
.badge-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav__wordmark em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__wordmark span { color: var(--text-dim); }
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.15s ease;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .nav__links { display: none; gap: 18px; }
  .nav__links a { font-size: 13px; }
}
.nav__links a:hover { color: var(--text); }
.nav__links a {
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--grad);
  transition: transform 0.22s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; gap: 12px; align-items: center; }
.theme-toggle {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--text);
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }

@media (max-width: 1080px) {
  .nav__toggle { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 170px 0 100px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -240px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: var(--glow-hero);
  animation: hero-glow 20s ease-in-out infinite;
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}
.hero__waves path { fill: none; stroke-linecap: round; }
.hero__wave-line {
  stroke-dasharray: 6 14;
  animation: wave-flow 30s linear infinite;
}
.hero__wave-line--slow { animation-duration: 46s; }
.hero__flow-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--text-faint);
  opacity: 0.85;
}
@keyframes wave-flow {
  to { stroke-dashoffset: -800; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__wave-line, .hero__waves circle { animation: none; }
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__copy h1 { font-size: clamp(42px, 6vw, 72px); margin-bottom: 24px; }
.hero__sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
  margin-bottom: 28px;
}
.hero__stats dt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stats dd { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.hero__compliance { display: flex; gap: 8px; flex-wrap: wrap; }

/* Page-load choreography (hero only — the one orchestrated moment) */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__copy > * { animation: rise 0.55s var(--ease-out-quint) both; }
.hero__copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero__copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero__copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero__copy > *:nth-child(5) { animation-delay: 0.3s; }
.hero__copy > *:nth-child(6) { animation-delay: 0.36s; }
.hero__console { animation: rise 0.7s var(--ease-out-quint) 0.25s both; }

@keyframes hero-glow {
  0%, 100% { opacity: 0.72; transform: translate3d(-50%, 0px, 0); }
  50% { opacity: 0.88; transform: translate3d(-50%, 12px, 0); }
}

@keyframes hero-orbit {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.4; }
  25% { transform: translate3d(-12px, 8px, 0) rotate(4deg); opacity: 0.6; }
  50% { transform: translate3d(-8px, 16px, 0) rotate(6deg); opacity: 0.7; }
  75% { transform: translate3d(6px, 10px, 0) rotate(3deg); opacity: 0.55; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.4; }
}

@keyframes hero-shine {
  0% { transform: translate3d(-140%, 0, 0); opacity: 0; }
  20% { opacity: 0.3; }
  50% { opacity: 0.5; }
  80% { opacity: 0.25; }
  100% { transform: translate3d(140%, 0, 0); opacity: 0; }
}

@keyframes gentle-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 4px, 0); }
}

/* Desktop app mockup (always light — reads as a real product screen) */
.hero__console { position: relative; isolation: isolate; }
.hero__console::before,
.hero__console::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}
.hero__console::before {
  inset: -44px -34px auto auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.32), rgba(29, 78, 216, 0.12) 52%, transparent 72%);
  animation: hero-orbit 16s ease-in-out infinite alternate;
}
.hero__console::after {
  inset: auto auto -54px -42px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.18), rgba(2, 132, 199, 0.12) 46%, transparent 72%);
  animation: hero-orbit 18s ease-in-out infinite alternate-reverse;
}
.appwin {
  position: relative;
  background: #fbfbfd;
  border: 1px solid rgba(15, 20, 45, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow), 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: var(--font-body);
}
.appwin::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  animation: hero-shine 9s ease-in-out infinite;
  pointer-events: none;
}
.appwin__chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #eef0f5;
  border-bottom: 1px solid rgba(15, 20, 45, 0.08);
}
.appwin__dots { display: flex; gap: 6px; }
.appwin__dots i { width: 10px; height: 10px; border-radius: 50%; }
.appwin__dots i:first-child { background: #fb7185; }
.appwin__dots i:nth-child(2) { background: #fbbf24; }
.appwin__dots i:last-child { background: #34d399; }
.appwin__url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 280px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 20, 45, 0.08);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11.5px;
  color: #6b7280;
}
.appwin__layout { display: grid; grid-template-columns: 152px 1fr; }
.appwin__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #f3f4f9;
  border-right: 1px solid rgba(15, 20, 45, 0.07);
}
.appwin__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: #12151f;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.appwin__navitem {
  font-size: 12px;
  color: #5b6272;
  padding: 7px 10px;
  border-radius: 8px;
}
.appwin__navitem.is-active {
  background: rgba(124, 92, 255, 0.1);
  color: #6247d9;
  font-weight: 600;
}
.appwin__side-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  padding: 8px 10px;
}
.appwin__main { padding: 18px 20px 16px; }
.appwin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.appwin__head b {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: #12151f;
}
.appwin__head span:not(.appwin__pill) { font-size: 11.5px; color: #6b7280; }
.appwin__pill {
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.appwin__pill--green { background: rgba(5, 150, 105, 0.1); color: #059669; }
.appwin__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.appwin__stats > div {
  background: #fff;
  border: 1px solid rgba(15, 20, 45, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.appwin__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #12151f;
}
.appwin__stats span { font-size: 11px; color: #6b7280; }
.appwin__feed-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #9aa1b0;
  margin-bottom: 8px;
}
.appwin__feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 196px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
}
.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(15, 20, 45, 0.07);
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 1;
}
.feed-item__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.feed-item__dot--green { background: #34d399; }
.feed-item__dot--blue { background: #38bdf8; }
.feed-item__dot--violet { background: #8b5cf6; }
.feed-item__dot--amber { background: #fbbf24; }
.feed-item > div { flex: 1; min-width: 0; }
.feed-item b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #12151f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feed-item span {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.feed-item time { font-size: 10.5px; color: #9aa1b0; flex-shrink: 0; }

.hero__float {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(15, 20, 45, 0.1);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.hero__float-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: #9aa1b0; }
.hero__float-value { font-size: 13px; font-weight: 600; color: #12151f; }
.hero__float--1 { top: -22px; right: -14px; }
.hero__float--2 { bottom: -20px; left: -18px; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.trust__logos {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}
.trust__logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.trust__logos span:hover { color: var(--text); }

/* ============================================================
   AGENTIC LOOP
   ============================================================ */
.loop__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
  margin-bottom: 48px;
}
.loop__step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: border-color 0.3s var(--ease-out-quart);
}
.loop__step:hover { border-color: var(--violet); }
.loop__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 14px;
  z-index: 1;
}
.loop__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--violet);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}
.loop__icon { display: block; margin-bottom: 14px; width: 26px; height: 26px; color: var(--cyan); }
.loop__icon svg { width: 100%; height: 100%; }
.loop__step h3 { font-size: 19px; margin-bottom: 10px; }
.loop__step p { font-size: 13.5px; color: var(--text-dim); }
.loop__proof { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   PLATFORM
   ============================================================ */
.platform { background: var(--bg-raise); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.platform__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.card--media {
  padding: 0;
  overflow: hidden;
}
.card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.6s var(--ease-out-quart);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 26px;
  flex: 1;
}
.card__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.card h3 { font-size: 21px; }
.card p { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.card__code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.7;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #22d3ee;
  overflow-x: auto;
}
.card__stat-row { display: flex; gap: 22px; font-size: 13px; color: var(--text-faint); }
.card__stat-row b { color: var(--text); font-family: var(--font-display); font-size: 16px; margin-right: 4px; }
.card__flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.card__flow span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text-dim);
}
.card__flow i { color: var(--violet); font-style: normal; }
.card__flow--wrap { row-gap: 8px; }
.card__pipeline { display: flex; gap: 10px; }
.pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.pill--new { color: var(--cyan); }
.pill--hot { color: var(--hot); border-color: rgba(251, 113, 133, 0.35); }
.pill--won { color: var(--green); border-color: rgba(52, 211, 153, 0.35); }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s ease;
}
.svc:hover { border-color: var(--cyan); }
.svc h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.svc__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.svc ul { display: flex; flex-direction: column; gap: 9px; }
.svc li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.svc li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-size: 11px;
}

/* ============================================================
   USE CASES
   ============================================================ */
.usecases { background: var(--bg-raise); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.usecases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.ucard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.ucard:hover { border-color: var(--violet); }
.ucard__media {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.ucard__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 0.6s var(--ease-out-quart);
}
.ucard:hover .ucard__media img { transform: scale(1.04); }
.ucard__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 7, 12, 0.05), rgba(6, 7, 12, 0.65));
}
.ucard__label {
  position: absolute;
  left: 20px; bottom: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #eef0f6;
}
.ucard__body { padding: 26px 30px 30px; }
.ucard h3 { font-size: 21px; margin-bottom: 10px; }
.ucard p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 20px; }
.ucard__metrics { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }
.ucard__metrics b {
  font-family: var(--font-display);
  font-size: 17px;
  margin-right: 5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   INDUSTRIES
   ============================================================ */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.ind {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}
.ind:hover { border-color: var(--cyan); }
.ind__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform 0.5s var(--ease-out-quart);
}
.ind:hover .ind__img { transform: scale(1.05); }
.ind__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 18px; }
.ind b { font-family: var(--font-display); font-size: 15.5px; }
.ind i { font-style: normal; font-size: 12px; color: var(--text-faint); line-height: 1.45; }

/* ============================================================
   INTEGRATIONS (static grid — no motion)
   ============================================================ */
.integrations { padding-bottom: 80px; }
.integrations .section__sub { margin-bottom: 48px; }
.marquee { overflow: visible; }
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 12px 26px;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.marquee__track span:hover { color: var(--text); border-color: var(--border-strong); }

/* ============================================================
   PROOF
   ============================================================ */
.proof { background: var(--bg-raise); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
  margin-bottom: 60px;
}
.proof__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof__stats span { font-size: 13px; color: var(--text-faint); }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote p { font-size: 15px; color: var(--text-dim); font-style: italic; flex: 1; }
.quote footer { font-size: 13px; color: var(--text-faint); }
.quote footer b { color: var(--text); font-style: normal; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease;
}
.price:hover { border-color: var(--border-strong); }
.price--featured {
  border-color: var(--violet);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(34, 211, 238, 0.03));
  box-shadow: var(--shadow-glow);
}
.price__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  background: var(--grad);
  color: var(--btn-primary-text);
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 16px;
}
.price h3 { font-size: 22px; margin-bottom: 6px; }
.price__for { font-size: 13px; color: var(--text-faint); margin-bottom: 22px; }
.price__amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 26px;
}
.price__amount span { font-size: 15px; font-weight: 400; color: var(--text-faint); }
.price ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 30px; flex: 1; }
.price li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
}
.price li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}
.pricing__more {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

/* ============================================================
   ACCESS MATRIX
   ============================================================ */
.matrix__wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--bg-card);
}
.matrix__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  table-layout: fixed;
}
.matrix__table th,
.matrix__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
}
.matrix__table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  background: rgba(2, 132, 199, 0.06);
  position: sticky;
  top: 0;
  z-index: 3;
}
.matrix__table thead th:first-child,
.matrix__table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-card);
}
.matrix__table thead th:first-child {
  z-index: 4;
  background: rgba(2, 132, 199, 0.11);
}
.matrix__table tbody tr:hover {
  background: rgba(59, 130, 246, 0.05);
}
.matrix__table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 38%;
}
.matrix__table td:not(:first-child),
.matrix__table th:not(:first-child) {
  width: 20.6%;
}
.matrix__group th {
  padding: 9px 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(29, 78, 216, 0.08);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--violet); }
.faq__item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--cyan);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 22px; font-size: 14.5px; color: var(--text-dim); }
.faq__item[open] p { animation: faq-in 0.35s var(--ease-out-quart); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: var(--glow-contact);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__copy > p { color: var(--text-dim); font-size: 16.5px; margin: 20px 0 28px; max-width: 460px; }
.contact__perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.contact__perks li { font-size: 15px; color: var(--text); }
.contact__meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-dim); }
.contact__meta a { color: var(--cyan); }
.contact__meta b { color: var(--text); }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(8px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
  resize: vertical;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { border-color: var(--violet); }
.contact__form ::placeholder { color: var(--text-faint); }
.contact__form .is-invalid {
  border-color: var(--hot);
  animation: shake 0.45s var(--ease-out-quart);
}
@keyframes shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.form__note { font-size: 12px; color: var(--text-faint); text-align: center; }
.form__note a { color: var(--cyan); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 72px 0 0; background: var(--bg-raise); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 56px;
  padding-bottom: 56px;
}
.footer__brand p { font-size: 14px; color: var(--text-dim); margin-top: 16px; max-width: 320px; }
.footer__compliance { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint) !important; }
.footer__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.footer__cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer__cols a:hover { color: var(--text); }
.footer__status { font-size: 13px; color: var(--green); display: flex; align-items: center; gap: 8px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--text); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out-quint), transform 0.5s var(--ease-out-quint);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav__links,
  .nav__actions .btn--ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 18px;
  }
  .nav__actions .btn--primary {
    padding: 10px 16px;
    font-size: 14px;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__console { max-width: 680px; }
  .loop__steps { grid-template-columns: repeat(3, 1fr); }
  .loop__step:not(:last-child)::after { display: none; }
  .platform__grid, .services__grid, .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(3, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .matrix__table { min-width: 760px; }
  .matrix__table th,
  .matrix__table td {
    padding: 10px 12px;
    font-size: 12.2px;
  }
  .matrix__group th {
    padding: 8px 12px;
    font-size: 10px;
  }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav__actions .btn--primary { display: none; }
  .hero { padding-top: 130px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .hero__float { display: none; }
  .loop__steps { grid-template-columns: 1fr 1fr; }
  .platform__grid, .services__grid, .usecases__grid, .proof__grid { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .matrix__table { min-width: 680px; }
  .proof__stats { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ABOUT / MISSION & VISION PAGE
   ============================================================ */
.page-hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}
.page-hero .hero__glow { top: -300px; }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 60px); max-width: 760px; margin-bottom: 22px; }
.page-hero p { font-size: 18px; color: var(--text-dim); max-width: 620px; }

.mv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mv + .mv { margin-top: 110px; }
.mv--flip .mv__media { order: 2; }
.mv__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.mv__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.85);
}
.mv__copy h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 18px; }
.mv__copy > p { color: var(--text-dim); font-size: 16.5px; margin-bottom: 22px; }
.mv__points { display: flex; flex-direction: column; gap: 12px; }
.mv__points li {
  font-size: 15px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
}
.mv__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s ease;
}
.value:hover { border-color: var(--border-strong); }
.value h3 { font-size: 17px; margin-bottom: 10px; }
.value p { font-size: 13.5px; color: var(--text-dim); }
.value__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--violet);
  display: block;
  margin-bottom: 14px;
}

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raise);
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); font-size: 17px; margin-bottom: 34px; }

:root[data-theme="light"] .price--featured {
  background: linear-gradient(180deg, rgba(98, 71, 217, 0.06), rgba(8, 145, 178, 0.03));
}
:root[data-theme="light"] .quote p { color: var(--text-dim); }

@media (max-width: 1080px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mv { grid-template-columns: 1fr; gap: 32px; }
  .mv--flip .mv__media { order: 0; }
  .mv + .mv { margin-top: 72px; }
  .values__grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 64px; }
}

@media (max-width: 460px) {
  .loop__steps { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: 1fr; }
  .appwin__layout { grid-template-columns: 1fr; }
  .appwin__side { display: none; }
}

