:root {
  --bg: #08080c;
  --bg-raise: rgba(255, 255, 255, 0.02);
  --bg-raise-2: rgba(255, 255, 255, 0.035);
  --fg: #ededed;
  --muted: #9a9aa2;
  --dim: #5e5e66;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --line-strong: rgba(28, 28, 36, 0.9);
  --max: 1100px;
  --sans: "Geist Variable", "Geist", Inter, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.ext { color: var(--muted); transition: color .15s ease; }
.ext:hover { color: var(--fg); }
.mono { font-family: var(--mono); }
.sep { color: var(--dim); padding: 0 .55em; }

/* ---------- BACKGROUND GRID TEXTURES (Fillr 1:1) ---------- */
.tex {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.tex-dots {
  background-image: radial-gradient(rgba(237, 237, 237, 0.55) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
}
.tex-lines {
  background-image:
    linear-gradient(rgba(237, 237, 237, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 237, 237, 0.5) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  opacity: 0.03;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 70%);
}

/* ---------- INTRO OVERLAY (outlined logo draw-in) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08080c;
  transition: opacity .8s ease, visibility .8s ease;
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-logo {
  display: flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(90px, 22vw, 220px);
  letter-spacing: -0.04em;
  line-height: 1;
  -webkit-text-stroke: 2.5px #f7f8fa;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.intro-logo span {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-18px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out);
}
.intro-logo span.lit { opacity: 1; filter: blur(0); transform: translateY(0); }

/* decorative vertical hairline (Fillr guide rule) */
.rule-v {
  position: fixed;
  top: 0; bottom: 0;
  left: max(calc((100vw - var(--max)) / 2 + 42px), 42px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  opacity: .5;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1000px) { .rule-v { display: none; } }

/* ---------- SCROLL REVEAL (framer-motion 1:1) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal="down"] { transform: translateY(-16px); }
[data-reveal].in { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: .09s; }
[data-delay="2"] { transition-delay: .18s; }
.step[data-reveal] { transition-delay: calc(var(--i, 0) * .08s); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- FLOATING PILL NAV ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 20px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: var(--max);
  height: 56px;
  padding: 0 .5rem 0 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.5);
}
.brand-full { font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.brand-slash { color: var(--dim); }
.nav-links { display: flex; gap: 1.6rem; margin-left: .5rem; }
.nav-links a { color: var(--muted); font-size: .9rem; transition: color .15s ease; }
.nav-links a:hover { color: var(--fg); }
.btn-x {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease;
  flex-shrink: 0;
}
.btn-x:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.3); }
.btn-app {
  margin-left: .55rem;
  background: var(--fg);
  color: #000;
  font-weight: 550;
  font-size: .88rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  transition: opacity .15s ease;
}
.btn-app:hover { opacity: .85; }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,0.035), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
/* plexus particle-network canvas (Fillr hero centerpiece) */
.plexus {
  position: absolute;
  top: 50%;
  right: clamp(-6%, -2vw, 2%);
  transform: translateY(-50%);
  width: min(58vw, 680px);
  height: min(58vw, 680px);
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease 1.6s;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(60% 60% at 55% 50%, #000 45%, transparent 78%);
  mask-image: radial-gradient(60% 60% at 55% 50%, #000 45%, transparent 78%);
}
.plexus.on { opacity: 1; }
.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.2rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 15ch;
}
.hero-title .at { color: var(--muted); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: .82rem;
}
.ca-label { color: var(--dim); letter-spacing: .05em; }
.ca {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .4rem .65rem;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
  word-break: break-all;
  text-align: left;
}
.ca:hover { color: var(--fg); border-color: rgba(255,255,255,0.2); }
.ca-net {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  color: #35d07f;
  border: 1px solid rgba(53,208,127,.35);
  border-radius: 999px;
  padding: .18rem .55rem;
}
.hero-key {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--dim);
}
.press { animation: blink 2.4s steps(1) infinite; }
/* Fillr's exact bounce keyframe */
.arrow { display: inline-block; animation: bounce 1s infinite; }
@keyframes blink { 0%,70%{opacity:1} 71%,100%{opacity:.25} }
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--dim);
  margin-bottom: 1.4rem;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.05;
  max-width: 20ch;
}
.section-lead {
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 58ch;
  font-size: 1.02rem;
}

/* ---------- STEPS (stacked rows, Fillr grid-cols-[120px_1fr]) ---------- */
.steps {
  margin-top: 3rem;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 3rem;
  padding: 3.2rem .25rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.step .num {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--dim);
  letter-spacing: .1em;
  transition: color .3s ease;
}
.step:hover .num { color: var(--fg); }
.step h3 {
  font-size: 1.5rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin-bottom: .7rem;
}
.step p { color: var(--muted); font-size: 1rem; max-width: 60ch; }

/* ---------- STATUS LINE + LIVE DOT ---------- */
.status-line {
  margin-top: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}
.status-strong { color: var(--fg); letter-spacing: .08em; }
.live { position: relative; width: 8px; height: 8px; margin-right: .35rem; display: inline-flex; }
.dot {
  position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #35d07f;
  animation: pulse 2s ease-in-out infinite;
}
.ring {
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  border: 1px solid #35d07f;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ring 2s ease-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes ring {
  0% { opacity: .7; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(3.2); }
}

/* ---------- CARDS ---------- */
.cards {
  margin-top: 3.4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 2rem 1.9rem 2.2rem;
  transition: background .2s ease;
}
.card:hover { background: var(--bg-raise); }
.card-tag {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--dim);
}
.card h3 {
  font-size: 1.3rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 1rem 0 .7rem;
}
.card p { color: var(--muted); font-size: .95rem; }
.why-foot { margin-top: 2.4rem; color: var(--muted); font-size: .92rem; }

/* ---------- PROOF BLOCK ---------- */
.proof-block {
  margin-top: 3rem;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.75;
  color: var(--muted);
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  overflow-x: auto;
  white-space: pre;
}
.section-lead b { color: var(--fg); font-weight: 550; }

/* ---------- PROTOCOL TABLE ---------- */
.table {
  margin-top: 3rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.row:last-child { border-bottom: none; }
.row:hover { background: var(--bg-raise); }
.row .k {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--dim);
}
.row .v { font-size: .95rem; color: var(--fg); word-break: break-word; }
.table-foot { margin-top: 1.6rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* ---------- SUPPORT + FAQ ---------- */
.support-row {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.support-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 1.6rem 1.7rem;
  background: var(--bg-raise);
}
.support-item .k {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--dim);
  display: block;
  margin-bottom: .7rem;
}
.support-item a { font-size: 1.05rem; color: var(--fg); }
.support-item a:hover { color: var(--muted); }
.support-item p { color: var(--muted); font-size: .88rem; margin-top: .5rem; }

.faq { margin-top: 2rem; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem .25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--fg);
  transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted); }
.faq .plus {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 1.2rem;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer {
  overflow: hidden;
  padding: 0 .25rem;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
}
.faq details[open] .answer { max-height: 340px; opacity: 1; padding: 0 .25rem 1.4rem; }
.faq .answer p { color: var(--muted); font-size: .95rem; max-width: 68ch; }

/* ---------- FOOTER ---------- */
.footer { padding: 4rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand .brand-full { font-size: 1.1rem; }
.footer-brand p { color: var(--dim); font-size: .88rem; margin-top: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: flex-start; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--fg); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  color: var(--dim);
  font-size: .8rem;
}
.footer-legal .mono { font-family: var(--mono); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg);
  color: #000;
  font-size: .85rem;
  font-weight: 500;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .cards, .support-row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 2.4rem .25rem; }
  .step h3 { font-size: 1.3rem; }
  .row { grid-template-columns: 130px 1fr; gap: .6rem; padding: .9rem 1.1rem; }
  .footer-inner { flex-direction: column; }
}
