/* ============ CHATHOOKS — design system ============ */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --panel: #141414;
  --line: rgba(255, 255, 255, 0.09);
  --white: #eef2f0;
  --dim: rgba(238, 242, 240, 0.62);
  --faint: rgba(238, 242, 240, 0.38);
  --navy: #34315b;              /* exact logo navy — fills */
  --orange: #6274c4;           /* navy-blue — accent text/links on dark */
  --orange-soft: rgba(98, 116, 196, 0.16);
  --amber: #8fa0e0;
  --green: #00ff88;
  --red: #ff5a3c;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--mono); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.label--orange { color: var(--orange); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo {
  width: 30px; height: 30px;
  display: block;
  object-fit: contain;
}
.nav__word {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--white);
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: 13.5px;
  color: var(--dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }
.nav__links a.active { color: var(--orange); }
.nav__x svg { display: block; width: 16px; height: 16px; fill: var(--dim); transition: fill 0.2s; }
.nav__x:hover svg { fill: var(--white); }
.btn-connect {
  background: var(--navy);
  color: #fff;
  border: 1px solid rgba(98,116,196,0.5);
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  transition: filter 0.2s;
}
.btn-connect:hover { filter: brightness(1.12); }
@media (max-width: 900px) {
  .nav__links a:not(.nav__x) { display: none; }
}

/* ============ HERO ============ */
.hero { height: 320vh; position: relative; }
.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #06080b;
}
.hero__scene {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__scene svg,
.hero__scene video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 55% 45%, transparent 30%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}
.hero__text {
  position: absolute;
  left: 40px;
  bottom: 64px;
  max-width: 640px;
  z-index: 5;
}
.hero__text .label { margin-bottom: 18px; display: block; }
.hero__h1 {
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__body {
  font-size: 16px;
  color: var(--dim);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(244, 241, 236, 0.55);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: rgba(244, 241, 236, 0.1); border-color: var(--white); }
.hero__scrollhint {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  animation: hintpulse 2.6s ease-in-out infinite;
}
@keyframes hintpulse { 0%,100% { opacity: 0.45; } 50% { opacity: 1; } }
@media (max-width: 720px) {
  .hero__text { left: 20px; right: 20px; bottom: 56px; }
  .hero__scrollhint { display: none; }
}

/* starbursts */
.stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.star {
  position: absolute;
  color: var(--orange);
  opacity: 0.75;
  animation: starspin 24s linear infinite;
}
.star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes starspin { to { transform: rotate(360deg); } }

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0c0c0c;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__seq {
  display: flex;
  align-items: center;
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.ticker__seq span { padding: 0 10px; }
.ticker__seq .d { color: var(--orange); padding: 0 8px; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ============ SECTION: NOTHING HIDDEN ============ */
.hidden-sec {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hidden-sec__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(140px, 24vw, 380px);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(244, 241, 236, 0.03);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.hidden-sec__inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  padding: 160px 40px;
}
.hidden-sec__inner .label { display: block; margin-bottom: 28px; }
.hidden-sec__copy {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

/* ============ SECTION: LIVE LEDGER ============ */
.ledger-sec { position: relative; padding: 140px 0; overflow: hidden; }
.ledger-sec__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 960px) { .ledger-sec__grid { grid-template-columns: 1fr; gap: 48px; } }
.ledger-sec__left { position: sticky; top: 110px; }
.ledger-sec__left .label { display: block; margin-bottom: 20px; }
.ledger-sec__h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.ledger-sec__body { color: var(--dim); font-size: 16px; margin-bottom: 30px; max-width: 420px; }
.ledger-sec__facts {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: grid;
  gap: 8px;
}
.feed__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.trade {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 22px 12px;
  color: var(--white);
  transition: background 0.18s;
}
.trade:hover { background: rgba(244, 241, 236, 0.03); }
.trade__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge--long { background: rgba(0, 255, 136, 0.12); color: var(--green); }
.badge--short { background: rgba(255, 90, 60, 0.14); color: var(--red); }
.badge--close { background: rgba(244, 241, 236, 0.1); color: var(--dim); }
.trade__pair { font-weight: 700; font-size: 16px; }
.trade__pnl { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 600; }
.trade__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-bottom: 12px;
}
.trade__quote {
  font-family: var(--mono);
  font-size: 12.5px;
  font-style: italic;
  color: var(--dim);
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 640px;
}
.trade__quote .who { color: var(--faint); font-style: normal; }
.trade__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.trade__toggle { color: var(--orange); }
.trade__proof {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.9;
  color: var(--dim);
  word-break: break-all;
}
.trade.open .trade__proof { display: block; }
.trade__proof b { color: var(--orange); font-weight: 500; }
.feed__note {
  font-family: var(--mono);
  font-size: 11px;
  font-style: italic;
  color: var(--faint);
  padding-top: 20px;
}

/* ============ SECTION: PERFORMANCE ============ */
.perf {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.perf__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48px;
}
.perf__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .perf__grid { grid-template-columns: repeat(2, 1fr); } }
.metric .label { display: block; margin-bottom: 14px; }
.metric__val {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metric__val.neg { color: var(--red); }
.metric__val.pos { color: var(--green); }
.metric__val.pending { color: var(--faint); }
.perf__note {
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: italic;
  color: var(--faint);
}

/* ============ SECTION: THE LOOP ============ */
.loop-sec { padding: 140px 0; }
.loop-sec__head { display: flex; justify-content: space-between; margin-bottom: 20px; }
.loop-sec__h2 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 64px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg); padding: 32px 26px 40px; }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  display: block;
  margin-bottom: 40px;
}
.step__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.step__desc { font-size: 13.5px; color: var(--dim); }
.loop-sec__cycle {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}
.loop-sec__cycle .sym { color: var(--orange); font-size: 14px; }

/* ============ SECTION: TRANSPARENCY ============ */
.trans-sec { padding: 140px 0; border-top: 1px solid var(--line); }
.trans-sec .label { display: block; margin-bottom: 20px; }
.trans-sec__h2 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 720px;
}
.trans-sec__body { color: var(--dim); max-width: 640px; margin-bottom: 56px; }
.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}
@media (max-width: 800px) { .proof-cards { grid-template-columns: 1fr; } }
.proof-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: #0d0d0d;
}
.proof-card .label { margin-bottom: 16px; }
.proof-card__val { font-family: var(--mono); font-size: 15px; margin-bottom: 18px; }
.proof-card__link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
}
.proof-card__link:hover { text-decoration: underline; }

.phases__head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
}
.phase-toggle { display: flex; gap: 10px; margin-bottom: 18px; }
.phase-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 24px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, 0.35);
  background: transparent;
  color: var(--dim);
  transition: all 0.2s;
}
.phase-btn.active {
  background: var(--navy);
  border-color: var(--orange);
  color: #fff;
}
.phase-desc { color: var(--dim); font-size: 15px; max-width: 620px; margin-bottom: 10px; }
.phase-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  margin-bottom: 40px;
}
.phase-badges { display: grid; gap: 14px; max-width: 640px; }
.phase-badge { display: flex; align-items: baseline; gap: 16px; }
.phase-badge__tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}
.phase-badge__tag.live { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(94, 109, 255, 0.4); }
.phase-badge__tag.testnet { background: rgba(240, 200, 90, 0.1); color: #e8c45a; border: 1px solid rgba(240, 200, 90, 0.3); }
.phase-badge__desc { font-size: 13.5px; color: var(--dim); }

/* ============ SECTION: TOKEN ============ */
.token-sec { padding: 140px 0; border-top: 1px solid var(--line); }
.ca-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0d;
  padding: 28px 30px;
  margin-bottom: 64px;
}
.ca-block .label { display: block; margin-bottom: 14px; }
.ca-block__addr {
  font-family: var(--mono);
  font-size: clamp(12px, 1.9vw, 17px);
  color: var(--white);
  word-break: break-all;
  margin-bottom: 20px;
}
.ca-block__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-copy {
  border: 1px solid rgba(244, 241, 236, 0.45);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13px;
  transition: background 0.2s;
}
.btn-copy:hover { background: rgba(244, 241, 236, 0.08); }
.ca-block__actions a {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--orange);
}
.ca-block__actions a:hover { text-decoration: underline; }
.token-sec__h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 760px;
}
.token-sec__body { color: var(--dim); max-width: 660px; margin-bottom: 64px; }
.token-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .token-feats { grid-template-columns: 1fr; } }
.token-feat .label { display: block; margin-bottom: 14px; color: var(--orange); }
.token-feat p { font-size: 14px; color: var(--dim); }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  background: #0c0c0c;
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand .nav__brand { margin-bottom: 18px; }
.footer__tag { font-size: 13.5px; color: var(--dim); max-width: 300px; }
.footer__col .label { display: block; margin-bottom: 18px; }
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bar {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
