:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --ink: #141817;
  --muted: #5f6661;
  --line: #d9d1c4;
  --surface: #fffdf8;
  --teal: #0c6f68;
  --coral: #b94d3e;
  --gold: #c7952e;
  --violet: #6f5aa7;
  --shadow: 0 24px 70px rgba(36, 30, 20, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(247, 244, 238, 0.98)),
    radial-gradient(circle at 18% 10%, rgba(199, 149, 46, 0.16), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(12, 111, 104, 0.14), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 209, 196, 0.76);
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--teal);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.header-action,
.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.65);
}

.button.primary {
  background: var(--ink);
  color: var(--surface);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  padding: clamp(54px, 8vw, 112px) clamp(20px, 5vw, 72px) 72px;
}

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

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

h1 {
  max-width: 760px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

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

.console {
  border: 1px solid rgba(20, 24, 23, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(236, 241, 235, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.console-top span:nth-child(2) {
  background: var(--gold);
}

.console-top span:nth-child(3) {
  background: var(--teal);
}

.console-top strong {
  margin-left: auto;
  font-weight: 680;
}

.signal-grid {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 24, 23, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.signal-row span {
  color: var(--muted);
  font-size: 14px;
}

.signal-row strong {
  color: var(--ink);
  font-size: 14px;
}

.signal-row.active {
  border-color: rgba(12, 111, 104, 0.36);
  box-shadow: inset 4px 0 0 var(--teal);
}

.packet-stage {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 24px;
  border-top: 1px solid var(--line);
}

.node {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  border: 1px solid rgba(20, 24, 23, 0.12);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
}

.edge {
  color: var(--teal);
}

.gpu {
  color: var(--coral);
}

.rail {
  height: 2px;
  position: relative;
  background: rgba(20, 24, 23, 0.16);
  overflow: hidden;
}

.rail i {
  position: absolute;
  top: -4px;
  left: -12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  animation: packet 2.2s linear infinite;
}

.rail.delay i {
  background: var(--coral);
  animation-delay: 0.8s;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.proof-band div {
  padding: 28px clamp(20px, 5vw, 72px);
  border-right: 1px solid var(--line);
}

.proof-band div:last-child {
  border-right: 0;
}

.proof-band span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.proof-band strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: 0;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}

.section-copy,
.section-heading {
  max-width: 720px;
}

h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.section p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.architecture-map {
  margin: 0;
  border: 1px solid rgba(20, 24, 23, 0.12);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.architecture-map img {
  display: block;
  width: 100%;
  height: auto;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.principle-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.principle-grid span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 780;
}

h3 {
  margin-top: 42px;
  font-size: 28px;
  line-height: 1.08;
}

.principle-grid p {
  font-size: 16px;
}

.roadmap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 90px);
  background: #1d211f;
  color: var(--surface);
}

.roadmap p {
  color: rgba(255, 253, 248, 0.68);
}

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

.timeline li {
  padding: 22px 0 22px 26px;
  border-left: 2px solid rgba(255, 253, 248, 0.2);
}

.timeline strong {
  display: block;
  font-size: 22px;
}

.timeline span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 253, 248, 0.66);
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes packet {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(220px);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero,
  .split,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .proof-band,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .proof-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .packet-stage {
    grid-template-columns: 1fr;
  }

  .rail {
    height: 32px;
    width: 2px;
    justify-self: center;
  }

  .rail i {
    animation: packet-mobile 2.2s linear infinite;
  }

  .node {
    width: 100%;
    height: 58px;
  }

  footer {
    flex-direction: column;
  }
}

@keyframes packet-mobile {
  from {
    transform: translateY(-12px);
  }
  to {
    transform: translateY(44px);
  }
}

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