:root {
  color-scheme: dark;
  --bg: #071014;
  --ink: #f4f8fb;
  --muted: #a7b5c2;
  --line: rgba(194, 231, 255, 0.16);
  --panel: rgba(12, 22, 29, 0.72);
  --panel-strong: rgba(17, 32, 42, 0.92);
  --teal: #24e3d3;
  --blue: #58a6ff;
  --amber: #ffbd4a;
  --graphite: #dcecff;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(88, 166, 255, 0.22), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(36, 227, 211, 0.18), transparent 28%),
    radial-gradient(circle at 50% 58%, rgba(255, 189, 74, 0.08), transparent 36%),
    linear-gradient(180deg, #081016 0%, var(--bg) 48%, #020609 100%);
  color: var(--ink);
  min-width: 320px;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 1px 5px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(194, 231, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 15, 20, 0.68);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), transparent 46%),
    conic-gradient(from 140deg, var(--blue), var(--teal), var(--amber), var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #bfd0dc;
  font-size: 14px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover,
.language-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.language-toggle {
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-toggle:active {
  transform: scale(0.98);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  min-height: calc(100svh - 86px);
  padding: 64px 0 56px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 680ms ease both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.hero-lead,
.stacked-copy p,
.usage-copy p,
.contact p {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

.hero-lead {
  max-width: 680px;
  margin: 28px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #041014;
  background: linear-gradient(135deg, #f4fbff, var(--teal) 48%, var(--blue));
  box-shadow: 0 20px 52px rgba(36, 227, 211, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

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

.metric-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, background 180ms ease;
}

.metric-strip div:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
}

.metric-strip strong {
  display: block;
  font-size: 24px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: clamp(620px, 76svh, 860px);
  overflow: hidden;
  border-radius: 34px;
  background: #10161b;
  box-shadow: var(--shadow);
  animation: floatIn 840ms 120ms ease both;
  isolation: isolate;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: clamp(620px, 76svh, 860px);
  object-fit: cover;
  display: block;
  opacity: 0.94;
  transform: scale(1.04);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 16, 0.2), transparent 50%);
  z-index: 1;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 16px 18px;
  border-radius: 22px;
  color: white;
}

.floating-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.floating-card strong {
  font-size: 36px;
  line-height: 1;
}

.card-a {
  top: 42px;
  right: 34px;
  animation: hoverY 4.8s ease-in-out infinite;
}

.card-b {
  left: 34px;
  bottom: 38px;
  animation: hoverY 5.4s 600ms ease-in-out infinite;
}

.intro-grid,
.usage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 6vw, 90px);
  padding: 96px 0;
  align-items: start;
}

.stacked-copy p:first-child,
.usage-copy p {
  margin-top: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0 96px;
}

.feature-card,
.principles div,
.numbers div,
.timeline article {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.feature-card {
  min-height: 248px;
  padding: 28px;
  border-radius: 24px;
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-16px) scale(1.035);
  background: var(--panel-strong);
  border-color: rgba(36, 227, 211, 0.45);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), 0 0 42px rgba(36, 227, 211, 0.12);
}

.feature-card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 24px;
  box-shadow: 0 12px 28px rgba(36, 227, 211, 0.2);
}

.feature-card:hover .icon {
  animation: bounceIcon 520ms cubic-bezier(0.18, 0.95, 0.28, 1.25);
}

.token-lab {
  padding: 18px 0 96px;
}

.lab-shell {
  margin-top: 34px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
}

.lab-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.tab-highlight {
  position: absolute;
  top: 8px;
  left: 8px;
  width: calc((100% - 32px) / 3);
  height: calc(100% - 16px);
  border: 1px solid rgba(194, 231, 255, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22), inset 0 0 28px rgba(36, 227, 211, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1), width 260ms ease;
}

.lab-tabs[data-active="agents"] .tab-highlight {
  transform: translateX(calc(100% + 8px));
}

.lab-tabs[data-active="risk"] .tab-highlight {
  transform: translateX(calc(200% + 16px));
}

.lab-tab {
  position: relative;
  z-index: 1;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  color: #91a5b5;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 260ms ease, color 260ms ease;
}

.lab-tab.active {
  color: var(--ink);
  transform: scale(1.06);
}

.lab-stage {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  min-height: 410px;
  margin-top: 12px;
}

.lab-copy,
.tech-visual {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(9, 19, 26, 0.72);
}

.lab-copy {
  align-content: center;
  display: grid;
  padding: clamp(26px, 5vw, 52px);
}

.lab-copy h3 {
  max-width: 520px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1;
}

.lab-copy p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.tech-visual {
  position: relative;
  display: none;
  min-height: 410px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 18, 25, 0.96), rgba(9, 42, 47, 0.78)),
    radial-gradient(circle at 72% 34%, rgba(88, 166, 255, 0.2), transparent 32%);
}

.tech-visual.active {
  display: block;
  animation: visualPop 420ms ease both;
}

.tech-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(194, 231, 255, 0.14);
  border-radius: 22px;
  background-image:
    linear-gradient(rgba(88, 166, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 74%);
}

.core-token,
.agent-core,
.risk-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
}

.core-token {
  width: 132px;
  height: 132px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 40%),
    conic-gradient(from 120deg, var(--blue), var(--teal), var(--amber), var(--blue));
  box-shadow: 0 18px 60px rgba(38, 121, 255, 0.22);
  animation: tokenSpin 8s linear infinite;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(38, 121, 255, 0.28);
  border-radius: 50%;
  translate: -50% -50%;
}

.o1 {
  width: 260px;
  height: 120px;
  rotate: -16deg;
}

.o2 {
  width: 340px;
  height: 170px;
  rotate: 24deg;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(38, 121, 255, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

.n1 { left: 22%; top: 28%; }
.n2 { right: 20%; top: 32%; animation-delay: 400ms; }
.n3 { left: 27%; bottom: 22%; animation-delay: 900ms; }
.n4 { right: 28%; bottom: 24%; animation-delay: 1300ms; }

.agent-core {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #111820, #146f77 62%, var(--blue));
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 20px 60px rgba(12, 87, 119, 0.24);
}

.agent-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px;
  height: 72px;
  border: 1px solid rgba(194, 231, 255, 0.24);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
  backdrop-filter: blur(12px);
  animation: hoverY 4s ease-in-out infinite;
}

.a1 { left: 18%; top: 20%; }
.a2 { right: 14%; top: 35%; animation-delay: 500ms; }
.a3 { left: 32%; bottom: 16%; animation-delay: 950ms; }

.agent-path {
  position: absolute;
  inset: 70px 90px;
  border: 1px dashed rgba(38, 121, 255, 0.42);
  border-radius: 44%;
  animation: tokenSpin 16s linear infinite;
}

.risk-ring {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(194, 231, 255, 0.2);
  background:
    radial-gradient(circle, transparent 48%, rgba(38, 121, 255, 0.09) 49%, transparent 50%),
    conic-gradient(from 220deg, rgba(22, 184, 177, 0.16), rgba(244, 165, 28, 0.42), rgba(38, 121, 255, 0.16));
  animation: tokenSpin 10s linear infinite reverse;
}

.risk-scan {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  translate: -50% -50%;
  animation: scan 2.4s ease-in-out infinite;
}

.risk-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 10px rgba(244, 165, 28, 0.14);
}

.d1 { left: 30%; top: 30%; }
.d2 { right: 26%; top: 42%; }
.d3 { left: 48%; bottom: 24%; }

.risk-label {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card p,
.principles p,
.timeline p,
.numbers p {
  color: var(--muted);
  line-height: 1.7;
}

.ai-section {
  padding: 100px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 42px;
}

.timeline article {
  display: grid;
  grid-template-columns: 120px 0.55fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
}

.timeline span,
.numbers span {
  color: var(--blue);
  font-weight: 900;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.principles div {
  min-height: 230px;
  padding: 24px;
  border-radius: 28px;
}

.principles strong {
  display: block;
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 14px;
}

.data-panel {
  margin-top: 24px;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(12, 22, 29, 0.9), rgba(8, 34, 38, 0.72)),
    radial-gradient(circle at 85% 20%, rgba(255, 189, 74, 0.14), transparent 26%);
  box-shadow: var(--shadow);
}

.panel-head {
  max-width: 760px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.numbers div {
  padding: 30px 26px 34px;
  border-radius: 22px;
}

.numbers strong {
  display: block;
  margin-top: 26px;
  font-size: clamp(92px, 12vw, 156px);
  line-height: 0.92;
  letter-spacing: 0;
  background: linear-gradient(135deg, #f6fbff, var(--teal) 52%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  cursor: pointer;
  text-align: center;
  transform-origin: 50% 55%;
}

.number-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.number-card.is-animating strong {
  animation: numberFlip 180ms ease-in-out infinite alternate;
}

.number-card p {
  max-width: 260px;
  margin: 30px auto 0;
  font-size: 18px;
}

.contact {
  display: grid;
  place-items: start;
  max-width: 920px;
  padding: 120px 0 86px;
  text-align: left;
}

.contact h2 {
  margin-bottom: 24px;
}

.contact p {
  margin: 0 0 30px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

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

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hoverY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes bounceIcon {
  0% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-12px) scale(1.16);
  }
  72% {
    transform: translateY(3px) scale(0.96);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes numberFlip {
  from {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  to {
    transform: translateY(-4px) scale(1.015);
    filter: brightness(1.18);
  }
}

@keyframes visualPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tokenSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

@keyframes scan {
  0%,
  100% {
    transform: rotate(-18deg) translateY(-88px);
    opacity: 0.55;
  }
  50% {
    transform: rotate(18deg) translateY(88px);
    opacity: 1;
  }
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    white-space: nowrap;
  }

  .hero,
  .intro-grid,
  .usage {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-visual {
    min-height: 560px;
    border-radius: 34px;
  }

  .hero-visual img {
    min-height: 560px;
  }

  .feature-band,
  .numbers,
  .lab-stage {
    grid-template-columns: 1fr;
  }

  .lab-stage {
    min-height: auto;
  }

  .tech-visual {
    min-height: 360px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .section,
  .site-header,
  .footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metric-strip,
  .principles {
    grid-template-columns: 1fr;
  }

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

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

  .floating-card {
    min-width: 126px;
    padding: 14px;
  }

  .floating-card strong {
    font-size: 28px;
  }

  .intro-grid,
  .usage,
  .ai-section,
  .contact {
    padding: 72px 0;
  }

  .feature-band {
    padding-bottom: 72px;
  }

  .token-lab {
    padding-bottom: 72px;
  }

  .lab-tabs {
    grid-template-columns: 1fr;
  }

  .tab-highlight {
    width: calc(100% - 16px);
    height: calc((100% - 32px) / 3);
  }

  .lab-tabs[data-active="agents"] .tab-highlight {
    transform: translateY(calc(100% + 8px));
  }

  .lab-tabs[data-active="risk"] .tab-highlight {
    transform: translateY(calc(200% + 16px));
  }

  .lab-tab.active {
    transform: scale(1.03);
  }

  .data-panel {
    border-radius: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
