@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #121315;
  --surface: #1a1b1e;
  --surface-2: #222327;
  --surface-3: #2b2c31;
  --line: rgb(255 255 255 / 0.07);
  --line-strong: rgb(255 255 255 / 0.12);
  --text: #f4f5f2;
  --muted: #b3b6bc;
  --subtle: #8f939a;
  --accent: #b2ff41;
  --accent-ink: #15200a;
  --negative: #ff6b6b;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ------------------------------------------------------------ background */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 70% 25%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 70% 25%, #000 15%, transparent 75%);
}
.glow {
  position: absolute;
  top: -420px;
  right: -280px;
  width: 960px;
  height: 960px;
  background: radial-gradient(closest-side, rgb(178 255 65 / 0.12), transparent);
}
.glow-b {
  top: auto;
  right: auto;
  bottom: -560px;
  left: -420px;
  background: radial-gradient(closest-side, rgb(178 255 65 / 0.05), transparent);
}

/* ------------------------------------------------------------ layout */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(16px, min(4vw, 40px));
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(22px + env(safe-area-inset-top));
}
.brand img {
  width: auto;
  height: 30px;
}
.top-link {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}
.top-link:hover {
  border-color: rgb(178 255 65 / 0.4);
  background: rgb(178 255 65 / 0.06);
  color: var(--accent);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}

/* ------------------------------------------------------------ copy */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgb(178 255 65 / 0.28);
  border-radius: 999px;
  background: rgb(178 255 65 / 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgb(178 255 65 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(178 255 65 / 0);
  }
}
h1 {
  margin: 22px 0 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.2vw, 92px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 em {
  padding-right: 0.05em;
  color: var(--accent);
  font-style: italic;
}
.lede {
  max-width: 34rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  text-wrap: pretty;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.25s;
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 10px 30px -12px rgb(178 255 65 / 0.6);
}
.btn.primary:hover {
  background: #c1ff62;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    0 14px 38px -12px rgb(178 255 65 / 0.75);
}
.btn.ghost {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}
.btn.ghost:hover {
  background: var(--surface-3);
}
.fine {
  margin-top: 18px;
  color: var(--subtle);
  font-size: 13.5px;
}

/* ------------------------------------------------------------ preview */
.visual {
  position: relative;
  margin-right: 22px;
}
.chart-card {
  overflow: hidden;
  padding: 20px 20px 56px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.025), transparent 40%),
    var(--surface);
  box-shadow:
    0 40px 100px -30px rgb(0 0 0 / 0.75),
    inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sym {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.tf {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: var(--subtle);
  font-size: 11px;
  font-weight: 500;
}
.price {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.chg {
  margin-left: 6px;
  color: var(--accent);
  font-size: 14px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
#chart {
  width: 100%;
  height: auto;
  margin-top: 10px;
}
.candle {
  transform-box: fill-box;
  transform-origin: center;
  animation: grow 0.6s var(--ease) both;
}
@keyframes grow {
  from {
    opacity: 0;
    transform: scaleY(0.1);
  }
}

.entry {
  position: relative;
  width: min(344px, 86%);
  margin: -44px -22px 0 auto;
  padding: 16px 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgb(26 27 30 / 0.88);
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: pop 0.9s var(--ease) 1.5s both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}
.entry-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.ok {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.ok svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.entry-title {
  font-size: 14.5px;
  font-weight: 600;
}
.entry-sub {
  color: var(--subtle);
  font-size: 12.5px;
}
.entry dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.entry dt {
  color: var(--subtle);
  font-size: 11.5px;
}
.entry dd {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.up {
  color: var(--accent);
}

/* ------------------------------------------------------------ features + footer */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: clamp(48px, 7vw, 80px);
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(26 27 30 / 0.6);
  transition: border-color 0.3s;
}
.feature:hover {
  border-color: var(--line-strong);
}
.ic {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
}
.ic svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.feature h2 {
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.15;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13.5px;
}
.foot a {
  color: var(--muted);
  text-decoration: none;
}
.foot a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------ entrance */
.reveal {
  animation: rise 0.9s var(--ease) both;
}
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.34s; }
.d5 { animation-delay: 0.46s; }
.d6 { animation-delay: 0.54s; }
.d7 { animation-delay: 0.62s; }
.d8 { animation-delay: 0.7s; }
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }
  .visual {
    max-width: 640px;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 24px;
  }
}
@media (max-width: 600px) {
  .brand img {
    height: 26px;
  }
  .hero {
    gap: 40px;
    padding-top: 28px;
  }
  .btn {
    flex: 1 1 auto;
  }
  .visual {
    margin-right: 0;
  }
  .chart-card {
    padding: 16px 14px 48px;
  }
  .price {
    font-size: 22px;
  }
  .entry {
    width: auto;
    margin: -36px 12px 0;
  }
  .entry dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .features {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }
  .foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
