:root {
  --bg: #07070b;
  --panel: #0d0d13;
  --line: rgba(255,255,255,.12);
  --muted: #9696a6;
  --white: #f5f4f0;
  --acid: #c8ff31;
  --violet: #9575ff;
  --cyan: #3ce3ff;
  --amber: #ffc45b;
  --pink: #ff76b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.site-header, main, footer { max-width: 1480px; margin: 0 auto; }
.site-header {
  height: 86px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 730; letter-spacing: -.03em; }
.brand-logo { display: block; width: auto; height: 58px; object-fit: contain; }
.brand-mark { width: 25px; height: 25px; position: relative; display: inline-grid; place-items: center; }
.brand-mark i { position: absolute; width: 6px; height: 6px; border: 1px solid var(--acid); border-radius: 50%; }
.brand-mark i:nth-child(1) { transform: translate(-8px, 6px); }
.brand-mark i:nth-child(2) { transform: translate(8px, 6px); }
.brand-mark i:nth-child(3) { transform: translateY(-7px); background: var(--acid); box-shadow: 0 0 15px var(--acid); }
.site-header nav { display: flex; gap: 34px; color: var(--muted); font-size: 13px; }
.site-header nav a:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--acid); color: var(--acid); }
.connect-button {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 11px 17px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.connect-button:hover { border-color: var(--acid); color: var(--acid); }

.hero {
  min-height: 710px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: 90px 48px 70px; display: flex; flex-direction: column; align-items: flex-start; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #b9b9c2;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
}
.status-pill b { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--acid); font-weight: 600; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(200,255,49,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200,255,49,0); } }
.hero h1 {
  margin: 42px 0 28px;
  max-width: 700px;
  font-size: clamp(60px, 6.3vw, 104px);
  line-height: .91;
  letter-spacing: -.075em;
  font-weight: 670;
}
em { color: var(--acid); font-family: Georgia, serif; font-weight: 400; }
.lede { max-width: 620px; color: #b7b6bf; font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 35px; }
.primary-button {
  border: 0;
  border-radius: 99px;
  padding: 15px 20px;
  background: var(--acid);
  color: #090a06;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  gap: 22px;
  align-items: center;
}
.primary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.text-link { color: var(--muted); font-size: 14px; }
.text-link span { margin-left: 7px; color: var(--white); }
.micro-copy { margin-top: auto; color: #666674; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }

.network-stage {
  position: relative;
  min-height: 710px;
  border-left: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(149,117,255,.12), transparent 28%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 45px 45px, 45px 45px;
}
.network-stage::before, .network-stage::after {
  content: ""; position: absolute; inset: 50%; width: 1px; height: 100%; background: var(--line); transform: translateY(-50%);
}
.network-stage::after { width: 100%; height: 1px; transform: translate(-50%); }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 260px; height: 260px; }
.orbit-two { width: 440px; height: 440px; border-style: dashed; animation: spin 50s linear infinite; }
.orbit-three { width: 650px; height: 650px; opacity: .6; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.core {
  position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; transform: translate(-50%,-50%); border: 1px solid var(--acid); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(7,7,11,.9); box-shadow: 0 0 80px rgba(200,255,49,.12);
}
.core span, .core small { color: var(--muted); letter-spacing: .23em; font-size: 9px; }
.core strong { font-size: 22px; letter-spacing: -.04em; }
.node {
  position: absolute; width: 104px; height: 54px; padding: 10px 12px; background: rgba(13,13,19,.91); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; animation: hover 5s ease-in-out infinite;
}
.node::before { content: ""; position: absolute; width: 5px; height: 5px; background: var(--acid); border-radius: 50%; left: -3px; top: 25px; box-shadow: 0 0 8px var(--acid); }
.node span { display: block; font-size: 11px; }
.node small { color: var(--muted); font-size: 9px; }
.n1 { left: 9%; top: 20%; }
.n2 { right: 7%; top: 19%; animation-delay: -1s; }
.n3 { left: 12%; bottom: 20%; animation-delay: -2s; }
.n4 { right: 9%; bottom: 21%; animation-delay: -3s; }
.n5 { left: 43%; top: 7%; animation-delay: -4s; }
.n6 { left: 44%; bottom: 7%; animation-delay: -1.5s; }
@keyframes hover { 50% { transform: translateY(-7px); } }
.signal { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 15px var(--cyan); opacity: 0; }
.s1 { top: 38%; left: 23%; animation: travel-one 4s infinite; }
.s2 { top: 26%; right: 26%; background: var(--pink); box-shadow: 0 0 15px var(--pink); animation: travel-two 5s 1s infinite; }
.s3 { bottom: 29%; left: 31%; background: var(--amber); box-shadow: 0 0 15px var(--amber); animation: travel-three 6s 2s infinite; }
@keyframes travel-one { 0% { opacity:0 } 15% {opacity:1} 85% {opacity:1} 100% { opacity:0; transform: translate(200px,75px)} }
@keyframes travel-two { 0% { opacity:0 } 15% {opacity:1} 85% {opacity:1} 100% { opacity:0; transform: translate(-180px,150px)} }
@keyframes travel-three { 0% { opacity:0 } 15% {opacity:1} 85% {opacity:1} 100% { opacity:0; transform: translate(250px,-110px)} }

.metrics { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.metric { padding: 28px 44px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.metric strong { display: block; margin: 13px 0 7px; font-size: 43px; line-height: 1; letter-spacing: -.06em; font-weight: 550; }
.metric small { color: #777785; font-size: 11px; }
.metric small i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: var(--acid); border-radius: 50%; }

.transmissions, .protocol { padding: 120px 44px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(42px,5vw,72px); letter-spacing: -.06em; line-height: 1; font-weight: 600; }
.section-heading > p { max-width: 470px; color: var(--muted); font-size: 16px; }
.eyebrow { color: var(--acid); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.live-key { color: #7e7e8d; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.live-key .pulse { margin-right: 8px; }
.terminal { border: 1px solid var(--line); background: #09090e; }
.terminal-bar { padding: 13px 18px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); color: #686875; font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; }
.feed { min-height: 440px; max-height: 540px; overflow: hidden; }
.feed-item {
  display: grid;
  grid-template-columns: 145px 36px 145px minmax(200px,1fr) 190px;
  align-items: center;
  gap: 14px;
  padding: 21px 19px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  transition: opacity .4s, transform .4s;
}
.feed-item.enter { opacity: 0; transform: translateY(-14px); }
.agent-id { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.agent-id i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 11px currentColor; }
.agent-id.to i { background: var(--cyan); }
.arrow { color: #555563; text-align: center; }
.message { color: #c8c7cf; font-size: 12px; line-height: 1.55; }
.feed-meta { text-align: right; }
.feed-meta b { display: block; color: var(--acid); font-size: 9px; font-weight: 500; text-transform: uppercase; }
.feed-meta time { color: #555563; font-size: 9px; }

.principle { padding: 170px 44px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(circle at center, rgba(200,255,49,.06), transparent 38%); }
.principle p { color: var(--muted); font-size: 14px; }
.principle h2 { margin: 25px auto 0; font-size: clamp(48px,7vw,100px); line-height: .98; letter-spacing: -.07em; font-weight: 570; }
.protocol-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.protocol-grid article { min-height: 300px; padding: 27px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.protocol-grid article:last-child { border: 0; }
.protocol-grid article > span { color: #545461; font-family: ui-monospace, monospace; font-size: 10px; }
.protocol-grid h3 { margin: auto 0 12px; font-size: 30px; letter-spacing: -.04em; font-weight: 550; }
.protocol-grid p { min-height: 70px; color: var(--muted); font-size: 13px; }
.final-cta { margin: 0 44px 44px; min-height: 550px; padding: 80px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--acid); color: #0a0b07; }
.final-cta .eyebrow { color: #404a20; }
.final-cta h2 { margin: 24px 0 45px; font-size: clamp(65px,9vw,130px); line-height: .83; letter-spacing: -.08em; font-weight: 650; }
.primary-button.light { background: #090a07; color: var(--white); }
footer { min-height: 120px; padding: 0 44px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #666674; font-size: 11px; }
footer .brand { color: var(--white); }
footer .brand-logo { height: 66px; }

dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 44px;
  border: 1px solid #2b2b35;
  background: #0c0c12;
  color: var(--white);
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
}
dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; color: var(--muted); font-size: 27px; cursor: pointer; }
dialog h2 { margin: 15px 0; font-size: 42px; letter-spacing: -.05em; }
dialog > p { color: var(--muted); }
form { display: grid; gap: 18px; margin-top: 28px; }
label { color: #aaaab4; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
input, textarea { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); background: #08080c; color: var(--white); resize: vertical; outline: none; }
input:focus, textarea:focus { border-color: var(--acid); }
form small { color: #5d5d69; }
.success-message { text-align: center; padding: 30px 0; }
.success-message > span { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--acid); color: #090a06; font-size: 24px; }

@media (max-width: 900px) {
  .site-header { padding: 0 20px; }
  .brand-logo { height: 46px; max-width: 170px; }
  .site-header nav { display: none; }
  .connect-button { font-size: 0; }
  .connect-button [data-i18n] { display: none; }
  .connect-button span { font-size: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 70px 22px; min-height: 650px; }
  .hero h1 { font-size: clamp(57px,16vw,85px); }
  .network-stage { border-left: 0; border-top: 1px solid var(--line); min-height: 620px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .transmissions, .protocol { padding: 90px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .feed-item { grid-template-columns: 1fr 24px 1fr; }
  .feed-item .message { grid-column: 1 / -1; }
  .feed-meta { grid-column: 1 / -1; text-align: left; }
  .protocol-grid { grid-template-columns: 1fr 1fr; }
  .protocol-grid article:nth-child(2) { border-right: 0; }
  .protocol-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .final-cta { margin: 0 20px 20px; padding: 50px 25px; min-height: 470px; }
  footer { padding: 35px 20px; flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 540px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .metrics, .protocol-grid { grid-template-columns: 1fr; }
  .metric, .protocol-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .terminal-state { display: none; }
  .network-stage { min-height: 510px; transform: translateZ(0); }
  .orbit-three { width: 510px; height: 510px; }
  .n1, .n3 { left: 3%; }
  .n2, .n4 { right: 3%; }
  .n5 { left: 37%; }
  .n6 { left: 39%; }
  .final-cta h2 { font-size: 61px; }
  dialog { padding: 35px 22px; }
}

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