:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --text: #f4f6fb;
  --muted: #c3cad8;
  --dim: #7d8799;
  --green: #5fe0a8;
  --green-deep: #2e9e72;
  --card-border: rgba(110, 220, 175, 0.32);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(120% 80% at 80% 10%, #121c30 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #1b2b44 url("assets/hero-poster.jpg") left top / cover no-repeat;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* Darken the bright sky behind the text (right side) and frame the edges */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(270deg,
      rgba(6, 10, 20, .88) 0%,
      rgba(6, 10, 20, .74) 30%,
      rgba(6, 10, 20, .35) 50%,
      rgba(6, 10, 20, 0) 64%),
    linear-gradient(180deg,
      rgba(6, 10, 20, .55) 0%,
      rgba(6, 10, 20, 0) 20%,
      rgba(6, 10, 20, 0) 72%,
      rgba(6, 10, 20, .55) 100%);
}


/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.6vw, 24px) clamp(16px, 6vw, 104px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(22px, 2.3vw, 36px);
  letter-spacing: -0.01em;
}
.brand img { width: clamp(36px, 3.6vw, 58px); height: auto; }

.x-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  background: rgba(7, 11, 20, .35);
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.x-link:hover { background: rgba(255, 255, 255, .1); border-color: #fff; transform: translateY(-1px); }
.x-link svg { width: 24px; height: 24px; }

/* ---------- Content ---------- */
.content {
  align-self: center;
  justify-self: end;
  width: min(600px, 100%);
  margin-right: clamp(16px, 6vw, 104px);
  padding-bottom: 6vh;
}

.title {
  position: relative;
  margin: 0 0 .78em;
  font-family: "Urbanist", var(--font);
  font-weight: 600;
  font-size: clamp(52px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.title-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
/* Mirrored copy under the baseline: stretched, streaked and faded out */
.title-reflect {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  user-select: none;
  color: #dfe9ff;
  transform-origin: 0 var(--baseline, .8em);
  transform: scaleY(-1.55);
  opacity: .6;
  filter: url(#streak);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 78%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 78%);
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer {
  from { opacity: .5; transform: scaleY(-1.5); }
  to { opacity: .66; transform: scaleY(-1.62); }
}

.volta {
  display: inline-flex;
  align-items: center;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  background: linear-gradient(180deg, #4fd49a, #227a57);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.volta-o { display: inline-block; width: .82em; height: .82em; margin: 0 .02em; color: #2e9e72; -webkit-text-fill-color: initial; }
.volta-o svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 5px rgba(160, 255, 210, .55)); }

/* ---------- Built on Volta (bottom right) ---------- */
.built-on {
  justify-self: start;
  padding: 0 clamp(16px, 6vw, 104px) clamp(16px, 3vh, 28px);
}
.built-on a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 11, 20, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.built-on a:hover { border-color: rgba(95, 224, 168, .5); background: rgba(7, 11, 20, .7); }
.built-label { font-size: 13px; color: var(--muted); }
.built-on .volta { font-size: 19px; }

/* ---------- Burn card ---------- */
.burn-card {
  position: relative;
  --pad-x: clamp(16px, 1.8vw, 28px);
  width: min(480px, 100%);
  margin-top: clamp(16px, 3vh, 36px);
  padding: clamp(14px, 1.6vw, 22px) var(--pad-x) 0;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, rgba(20, 34, 40, .55), rgba(9, 16, 24, .7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.burn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-size: clamp(14px, 1.1vw, 17px);
}
.flame { color: var(--green); flex: none; width: 22px; height: 22px; }
.fee-chip {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(95, 224, 168, .3);
  background: rgba(95, 224, 168, .08);
  color: var(--green);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.burn-value {
  margin-top: 6px;
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.burn-unit {
  margin-top: 4px;
  color: var(--dim);
  letter-spacing: .08em;
  font-size: clamp(11px, .85vw, 13px);
  opacity: .7;
}
.burn-chart {
  display: block;
  width: calc(100% + 2 * var(--pad-x));
  margin: -28px calc(-1 * var(--pad-x)) 0;
  height: clamp(54px, 5.5vw, 80px);
  pointer-events: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 calc(-1 * var(--pad-x));
  border-top: 1px solid rgba(110, 220, 175, .18);
  background: rgba(7, 12, 18, .35);
}
.stat {
  padding: 10px var(--pad-x) 12px;
  min-width: 0;
}
.stat + .stat { border-left: 1px solid rgba(110, 220, 175, .12); }
.stat dt {
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat dd {
  margin: 3px 0 0;
  font-weight: 600;
  font-size: clamp(14px, 1.05vw, 17px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.burn-chart.reveal { animation: reveal 2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- Contract address ---------- */
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(480px, 100%);
  margin-top: 12px;
  padding: 7px 7px 7px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(9, 16, 24, .55);
  backdrop-filter: blur(10px);
  font-size: 14px;
}
.ca-label { color: var(--green); font-weight: 600; letter-spacing: .06em; }
.ca-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ca-copy {
  flex: none;
  font: inherit;
  font-weight: 600;
  color: #04120c;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: filter .2s;
}
.ca-copy:hover:not(:disabled) { filter: brightness(1.1); }
.ca-copy:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-shade {
    background: linear-gradient(180deg,
      rgba(6, 10, 20, .5) 0%,
      rgba(6, 10, 20, 0) 16%,
      rgba(6, 10, 20, .2) 34%,
      rgba(6, 10, 20, .85) 58%,
      var(--bg) 100%);
  }
  .hero-video, .hero-media { object-position: 22% top; background-position: 22% top; }
  .content {
    align-self: end;
    justify-self: stretch;
    width: auto;
    margin: 0;
    padding: 30vh 16px 16px;
  }
  .x-link { width: 44px; height: 44px; }
  .content { padding-bottom: 16px; }
  .built-on { padding: 0 16px 24px; }
  .stat { padding: 12px 12px 14px; }
  .stat dt { font-size: 10.5px; }
  .x-link svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .title-reflect { animation: none; }
}
