/* Nexusline — futuristic partner network */
:root {
  --bg0: #05060f;
  --bg1: #0a0c1c;
  --bg2: #12152b;
  --line: rgba(120, 160, 255, 0.14);
  --text: #e8ecff;
  --muted: #9aa3c7;
  --cyan: #3dfff3;
  --violet: #8b5cff;
  --magenta: #ff4fd8;
  --gold: #f0c36a;
  --ok: #3dff9a;
  --danger: #ff5c7a;
  --glass: rgba(16, 20, 40, 0.62);
  --radius: 22px;
  --font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, .btn { cursor: pointer; font: inherit; border: 0; }

/* ambient */
.fx-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(139,92,255,.28), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(61,255,243,.16), transparent 50%),
    radial-gradient(700px 500px at 50% 100%, rgba(255,79,216,.10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #070914 100%);
}
.fx-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
  animation: gridDrift 28s linear infinite;
}
.fx-grid::after {
  content: "";
  position: absolute; inset: -20%;
  background: conic-gradient(from 120deg at 50% 40%, transparent, rgba(61,255,243,.05), transparent 30%, rgba(139,92,255,.07), transparent 60%);
  animation: spin 40s linear infinite;
}
@keyframes gridDrift { to { transform: translateY(56px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%,100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5,6,15,.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .7rem; font-weight: 700; letter-spacing: .04em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta));
  box-shadow: 0 0 24px rgba(61,255,243,.35);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1.5px solid rgba(255,255,255,.75);
  border-radius: 7px;
  border-right-color: transparent;
  transform: rotate(45deg);
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; color: var(--muted); font-size: .92rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .72rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: .2s ease; white-space: nowrap;
}
.btn-primary {
  color: #041016;
  background: linear-gradient(90deg, var(--cyan), #7dfff7 30%, #b39bff 70%, var(--violet));
  background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 40px rgba(61,255,243,.18);
}
.btn-primary:hover { animation: shimmer 1.2s linear infinite; transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(61,255,243,.35); background: rgba(61,255,243,.06); }

/* hero */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid rgba(61,255,243,.25);
  background: rgba(61,255,243,.06);
  color: var(--cyan); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 12px var(--ok); animation: pulse 1.8s ease infinite;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; letter-spacing: -.03em; font-weight: 750;
  margin-bottom: 1rem;
}
h1 .grad {
  background: linear-gradient(90deg, var(--cyan), #c2b0ff 45%, var(--magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 38rem; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.8rem; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem;
}
.stat {
  padding: .9rem 1rem; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.stat b { display: block; font-size: 1.25rem; color: var(--cyan); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .82rem; }

.hero-card {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  padding: 1px;
  background: linear-gradient(160deg, rgba(61,255,243,.55), rgba(139,92,255,.2), rgba(255,79,216,.35));
  animation: floaty 6s ease-in-out infinite;
}
.hero-card-inner {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(12,14,28,.95), rgba(8,10,20,.98));
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,.04);
}
.card-top {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
  color: var(--muted); font-size: .8rem; font-family: var(--mono);
}
.pill {
  padding: .25rem .55rem; border-radius: 999px;
  background: rgba(61,255,153,.1); color: var(--ok); border: 1px solid rgba(61,255,153,.25);
}
.meter { margin: 1rem 0 1.2rem; }
.meter-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.bar {
  height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden;
  display: flex;
}
.bar i:nth-child(1) { width: 90%; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.bar i:nth-child(2) { width: 10%; background: linear-gradient(90deg, var(--magenta), var(--gold)); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem;
}
.split div {
  padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line);
  font-size: .86rem;
}
.split strong { display: block; font-size: 1.05rem; margin-top: .15rem; }
.tree {
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  background: rgba(0,0,0,.25); border-radius: 14px; padding: .9rem 1rem;
  border: 1px dashed rgba(139,92,255,.3); line-height: 1.7;
}
.tree .hl { color: var(--cyan); }

/* sections */
section { padding: 4rem 0; }
.section-h {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  align-items: end; margin-bottom: 1.8rem;
}
.section-h h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; max-width: 18ch;
}
.section-h p { color: var(--muted); max-width: 36rem; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: .2s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(61,255,243,.28);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.card::before {
  content: ""; position: absolute; inset: auto -20% 60% -20%; height: 80px;
  background: radial-gradient(circle, rgba(61,255,243,.12), transparent 70%);
  pointer-events: none;
}
.icon {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(139,92,255,.12); border: 1px solid rgba(139,92,255,.28);
  margin-bottom: .9rem; font-size: 1.1rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* timeline / steps */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem;
}
.step {
  padding: 1.1rem; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.step .n {
  font-family: var(--mono); color: var(--violet); font-size: .78rem; margin-bottom: .5rem;
}
.step h3 { font-size: 1rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .88rem; }

/* tables */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10,12,24,.75);
  overflow: hidden;
}
.panel-h {
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.panel-h h3 { font-size: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); }
th { color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
td strong { color: var(--cyan); }
tr:last-child td { border-bottom: 0; }
.tag {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem;
  border: 1px solid var(--line); color: var(--muted);
}
.tag.hot { color: var(--gold); border-color: rgba(240,195,106,.35); background: rgba(240,195,106,.08); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* paths */
.path-a { border-top: 2px solid var(--cyan); }
.path-b { border-top: 2px solid var(--violet); }

/* catalog */
.logos {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .8rem;
}
.logo-tile {
  min-height: 96px; border-radius: 18px; border: 1px dashed rgba(255,255,255,.1);
  display: grid; place-items: center; text-align: center; padding: 1rem;
  background: rgba(255,255,255,.02); color: var(--muted); font-size: .9rem;
}
.logo-tile.active {
  border-style: solid;
  border-color: rgba(61,255,243,.35);
  background: linear-gradient(180deg, rgba(61,255,243,.08), transparent);
  color: var(--text);
}
.logo-tile small { display: block; color: var(--muted); margin-top: .25rem; }

/* token */
.token-box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: stretch;
}
.big-num {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 750; letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--magenta), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* CTA */
.cta {
  margin: 1rem 0 3rem;
  border-radius: calc(var(--radius) + 8px);
  padding: 1px;
  background: linear-gradient(120deg, rgba(61,255,243,.5), rgba(139,92,255,.4), rgba(255,79,216,.35));
}
.cta-inner {
  border-radius: var(--radius);
  padding: 2rem;
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(61,255,243,.12), transparent),
    radial-gradient(500px 200px at 90% 100%, rgba(139,92,255,.14), transparent),
    #0b0e1c;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.2rem; align-items: center;
}
.cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.cta p { color: var(--muted); max-width: 36rem; }

/* form */
.form {
  display: grid; gap: .7rem; min-width: min(360px, 100%);
}
.form input, .form select {
  width: 100%; padding: .85rem 1rem; border-radius: 14px;
  background: rgba(0,0,0,.35); border: 1px solid var(--line); color: var(--text);
  outline: none;
}
.form input:focus, .form select:focus { border-color: rgba(61,255,243,.45); }
.form .btn { width: 100%; }
.fine { font-size: .75rem; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem; color: var(--muted); font-size: .85rem;
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.footer-grid a:hover { color: var(--cyan); }

/* mobile */
.menu-btn { display: none; }
@media (max-width: 920px) {
  .hero-grid, .cards, .steps, .two-col, .token-box, .logos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .stats { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}
