:root {
  --black: #000;
  --white: #fff;
  --bg: #050506;
  --panel: #0b0b0d;
  --panel-2: #101013;
  --border: #1e1e22;
  --border-strong: #313137;
  --ink: #0a0a0a;
  --muted: #8a8a93;
  --muted-2: #a9a9b1;
  --accent: #5b7cfa;
  --accent-soft: rgba(91, 124, 250, 0.16);
  --accent-glow: rgba(91, 124, 250, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Inter Tight", "Inter", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

/* grain */
.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* reveal */
.fx-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.fx-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fx-up { opacity: 1; transform: none; transition: none; }
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 300ms ease, border-color 300ms ease, padding 300ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  padding: 12px 0;
  background: rgba(5, 5, 6, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand img {
  width: 260px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: "Inter Tight", "Inter", sans-serif;
}

.nav-links a {
  position: relative;
  color: var(--muted-2);
  padding: 6px 0;
  transition: color 200ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.4px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(3.2px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  transform: translateY(-3.2px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 0 32px;
  background: rgba(5, 5, 6, 0.98);
  backdrop-filter: blur(10px);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms;
  text-align: center;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu a {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.mobile-menu .btn {
  justify-self: center;
  margin-top: 8px;
}

.mobile-menu .btn-primary {
  color: var(--black);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap;
}

.btn-lg {
  height: 54px;
  padding: 0 26px;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(91, 124, 250, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 0;
  overflow: clip;
}

.hero-aurora {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 900px;
  z-index: 0;
  background:
    radial-gradient(40% 50% at 18% 20%, var(--accent-soft), transparent 60%),
    radial-gradient(35% 45% at 85% 10%, rgba(255, 255, 255, 0.06), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 10%, rgba(0,0,0,0.85), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 10%, rgba(0,0,0,0.85), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 110px;
}

.hero-copy {
  max-width: none;
  min-width: 0;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1 {
  font-size: var(--matched-heading-size, clamp(1.4rem, 6vw, 6.4rem));
  line-height: 1.06;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--white);
}

.hero-headline-single {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero-headline-single {
    white-space: normal;
  }
}

.text-stroke {
  color: var(--white);
}

.hero-lede {
  max-width: none;
  width: 100%;
  margin-bottom: 48px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--white);
}

.hero-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.visual-glow {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  filter: blur(36px);
  opacity: 0.55;
}

.visual-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(20,20,23,0.92), rgba(7,7,8,0.96));
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

.visual-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.visual-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.visual-card-head p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.node-grid span {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.node-grid span.is-active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.visual-card-foot {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.visual-card-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

.legend-active {
  background: var(--accent);
}

.legend-standby {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border-strong);
}

/* marquee */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0 20px;
  background: rgba(255, 255, 255, 0.015);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 22px;
  padding-left: 22px;
  animation: marquee 38s linear infinite;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span:not(.sep) {
  color: var(--muted-2);
}

.marquee-track .sep {
  color: var(--muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Sections */
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent 30%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: none;
  margin-bottom: 56px;
}

.section-head-tight {
  margin-bottom: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.section-head h2 {
  font-size: var(--matched-heading-size, clamp(1.4rem, 6vw, 6.4rem));
  line-height: 1.06;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 1040px;
}

#platform .section-head {
  max-width: none;
}

#platform .section-head h2 {
  max-width: 820px;
}

#platform .section-sub {
  max-width: 900px;
}

.section-sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 720px;
}

/* card icon */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
}

.card-icon-lg {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}

.bento-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), background 240ms var(--ease);
}

.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--panel-2);
}

.bento-feature {
  grid-column: span 3;
  padding: 38px;
}

.bento-card:not(.bento-feature) {
  grid-column: span 1;
  min-width: 0;
}

.bento-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.bento-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.bento-feature h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.bento-card p {
  color: var(--muted-2);
  line-height: 1.65;
  font-size: 0.98rem;
}

.bento-flow {
  display: grid;
  gap: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
}

.flow-node {
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: center;
  background: rgba(255,255,255,0.02);
}

.flow-node-fail {
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff8a8a;
  background: rgba(255, 90, 90, 0.06);
}

.flow-line {
  width: 1px;
  height: 22px;
  margin: 0 auto;
  background: var(--border-strong);
}

.flow-line-fail {
  background: linear-gradient(180deg, var(--border-strong), rgba(255, 90, 90, 0.4));
}

/* Solution */
.solution-layout {
  display: grid;
  gap: 56px;
}

.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.solution-text {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.solution-point {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-content: start;
}

.solution-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 3px;
}

.solution-point h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.solution-point p {
  color: var(--muted-2);
  line-height: 1.65;
}

/* Capabilities bento */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  color: var(--white);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease);
}

.cap-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-2);
  box-shadow: 0 26px 54px rgba(0,0,0,0.4);
}

.cap-card-wide {
  grid-column: span 2;
}

.section:not(.section-alt) .cap-card .card-icon,
.cap-card .card-icon {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--white);
}

.cap-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.cap-card p {
  color: var(--muted-2);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline-rail {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--border-strong), transparent);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 48px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--white);
  z-index: 1;
}

.timeline-body {
  padding-top: 10px;
}

.timeline-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  max-width: 560px;
}

.timeline-body p {
  color: var(--muted-2);
  line-height: 1.65;
  max-width: 560px;
}

/* Partners */
.partner-list {
  display: grid;
  gap: 14px;
}

.partner-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  transition: border-color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.partner-row:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
  transform: translateX(4px);
}

.partner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
}

.partner-text h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.partner-text p {
  color: var(--muted-2);
  font-size: 0.96rem;
  line-height: 1.55;
}

.partner-arrow {
  color: var(--muted);
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.partner-row:hover .partner-arrow {
  transform: translate(3px, -3px);
  color: var(--white);
}

/* CTA */
.cta-section {
  position: relative;
  overflow: clip;
}

.cta-aurora {
  height: 100%;
  inset: 0;
}

.cta-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
  gap: 48px;
  align-items: start;
}

.cta-heading {
  font-size: var(--matched-heading-size, clamp(1.4rem, 6vw, 6.4rem));
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 22px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(20,20,23,0.9), rgba(7,7,8,0.96));
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  margin-top: 44px;
}

.contact-mark {
  width: min(240px, 100%);
  height: auto;
  margin-bottom: 4px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 10px;
  transition: border-color 200ms ease, color 200ms ease;
}

.contact-links a:hover {
  border-color: var(--white);
  color: var(--accent);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 30px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-inner::before {
  content: "";
}

.footer-inner p {
  font-size: 0.84rem;
  color: var(--muted);
  justify-self: center;
}

.footer-top {
  font-size: 0.84rem;
  color: var(--muted-2);
  justify-self: end;
  transition: color 200ms ease;
}

.footer-top:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-feature {
    grid-column: span 2;
  }

  .bento-feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cap-card-wide {
    grid-column: span 2;
  }

  .solution-text {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
  }

  .hero {
    padding-top: 130px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .cta-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--shell), calc(100% - 24px));
  }

  .bento,
  .cap-grid {
    grid-template-columns: 1fr;
  }

  .bento-feature,
  .cap-card-wide {
    grid-column: span 1;
  }

  .section {
    padding: 80px 0;
  }

  .timeline-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-marker {
    width: 44px;
    height: 44px;
    font-size: 0.74rem;
  }

  .timeline-rail {
    left: 21px;
  }

  .partner-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .partner-arrow {
    display: none;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
}
