/* Shared look of the site: tokens, header, footer, buttons, cards, and the home page's sections. */

:root {
  color-scheme: dark;
  --bg: #030303;
  --card: #05050a;
  --chip: #12121c;
  --card-hi: #25164c;
  --navy: #0a0b24;
  --primary: #7733ff;
  --primary-hi: #8a52ff;
  --lavender: #beafff;
  --tide: #4fe3d0;
  --text: #ffffff;
  --muted: #cccccc;
  --dim: #8b8b99;
  --line: rgba(255, 255, 255, 0.08);
  --up: rgba(48, 224, 161, 0.9);
  --down: #ff6b8b;
  --display: "DM Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --gutter: clamp(16px, 5vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--muted);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--text); }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.02em; }
h4 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; }
code { font-family: var(--mono); font-size: 12px; color: var(--lavender); }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- buttons, tags ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; border-radius: 32px; padding: 12px 20px; cursor: pointer;
  font: 400 14px/1.6 var(--body); white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after { content: "↗"; font-size: 13px; transition: transform .25s var(--ease); }
.btn:hover::after { transform: translate(2px, -2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hi); box-shadow: 0 8px 32px rgba(119, 51, 255, .45); }
.btn-secondary { background: rgba(255, 255, 255, .8); color: #0b0a12; }
.btn-secondary:hover { background: #fff; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-lg::after { content: none; }
.btn-block { width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 40px;
  background: var(--chip); color: var(--lavender); font-size: 12px; line-height: 1.2;
}

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: italic 600 22px/1 "Avenir Next", var(--display); letter-spacing: -0.03em; text-transform: lowercase; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; gap: 24px; flex: 1; }
.site-nav a, .header-link { font-size: 14px; color: rgba(255, 255, 255, .9); transition: color .2s; }
.site-nav a:hover, .header-link:hover { color: var(--lavender); }
.header-right { display: flex; align-items: center; gap: 24px; }
.header-block { font: 12px var(--mono); color: var(--dim); }
.header-block b { color: var(--muted); font-weight: 400; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: transform .3s var(--ease), opacity .2s; }

@media (max-width: 1000px) {
  .menu-btn { display: block; margin-left: auto; }
  .site-nav, .header-right { display: none; }
  .site-header.open { height: auto; background: rgba(3, 3, 3, .96); }
  .site-header.open .wrap { flex-wrap: wrap; gap: 0; padding-top: 16px; padding-bottom: 24px; }
  .site-header.open .site-nav { display: flex; flex-direction: column; order: 3; flex-basis: 100%; gap: 18px; padding: 24px 0; }
  .site-header.open .header-right { display: flex; order: 4; flex-basis: 100%; flex-wrap: wrap; }
  .site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- sections ---------- */

section { padding: 80px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.section-head p { max-width: 560px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal[data-d="1"] { --d: .08s; } .reveal[data-d="2"] { --d: .16s; } .reveal[data-d="3"] { --d: .24s; } .reveal[data-d="4"] { --d: .32s; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */

.hero { padding: 180px 0 0; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background:
    radial-gradient(600px 420px at 50% -8%, rgba(119, 51, 255, .38), transparent 70%),
    radial-gradient(1100px 600px at 50% -20%, rgba(60, 30, 160, .35), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; } }
.hero .wrap { position: relative; display: grid; justify-items: center; gap: 24px; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero-lead { max-width: 560px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }

.venues { margin-top: 56px; width: 100%; display: grid; gap: 28px; justify-items: center; }
.venues-label { font-size: 14px; }
.marquee { width: 100%; max-width: 760px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: slide-x 28s linear infinite; }
.marquee-track span { font: 500 20px var(--display); color: rgba(255, 255, 255, .55); white-space: nowrap; }
@keyframes slide-x { to { transform: translateX(-50%); } }

/* ---------- dashboard (live telemetry) ---------- */

.dash-wrap { margin-top: 72px; position: relative; }
.dash-wrap::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, #a67bff, transparent); box-shadow: 0 0 60px 14px rgba(119, 51, 255, .55);
}
.dash {
  text-align: left; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #0b0a14, var(--card)); overflow: hidden;
}
.dash-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a38; }
.dash-title { color: var(--text); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.status.live { color: var(--tide); }
.status.live::before { background: var(--tide); box-shadow: 0 0 10px var(--tide); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.dash-body { padding: 24px; display: grid; gap: 24px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.dash-head p { font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { background: var(--chip); border-radius: 12px; padding: 16px; display: grid; gap: 6px; min-width: 0; }
.tile-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender); }
.tile-value { font: 500 24px/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.tile-note { font-size: 12px; color: var(--dim); }

.table-scroll { overflow-x: auto; }
table.routes { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.routes caption { text-align: left; padding-bottom: 12px; font-size: 13px; color: var(--dim); }
.routes caption b { color: var(--text); font-weight: 500; margin-right: 10px; }
.routes th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.routes td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-variant-numeric: tabular-nums; }
.routes td:first-child { color: var(--text); }
.routes .empty { text-align: center; color: var(--dim); padding: 28px; }
.up { color: var(--up); } .down { color: var(--down); }

/* ---------- 50/50 rows ---------- */

.rows { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row:nth-child(even) .row-visual { order: -1; }
.row-text { display: grid; gap: 20px; justify-items: start; }
.row-text p { max-width: 460px; }
.row-visual {
  position: relative; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(119, 51, 255, .55), transparent 60%),
    linear-gradient(180deg, #0c0a1c, var(--card));
  display: grid; place-items: center;
}
/* The mark's rails, running down to the waterline. */
.row-visual::before {
  content: ""; position: absolute; inset: 0 0 12% 0;
  background: repeating-linear-gradient(123deg, transparent 0 34px, rgba(255, 255, 255, .07) 34px 44px);
  -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%);
}
.row-visual::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 12%; height: 3px; border-radius: 3px; background: var(--tide); box-shadow: 0 0 24px var(--tide); }
.glyph {
  position: relative; width: 44%; aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center;
  background: linear-gradient(160deg, #9a6bff, #4a1fd0); box-shadow: 0 30px 80px rgba(119, 51, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  font: 500 clamp(40px, 7vw, 84px)/1 var(--display); color: #fff; animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: 32px; }
  .row:nth-child(even) .row-visual { order: 0; }
  .rows { gap: 72px; }
}

/* ---------- cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border-radius: 12px; padding: 24px 24px 32px; display: grid; gap: 32px; align-content: start;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04); border: 1px solid transparent;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card:hover { border-color: rgba(190, 175, 255, .18); transform: translateY(-4px); background: #08081a; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--chip); display: grid; place-items: center; color: var(--lavender); }
.card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-text { display: grid; gap: 10px; }
.card-text p { font-size: 14px; }
.card-eyebrow { font-size: 12px; color: var(--lavender); }

/* ---------- liquidity + ticker ---------- */

.ticker { height: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; overflow: hidden; -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.ticker-col { display: grid; gap: 16px; align-content: start; animation: slide-y 26s linear infinite; }
.ticker-col:nth-child(2) { animation-direction: reverse; }
@keyframes slide-y { to { transform: translateY(calc(-50% - 8px)); } }
.tick { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-radius: 16px; background: linear-gradient(90deg, var(--card), var(--chip)); }
.tick-sym { color: var(--text); font-size: 14px; flex: 1; }
.tick-fig { text-align: right; display: grid; }
.tick-price { font: 11px var(--display); color: #d5d5d5; }
.tick-pct { font-size: 12px; color: var(--up); }
.tick-venue { font-size: 11px; color: var(--dim); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.step {
  border-radius: 16px; padding: 32px 20px; text-align: center; display: grid; gap: 16px; justify-items: center; align-content: start;
  background: linear-gradient(180deg, var(--card), var(--navy));
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 500 22px var(--display);
  background: var(--primary); box-shadow: 0 0 0 8px rgba(119, 51, 255, .18), 0 0 40px rgba(119, 51, 255, .6);
}
.step h4 { letter-spacing: .04em; }
.step p { font-size: 14px; }
.center { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- bento (agent activity) ---------- */

.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bento .card { gap: 20px; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.flow-col { display: grid; gap: 8px; }
.flow-col span { padding: 8px 12px; border-radius: 10px; background: var(--chip); font: 12px var(--mono); color: var(--muted); text-align: center; }
.flow-core { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(160deg, #9a6bff, #4a1fd0); box-shadow: 0 0 48px rgba(119, 51, 255, .6); animation: float 6s ease-in-out infinite; }
.probes { display: grid; gap: 8px; }
.probe { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--chip); font-size: 13px; }
.probe span:first-child { color: var(--text); }
.note { font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } }

/* ---------- fees (pricing cards) ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  border-radius: 16px; padding: 24px 24px 40px; display: grid; gap: 28px; align-content: start;
  background: var(--card); box-shadow: 0 8px 32px rgba(0, 0, 0, .04);
}
.plan.featured { background: linear-gradient(180deg, var(--card), var(--card-hi)); }
.plan-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.badge { padding: 6px 12px; border-radius: 15px; background: rgba(255, 255, 255, .08); font-size: 12px; color: var(--text); }
.plan-price { font: 500 40px/1.2 var(--display); color: var(--text); letter-spacing: -0.02em; }
.plan-sub { font-size: 14px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: "✓"; color: var(--lavender); }
.plan .btn { margin-top: auto; }

/* ---------- faq ---------- */

.faq { max-width: 920px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 24px; padding: 28px 36px; box-shadow: 0 8px 32px rgba(0, 0, 0, .04); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font: 500 20px/1.2 var(--display); color: var(--text); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 30px/1 var(--display); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 20px; max-width: 760px; }
.faq details[open] p { animation: fade-down .4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 600px) { .faq details { padding: 22px 20px; } }

/* ---------- cta ---------- */

.cta {
  position: relative; overflow: hidden; border-radius: 16px; min-height: 400px; padding: 64px 24px;
  display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center;
  background: linear-gradient(180deg, var(--card), var(--navy));
}
.cta::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #b48cff, transparent); box-shadow: 0 0 90px 30px rgba(119, 51, 255, .6);
}
.cta p { max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- footer ---------- */

.site-footer { padding: 64px 0 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer-brand p { max-width: 240px; }
.social { width: 32px; height: 32px; border-radius: 8px; background: var(--chip); display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.social:hover { color: #fff; background: var(--primary); }
.social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-col h4 { color: var(--muted); margin-bottom: 6px; }
.footer-col a:hover, .footer-legal a:hover { color: var(--lavender); }
.footer-legal { margin-top: 48px; display: grid; gap: 12px; color: var(--dim); font-size: 13px; max-width: 760px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .tiles { grid-template-columns: 1fr 1fr; } }

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