*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #05060a;
  --bg-light: #f4efe9;
  --bg-mid: #101320;
  --accent: #33ffe0;
  --accent-soft: rgba(51, 255, 224, 0.15);
  --accent-strong: #19c2a4;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --danger: #ff3b3b;
  --card-bg: rgba(8, 9, 15, 0.9);
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 26px 80px rgba(0, 0, 0, 0.7);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #141b33 0, #05060a 55%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: soft-light;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  z-index: 1;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/brad-hero-rider.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 255, 200, 0.24), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255, 0, 64, 0.45), transparent 55%),
              linear-gradient(to bottom, rgba(3, 7, 18, 0.65), #020617 80%);
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-logo {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  padding: 10px;
  background: radial-gradient(circle at 20% 0, rgba(51, 255, 224, 0.3), transparent 60%),
              rgba(15, 23, 42, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 5vw, 4.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 26rem;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 10px;
}

.btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 10px 30px rgba(51, 255, 224, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(51, 255, 224, 0.65);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
}

.btn-accent {
  background: rgba(51, 255, 224, 0.13);
  border-color: rgba(51, 255, 224, 0.6);
  color: var(--accent);
}

.btn-accent:hover {
  background: rgba(51, 255, 224, 0.22);
}

.hero-tagline {
  margin-top: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.hero-floating {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 25% 0, rgba(51, 255, 224, 0.2), transparent 50%),
              rgba(15, 23, 42, 0.9);
  opacity: 0.65;
  filter: blur(1px);
  box-shadow: 0 0 40px rgba(51, 255, 224, 0.2);
  z-index: 0;
  animation: float 22s linear infinite;
}

.hero-floating-1 {
  top: 6%;
  right: 10%;
}

.hero-floating-2 {
  bottom: -2%;
  left: 2%;
  animation-duration: 26s;
}

.hero-floating-3 {
  bottom: 14%;
  right: -4%;
  animation-duration: 30s;
}

@keyframes float {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-20px, -10px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.section {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.section-light {
  background: radial-gradient(circle at top, #f8fafc 0, #e5e7eb 35%, #d4d4d8 100%);
  color: #020617;
}

.section-dark {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%, #020211 100%);
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  max-width: 620px;
  margin-bottom: 36px;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.section-light .section-desc {
  color: #4b5563;
}

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

.story-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  transform-origin: center;
}

.story-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.story-card-body {
  padding: 16px 18px 18px;
}

.story-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.story-card-body p {
  font-size: 0.9rem;
  color: #4b5563;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.timeline {
  list-style: none;
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.timeline li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 14px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(51, 255, 224, 0.8);
  margin-top: 6px;
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stacked-images {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
}

.stacked-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stacked-img-main {
  transform: rotate(-4deg) translate(-6px, 4px);
}

.stacked-img-side {
  transform: rotate(6deg) translate(20px, 24px);
  opacity: 0.9;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.token-card {
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  overflow: hidden;
}

.token-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(51, 255, 224, 0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.token-card:hover::before {
  opacity: 1;
}

.token-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.token-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.token-img {
  padding: 0;
}

.token-img img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.section-gym .gym-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}

.section-final {
  background: radial-gradient(circle at top, #fdf2f8 0, #fee2e2 40%, #0b1120 100%);
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: center;
}

.final-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.final-copy .hero-buttons {
  margin-top: 18px;
}

.fine-print {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer {
  background: #020617;
  padding: 16px 20px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
}

/* Lab section */

.lab-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: radial-gradient(circle at top, rgba(51, 255, 224, 0.35), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.lab-image {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  filter: saturate(1.05);
  transform-origin: center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lab-frame:hover .lab-image {
  transform: translateY(-4px) scale(1.02);
  filter: saturate(1.15) brightness(1.02);
}

.lab-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  box-shadow: 0 0 25px rgba(51, 255, 224, 0.3);
  pointer-events: none;
}

.orbit-1 {
  inset: 10% 5% 55% 40%;
  border-color: rgba(51, 255, 224, 0.7);
}

.orbit-2 {
  inset: 58% 28% 6% -6%;
  border-color: rgba(94, 234, 212, 0.5);
}

.lab-chip {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  font-size: 0.7rem;
}

.lab-chip .chip-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.lab-chip .chip-value {
  font-weight: 600;
  color: var(--accent);
}

.chip-top-left {
  top: 14px;
  left: 14px;
}

.chip-bottom-right {
  bottom: 16px;
  right: 18px;
}

.lab-points {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lab-points li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.lab-points span:first-child {
  font-size: 1.1rem;
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Responsive */

@media (max-width: 900px) {
  .hero {
    padding-top: 26px;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }

  .hero-subtitle,
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-logo {
    width: 220px;
    height: 220px;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column,
  .section-gym .gym-inner,
  .final-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-visual {
    order: -1;
  }

  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-frame {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 16px;
  }

  .token-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-floating {
    opacity: 0.4;
  }
}
