:root {
  --bg: #020611;
  --panel: rgba(9, 20, 38, 0.68);
  --panel-strong: rgba(12, 29, 52, 0.88);
  --line: rgba(115, 194, 255, 0.18);
  --line-strong: rgba(96, 190, 255, 0.42);
  --text: #f5f9ff;
  --muted: #9caabd;
  --blue: #36b7ff;
  --cyan: #75f5ff;
  --green: #58f2b0;
  --shadow: 0 28px 90px rgba(0, 140, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(31, 134, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 82% 14%, rgba(117, 245, 255, 0.12), transparent 25rem),
    linear-gradient(180deg, #01040d 0%, #031023 46%, #020611 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(86, 184, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 184, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(115deg, transparent 0 32%, rgba(83, 195, 255, 0.07) 33%, transparent 34% 66%, rgba(83, 195, 255, 0.05) 67%, transparent 68%),
    radial-gradient(circle, rgba(117, 245, 255, 0.18) 1px, transparent 1.5px);
  background-size: 620px 620px, 86px 86px;
  animation: drift 24s linear infinite;
}

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

.site-shell {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 28px;
  overflow-x: clip;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34vw;
  height: 34vw;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.26;
  animation: pulseGlow 9s ease-in-out infinite alternate;
}

.ambient-a {
  top: 12%;
  left: -12%;
  background: #118dff;
}

.ambient-b {
  right: -10%;
  bottom: 4%;
  background: #28f0ff;
  animation-delay: -4s;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 0 36px;
  padding: 12px 14px;
  border: 1px solid rgba(150, 211, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 22, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(117, 245, 255, 0.48);
  border-radius: 6px;
  color: var(--cyan);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(145deg, rgba(54, 183, 255, 0.22), rgba(117, 245, 255, 0.05));
  box-shadow: 0 0 28px rgba(54, 183, 255, 0.2);
}

.brand-name,
.nav-links,
.nav-cta,
.eyebrow,
.btn,
.console-top strong,
.chat-header {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.nav-links a,
.footer nav a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.footer nav a:hover {
  color: var(--cyan);
}

.nav-cta {
  padding: 12px 16px;
  border: 1px solid rgba(117, 245, 255, 0.34);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(54, 183, 255, 0.1);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
}

.hero {
  min-height: clamp(460px, calc(100vh - 250px), 720px);
  padding: 28px 0 54px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  content: "";
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

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

h1,
h2,
h3 {
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 7.1vw, 6.45rem);
  line-height: 0.9;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 6px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001225;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 46px rgba(54, 183, 255, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(180, 224, 255, 0.24);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  perspective: 1100px;
}

.orbital-ring {
  position: absolute;
  inset: 10% 7%;
  border: 1px solid rgba(117, 245, 255, 0.24);
  border-radius: 50%;
  transform: rotateX(62deg) rotateZ(-18deg);
  box-shadow: inset 0 0 48px rgba(54, 183, 255, 0.1), 0 0 40px rgba(54, 183, 255, 0.12);
  animation: rotateRing 18s linear infinite;
}

.lab-console,
.product-card,
.chat-lab,
.blueprint-panel,
.final-cta,
.system-card {
  border: 1px solid rgba(134, 204, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 30, 55, 0.76), rgba(5, 12, 25, 0.72));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.lab-console {
  position: absolute;
  top: 24%;
  left: 5%;
  width: min(92%, 520px);
  padding: 18px;
  transform: rotateY(-11deg) rotateX(8deg);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
}

.console-top strong {
  margin-left: auto;
  color: var(--cyan);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.node {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.node::after {
  position: absolute;
  right: -15px;
  width: 17px;
  height: 1px;
  content: "";
  background: var(--line-strong);
}

.node:last-child::after {
  display: none;
}

.node.active {
  color: var(--cyan);
  box-shadow: inset 0 0 24px rgba(54, 183, 255, 0.18);
}

.signal-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.signal-line {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), transparent);
  animation: scanLine 2.6s ease-in-out infinite;
}

.w80 { width: 80%; }
.w48 { width: 48%; animation-delay: -0.7s; }
.w68 { width: 68%; animation-delay: -1.2s; }

.float-card {
  position: absolute;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 16px;
  border: 1px solid rgba(117, 245, 255, 0.24);
  border-radius: 8px;
  background: rgba(6, 18, 34, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  animation: floatCard 5.5s ease-in-out infinite;
}

.float-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.float-card strong {
  color: var(--text);
}

.card-a { top: 11%; right: 2%; }
.card-b { right: 5%; bottom: 18%; animation-delay: -1.8s; }
.card-c { left: 0; bottom: 9%; animation-delay: -3s; }

.about,
.simulation {
  padding: 100px 0;
}

.section-copy {
  max-width: 680px;
}

.section-copy p + p {
  margin-top: 18px;
}

.blueprint-panel {
  position: relative;
  min-height: 410px;
  padding: 28px;
  overflow: hidden;
}

.blueprint-panel::before,
.product-stage::before,
.final-cta::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(117, 245, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 245, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.blueprint-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 240px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(3, 12, 24, 0.72);
}

.blueprint-card.wide {
  max-width: 100%;
  margin-bottom: 42px;
}

.blueprint-card:nth-child(2) {
  margin-left: auto;
}

.blueprint-card span {
  color: var(--cyan);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

.diagram-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.65;
}

.line-one {
  top: 144px;
  left: 24%;
  width: 48%;
  transform: rotate(16deg);
}

.line-two {
  right: 26%;
  bottom: 122px;
  width: 42%;
  transform: rotate(-18deg);
}

.product,
.systems {
  padding: 100px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.product-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 540px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(134, 204, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10, 29, 55, 0.72), rgba(2, 6, 17, 0.86));
  overflow: hidden;
}

.book-mockup {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
  height: 430px;
  transform: rotateY(-24deg) rotateX(6deg);
  transform-style: preserve-3d;
}

.book-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid rgba(117, 245, 255, 0.5);
  border-radius: 8px 5px 5px 8px;
  background:
    linear-gradient(135deg, rgba(117, 245, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #06192f, #020815);
  box-shadow: 32px 36px 80px rgba(0, 0, 0, 0.42), 0 0 52px rgba(54, 183, 255, 0.22);
}

.book-cover::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(117, 245, 255, 0.2);
  border-radius: 4px;
}

.book-cover span,
.book-cover p {
  color: var(--cyan);
  font-weight: 800;
}

.book-cover h3 {
  position: relative;
  z-index: 1;
  font-size: 2.6rem;
  line-height: 0.95;
}

.book-spine {
  position: absolute;
  top: 1.5%;
  right: -34px;
  width: 34px;
  height: 97%;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(90deg, #031123, #0b3457);
  transform: rotateY(90deg);
  transform-origin: left;
}

.product-card {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 42px);
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dbe8f7;
  font-weight: 600;
}

.feature-list li::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.chat-lab {
  padding: 18px;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
}

.chat-header strong {
  color: var(--green);
}

.chat-message {
  max-width: 86%;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-message span {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-message p {
  font-size: 0.98rem;
}

.builder {
  margin-left: auto;
  border-color: rgba(88, 242, 176, 0.26);
}

.scenario-grid,
.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.scenario-grid div,
.metric-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
  background: rgba(3, 12, 24, 0.48);
  font-weight: 700;
}

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

.metric-strip strong {
  display: block;
  color: var(--cyan);
  font-size: 1.8rem;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.system-card {
  min-height: 250px;
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.system-card:hover {
  transform: translateY(-7px);
  border-color: rgba(117, 245, 255, 0.42);
  background: linear-gradient(145deg, rgba(18, 45, 78, 0.86), rgba(5, 12, 25, 0.78));
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 44px;
  border: 1px solid rgba(117, 245, 255, 0.36);
  border-radius: 6px;
  color: var(--cyan);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
}

.system-card p {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.quote {
  display: grid;
  min-height: 360px;
  place-items: center;
  padding: 80px 0;
}

.quote p {
  max-width: 1040px;
  color: var(--text);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.9rem, 8vw, 7.4rem);
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
}

.final-cta {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 80px 0 48px;
  padding: clamp(42px, 8vw, 96px) 24px;
  overflow: hidden;
  text-align: center;
}

.final-cta h2 {
  max-width: 980px;
}

.final-cta .button-row {
  justify-content: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 42px;
  color: var(--muted);
}

.footer nav,
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
}

.socials a {
  color: var(--cyan);
  font-weight: 800;
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 620px 620px, 86px 86px; }
}

@keyframes pulseGlow {
  from { transform: scale(0.88); opacity: 0.2; }
  to { transform: scale(1.08); opacity: 0.34; }
}

@keyframes rotateRing {
  to { transform: rotateX(62deg) rotateZ(342deg); }
}

@keyframes scanLine {
  50% { opacity: 0.36; transform: scaleX(0.82); }
}

@keyframes floatCard {
  50% { transform: translateY(-14px); }
}

@media (max-width: 1120px) {
  .system-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-shell {
    padding: 0 18px;
  }

  .nav {
    position: relative;
    top: auto;
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .product-stage {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 470px;
  }

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

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand-name {
    display: none;
  }

  .nav-cta {
    padding: 11px 12px;
  }

  h1 {
    font-size: clamp(3.05rem, 16vw, 4rem);
  }

  .button-row,
  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .lab-console {
    left: 0;
    width: 100%;
    transform: none;
  }

  .pipeline,
  .scenario-grid,
  .metric-strip,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .node::after,
  .float-card {
    display: none;
  }

  .book-mockup {
    height: 380px;
    transform: rotateY(-14deg) rotateX(4deg);
  }

  .book-cover h3 {
    font-size: 2.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
