:root {
  --ink: #11202a;
  --ink-soft: #51606d;
  --paper: #fbf5ea;
  --mist: #efe8ff;
  --teal: #00d7ea;
  --green: #36dca2;
  --gold: #ffd899;
  --amber: #ff9d5c;
  --red: #ff5f92;
  --violet: #7a19ff;
  --magenta: #ff31df;
  --night: #130b2a;
  --line: rgba(17, 32, 42, 0.14);
  --shadow: 0 24px 80px rgba(71, 12, 160, 0.28);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 49, 223, 0.22), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(0, 215, 234, 0.18), transparent 26%),
    linear-gradient(180deg, #fff7ea 0%, #efe7ff 40%, #e8fbff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 32, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 32, 42, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
  z-index: -1;
}

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

button,
select,
input {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1160px, calc(100% - 28px));
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(20, 8, 48, 0.64);
  color: white;
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-solid {
  background: rgba(18, 7, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff0c7, #ffb884 54%, #f240d7);
  color: #241233;
  font-weight: 900;
  box-shadow:
    0 0 20px rgba(255, 49, 223, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a,
.header-cta {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.header-cta {
  background: linear-gradient(180deg, #fff0b8, #ff9b63 55%, #ff45d6);
  color: #21102c;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: clamp(22px, 5vw, 70px);
  padding: 130px max(28px, calc((100vw - 1160px) / 2)) 64px;
  overflow: hidden;
  color: white;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 49, 223, 0.55), transparent 32%),
    #170a36;
  z-index: -3;
}

.hero-media-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-image-one {
  animation: drift-one 20s ease-in-out infinite alternate;
}

.hero-media-image-two {
  opacity: 0;
  animation: fade-two 18s ease-in-out infinite;
}

.hero-scrim {
  z-index: -2;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 49, 223, 0.24), transparent 32%),
    radial-gradient(circle at 72% 42%, transparent 0 21%, rgba(197, 42, 255, 0.42) 22%, transparent 24%),
    linear-gradient(90deg, rgba(13, 5, 32, 0.94) 0%, rgba(35, 9, 78, 0.7) 48%, rgba(21, 7, 54, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 5, 32, 0.7), transparent 50%);
}

.hero-content {
  max-width: 780px;
  padding-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #7ff7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #8b23ff;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 12vw, 164px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.hero-subtitle {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

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

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.btn svg,
.feature-grid svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: linear-gradient(180deg, #fff0c6, #ffa66b 45%, #ff42dd 100%);
  color: #22102f;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 0 28px rgba(255, 49, 223, 0.38),
    0 12px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
}

.full {
  width: 100%;
}

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

.hero-stats div {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(38, 12, 82, 0.38);
  border: 1px solid rgba(127, 247, 255, 0.24);
  backdrop-filter: blur(12px);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 22px;
}

.hero-stats span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.agent-console {
  align-self: center;
  border-radius: var(--radius);
  padding: 18px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 49, 223, 0.24), transparent 42%),
    rgba(19, 8, 45, 0.78);
  border: 1px solid rgba(127, 247, 255, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}

.console-top,
.mission-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse,
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22f4ff;
  box-shadow: 0 0 0 0 rgba(34, 244, 255, 0.7);
  animation: ping 1.8s infinite;
}

.console-avatar {
  position: relative;
  height: 220px;
  margin: 16px 0;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 43%, transparent 0 32%, rgba(255, 49, 223, 0.72) 33%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(255, 49, 223, 0.42), transparent 48%),
    linear-gradient(180deg, rgba(64, 14, 142, 0.42), rgba(17, 8, 39, 0.9)),
    repeating-linear-gradient(135deg, rgba(127, 247, 255, 0.08) 0 1px, transparent 1px 18px);
  overflow: hidden;
}

.console-avatar::before {
  content: "";
  position: absolute;
  inset: auto 38px 28px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transform: skewX(-18deg);
}

.console-avatar span {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 84px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(180deg, #ffe6bd 0 34%, #1b122f 35% 100%);
  box-shadow:
    0 0 0 10px rgba(255, 49, 223, 0.12),
    0 0 34px rgba(34, 244, 255, 0.28);
}

.console-avatar span::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -72px;
  width: 72px;
  height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 24%, #062b36 25% 39%, transparent 40% 60%, #062b36 61% 75%, transparent 76%),
    #ffe5bb;
  box-shadow:
    0 0 18px rgba(34, 244, 255, 0.56),
    0 0 28px rgba(255, 49, 223, 0.42);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.console-grid div {
  padding: 11px;
  border-radius: var(--radius);
  background: rgba(127, 247, 255, 0.08);
}

.console-grid dt {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
}

.console-grid dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.console-feed {
  margin-top: 14px;
}

.console-feed p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.console-feed span {
  color: #7ff7ff;
  font-variant-numeric: tabular-nums;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 116px) 0;
}

.intro-band {
  width: 100%;
  padding: 34px max(24px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(circle at 78% 50%, rgba(255, 49, 223, 0.18), transparent 32%),
    var(--night);
  color: rgba(255, 255, 255, 0.82);
}

.intro-band p {
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.48;
}

.split,
.product,
.security {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

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

.feature-grid article,
.token-grid article,
.product-panel,
.mission-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 48px rgba(77, 24, 142, 0.13);
}

.feature-grid article {
  min-height: 220px;
  padding: 22px;
}

.feature-grid svg {
  width: 28px;
  height: 28px;
  color: #8b23ff;
  margin-bottom: 26px;
}

.feature-grid p,
.token-grid p,
.timeline p {
  color: var(--ink-soft);
  line-height: 1.55;
}

.product {
  align-items: stretch;
}

.product-panel,
.mission-card {
  padding: clamp(22px, 4vw, 34px);
}

.builder {
  display: grid;
  gap: 16px;
}

.builder label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.builder select,
.builder input[type="range"] {
  width: 100%;
}

.builder select {
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.builder input[type="range"] {
  accent-color: var(--teal);
}

.mission-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 76% 18%, rgba(34, 244, 255, 0.18), transparent 32%),
    radial-gradient(circle at 20% 70%, rgba(255, 49, 223, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(24, 9, 57, 0.98), rgba(67, 14, 115, 0.94));
  color: white;
}

.mission-card h3 {
  margin: 22px 0 18px;
  font-size: clamp(26px, 4vw, 42px);
}

.mission-card ul,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-card li,
.check-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.mission-card li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 15px;
  height: 8px;
  border-left: 2px solid #22f4ff;
  border-bottom: 2px solid #22f4ff;
  transform: rotate(-45deg);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.token-grid article {
  padding: 24px;
}

.token-grid span {
  display: inline-flex;
  margin-bottom: 28px;
  color: #ff31df;
  font-weight: 900;
}

.architecture {
  width: 100%;
  padding-inline: max(24px, calc((100vw - 1160px) / 2));
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 49, 223, 0.14), transparent 28%),
    #eee7ff;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.flow div {
  min-height: 160px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 72% 18%, rgba(34, 244, 255, 0.14), transparent 28%),
    var(--night);
  color: white;
}

.flow strong,
.flow span {
  display: block;
}

.flow strong {
  color: #7ff7ff;
  font-size: 28px;
}

.flow span {
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

.screenshot-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(17, 32, 42, 0.12);
}

.screenshot-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.check-list li {
  border-color: var(--line);
  color: var(--ink-soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  padding: 22px;
}

.timeline time {
  display: inline-flex;
  margin-bottom: 38px;
  color: #8b23ff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px max(24px, calc((100vw - 1160px) / 2));
  background: var(--night);
  color: white;
}

.footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer a {
  align-self: center;
  color: #7ff7ff;
  font-weight: 800;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 10px rgba(34, 244, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 244, 255, 0);
  }
}

@keyframes drift-one {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-2%, -1%);
  }
}

@keyframes fade-two {
  0%,
  36%,
  100% {
    opacity: 0;
  }
  50%,
  82% {
    opacity: 0.72;
  }
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .nav {
    display: none;
  }

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

  .hero {
    align-items: start;
    padding-top: 112px;
  }

  .agent-console {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .header-cta {
    display: none;
  }

  .site-header {
    min-height: 58px;
  }

  .hero {
    padding-inline: 20px;
    padding-bottom: 34px;
  }

  .hero-stats,
  .feature-grid,
  .token-grid,
  .timeline,
  .flow {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
  }

  .intro-band,
  .architecture,
  .footer {
    padding-inline: 16px;
  }

  .screenshot-frame img {
    height: 320px;
  }

  .footer {
    display: block;
  }

  .footer a {
    display: inline-flex;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
