:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #657069;
  --paper: #f4f1ea;
  --panel: rgba(255, 255, 255, 0.62);
  --line: rgba(23, 33, 29, 0.14);
  --green: #187a51;
  --green-soft: #dce9df;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  font-family: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 45%, rgba(40, 134, 89, 0.10), transparent 28rem),
    linear-gradient(rgba(23, 33, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}

nav, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav { height: 96px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand-mark, .core-mark {
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-mark i, .core-mark i {
  display: block;
  width: 4px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(24deg);
}

.brand-mark i:nth-child(1) { height: 13px; }
.brand-mark i:nth-child(2) { height: 21px; }
.brand-mark i:nth-child(3) { height: 15px; }

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 122, 81, 0.10);
  animation: breathe 2.4s ease-in-out infinite;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(490px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  padding: 44px 0 72px;
}

main > * { min-width: 0; }

.eyebrow {
  margin-bottom: 25px;
  color: var(--green);
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before { content: "// "; }

h1 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 75px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  font-weight: 600;
}

h1 em { color: var(--green); font-style: normal; }
.mobile-break { display: none; }

.intro {
  max-width: 590px;
  margin: 31px 0 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.launch-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 11px/1 "DM Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-line .line { width: 36px; height: 1px; background: var(--line); }
.launch-line a { color: var(--green); text-underline-offset: 4px; }
.launch-line a { transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.launch-line a:active { transform: scale(0.97); }

.engine-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 38px 80px rgba(41, 51, 46, 0.10);
  backdrop-filter: blur(14px);
}

.card-head {
  height: 49px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
  color: #79827d;
  font: 400 9px/1 "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-head > :last-child { justify-self: end; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #b9bcb6; }

.engine-flow {
  position: relative;
  min-height: 472px;
  display: grid;
  grid-template-columns: 148px 1fr 188px;
  align-items: center;
  gap: 24px;
  padding: 34px 26px 82px;
  isolation: isolate;
}

.engine-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 51% 47%, rgba(34, 135, 90, 0.12), transparent 27%),
    linear-gradient(rgba(23, 33, 29, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.025) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

.provider-stack { z-index: 2; display: grid; gap: 10px; }

.provider {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(30, 42, 36, 0.055);
  opacity: 0;
  transform: translateX(-8px);
  animation: provider-in 480ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) forwards;
  animation-delay: calc(260ms + var(--delay));
}

.provider b, .event-source > b {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font: 500 9px/1 "DM Mono", monospace;
  text-transform: uppercase;
}

.provider span, .event-source span { min-width: 0; display: grid; gap: 4px; }
.provider strong { font-size: 10px; line-height: 1; }
.provider small, .event-source small { color: #89918c; font: 400 7px/1 "DM Mono", monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.provider > i { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #4bb985; box-shadow: 0 0 0 4px rgba(75, 185, 133, 0.11); }

.flow-map {
  position: absolute;
  z-index: 0;
  left: 169px;
  right: 200px;
  top: 50%;
  width: calc(100% - 340px);
  height: 310px;
  overflow: visible;
  transform: translateY(-54%);
  pointer-events: none;
}

.flow-map path { fill: none; stroke: url(#wire); stroke-width: 1; vector-effect: non-scaling-stroke; }
.packet { fill: #39a472; }
.packet-out { fill: #93d7b5; }

.engine-core {
  position: relative;
  z-index: 3;
  justify-self: center;
  width: 120px;
  height: 120px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  border-radius: 50%;
  background: var(--ink);
  color: #f5f3ed;
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.26), inset 0 0 0 1px rgba(255,255,255,0.1);
  animation: core-in 620ms 320ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.core-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  inset: -11px;
  border: 1px dashed rgba(24, 122, 81, 0.45);
  animation: rotate 18s linear infinite;
}

.orbit-two {
  inset: -20px;
  border: 1px solid rgba(24, 122, 81, 0.08);
  box-shadow: 0 0 0 8px rgba(24, 122, 81, 0.025);
}

.core-mark i { width: 5px; background: #f4f1ea; }
.core-mark i:nth-child(1) { height: 18px; }
.core-mark i:nth-child(2) { height: 31px; }
.core-mark i:nth-child(3) { height: 22px; }
.engine-core strong { font-size: 9px; letter-spacing: -0.02em; }
.engine-core small { color: #90a098; font: 500 5px/1 "DM Mono", monospace; letter-spacing: 0.07em; text-transform: uppercase; }

.event-console {
  z-index: 2;
  align-self: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23, 33, 29, 0.94);
  color: #b8c1bc;
  font: 400 7px/1.45 "DM Mono", monospace;
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.17);
  opacity: 0;
  transform: translateX(8px);
  animation: console-in 520ms 520ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.console-head { display: flex; justify-content: space-between; padding: 0 1px 11px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #71cda0; text-transform: uppercase; letter-spacing: 0.05em; }
.console-head span { display: flex; align-items: center; gap: 6px; }
.console-head i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(113,205,160,0.1); animation: breathe 1.8s ease-in-out infinite; }
.console-head small { color: #849089; font: inherit; }
.event-source { display: flex; align-items: center; gap: 9px; padding: 13px 0 11px; transition: opacity 180ms ease, filter 180ms ease, transform 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.event-source strong { overflow: hidden; color: #f2f4f2; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.event-console pre { overflow: hidden; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,0.06); border-radius: 7px; background: rgba(0,0,0,0.14); color: #aeb9b3; line-height: 1.65; transition: opacity 180ms ease, filter 180ms ease; }
.event-console code span { color: #78cda3; }
.event-console code b { color: #e6d88b; font-weight: 400; }
.event-console[data-changing="true"] .event-source, .event-console[data-changing="true"] pre { opacity: 0.35; filter: blur(2px); transform: translateY(2px); }
.delivery { display: flex; align-items: center; gap: 4px; padding-top: 11px; color: #6f7b74; }
.delivery > span { width: 28px; height: 1px; margin-right: 2px; background: #4ba878; transform-origin: left; animation: delivery-line 3.2s linear infinite; }
.delivery > i { width: 3px; height: 3px; border-radius: 50%; background: #4ba878; }
.delivery small { margin-left: auto; font: inherit; }

.capability-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,0.54);
}

.capability-strip span { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; color: #5e6963; font: 500 6px/1 "DM Mono", monospace; letter-spacing: 0.03em; text-transform: uppercase; }
.capability-strip span + span { border-left: 1px solid var(--line); }
.capability-strip i { color: var(--green); font-style: normal; }

footer {
  min-height: 66px;
  border-top: 1px solid var(--line);
  color: #777f7a;
  font: 400 10px/1 "DM Mono", monospace;
  letter-spacing: 0.04em;
}

footer a { text-underline-offset: 3px; }

@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes provider-in { to { opacity: 1; transform: translateX(0); } }
@keyframes core-in { from { opacity: 0; transform: scale(0.94); } }
@keyframes console-in { to { opacity: 1; transform: translateX(0); } }
@keyframes delivery-line { 0% { transform: scaleX(0); } 35%, 82% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; padding-top: 72px; }
  .hero { max-width: 680px; }
  .engine-card { width: min(100%, 660px); margin-bottom: 40px; }
}

@media (max-width: 620px) {
  .page-shell { width: min(100% - 28px, 1180px); }
  nav { height: 76px; }
  main { width: calc(100vw - 28px); overflow: hidden; padding: 54px 0 46px; gap: 58px; }
  .hero, .engine-card { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  h1 { font-size: clamp(38px, 11.5vw, 52px); }
  .mobile-break { display: inline; }
  .intro { font-size: 15px; }
  .status { font-size: 8px; }
  .engine-card { overflow: hidden; }
  .engine-flow { min-width: 0; min-height: 660px; grid-template-columns: 125px minmax(0, 1fr); gap: 24px; padding: 24px 18px 128px; }
  .provider { min-height: 50px; }
  .engine-core { width: 96px; height: 96px; }
  .engine-core small { display: none; }
  .flow-map { left: 145px; right: 18px; top: 37%; width: calc(100% - 175px); transform: translateY(-50%); }
  .event-console { grid-column: 1 / -1; width: 100%; }
  .capability-strip { left: 18px; right: 18px; bottom: 18px; grid-template-columns: 1fr; }
  .capability-strip span { min-height: 28px; }
  .capability-strip span + span { border-top: 1px solid var(--line); border-left: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; line-height: 1.5; }
}

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

@media (hover: hover) and (pointer: fine) {
  .launch-line a:hover { opacity: 0.68; }
  .provider { transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease; }
  .provider:hover { transform: translateX(3px); border-color: rgba(24, 122, 81, 0.3); box-shadow: 0 10px 25px rgba(30, 42, 36, 0.09); }
}
