:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #aab4c3;
  --panel: rgba(13, 18, 30, 0.76);
  --panel-strong: rgba(12, 18, 28, 0.94);
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #40d9ff;
  --green: #7bed9f;
  --amber: #ffc857;
  --rose: #ff5e8a;
  --violet: #9a7bff;
  --bg: #070911;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 10%, rgba(64, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(255, 200, 87, 0.14), transparent 31%),
    linear-gradient(145deg, #05070d 0%, #0b111c 45%, #101013 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.cursor-active,
body.cursor-active a,
body.cursor-active button,
body.cursor-active input,
body.cursor-active select,
body.cursor-active textarea,
body.cursor-active label {
  cursor: none;
}

.cursor-orb,
.cursor-ring,
.cursor-trail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}

.cursor-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 18px rgba(123, 237, 159, 0.9),
    0 0 42px rgba(64, 217, 255, 0.4);
  transition: width 180ms ease, height 180ms ease, background 180ms ease;
}

.cursor-ring {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(64, 217, 255, 0.58);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(64, 217, 255, 0.16);
  transition: width 180ms ease, height 180ms ease, border-color 180ms ease;
}

.cursor-trail {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(64, 217, 255, 0.8);
  animation: trailFade 620ms ease forwards;
}

.cursor-active .cursor-orb,
.cursor-active .cursor-ring {
  opacity: 1;
}

.cursor-hover .cursor-orb {
  width: 18px;
  height: 18px;
  background: var(--amber);
}

.cursor-hover .cursor-ring {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 200, 87, 0.72);
}

.cursor-down .cursor-ring {
  width: 30px;
  height: 30px;
  border-color: rgba(123, 237, 159, 0.9);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

#ecosystemCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.82;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 17, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.pipeline,
.timeline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(64, 217, 255, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(64, 217, 255, 0.22), rgba(255, 200, 87, 0.16));
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-cta,
.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-cta {
  padding: 10px 14px;
  font-size: 0.86rem;
  background: linear-gradient(135deg, rgba(64, 217, 255, 0.16), rgba(123, 237, 159, 0.12));
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: calc(100vh - 68px);
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 58px 0 72px;
}

.eyebrow,
.world-index {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-lede,
.section-heading p,
.world-copy p,
.problem p,
.service-columns p,
.contact-form label,
.finale p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.contact-email a {
  color: var(--green);
  font-weight: 800;
}

.hero-metrics {
  display: grid;
  max-width: 680px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span {
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  line-height: 1.35;
}

.hero-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.65rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #041015;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.hero-system,
.ecosystem-map {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(120deg, rgba(64, 217, 255, 0.11), transparent 32%),
    linear-gradient(300deg, rgba(255, 200, 87, 0.12), transparent 36%),
    rgba(7, 9, 17, 0.48);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.system-topbar,
.signal-rail,
.map-console {
  position: absolute;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
}

.system-topbar {
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-system::before,
.ecosystem-map::before {
  position: absolute;
  inset: 11%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.hero-system::after,
.ecosystem-map::after {
  position: absolute;
  inset: 24%;
  content: "";
  border: 1px dashed rgba(64, 217, 255, 0.28);
  border-radius: 50%;
  animation: spin 12s linear infinite reverse;
}

.system-core,
.map-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: min(42vw, 210px);
  aspect-ratio: 1;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.08);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
}

.system-core span,
.map-center {
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-core strong {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.orbit {
  position: absolute;
  display: grid;
  width: 176px;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 17, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 45px rgba(0, 0, 0, 0.28);
}

.orbit span {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.orbit small {
  color: var(--muted);
  line-height: 1.4;
}

.orbit-growth {
  left: 12%;
  top: 14%;
  border-color: rgba(123, 237, 159, 0.45);
}

.orbit-build {
  right: 4%;
  top: 24%;
  border-color: rgba(255, 200, 87, 0.45);
}

.orbit-automate {
  bottom: 12%;
  left: 18%;
  border-color: rgba(64, 217, 255, 0.45);
}

.system-panel {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 155px;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 17, 0.76);
}

.system-panel b {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.system-panel i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.panel-left {
  left: 7%;
  bottom: 23%;
}

.panel-right {
  right: 7%;
  bottom: 13%;
}

.signal-rail {
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.signal-rail span {
  min-width: 0;
  padding: 10px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.problem,
.ecosystem,
.connected,
.industries,
.services,
.team,
.case-studies,
.why,
.process,
.finale {
  padding: 92px 0;
}

.problem {
  display: grid;
  grid-template-columns: 0.85fr 1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.fragment-grid,
.flow-board,
.build-stack,
.automation-chain,
.market-grid,
.industry-grid,
.team-grid,
.case-placeholder,
.service-columns {
  display: grid;
  gap: 12px;
}

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

.fragment-grid span,
.flow-board span,
.build-stack span,
.automation-chain li,
.market-grid article,
.industry-grid article,
.team-grid article,
.case-placeholder span,
.case-placeholder strong,
.service-columns section,
.service-columns span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fragment-grid span {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--muted);
}

.fragment-grid b {
  color: var(--ink);
}

.fragment-grid small {
  line-height: 1.45;
}

.section-heading {
  margin-bottom: 34px;
}

.ecosystem-map {
  min-height: 620px;
}

.ecosystem-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 138px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 9, 17, 0.8);
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-console {
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 16px;
}

.map-console b {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.map-console p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.world {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.world-growth {
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.18), rgba(14, 18, 32, 0.32));
}

.world-build {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(11, 18, 32, 0.38));
}

.world-automate {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.16), rgba(26, 18, 40, 0.34));
}

.world-inner {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.world-inner.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.flow-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 400px;
  align-content: center;
}

.flow-board span {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(123, 237, 159, 0.18), transparent),
    var(--panel);
}

.flow-board b {
  color: var(--ink);
}

.flow-board small {
  color: var(--muted);
  line-height: 1.35;
}

.build-stack {
  perspective: 900px;
}

.build-stack span {
  min-height: 62px;
  padding: 18px 24px;
  transform: rotateX(9deg) translateX(calc(var(--i, 0) * 1px));
}

.build-stack span:nth-child(1) { --i: 0; }
.build-stack span:nth-child(2) { --i: 18; }
.build-stack span:nth-child(3) { --i: 36; }
.build-stack span:nth-child(4) { --i: 54; }
.build-stack span:nth-child(5) { --i: 72; }
.build-stack span:nth-child(6) { --i: 90; }

.automation-chain {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: automation;
}

.automation-chain li {
  position: relative;
  min-height: 58px;
  padding: 18px 18px 18px 62px;
  counter-increment: automation;
}

.automation-chain li::before {
  position: absolute;
  left: 18px;
  color: var(--cyan);
  content: counter(automation, decimal-leading-zero);
  font-weight: 800;
}

.connected {
  text-align: center;
}

.connected h2,
.connected .eyebrow,
.finale h2,
.finale .eyebrow,
.finale p {
  margin-right: auto;
  margin-left: auto;
}

.pipeline {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pipeline span {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.pipeline span:not(:last-child)::after {
  margin-left: 10px;
  color: var(--green);
  content: ">";
}

.merge-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 32px auto 0;
  max-width: 850px;
}

.merge-console div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
}

.merge-console strong,
.merge-console small {
  display: block;
}

.merge-console small {
  margin-top: 6px;
  color: var(--muted);
}

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

.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.market-grid article {
  display: grid;
  min-height: 140px;
  align-content: space-between;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(64, 217, 255, 0.1), transparent),
    var(--panel);
}

.market-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.industry-grid article {
  display: grid;
  min-height: 130px;
  align-content: space-between;
  padding: 18px;
}

.industry-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.service-columns section {
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel-strong);
}

.service-columns span {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  color: var(--muted);
  text-align: left;
}

.service-columns p {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

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

.team-grid article {
  display: grid;
  min-height: 168px;
  align-content: space-between;
  padding: 20px;
}

.team-grid strong {
  font-size: 1.25rem;
}

.team-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.case-placeholder {
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: stretch;
}

.case-placeholder span,
.case-placeholder strong {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 16px;
}

.case-placeholder span {
  justify-content: center;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-placeholder strong {
  font-size: clamp(1rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.why {
  text-align: center;
}

.why p,
.why h2 {
  margin-right: auto;
  margin-left: auto;
}

.timeline {
  flex-wrap: wrap;
  gap: 10px;
}

.timeline button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
}

.timeline button.active {
  border-color: rgba(123, 237, 159, 0.65);
  color: var(--ink);
}

.finale {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  text-align: left;
}

.contact-copy h2,
.contact-copy .eyebrow,
.contact-copy p {
  margin-left: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-status-success {
  border: 1px solid rgba(123, 237, 159, 0.35);
  background: rgba(123, 237, 159, 0.12);
  color: var(--green);
}

.form-status-error {
  border: 1px solid rgba(255, 94, 138, 0.35);
  background: rgba(255, 94, 138, 0.12);
  color: var(--rose);
}

.contact-form select option {
  color: #0b111c;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes trailFade {
  0% {
    opacity: 0.9;
    transform: translate3d(var(--trail-x), var(--trail-y), 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--trail-x), var(--trail-y), 0) scale(0);
  }
}

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

  .hero,
  .problem,
  .finale,
  .world-inner,
  .world-inner.reverse,
  .service-columns,
  .team-grid,
  .market-grid,
  .industry-grid,
  .merge-console {
    grid-template-columns: 1fr;
  }

  .hero-system,
  .ecosystem-map {
    min-height: 440px;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .orbit {
    width: 142px;
    padding: 13px;
  }

  .orbit-growth {
    left: 6%;
  }

  .orbit-build {
    right: 2%;
    top: 31%;
  }

  .orbit-automate {
    left: 8%;
    bottom: 8%;
  }

  .ecosystem-map span {
    width: 112px;
    font-size: 0.84rem;
  }

  .flow-board,
  .fragment-grid,
  .signal-rail {
    grid-template-columns: 1fr;
  }

  .system-panel {
    display: none;
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  body,
  a,
  button,
  input,
  select,
  textarea,
  label {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-ring,
  .cursor-trail {
    display: none;
  }
}

@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;
  }
}
