:root {
  --bg1: #050816;
  --bg2: #050816;
  --text-main: #e5efff;
  --text-sub: #9ca3af;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --border-soft: rgba(148, 163, 184, 0.25);
  --radius-xl: 22px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 14px 32px rgba(15, 23, 42, 0.6);
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(900px 600px at 0% 0%, #1d2747 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 0%, #1b2150 0%, transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height: 100vh;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADING SCALE */
h1 {
  font-size: clamp(32px, 5.5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.fade-image {
  -webkit-mask-image: linear-gradient(to circle, black 70%, transparent);
  mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: middle;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px) saturate(150%);
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.9),
    rgba(6, 8, 20, 0.96)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-word {
  height: 22px;
}

.hero-header {
  text-align: left;
  display: flex;
  flex-direction: row;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  color: var(--text-sub);
}

.nav-links a {
  padding: 4px 0;
  position: relative;
}

.nav-links a.active {
  color: var(--text-main);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-sections {
  position: relative;
}

.nav-sections > summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 0;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-sections > summary::-webkit-details-marker {
  display: none;
}

.nav-sections > summary::after {
  content: "▾";
  font-size: 12px;
  opacity: 0.9;
  transition: transform 0.18s ease;
}

.nav-sections[open] > summary,
.nav-sections > summary:hover {
  color: var(--text-main);
}

.nav-sections:hover > summary::after {
  transform: rotate(180deg);
}

.nav-sections[open] > summary::after {
  transform: rotate(180deg);
}

.nav-sections[open] {
  z-index: 60;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-subtle);
}

.nav-sections:not([open]) .nav-submenu {
  display: none;
}

.nav-sections:hover .nav-submenu {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 0;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    opacity 0.18s ease;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-links a:focus-visible,
.viewer-tab:focus-visible,
.trust-spotlight-link:focus-visible,
.contact-meta a:focus-visible {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25);
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 42px rgba(56, 189, 248, 0.45);
  color: #020617;
}

.btn-primary:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 20px 54px rgba(37, 99, 235, 0.55);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 6px;
  background: var(--text-main);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 6px;
  background: var(--text-main);
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}
.nav-toggle span::after {
  top: 6px;
}

/* GENERIC 16:9 FRAME */
.frame-16x9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
}

.frame-16x9 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* crop extra bottom height */
}

/* HERO */
.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(42px, 6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.65;
}

.hero-ctas {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-footnote {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-sub);
  width: 100%;
  display: flex;
  justify-content: center;
}

/* TRUST SPOTLIGHT */
.trust-spotlight {
  padding: 8px 0 20px;
  position: relative;
}

.trust-spotlight::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  background:
    radial-gradient(
      700px 220px at 8% 0%,
      rgba(34, 211, 238, 0.09),
      transparent
    ),
    radial-gradient(700px 220px at 92% 0%, rgba(168, 85, 247, 0.1), transparent);
  pointer-events: none;
}

.trust-spotlight .container {
  position: relative;
}

.trust-spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.trust-spotlight-eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.trust-spotlight-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f2f7ff;
}

.trust-spotlight-link {
  font-size: 14px;
  font-weight: 600;
  color: #9fe7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.trust-spotlight-link:hover {
  color: #d6f6ff;
}

.inline-cta-link {
  font-size: 14px;
  font-weight: 600;
  color: #9fe7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-cta-link:hover {
  color: #d6f6ff;
}

.trust-quote-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.trust-quote-item {
  padding: 2px 8px 2px 12px;
  border-left: 2px solid rgba(125, 211, 252, 0.52);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.trust-quote-copy {
  margin: 0;
  font-size: 14px;
  color: #d9e6f8;
  line-height: 1.5;
}

.trust-quote-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #9db1ca;
}

.hero-visual {
  position: relative;
  height: 280px;
  margin-top: 24px;
}

.hero-card-main,
.hero-card-side {
  position: absolute;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.24), transparent 55%),
    radial-gradient(
      circle at 100% 0,
      rgba(168, 85, 247, 0.22),
      transparent 55%
    ),
    #020617;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
}

.hero-card-main {
  inset: 0;
  margin: auto;
  max-width: 360px;
}

.hero-card-inner {
  padding: 10px;
}

.hero-card-side {
  width: 190px;
  top: 18px;
}

.hero-card-side.left {
  left: -8px;
  transform: translateX(-40px) translateY(26px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.hero-card-side.right {
  right: -8px;
  transform: translateX(40px) translateY(54px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.hero-card-label {
  padding: 8px 12px 10px;
  font-size: 11px;
  color: var(--text-sub);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.98);
  display: flex;
  justify-content: space-between;
}

/* SECTIONS */
section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 10px;
  font-size: 17px;
  color: var(--text-sub);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  display: block;
  text-align: center;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 20px;
}

.pill-card {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-subtle);
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.pill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.5);
}

.pill-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pill-card-body p + p {
  margin-top: 6px;
  font-size: 14px;
}

/* CAPABILITIES */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 18px;
  margin-top: 24px;
}

.capability {
  padding: 18px 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
  font-size: 15px;
  display: flex;
  gap: 12px;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.capability:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

.cap-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  margin-bottom: 10px;
  background: radial-gradient(
    circle at 0 0,
    rgba(56, 189, 248, 0.4),
    transparent 65%
  );
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.cap-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.cap-body {
  font-size: 14px;
  color: var(--text-sub);
}

/* TESTIMONIALS */
#Testimonials {
  position: relative;
}

#Testimonials .section-header {
  margin-bottom: 22px;
}

#Testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

#Testimonials .testimonial-card {
  grid-column: span 6;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.34);
  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.08) 0%,
      rgba(15, 23, 42, 0.94) 34%,
      rgba(15, 23, 42, 0.98) 100%
    ),
    rgba(15, 23, 42, 0.96);
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.45);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  text-align: left;
}

#Testimonials .testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.55);
}

#Testimonials .testimonial-quote-mark {
  font-size: 34px;
  line-height: 1;
  color: rgba(34, 211, 238, 0.8);
  margin-bottom: 10px;
}

#Testimonials .pill-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #eaf2ff;
}

#Testimonials .cap-body {
  font-size: 15px;
  line-height: 1.72;
  color: #c6d3e4;
  text-align: left;
}

/* JUMP NAV - anchor links that stand out */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.07);
  font-size: 14px;
  font-weight: 500;
  color: #9fe7ff;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.jump-nav a:hover {
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.7);
  color: #d6f6ff;
}

/* ==========================================================
   HOW-IT-WORKS - INLINE PLACEMENT + STEPS (index.html)
   ========================================================== */

.hiw-placement {
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr;
  align-items: center;
  justify-items: center;
  gap: 0;
  margin-bottom: 52px;
}

.hiw-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.95);
  min-width: 160px;
  max-width: 200px;
  width: 100%;
  justify-self: center;
}

.hiw-node-core {
  min-width: 220px;
  max-width: 280px;
  width: 100%;
  justify-self: center;
  padding: 22px 28px;
  background:
    radial-gradient(
      circle at 30% 0%,
      rgba(34, 211, 238, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 70% 100%,
      rgba(168, 85, 247, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.12),
    0 16px 40px rgba(2, 6, 23, 0.5);
}

.hiw-node-icon {
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
}

.hiw-core-icon {
  font-size: 28px;
}

.hiw-node-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.hiw-node-core .hiw-node-label {
  color: #9fe7ff;
}

.hiw-node-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.hiw-core-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 11px;
  color: rgba(125, 211, 252, 0.8);
  background: rgba(34, 211, 238, 0.07);
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.hiw-micro-arrow {
  color: rgba(34, 211, 238, 0.5);
}

.hiw-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 120px;
  padding: 0;
  align-self: center;
}

.hiw-arrow-line {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(34, 211, 238, 0.4),
    rgba(168, 85, 247, 0.4)
  );
  border-radius: 999px;
  position: relative;
}

.hiw-arrow-line::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  border: 5px solid transparent;
  border-left: 8px solid rgba(168, 85, 247, 0.6);
}

.hiw-arrow-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-align: center;
  white-space: normal;
  max-width: 116px;
  line-height: 1.25;
}

/* STEPS GRID */
.hiw-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hiw-step {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hiw-step:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

.hiw-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.hiw-step h4 {
  margin-bottom: 8px;
}

.hiw-step p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .hiw-placement {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    gap: 0;
    margin-bottom: 40px;
  }

  .hiw-node,
  .hiw-node-core {
    min-width: 240px;
    max-width: 320px;
    width: 90%;
  }

  .hiw-connector {
    padding: 4px 0;
    flex-direction: row;
  }

  .hiw-arrow-line {
    width: 2px;
    height: 36px;
    background: linear-gradient(
      180deg,
      rgba(34, 211, 238, 0.4),
      rgba(168, 85, 247, 0.4)
    );
  }

  .hiw-arrow-line::after {
    right: auto;
    top: auto;
    bottom: -6px;
    left: -4px;
    border: 5px solid transparent;
    border-top: 8px solid rgba(168, 85, 247, 0.6);
    border-left: none;
  }

  .hiw-arrow-label {
    display: none;
  }

  .hiw-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hiw-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hiw-node,
  .hiw-node-core {
    min-width: 0;
    max-width: 100%;
    width: 88%;
  }
}

/* HOW IT WORKS ARCHITECTURE */
.arch-diagram {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.arch-node {
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.96);
  font-size: 13px;
  text-align: center;
}

.arch-core {
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(
      circle at 100% 0,
      rgba(168, 85, 247, 0.25),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.98);
  border-width: 1.2px;
  font-weight: 600;
}

.arch-core span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-sub);
}

.arch-arrow {
  font-size: 18px;
  color: var(--text-sub);
}

.arch-notes {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-sub);
}

.arch-note {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  max-width: 150px;
  margin: 20px;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

/* INTEGRATION LAYOUT */
.integration-layout {
  display: grid;
  gap: 32px;
  margin-top: 30px;
  align-items: center;
}

.integration-steps {
  display: flex;
  flex-direction: row;
  gap: 16px;
  font-size: 14px;
}

.integration-step {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.96);
  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center; /* Vertically center children */
  gap: 16px; /* Optional: add space between text and image */
}

.integration-step-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.integration-step-title span {
  margin-right: 6px;
  color: var(--accent);
}

/* PRODUCT VIEWER */
.viewer {
  margin-top: 30px;
}

.viewer-frame {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-subtle);
  padding: 14px 14px 12px;
  align-items: center;
  display: flex;
}

.viewer-images {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;

  /* aspect-ratio enforces 16:9 height; avoids layout shift on load */
  aspect-ratio: 16 / 9;
  background: #020617; /* optional, just a dark base */
}

.viewer-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;

  /* each slide fills the full viewer area */
  width: 100%;
  height: 100%;
}

.viewer-image-inner {
  width: 100%;
  height: 100%;
}

.viewer-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 2;
}

.viewer-image-inner .frame-16x9 {
  border-radius: 16px;
}
.viewer-image.active {
  opacity: 1;
  transform: scale(1);
}

.viewer-caption {
  padding: 10px 4px 4px;
  font-size: 13px;
}

.viewer-caption-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.viewer-caption-text {
  font-size: 15px;
  color: var(--text-sub);
}

.viewer-tabs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.viewer-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.viewer-tab.active {
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.4), transparent 65%),
    rgba(15, 23, 42, 1);
  color: var(--text-main);
  border-color: rgba(94, 234, 212, 0.9);
}

/* PROMISE */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.promise-card {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
  font-size: 15px;
}

.promise-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card {
  padding: 22px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 15px;
  color: #cbd5f5;
}

.form-group span.hint {
  font-size: 11px;
  color: var(--text-sub);
}

input,
textarea,
select {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.95);
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.recaptcha-wrap {
  margin: 10px 0 8px;
}

.contact-meta {
  font-size: 15px;
  color: var(--text-sub);
  text-align: center;
}

.contact-meta a {
  color: var(--accent);
  text-decoration: underline;
}

footer {
  padding: 24px 20px 28px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  margin-top: 16px;
}

footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

body.modal-open {
  overflow: hidden;
}

.modal-content {
  background: #0f172a;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.7);
}

.modal-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.modal-content p {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.hero-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
}

.hero-video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #000;
}

/* Hide fallback when video loads */
.hero-video-wrapper:not(.video-failed) + .hero-fallback {
  display: none;
}

/* Show fallback if video fails */
.hero-video-wrapper.video-failed {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-header {
    text-align: center;
    flex-direction: column;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-visual {
    height: 260px;
  }

  .hero-card-main {
    max-width: 320px;
  }

  .trust-spotlight {
    padding-top: 8px;
  }

  .trust-spotlight-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .trust-spotlight-link {
    white-space: normal;
  }

  .trust-quote-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .three-column {
    grid-template-columns: minmax(0, 1fr);
  }

  #Testimonials .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #Testimonials .testimonial-card {
    grid-column: auto;
    padding: 22px 18px 18px;
  }

  #Testimonials .testimonial-card:hover {
    transform: none;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-wrap {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .trust-quote-rail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 800px) {
  .nav {
    height: 64px;
  }

  .nav-links {
    position: absolute;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(30, 64, 175, 0.7);
    padding: 10px 20px 14px;
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-sections {
    width: 100%;
  }

  .nav-sections > summary {
    width: 100%;
    justify-content: center;
  }

  .nav-submenu {
    position: static;
    align-self: center;
    align-items: flex-start;
    width: fit-content;
    margin-top: 6px;
    min-width: 0;
    border: 0;
    border-left: 2px solid rgba(148, 163, 184, 0.45);
    border-radius: 0;
    padding: 4px 0 0 10px;
    background: transparent;
    box-shadow: none;
  }

  .nav-submenu a {
    text-align: left;
  }

  .nav-sections:hover .nav-submenu {
    display: none;
  }

  .nav-sections[open] .nav-submenu {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-primary {
    font-size: 13px;
    padding: 9px 16px;
  }

  section {
    padding: 48px 0;
  }

  .hero-title {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .arch-diagram {
    flex-direction: column;
  }

  .arch-arrow {
    rotate: 90deg;
  }

  .arch-notes {
    flex-direction: column;
    align-items: center;
  }

  .arch-mobile {
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
  }

  .viewer-frame {
    flex-direction: column;
  }

  .desktop-only {
    display: none !important;
  }

  .capabilities-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .hero-visual {
    height: 240px;
  }

  .integration-steps {
    flex-direction: column;
  }

  main#top section {
    padding: 56px 0;
  }

  main#top .hero {
    padding-top: 44px;
    padding-bottom: 40px;
  }

  main#top .section-header {
    margin-bottom: 36px;
  }

  main#top .hero-sub {
    font-size: 16px;
    line-height: 1.72;
  }

  main#top .capability-band {
    margin-top: 32px;
    gap: 18px;
  }

  main#top .three-column {
    gap: 18px;
    margin-top: 26px;
  }

  main#top .trust-quote-rail {
    gap: 16px;
  }

  main#top .trust-quote-item {
    padding: 8px 10px 8px 14px;
  }

  main#top #Testimonials .testimonials-grid {
    gap: 18px;
    margin-top: 28px;
  }
}

.flow-step,
.signal,
.promise-card,
.integration-step,
.arch-note,
.viewer-frame,
.risk-step {
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.flow-step:hover,
.signal:hover,
.promise-card:hover,
.integration-step:hover,
.arch-note:hover,
.viewer-frame:hover,
.risk-step:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

body.modal-open .contact-card {
  transform: none !important;
}

/* ==========================================================
   HOW-IT-WORKS PAGE - POLICY GRID + PIPELINE
   ========================================================== */

/* Policy generation section */
.hiw-policy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.hiw-policy-source-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hiw-policy-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hiw-policy-input {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

.hiw-policy-input-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.hiw-policy-input-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hiw-policy-input-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.hiw-policy-arrow-col {
  display: flex;
  justify-content: center;
}

.hiw-policy-arrow {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.6;
}

.hiw-policy-models {
  gap: 8px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.hiw-policy-model {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.07);
  font-size: 13px;
  font-weight: 600;
  color: #9fe7ff;
  letter-spacing: 0.04em;
}

.hiw-policy-output {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.1), transparent 55%),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.hiw-policy-output-note {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

/* Runtime section background tint */
.hiw-runtime-section {
  background: rgba(15, 23, 42, 0.3);
}

/* Decision pipeline */
.hiw-pipeline {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 24px;
  border-left: 2px solid rgba(34, 211, 238, 0.3);
  margin-left: 20px;
  position: relative;
}

/* Scope the pipeline step dot only within the how-it-works page container */

.hiw-pipeline-step::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 24px;
  width: 10px;
  height: 10px;
  background: rgba(34, 211, 238, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

.hiw-pipeline-step-last {
  border-left-color: rgba(34, 211, 238, 0.8);
}

.hiw-pipeline-step-last::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}

.hiw-pipeline-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  min-width: 28px;
  padding-top: 2px;
}

.hiw-pipeline-num-enforce {
  font-size: 18px;
  color: #4ade80;
}

.hiw-pipeline-body h4 {
  margin-bottom: 6px;
}

.hiw-pipeline-body p {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* Integration grid */
.hiw-integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.hiw-integration-step {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(51, 65, 85, 0.9);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hiw-integration-step:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.35);
}

.hiw-integration-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hiw-integration-step h4 {
  margin-bottom: 8px;
}

.hiw-integration-step p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .hiw-policy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hiw-policy-arrow-col {
    display: none;
  }

  .hiw-integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hiw-integration-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hiw-pipeline-step {
    padding: 16px 16px;
    margin-left: 14px;
  }
}

.ux-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
  will-change: opacity, transform;
}

.ux-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ux-reveal,
  .ux-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
