/* ===== Viraliza — base ===== */
:root {
  color-scheme: dark;
  --ink: #0B0B09;
  --ink-2: #131411;
  --ink-3: #1C1E1A;
  --paper: #F2F3EE;
  --muted: #8C938D;
  --line: rgba(242, 243, 238, .12);
  --green: #01C758;
  --green-hi: #2BE27A;
  --green-deep: #04321B;
  --f-display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --logo-ink: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--green); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p { margin: 0; }
mark { background: none; color: var(--green); }

.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.tiny { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: "#"; color: var(--green); font-weight: 600; }

/* ===== logo ===== */
.vz-logo, .vz-hash { display: block; width: 100%; height: auto; overflow: visible; }
.vz-logo .lg-word path { fill: var(--logo-ink); }
.vz-logo .lg-hash path, .vz-hash .lg-hash path,
.vz-logo .lg-swoosh, .vz-logo .lg-sparks path { fill: var(--green); }
/* layered logo (hero + footer): boxes computed from the 1459×583 logo units */
.vz-layered { position: relative; }
.vz-layered .vz-layer-hash { position: absolute; left: 0; top: -0.6861%; width: 32.8993%; will-change: transform; transform-origin: 49.45% 50%; /* centre of the # shape */ }
.vz-layered .vz-layer-sparks { position: absolute; left: 78.1357%; top: -6.8611%; width: 23.3036%; height: 53.1732%; overflow: visible; }
.lg-l, .lg-hash, .lg-sparks path, .lg-swoosh { transform-box: fill-box; transform-origin: 50% 100%; }
.lg-sparks path { transform-origin: 0% 100%; }
.lg-swoosh { transform-origin: 0% 50%; }

/* ===== buttons ===== */
.btn {
  --bg: transparent; --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--paper); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--green { --bg: var(--green); --fg: var(--ink); }
.btn--green:hover { color: var(--ink); }
.btn--outline { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { color: var(--ink); }

/* ===== preloader ===== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: grid; place-items: center;
  padding: var(--gut);
}
.loader__hash { width: clamp(120px, 18vw, 220px); }
.loader__hash .lg-hash path { fill: transparent; stroke: var(--green); stroke-width: 1.4; }
.loader__meta {
  position: absolute; left: var(--gut); right: var(--gut); bottom: calc(var(--gut) + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.loader__count { font-family: var(--f-display); font-size: clamp(48px, 9vw, 120px); color: var(--paper); letter-spacing: -.04em; line-height: .8; font-weight: 800; }

/* ===== cursor ===== */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--green); }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid rgba(242, 243, 238, .45);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--f-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; border-color: var(--green); background: rgba(1, 199, 88, .12); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--green); border-color: var(--green); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gut) 18px;
  mix-blend-mode: normal;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 11, 9, .85), rgba(11, 11, 9, 0));
  pointer-events: none;
}
.nav::before { transition: opacity .4s; }
.menu-open .nav::before { opacity: 0; }
.menu-open .nav__burger { background: var(--ink); }
.menu-open .nav__burger span { background: var(--paper); }
.nav__logo { width: 132px; flex: none; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--green);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { height: 44px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); position: relative; flex: none; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ===== fullscreen menu ===== */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--green); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: calc(110px + env(safe-area-inset-top, 0px)) var(--gut) calc(var(--gut) + env(safe-area-inset-bottom, 0px));
  clip-path: circle(0% at calc(100% - 44px) 40px);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 11vw, 96px);
  line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 12px;
  overflow: hidden; padding-block: 4px;
}
.menu__links em { font-style: normal; font-size: .35em; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }

/* ===== layout helpers ===== */
#smooth-content { background: var(--ink); }
section { position: relative; }

/* ===== hero ===== */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gut) clamp(40px, 7vh, 80px);
  overflow: hidden;
  cursor: crosshair;
}
/* hero background: everything static except the light (moved with transform) and click ripples */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242, 243, 238, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 243, 238, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 80%);
}
.hero__glow { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.hero__glow::before {
  content: ""; position: absolute; left: -450px; top: -450px; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 199, 88, .22) 0%, rgba(1, 199, 88, .08) 38%, rgba(1, 199, 88, 0) 66%);
  animation: glowBreath 5s ease-in-out infinite alternate;
}
@keyframes glowBreath { from { transform: scale(.9); opacity: .85; } to { transform: scale(1.12); opacity: 1; } }
.hero__bighash { position: absolute; right: -7%; top: 50%; height: 150%; aspect-ratio: 480 / 590; transform: translateY(-50%) rotate(-10deg); }
.hero__bighash .vz-hash { width: 100%; height: 100%; }
.hero__bighash .vz-hash .lg-hash path { fill: none; stroke: rgba(1, 199, 88, .26); stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.hero__bighash .vz-hash .lg-hash__tex { display: none; }
.hero__ripple {
  position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%;
  border: 1.5px solid var(--green); will-change: transform, opacity;
}
.hero__pop { position: absolute; left: 0; top: 0; font-family: var(--f-display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--green); will-change: transform, opacity; }
.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(20px, 3vh, 36px); pointer-events: none; }
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__logo { width: min(100%, 1320px, 120svh); margin-left: -1.5%; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lead { font-size: clamp(18px, 2vw, 26px); line-height: 1.3; max-width: 30ch; font-weight: 500; }
.hero__reach { display: grid; justify-items: end; gap: 6px; text-align: right; }
.hero__reachNum { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--green); }
.hint { color: var(--muted); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1;
  display: grid; justify-items: center; gap: 8px; color: var(--muted);
}
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(var(--green), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== ticker ===== */
.ticker { padding-block: clamp(60px, 10vw, 140px); overflow: hidden; }
.ticker__band { padding-block: 18px; white-space: nowrap; overflow: hidden; }
.ticker__band--green { background: var(--green); color: var(--ink); transform: rotate(-3deg) scale(1.06); position: relative; z-index: 2; }
.ticker__band--light { background: var(--paper); color: var(--ink); transform: rotate(2.5deg) scale(1.06); margin-top: -12px; }
.ticker__row { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; will-change: transform; }
.ticker__row span { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 5vw, 64px); letter-spacing: -.03em; text-transform: uppercase; line-height: 1.05; }
.ticker__row b { font-size: clamp(20px, 3vw, 40px); font-weight: 800; }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
  .nav__logo { width: 112px; }
  .hero__reach { justify-items: start; text-align: left; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
