:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-soft: #0f141d;
  --panel: #151b24;
  --panel-strong: #1d2430;
  --text: #f8fbff;
  --muted: #a8b4c1;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #41d8ff;
  --coral: #ff6b68;
  --green: #b8ff4d;
  --gold: #ffd166;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0) 0, var(--bg) 760px),
    var(--bg);
}

body,
button,
input {
  letter-spacing: 0;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.link-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.7);
  border-radius: 50%;
  color: #17130a;
  background: linear-gradient(135deg, var(--gold), var(--green));
  box-shadow: 0 10px 26px rgba(255, 209, 102, 0.2);
}

.site-nav {
  gap: clamp(12px, 3vw, 28px);
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.96) 0%, rgba(7, 9, 13, 0.73) 35%, rgba(7, 9, 13, 0.18) 72%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.2) 0%, rgba(7, 9, 13, 0.88) 100%);
}

.hero-inner,
.section,
.ticker-strip {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  align-content: center;
  min-height: 74svh;
  padding: 76px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy,
.section-heading p,
.split p,
.connect p,
.site-footer {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 590px;
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions,
.link-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.primary {
  color: #081016;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 42px rgba(65, 216, 255, 0.24);
}

.secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 150px));
  gap: 10px;
  max-width: 520px;
  margin: 34px 0 0;
}

.stats div,
.coin-card,
.update-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 20, 29, 0.86);
  box-shadow: 0 18px 48px var(--shadow);
}

.stats div {
  padding: 14px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats dd {
  margin: 4px 0 0;
  font-size: 1.22rem;
  font-weight: 900;
}

.ticker-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  transform: translateY(-24px);
}

.ticker-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(10, 13, 18, 0.92);
  font-weight: 900;
}

.section {
  padding: 68px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.coin-card {
  display: grid;
  gap: 18px;
  min-height: 312px;
  padding: 18px;
}

.coin-card.featured {
  border-color: rgba(65, 216, 255, 0.55);
}

.coin-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #11130d;
  background: var(--accent);
  font-size: 1.22rem;
  font-weight: 950;
}

.coin-card h3,
.coin-card p {
  margin: 0;
}

.coin-card p {
  color: var(--muted);
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.coin-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.coin-meta span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coin-meta strong {
  display: block;
  margin-top: 4px;
}

.coin-card .button {
  align-self: end;
}

.split,
.connect {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.update-list {
  display: grid;
  gap: 12px;
}

.update-list article {
  padding: 18px;
}

.update-list time {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.connect {
  align-items: center;
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #05070a;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .hero-inner {
    min-height: 68svh;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 9, 13, 0.97) 0%, rgba(7, 9, 13, 0.72) 54%, rgba(7, 9, 13, 0.26) 100%),
      linear-gradient(180deg, rgba(7, 9, 13, 0.1) 0%, rgba(7, 9, 13, 0.92) 100%);
  }

  .section-heading,
  .split,
  .connect,
  .coin-grid {
    grid-template-columns: 1fr;
  }

  .ticker-strip {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 210px;
  }

  .hero-inner {
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.3rem);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .coin-meta {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
