:root {
  --bg: #070a12;
  --bg-soft: #0d1220;
  --panel: rgba(139, 92, 246, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.14);
  --text: #eef2ff;
  --muted: rgba(226, 232, 240, 0.82);
  --violet: #8b5cf6;
  --violet-deep: #5b21b6;
  --star: #c4b5fd;
  --silver: #94a3b8;
  --amber: #f59e0b;
  --cyan: #38bdf8;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.08), transparent 28%),
    linear-gradient(180deg, #060810 0%, #0a0f1a 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 3px;
}

#scene,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#scene {
  z-index: 0;
  opacity: 0.72;
}

.noise {
  z-index: 1;
  opacity: 0.035;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.35) 0,
    rgba(255, 255, 255, 0.35) 1px,
    transparent 1px,
    transparent 48px
  );
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.site-shell {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 36px;
  backdrop-filter: blur(20px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
}

.brand img,
.brand-logo,
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.45)) drop-shadow(0 4px 14px rgba(139, 92, 246, 0.35));
}

.brand .brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
  color: #ffffff;
  white-space: nowrap;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: lowercase;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
}

.brand-wordmark .brand-name,
.brand-wordmark .brand-fx {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  text-transform: lowercase;
}

.brand-wordmark .brand-name {
  color: #f8fafc;
  background: linear-gradient(90deg, #ffffff 0%, #f5f3ff 70%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-wordmark .brand-fx {
  background: linear-gradient(90deg, #e9d5ff 0%, #c4b5fd 45%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  background: rgba(139, 92, 246, 0.08);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav a,
.button,
.nav-cta,
.text-link {
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav a:hover,
.button:hover,
.nav-cta:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.text-link-secondary {
  margin-left: 16px;
}

.feature-panel.wide {
  grid-column: 1 / -1;
}

.nav a.active {
  color: var(--star);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 13px;
  font-weight: 600;
}

.nav-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed 55%, #5b21b6);
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 12px 32px rgba(91, 33, 182, 0.28);
}

.button.secondary {
  background: rgba(139, 92, 246, 0.08);
  color: var(--star);
}

.section {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: center;
  min-height: calc(88vh - 84px);
  padding: 36px 0 48px;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-media {
  position: relative;
  isolation: isolate;
  perspective: 1200px;
  overflow: visible;
}

.hero-image-shell {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  margin: -72px -110px -76px -44px;
  aspect-ratio: 1.32;
  background:
    radial-gradient(ellipse at 51% 52%, transparent 0 44%, rgba(7, 10, 18, 0.04) 54%, rgba(7, 10, 18, 0.22) 66%, transparent 82%),
    url("./hero-constellation.jpg") center / 108% auto no-repeat;
  background-blend-mode: normal, screen;
  border: 0;
  box-shadow: none;
  overflow: visible;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
  will-change: transform, filter;
  -webkit-mask-image: radial-gradient(ellipse 74% 70% at 53% 50%, #000 0 46%, rgba(0, 0, 0, 0.62) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse 74% 70% at 53% 50%, #000 0 46%, rgba(0, 0, 0, 0.62) 58%, transparent 78%);
}

.hero-image-shell:hover {
  filter: saturate(1.14) brightness(1.06);
}

.hero-image-shell::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(196, 181, 253, 0.26), transparent 18%),
    radial-gradient(circle at 54% 48%, rgba(139, 92, 246, 0.18), transparent 26%),
    radial-gradient(circle at 66% 46%, rgba(56, 189, 248, 0.12), transparent 34%);
  filter: blur(30px);
  opacity: 0.72;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-image-shell .depth-sheen {
  position: absolute;
  inset: 10% 8% 13% 7%;
  z-index: 3;
  border-radius: 50%;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.1), transparent 52%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.hero-image-shell.is-hovering .depth-sheen {
  opacity: 1;
}

.hero-image-shell.is-hovering::before {
  opacity: 0.95;
}

.page-hero {
  padding: 58px 0 24px;
}

.contact-hero {
  max-width: 720px;
}


.solution-hero,
.about-hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 30px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--star);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: none;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

p,
span,
strong,
a {
  overflow-wrap: anywhere;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(30px, 3.2vw, 54px);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(26px, 2.5vw, 40px);
}

.hero-title span {
  display: block;
}

.hero-title span:first-child:not(.brand-wordmark) {
  background: linear-gradient(135deg, #eef2ff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .brand-wordmark {
  display: block;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-title .brand-wordmark .brand-name {
  color: #ffffff;
}

.hero-title .brand-wordmark .brand-fx {
  color: #c4b5fd;
}

.lede,
.page-lede,
.section-heading p,
.info-card p,
.stat-block span,
.feature-item p,
.text-panel p span,
.timeline-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.lede,
.page-lede {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  font-size: 12px;
}

.hero-points li::before {
  content: "◆";
  margin-right: 8px;
  color: var(--violet);
  font-size: 8px;
  vertical-align: middle;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  padding-bottom: 8px;
}

.ticker-band {
  overflow: hidden;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  background: rgba(139, 92, 246, 0.04);
}

.ticker-track {
  display: flex;
  width: max-content;
  padding: 15px 0;
  color: rgba(226, 232, 240, 0.75);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: ticker 68s linear infinite;
}

.ticker-track span::after {
  content: "·";
  margin: 0 32px;
  color: var(--violet);
}

.stats,
.card-grid {
  display: grid;
  gap: 18px;
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  padding: 48px 0 24px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.stat-block,
.info-card,
.text-panel,
.feature-item,
.stack-row,
.feature-panel,
.timeline-item {
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(13, 18, 32, 0.65);
  box-shadow: var(--shadow);
}

.stat-block,
.info-card,
.text-panel {
  border-radius: 16px;
  padding: 24px;
}

.stat-block strong {
  display: block;
  font-size: 22px;
  color: var(--star);
}

.section-grid,
.two-col,
.feature-band,
.tech-stack,
.timeline-section {
  padding: 92px 0 16px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.text-panel h2,
.feature-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.info-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 16px;
  padding: 24px;
}

.info-card::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 28px;
  height: 28px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(56, 189, 248, 0.1));
  opacity: 0.8;
}

.info-card::before,
.feature-item::before,
.feature-panel::before,
.text-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 42%, rgba(56, 189, 248, 0.06));
  opacity: 0;
  transition: opacity 220ms ease;
}

.info-card:hover::before,
.feature-item:hover::before,
.feature-panel:hover::before,
.text-panel:hover::before {
  opacity: 1;
}

.card-index {
  position: relative;
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-family: "JetBrains Mono", monospace;
}

.info-card h3,
.feature-item h3 {
  position: relative;
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.3;
}

.metric-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  background: rgba(13, 18, 32, 0.45);
  backdrop-filter: blur(8px);
}

.metric-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(56, 189, 248, 0.15));
  color: var(--star);
}

.metric-icon svg {
  width: 16px;
  height: 16px;
}

.metric-chip strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.metric-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.visual-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: stretch;
  padding: 86px 0 18px;
}

.visual-copy {
  padding: 28px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(13, 18, 32, 0.65);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.visual-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}

.visual-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.visual-board,
.mini-board {
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(13, 18, 32, 0.65);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.visual-board {
  min-height: 360px;
  padding: 28px;
}

.visual-board::before,
.mini-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 72% 42%, rgba(139, 92, 246, 0.1), transparent 42%),
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 85% 80% at 70% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 70% 45%, black 20%, transparent 75%);
}

.gateway-graphic {
  position: absolute;
  width: min(300px, 46%);
  aspect-ratio: 1;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
  pointer-events: none;
}

.rail-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  max-width: 320px;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  background: rgba(7, 10, 18, 0.55);
  border-radius: 12px;
}

.rail-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--star);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(139, 92, 246, 0.15);
}

.rail-item strong {
  display: block;
  font-size: 13px;
}

.rail-item span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 82px 0 18px;
}

.mini-board {
  min-height: 270px;
  padding: 24px;
}

.mini-board h3 {
  position: relative;
  margin: 0;
  font-size: 24px;
}

.mini-board p {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 42ch;
}

.node-map {
  position: absolute;
  inset: auto 28px 28px auto;
  width: 200px;
  height: 120px;
}

.node-map span {
  position: absolute;
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  background: var(--violet);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
}

.node-map span:nth-child(1) { left: 10%; top: 55%; }
.node-map span:nth-child(2) { left: 38%; top: 20%; background: var(--amber); }
.node-map span:nth-child(3) { left: 62%; top: 45%; background: var(--cyan); }
.node-map span:nth-child(4) { left: 82%; top: 15%; background: var(--silver); }

.node-map::before {
  content: "";
  position: absolute;
  inset: 20px 18px 30px 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.25);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transform: skewY(-12deg);
}

.feature-band {
  padding-bottom: 110px;
}

.feature-panel {
  position: relative;
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.feature-list.compact {
  margin-top: 24px;
}

.feature-item {
  position: relative;
  min-height: 180px;
  padding: 22px;
  border-radius: 16px;
  overflow: hidden;
}

.feature-item h3 a {
  color: inherit;
  transition: color 180ms ease;
}

.feature-item h3 a:hover {
  color: var(--star);
}

[id] {
  scroll-margin-top: 96px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 92px 0 16px;
}


.tech-stack {
  display: grid;
  gap: 14px;
}

.stack-row {
  padding: 22px 24px;
  border-radius: 16px;
}

.stack-row span {
  display: block;
  color: var(--star);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.stack-row strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.6;
}

.text-link {
  position: relative;
  display: inline-block;
  margin-top: 18px;
  color: var(--star);
  font-size: 14px;
  font-weight: 600;
}

.about-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 72px 0 18px;
}

.about-lead-panel {
  min-height: 300px;
  border-radius: 16px;
  padding: 24px;
}

.about-stack {
  display: grid;
  gap: 14px;
  align-content: center;
}

.stack-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(13, 18, 32, 0.65);
  box-shadow: var(--shadow);
}

.stack-card.active {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
}

.stack-card span {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-family: "JetBrains Mono", monospace;
}

.stack-card strong {
  font-size: 15px;
}

.accent-board {
  background:
    radial-gradient(circle at 78% 22%, rgba(139, 92, 246, 0.14), transparent 24%),
    rgba(13, 18, 32, 0.65);
}

.solution-pillars {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 18px;
  margin-top: 18px;
}

.solution-summary {
  padding: 72px 0 16px;
}

.solution-pillar {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent 40%, rgba(56, 189, 248, 0.06)),
    rgba(13, 18, 32, 0.65);
  box-shadow: var(--shadow);
}

.solution-pillar.tall {
  min-height: 320px;
}

.solution-pillar h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.solution-pillar p,
.solution-summary p,
.about-values p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pillar-tags span {
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.timeline-grid {
  display: grid;
  gap: 0;
  margin-top: 36px;
  position: relative;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--violet), rgba(139, 92, 246, 0.1));
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 24px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-left: 8px;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--star);
  background: var(--bg-soft);
  border: 2px solid var(--violet);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.3);
}

.timeline-item.highlight .timeline-year {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  border-color: var(--star);
}

.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.contact-gateway {
  display: grid;
  place-items: center;
  min-height: 52vh;
  padding: 70px 0 110px;
}

.gateway-card {
  position: relative;
  width: min(760px, 100%);
  padding: 42px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18), transparent 34%),
    radial-gradient(circle at 80% 60%, rgba(56, 189, 248, 0.1), transparent 28%),
    rgba(13, 18, 32, 0.75);
  box-shadow: var(--shadow);
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.gateway-card > * {
  position: relative;
  z-index: 2;
}

.gateway-card h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
}

.gateway-card p:not(.eyebrow) {
  max-width: 48ch;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.gateway-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.2);
}

.gateway-mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-footer {
  position: relative;
  z-index: 5;
  margin-top: 36px;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 24px;
}

.footer-brand p,
.footer-links a,
.footer-meta a {
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  line-height: 1.75;
}

.footer-links a,
.footer-meta a {
  display: block;
  padding: 4px 0;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--star);
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand img,
.footer-brand .brand-logo,
.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 12px rgba(196, 181, 253, 0.4)) drop-shadow(0 3px 12px rgba(139, 92, 246, 0.3));
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links strong,
.footer-meta strong {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--star);
  margin-bottom: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ticker-track,
  .hero-glow {
    animation: none !important;
  }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 0.88; transform: scale(1.03); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

@media (max-width: 1100px) {
  .hero,
  .two-col,
  .visual-split,
  .media-strip,
    .solution-hero,
  .about-hero,
  .about-story,
  .solution-pillars {
    grid-template-columns: 1fr;
  }

  .hero-image-shell {
    margin: 8px auto 0;
    width: min(620px, 100%);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 16px 18px;
  }

  .topbar > .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 42px;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 24;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    display: grid;
    width: min(280px, calc(100vw - 28px));
    padding: 12px;
    gap: 4px;
    font-size: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.96);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .topbar.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    display: block;
    padding: 12px;
    border-radius: 8px;
  }

  .nav a.active,
  .nav a:hover {
    background: rgba(139, 92, 246, 0.12);
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero-image-shell {
    margin: 4px -20px -22px;
    width: calc(100% + 40px);
  }

  .hero-metrics {
    margin-top: 20px;
  }

  .stats,
  .card-grid,
  .feature-list,
    .footer-inner,
  .solution-pillars {
    grid-template-columns: 1fr;
  }

  .timeline-grid::before {
    left: 36px;
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding: 20px 12px;
  }

  .timeline-year {
    width: 44px;
    height: 44px;
    font-size: 11px;
    margin-left: 4px;
  }

  .gateway-card {
    padding: 30px 20px;
  }

  .section-grid,
  .two-col,
  .feature-band,
  .tech-stack,
  .visual-split,
  .media-strip,
  .about-story,
  .contact-gateway,
  .timeline-section {
    padding-top: 54px;
  }

  .page-hero {
    padding-top: 44px;
  }

  .footer-inner {
    width: min(100% - 28px, 1180px);
  }
}

@media (max-width: 520px) {
  .nav-cta {
    display: none;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand img,
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand .brand-wordmark {
    font-size: 14px;
  }

  .hero-actions .button {
    flex: 1 1 140px;
  }

  .ticker-track {
    font-size: 10px;
  }
}

/* MSB document gallery */
.msb-docs-section .section-heading code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
  color: #c4b5fd;
}

.msb-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.msb-docs-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 20px;
  border: 1px dashed rgba(196, 181, 253, 0.28);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.msb-doc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  background: rgba(10, 14, 26, 0.72);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.msb-doc-card:hover {
  border-color: rgba(167, 139, 250, 0.55);
  transform: translateY(-2px);
}

.msb-doc-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.12);
}

.msb-doc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.msb-doc-thumb.pdf {
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.msb-doc-meta strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
  word-break: break-word;
}

.msb-doc-meta span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.icon-row,
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.line-icon,
.pillar-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(139, 92, 246, 0.12);
}

.orbit-graphic {
  position: absolute;
  width: 280px;
  aspect-ratio: 1;
  right: 12%;
  top: 48%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, 0.35);
  pointer-events: none;
  z-index: 0;
}

.orbit-graphic::before,
.orbit-graphic::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit-graphic::before {
  inset: 15%;
  border: 1px solid rgba(196, 181, 253, 0.25);
}

.orbit-graphic::after {
  width: 16px;
  height: 16px;
  top: 8%;
  right: 20%;
  background: radial-gradient(circle, #fff, #c4b5fd 54%, #7c3aed);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.55);
}

.visual-board .rail-list {
  position: relative;
  z-index: 1;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.journey-step {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.journey-step span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.journey-step strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .orbit-graphic {
    opacity: 0.35;
    right: 4%;
    width: 200px;
  }
}
