/* fonts served from this site (Latin subset), so text shows in the right font on first paint */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 900; font-stretch: 62% 125%; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 800; font-display: block; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fafdff;
  --ink: #22252f;
  --ink-2: #4a4f5e;
  --ink-3: #6a6f80;
  --line: #e3e8ef;
  --cyan: #19d3e0;
  --red: #ff2d4a;
  --violet: #7b5cff;
  --amber: #ffb020;
  --lime: #2bd67b;
  /* darker cuts of each, for text on light ground */
  --cyan-ink: #0a7f8a;
  --red-ink: #d6143a;
  --violet-ink: #5b3ee8;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 5px; z-index: 10; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--red));
}

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .icon { width: 20px; height: 20px; }
.btn-sm .icon { width: 15px; height: 15px; }
::selection { background: var(--cyan); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px 80px;
  position: relative;
  text-align: center;
}
.hero { overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(110px); opacity: .14;
  width: min(450px, 70vw); aspect-ratio: 1;
}
.hero::before { background: var(--cyan); top: 15%; left: 50%; translate: -95% 0; }
.hero::after  { background: var(--red);  top: 30%; left: 50%; translate: -5% 0; opacity: .10; }
.hero-inner { max-width: 640px; }
.logo-h { font-size: inherit; }
.logo { width: min(465px, 80vw); height: auto; display: block; margin: 0 auto 40px; }
.hero-line {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(30px, 5vw, 45px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 15px;
  /* the logo's own split edge: cyan up-left, red down-right */
  text-shadow: -1px -1px 0 var(--cyan), 1px 1px 0 var(--red);
}

.hero-line span { display: block; }
.hero-sub { color: var(--ink-2); font-size: 18px; max-width: 520px; margin: 0 auto 35px; text-wrap: balance; }
p, .lede { text-wrap: pretty; }
.inline-link { color: var(--cyan-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--cyan) 55%, transparent); }
.inline-link:hover { text-decoration-color: currentColor; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; translate: -50% 0;
  width: 25px; height: 40px; border: 2px solid var(--ink-3); border-radius: 15px;
}
.scroll-cue span {
  position: absolute; top: 5px; left: 50%; width: 5px; height: 10px; translate: -50% 0;
  background: var(--ink-3); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(15px); opacity: 0 } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 25px;
  border-radius: var(--radius);
  font: 700 15px/1 "Archivo", sans-serif; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; cursor: pointer; border: 2px solid var(--ink); white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--red), -2px -2px 0 var(--cyan); }
.btn:active { transform: none; box-shadow: none; }
.btn:focus-visible, .scroll-cue:focus-visible, .inline-link:focus-visible { outline: 3px solid var(--cyan-ink); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-red { background: var(--red-ink); border-color: var(--red-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { height: 40px; padding: 0 15px; font-size: 13px; gap: 5px; }

/* ---------- sections ---------- */
.section { max-width: 1000px; margin: 0 auto; padding: 100px 20px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: 50px; }
.kicker {
  display: block; font: 700 13px/1 "Archivo", sans-serif; font-stretch: 112%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 15px;
}
.story .kicker    { color: var(--cyan-ink); }
.building .kicker { color: var(--violet-ink); }
.back .kicker     { color: var(--red-ink); }
h2 {
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(35px, 6vw, 60px); line-height: 1.05;
  text-transform: uppercase;
  text-shadow: -1px -1px 0 var(--cyan), 1px 1px 0 var(--red);
}
.lede { color: var(--ink-2); font-size: 19px; max-width: 640px; margin-top: 20px; }

/* ---------- story ---------- */
.chapters { list-style: none; display: grid; gap: 50px; max-width: 760px; }
.chapter { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; }
.chapter-num {
  font-weight: 900; font-stretch: 125%; font-size: 60px; line-height: .9;
  color: transparent; -webkit-text-stroke: 2px var(--ink);
}
.chapter-icon { width: 25px; height: 25px; }
.chapter:nth-child(1) .chapter-icon { color: var(--cyan-ink); }
.chapter:nth-child(2) .chapter-icon { color: var(--red-ink); }
.chapter:nth-child(3) .chapter-icon { color: var(--violet-ink); }
.chapter:nth-child(1) .chapter-num { -webkit-text-stroke-color: var(--cyan); }
.chapter:nth-child(2) .chapter-num { -webkit-text-stroke-color: var(--red); }
.chapter:nth-child(3) .chapter-num { -webkit-text-stroke-color: var(--violet); }
.chapter-body h3 {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-stretch: 125%; font-size: 25px; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 10px;
}
.chapter-body p { color: var(--ink-2); font-size: 18px; }
.chapter-body p + p { margin-top: 15px; }

/* ---------- ventures ---------- */
.ventures { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.venture {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  background: #fff; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.venture::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; z-index: 1; background: var(--accent, var(--ink)); }
.v-rod     { --accent: linear-gradient(90deg, var(--red), var(--amber)); }
.v-mail    { --accent: var(--violet); }
.v-cast    { --accent: var(--red); }
.v-push    { --accent: var(--cyan); }
.v-lose    { --accent: var(--lime); }
.v-say     { --accent: var(--amber); }
.v-space   { --accent: linear-gradient(90deg, var(--violet), var(--cyan)); }
.venture-featured { grid-column: 1 / -1; flex-direction: row; padding: 0; gap: 0; }
.venture-featured .venture-what { max-width: 560px; }
.venture-logo-box { flex: none; height: 180px; display: grid; place-items: center; background: #0e1512; }
/* a real logo dropped in later fits inside these bounds, whether it's a wide wordmark or a square mark */
.venture-logo-box > img { max-width: 70%; max-height: 60%; width: auto; height: auto; }
.venture-featured .venture-logo-box { width: 280px; height: auto; min-height: 180px; }

/* placeholder logo boxes: the project's colour, a slanted stripe like the ROD under-stripe, its icon framed */
.v-mail  { --tint: #a592ff; } .v-cast { --tint: #ff6b7f; } .v-push  { --tint: #55e3ee; }
.v-lose  { --tint: #4fe39a; } .v-say  { --tint: #ffc24d; } .v-space { --tint: #8fb0ff; }
.soon {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  background:
    repeating-linear-gradient(-65deg, transparent 0 14px, color-mix(in srgb, var(--tint) 9%, transparent) 14px 16px),
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 65%),
    #0e1512;
}
.soon-mark {
  width: 60px; height: 60px; border-radius: 10px; display: grid; place-items: center;
  border: 1.5px dashed color-mix(in srgb, var(--tint) 70%, transparent); color: var(--tint);
}
.soon-mark .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.soon-label {
  font: 700 10px/1 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase;
  color: color-mix(in srgb, var(--tint) 55%, #fff); opacity: .75;
}
.venture-featured .venture-logo-box > img { width: 160px; max-width: 70%; height: auto; display: block; }
.venture-body { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.venture-body .venture-name { line-height: 1.2; margin-bottom: 5px; }
.venture-body .venture-what { margin-bottom: 15px; }
.venture-body .venture-status { margin-top: auto; }
.venture-featured .venture-body { justify-content: center; }
.venture-name { font-weight: 800; font-stretch: 112%; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.venture-what { color: var(--ink-2); }
/* Demon names: the service word carries the weight, Demon sits back */
.venture-name .dm { font-weight: 900; }
.venture-name .dm-rest { font-weight: 500; color: var(--ink-2); }
.venture-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 "Archivo", sans-serif; letter-spacing: .15em; text-transform: uppercase;
  padding: 5px 15px 5px 5px; border-radius: 5px; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
}

/* status: an H-pattern gear gate, the knob in the project's gear (6th would be launch) */
.st-1 { --c: #3d8f63; } .st-2 { --c: #b58a3a; } .st-3 { --c: #6f63c4; } .st-4 { --c: #b75b7f; } .st-5 { --c: #3a8d94; }
.shifter { width: 30px; height: 30px; flex: none; }
.shifter .gate { fill: none; stroke: #9aa1ae; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.shifter .knob { fill: var(--c); }
.shifter .knob { stroke: #fff; stroke-width: 1.2; }
.shifter text { font: 800 8px "Archivo", sans-serif; fill: #fff; }

/* ---------- wallets ---------- */
.wallets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.wallet {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 25px; display: flex; flex-direction: column; gap: 20px;
  position: relative;
}
.wallet::before { content: ""; position: absolute; inset: -1px -1px auto; height: 5px; background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.wallet-cash { --accent: #00d64f; }
.wallet-sol  { --accent: linear-gradient(90deg, #9945ff, #14f195); }
.wallet-btc  { --accent: #f7931a; }
.wallet-eth  { --accent: #627eea; }
.wallet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.wallet-hint { color: var(--ink-3); font-size: 14px; line-height: 1.5; margin-top: 15px; max-width: 220px; }
.wallet-qr { width: 110px; height: 110px; flex: none; border: 1px solid var(--line); border-radius: 5px; }
.wallet-top { display: flex; align-items: center; gap: 15px; }
.wallet-mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #fff;
}
.wallet-mark .icon { width: 20px; height: 20px; stroke-width: 2.2; }
.wallet h3, .refer h3 { font-weight: 800; font-stretch: 125%; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.wallet-value {
  font: 600 14px/1.5 "JetBrains Mono", ui-monospace, monospace;
  background: var(--paper); border: 1px solid var(--line); border-radius: 5px;
  padding: 10px 15px; word-break: break-all;
}
.wallet-cash .wallet-value { font-size: 20px; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* "Open in" wallet-app menu */
.open-in { position: relative; }
.open-in summary { list-style: none; }
.open-in summary::-webkit-details-marker { display: none; }
.open-in .chev { transition: rotate .15s; }
.open-in[open] .chev { rotate: 180deg; }
.open-menu {
  position: absolute; z-index: 5; top: calc(100% + 5px); left: 0; width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgb(34 37 47 / .15); padding: 5px;
}
.open-item { display: block; padding: 10px 15px; border-radius: 5px; text-decoration: none; }
.open-item:hover { background: var(--paper); }
.open-item:focus-visible { background: var(--paper); outline: 2px solid var(--cyan-ink); outline-offset: -2px; }
.open-item b { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; }
.open-item span { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-3); }

.refer {
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 25px; display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden;
}
.refer::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: #0069ff; }
.refer-mark { --accent: #0069ff; flex: none; }
.refer-text { flex: 1; }
.refer-top { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.refer-text p { color: var(--ink-2); font-size: 15px; }
.fine { color: var(--ink-3); font-size: 14px; max-width: 640px; margin-top: 30px; display: flex; gap: 10px; align-items: flex-start; }
.fine-icon { width: 20px; height: 20px; }

/* ---------- footer ---------- */
.foot {
  position: relative; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
}
.foot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--red));
}
.foot-kicker { font: 700 13px/1 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: .2em; color: var(--ink-3); }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.social { text-transform: none; letter-spacing: .02em; font-size: 14px; }
.social-ig .icon { color: #d62976; }
.social-tag { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); padding-left: 10px; margin-left: 5px; }
.social-dc .icon { color: #5865f2; }
.foot-logo { width: 140px; height: auto; opacity: .85; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; translate: -50% 20px; opacity: 0;
  background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: var(--radius);
  font: 600 14px/1.4 "JetBrains Mono", monospace; pointer-events: none;
  transition: opacity .2s, translate .2s;
}
.toast.on { opacity: 1; translate: -50% 0; }

@media (hover: hover) and (pointer: fine) { .phone-only { display: none; } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .refer { flex-direction: column; align-items: flex-start; }
  .foot-links { flex-direction: column; align-items: center; }
  .social { width: min(300px, 100%); justify-content: flex-start; }
  .foot-links { width: 100%; }
  .open-menu { width: calc(100vw - 90px); }
  .social-tag { margin-left: auto; }
  .section { padding: 75px 20px; }
  .section-head { margin-bottom: 35px; }
  .chapter { grid-template-columns: 1fr; gap: 10px; }
  .chapter-num { font-size: 45px; }
  .ventures, .wallets { grid-template-columns: 1fr; }
  .wallet-qr, .wallet-hint { display: none; }
  .venture-featured { flex-direction: column; }
  .venture-logo-box, .venture-featured .venture-logo-box { width: auto; height: 160px; min-height: 0; }
  .hero-sub { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
