:root {
  --bg: #050816;
  --bg-soft: #0a1020;
  --surface: rgba(10, 16, 32, 0.9);
  --surface-strong: rgba(8, 14, 28, 0.98);
  --surface-elevated: rgba(13, 20, 38, 0.88);
  --text: #f8fbff;
  --text-soft: #b6c1d3;
  --text-dim: #7d8aa3;
  --line: rgba(163, 180, 208, 0.16);
  --line-strong: rgba(163, 180, 208, 0.28);
  --accent: #39d0ff;
  --accent-soft: rgba(57, 208, 255, 0.14);
  --accent-strong: #7be36a;
  --accent-violet: #b660ff;
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(57, 208, 255, 0.1), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(123, 227, 106, 0.12), transparent 20%),
    linear-gradient(180deg, #040814 0%, #07101f 42%, #040814 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(163, 180, 208, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 180, 208, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

body::after {
  background: linear-gradient(180deg, rgba(4, 8, 20, 0.1), rgba(4, 8, 20, 0.5));
}

a {
  color: inherit;
}

section,
nav,
footer,
.hero,
.pills-row,
.divider {
  position: relative;
  z-index: 1;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 20, 0.82);
  backdrop-filter: blur(16px);
}

.nav-inner,
.section-inner,
.hero-inner,
.pills-row,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.nav-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav-logo,
.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #7be36a 0%, #4cd3d2 54%, #4ea5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.nav-logo::after,
.footer-logo::after {
  content: 'Agent-to-Economic Attribution';
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a,
.footer-copy,
.footer-right,
.hero-eyebrow,
.hero-protocol,
.patent-badge,
.hero-verified,
.section-label,
.value-card h4,
.proto-name,
.proto-link,
.proto-tag,
.cta-sub,
.nav-cta,
.setup-label,
.setup-step-badge,
.setup-footnote {
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta,
.nav-ghost,
.setup-link,
.setup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-cta,
.setup-cta {
  border: 1px solid rgba(57, 208, 255, 0.35);
  background: rgba(57, 208, 255, 0.08);
  color: var(--text);
}

.nav-ghost,
.setup-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
}

.nav-cta:hover,
.setup-cta:hover {
  background: rgba(57, 208, 255, 0.14);
  border-color: rgba(57, 208, 255, 0.6);
  transform: translateY(-1px);
}

.nav-ghost:hover,
.setup-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.hero {
  padding: 40px 0 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
  min-height: min(760px, calc(100vh - 132px));
}

.hero-copy {
  max-width: 760px;
  padding: 28px 0 36px;
}

.hero-glow {
  position: absolute;
  top: 80px;
  left: 50%;
  width: min(1100px, 90vw);
  height: 620px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at center, rgba(57, 208, 255, 0.12), transparent 34%),
    radial-gradient(circle at 62% 32%, rgba(123, 227, 106, 0.12), transparent 18%);
  filter: blur(16px);
}

.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  animation: fadeInDown 0.8s ease both;
}

.patent-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-strong);
}

.hero-eyebrow,
.hero-protocol,
.section-label,
.value-card h4,
.proto-name,
.cta-sub,
.footer-copy,
.footer-right,
.setup-label,
.setup-footnote {
  letter-spacing: 0.24em;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.hero-eyebrow {
  margin-bottom: 16px;
  animation: fadeInDown 0.8s 0.1s ease both;
}

.hero-wordmark {
  font-size: clamp(4.75rem, 13vw, 9rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.08em;
  margin-left: -0.05em;
  background: linear-gradient(90deg, #7be36a 0%, #4cd3d2 54%, #4ea5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.9s 0.15s ease both;
}

.hero-protocol {
  margin: 18px 0 32px;
  animation: fadeInUp 0.9s 0.25s ease both;
}

.hero-headline {
  font-size: clamp(3rem, 5.9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 800;
  max-width: 10.5ch;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s 0.35s ease both;
}

.hero-accent {
  color: var(--accent-strong);
  font-style: normal;
}

.hero-sub {
  max-width: 660px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 28px;
  animation: fadeInUp 0.9s 0.45s ease both;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-verified {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  animation: fadeInUp 0.9s 0.5s ease both;
}

.hero-verified span {
  color: rgba(182, 193, 211, 0.4);
  margin: 0 10px;
}

.hero-panel {
  position: relative;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface-strong);
  overflow: hidden;
  animation: fadeInUp 0.9s 0.55s ease both;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(57, 208, 255, 0.08), transparent 28%),
    linear-gradient(180deg, transparent 70%, rgba(123, 227, 106, 0.08));
  pointer-events: none;
}

.panel-label {
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.metric {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.panel-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pills-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.pill,
.step,
.value-card,
.trust-card,
.proto-card,
.proto-connector,
.cta-shell,
.setup-shell,
.setup-card,
.setup-code {
  border: 1px solid var(--line);
  background: var(--surface);
}

.pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 210px;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  height: auto !important;
}

.pill:hover,
.step:hover,
.value-card:hover,
.trust-card:hover,
.proto-card:hover,
.setup-card:hover {
  border-color: var(--line-strong);
  background: rgba(14, 23, 43, 0.94);
}

.pill:hover,
.step:hover,
.value-card:hover,
.trust-card:hover,
.setup-card:hover {
  transform: translateY(-2px);
}

.pill-icon,
.step-icon,
.value-icon,
.trust-card-icon,
.setup-step-badge {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  border: 1px solid rgba(123, 227, 106, 0.22);
  background: rgba(123, 227, 106, 0.04);
  flex-shrink: 0;
}

.setup-step-badge {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.icon-svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill-text strong,
.step h3,
.trust-card h3,
.setup-card h3,
.setup-code h3 {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pill-text span,
.step p,
.value-card p,
.trust-card p,
.proto-desc,
.setup-card p,
.setup-code p,
.setup-list li {
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 0.95rem;
}

.divider {
  width: min(calc(100% - 48px), var(--max));
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, var(--line) 12%, var(--line) 88%, transparent 100%);
}

.section-inner {
  padding: 84px 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 18px;
}

.section-title {
  max-width: 860px;
  margin-bottom: 40px;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.how-section,
.trust-section,
.setup-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.008));
}

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

.step {
  position: relative;
  min-height: 270px;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  height: auto !important;
}

.step-icon {
  margin-bottom: 28px;
  position: relative;
}

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

.value-card {
  min-height: 244px;
  padding: 22px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  height: auto !important;
}

.value-icon {
  margin-bottom: 24px;
  color: var(--accent);
  border-color: rgba(57, 208, 255, 0.22);
  background: rgba(57, 208, 255, 0.05);
}

.value-num {
  margin-bottom: 12px;
  font-size: 3rem;
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.setup-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 16px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--surface-strong);
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.setup-card,
.setup-code {
  padding: 22px;
  height: auto !important;
}

.setup-label,
.setup-footnote,
.setup-code pre {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.setup-code pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text-soft);
}

.setup-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.setup-list li + li {
  margin-top: 10px;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

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

.trust-card {
  display: flex;
  gap: 22px;
  min-height: 212px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  height: auto !important;
}

.trust-card-icon {
  width: 56px;
  height: 56px;
}

.trust-card h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.trust-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 208, 255, 0.28);
}

.protocol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 18px;
}

.proto-card,
.proto-connector {
  min-height: 360px;
  height: auto !important;
}

.proto-card {
  padding: 26px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.proto-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(57, 208, 255, 0.06), transparent 26%, transparent 74%, rgba(123, 227, 106, 0.06)),
    var(--surface-strong);
}

.proto-arrow {
  font-size: 2rem;
  color: var(--accent);
}

.proto-connector-label {
  color: var(--text-dim);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.proto-badge {
  margin-bottom: 8px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.proto-name {
  margin-bottom: 18px;
}

.proto-desc {
  margin-bottom: 18px;
  max-width: 44ch;
}

.proto-link,
.proto-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  border: 1px solid var(--line-strong);
}

.proto-link {
  color: var(--text);
  background: rgba(57, 208, 255, 0.08);
}

.proto-link:hover {
  border-color: rgba(57, 208, 255, 0.55);
  background: rgba(57, 208, 255, 0.14);
}

.proto-tag {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.cta-section {
  padding: 0 0 88px;
}

.cta-shell {
  padding: 48px 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(57, 208, 255, 0.08), transparent 36%),
    var(--surface-strong);
}

.cta-kicker {
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.cta-kicker em {
  font-style: normal;
  color: var(--accent-strong);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-right {
  color: var(--text-dim);
  font-size: 0.68rem;
}

.footer-right a {
  text-decoration: none;
  color: var(--text-soft);
}

.footer-right a:hover {
  color: var(--text);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

@media (max-width: 1120px) {
  .hero-inner,
  .protocol-grid,
  .pills-row,
  .steps-row,
  .value-grid,
  .setup-shell,
  .setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-shell {
    grid-template-columns: 1fr;
  }

  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .proto-connector {
    min-height: 120px;
    flex-direction: row;
  }

  .proto-connector-label {
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 860px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
    min-height: 70px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-inner,
  .trust-grid,
  .setup-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding-top: 12px;
    padding-bottom: 0;
  }

  .hero-panel {
    margin-bottom: 8px;
  }

  .section-inner {
    padding: 68px 0;
  }

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

@media (max-width: 640px) {
  .nav-inner,
  .section-inner,
  .hero-inner,
  .pills-row,
  footer,
  .divider {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero-headline {
    max-width: 100%;
  }

  .panel-metrics,
  .pills-row,
  .steps-row,
  .value-grid,
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-ghost {
    display: none;
  }

  .panel-strip,
  .setup-actions {
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .pill,
  .step,
  .value-card,
  .trust-card,
  .proto-card,
  .setup-card,
  .setup-code,
  .cta-shell {
    padding: 18px;
  }

  .trust-card {
    flex-direction: column;
  }
}
