:root {
  --ink: #050711;
  --night: #090d1c;
  --panel: rgba(8, 15, 32, 0.82);
  --panel-solid: #101c35;
  --ice: #d8fbff;
  --ice-hot: #33ecff;
  --blue: #1777ff;
  --pink: #ff3d8d;
  --gold: #ffd166;
  --green: #7f9a54;
  --cream: #efede5;
  --muted: #a8b8c9;
  --line: rgba(216, 251, 255, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #f7fbff;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 61, 141, 0.22), transparent 24rem),
    radial-gradient(circle at 78% 8%, rgba(51, 236, 255, 0.2), transparent 28rem),
    linear-gradient(180deg, #050711 0%, #091328 48%, #050711 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(216, 251, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 251, 255, 0.055) 1px, transparent 1px);
  background-size: 5rem 5rem;
  transform: perspective(500px) rotateX(58deg) translateY(-16rem);
  transform-origin: top;
  opacity: 0.34;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 100%, rgba(51, 236, 255, 0.12), transparent 34rem);
  mix-blend-mode: screen;
}

a {
  color: inherit;
}

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

code {
  color: var(--ice);
  background: rgba(216, 251, 255, 0.12);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.82rem clamp(1rem, 4vw, 3rem);
  color: var(--ice);
  background: rgba(5, 7, 17, 0.28);
  border-bottom: 1px solid rgba(216, 251, 255, 0.08);
  backdrop-filter: blur(16px);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 7, 17, 0.78);
  border-color: rgba(216, 251, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 950;
  letter-spacing: 0;
  text-decoration: none;
  text-shadow: 0 0 18px rgba(51, 236, 255, 0.36);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.55rem);
  color: #d8e4ed;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: white;
  text-shadow: 0 0 18px var(--ice-hot);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  align-items: end;
  gap: clamp(1.4rem, 4vw, 3.5rem);
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 4rem) 4rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(5, 7, 17, 0.96) 0%, rgba(5, 7, 17, 0.72) 30%, rgba(5, 7, 17, 0.16) 68%),
    linear-gradient(0deg, rgba(5, 7, 17, 0.96) 0%, transparent 40%),
    url("https://raw.githubusercontent.com/daleforbes/grab2win/main/assets/hero-ice-duo.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 58% -10% -20%;
  z-index: -2;
  background-image:
    linear-gradient(rgba(51, 236, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 236, 255, 0.22) 1px, transparent 1px);
  background-size: 4rem 4rem;
  transform: perspective(450px) rotateX(62deg);
  transform-origin: top;
  opacity: 0.36;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
  opacity: 0.55;
}

.hero-inner,
.rank-medallion,
.combo-strip {
  position: relative;
  z-index: 2;
}

.kicker,
.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  display: grid;
  margin: 0;
  max-width: 8ch;
  color: white;
  font-size: clamp(4.6rem, 11vw, 10.6rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 5px 0 rgba(255, 61, 141, 0.72),
    0 12px 0 rgba(51, 236, 255, 0.26),
    0 28px 80px rgba(0, 0, 0, 0.7);
}

.hero h1 span:last-child {
  color: var(--ice);
}

.hero-copy {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  color: #e2edf4;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.72rem 1rem;
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(51, 236, 255, 0.28);
}

.button.primary {
  color: #070a13;
  background: linear-gradient(135deg, var(--gold), #ffed9d);
  border: 1px solid rgba(255, 209, 102, 0.75);
}

.button.secondary {
  color: var(--ice);
  background: rgba(216, 251, 255, 0.08);
  border: 1px solid var(--line);
}

.rank-medallion {
  position: relative;
  align-self: center;
  width: min(100%, 25rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 24px 60px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 30px rgba(51, 236, 255, 0.18));
  animation: medalFloat 5s ease-in-out infinite;
}

.rank-medallion img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.02);
}

.medallion-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  max-width: 54%;
  color: white;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.8);
}

.medallion-copy span {
  color: var(--gold);
  font-size: clamp(0.58rem, 1.2vw, 0.82rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.medallion-copy strong {
  display: block;
  margin: 0.2rem 0 0.1rem;
  color: var(--ice);
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  line-height: 0.8;
}

.medallion-copy em {
  color: #dcebf2;
  font-size: clamp(0.72rem, 1.5vw, 1rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
}

.combo-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  overflow: hidden;
  margin-top: 1.5rem;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.combo-strip span {
  flex: 0 0 auto;
  min-height: 2.1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  color: var(--ice);
  background: rgba(8, 15, 32, 0.72);
  border: 1px solid rgba(51, 236, 255, 0.28);
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-heading {
  max-width: 55rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.rank-section {
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 61, 141, 0.22), transparent 28rem),
    linear-gradient(180deg, rgba(8, 15, 32, 0.54), rgba(8, 15, 32, 0.1));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.magazine-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
}

.magazine-cover,
.proof-stats,
.feature-card,
.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.magazine-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: rgba(239, 237, 229, 0.96);
  box-shadow:
    -12px 12px 0 rgba(255, 61, 141, 0.7),
    0 20px 70px rgba(0, 0, 0, 0.34);
  transform: rotate(-1deg);
}

.magazine-cover img {
  width: 100%;
  height: 100%;
  max-height: 46rem;
  object-fit: cover;
  object-position: top center;
}

.magazine-cover figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.4rem 0.6rem;
  color: #061015;
  background: rgba(239, 237, 229, 0.88);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.proof-stats {
  display: grid;
}

.proof-stats div {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  min-height: 8rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.proof-stats div:last-child {
  border-bottom: 0;
}

.proof-stats span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-stats strong {
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  line-height: 1;
}

.identity-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 17rem;
  padding: 1.2rem;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 20%;
  height: 9rem;
  background: radial-gradient(circle, currentColor, transparent 72%);
  opacity: 0.2;
}

.pop-blue {
  color: var(--ice-hot);
}

.pop-pink {
  color: var(--pink);
}

.pop-gold {
  color: var(--gold);
}

.feature-icon {
  display: inline-grid;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--ink);
  background: currentColor;
  border-radius: 8px;
  font-size: 1.25rem;
  font-weight: 950;
  box-shadow: 0 0 24px currentColor;
}

.feature-card h3,
.video-card h3 {
  margin: 0 0 0.45rem;
  color: white;
  font-size: 1.22rem;
}

.feature-card p,
.video-card p {
  margin: 0;
  color: var(--muted);
}

.resume {
  background:
    linear-gradient(135deg, rgba(51, 236, 255, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(255, 61, 141, 0.1), transparent 38%);
}

.stat-wall {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1.25rem;
  background: rgba(216, 251, 255, 0.16);
  border: 1px solid rgba(216, 251, 255, 0.16);
}

.stat {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(1rem, 3vw, 1.7rem);
  background: rgba(5, 7, 17, 0.84);
}

.stat.huge {
  background:
    linear-gradient(135deg, rgba(255, 61, 141, 0.22), rgba(51, 236, 255, 0.14)),
    rgba(5, 7, 17, 0.88);
}

.stat strong {
  color: var(--ice);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.8;
  text-shadow: 0 0 28px rgba(51, 236, 255, 0.34);
}

.stat span {
  max-width: 19rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 760;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
  background: rgba(8, 15, 32, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--pink), var(--ice-hot));
}

.timeline-item time {
  color: var(--gold);
  font-weight: 950;
}

.timeline-item h3,
.timeline-item p {
  margin: 0;
}

.timeline-item p {
  color: var(--muted);
}

.film {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 17, 0.42);
}

.video-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(216, 251, 255, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(51, 236, 255, 0.26), rgba(255, 61, 141, 0.24)),
    var(--panel-solid);
  box-shadow: inset 0 0 42px rgba(51, 236, 255, 0.18);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--ice);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.25rem 0.62rem;
  color: var(--ice);
  background: rgba(216, 251, 255, 0.07);
  border: 1px solid rgba(216, 251, 255, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.site-footer {
  padding: 2rem clamp(1rem, 5vw, 4rem);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(1.1rem, -0.6rem, 0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(51, 236, 255, 0);
  }

  50% {
    box-shadow: 0 0 22px rgba(51, 236, 255, 0.22);
  }
}

@keyframes medalFloat {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }

  50% {
    transform: translateY(-0.6rem) rotate(-1deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .magazine-layout,
  .stat-wall,
  .timeline {
    grid-template-columns: 1fr;
  }

  .rank-medallion {
    align-self: center;
    max-width: 23rem;
  }

  .identity-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 9.6rem;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 7, 17, 0.76), rgba(5, 7, 17, 0.95) 78%),
      url("https://raw.githubusercontent.com/daleforbes/grab2win/main/assets/hero-ice-duo.png") 62% center / cover no-repeat;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3.85rem, 17vw, 5.8rem);
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

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