:root {
  --primary-100: #dff1fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-900: #0c4a6e;

  --secondary-300: #fdba74;
  --secondary-400: #fb923c;
  --secondary-500: #f97316;
  --secondary-600: #ea580c;
  --secondary-900: #7c2d12;

  --accent-400: #f87171;
  --accent-500: #ef4444;

  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-700: #15803d;

  --neutral-0: #ffffff;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #7b8ba3;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-850: #162033;
  --neutral-900: #0f172a;
  --neutral-925: #0b1222;
  --neutral-950: #070b14;
  --neutral-1000: #03060c;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 20px 56px rgba(14, 165, 233, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--neutral-300);
  background: var(--neutral-950);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: var(--neutral-0);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--secondary-400);
  color: var(--neutral-950);
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--neutral-925);
  border-block: 1px solid var(--neutral-800);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary-400);
  margin-bottom: 16px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-head p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--neutral-400);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--secondary-400);
  color: var(--neutral-950);
  box-shadow: 0 8px 24px rgba(251, 146, 60, 0.3);
}

.btn-primary:hover {
  background: var(--secondary-300);
  box-shadow: 0 12px 32px rgba(251, 146, 60, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--neutral-0);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: var(--neutral-0);
  color: var(--neutral-950);
}

.btn-outline {
  background: transparent;
  color: var(--primary-300);
  border-color: var(--primary-500);
}

.btn-outline:hover {
  background: var(--primary-500);
  color: var(--neutral-950);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 20px 0;
  transition: background-color 0.3s, padding 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.96);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--neutral-0);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand strong {
  font-weight: 800;
  color: var(--secondary-400);
}

.brand-mark {
  width: 32px;
  height: 32px;
  color: var(--primary-400);
  transition: transform 0.4s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: translateX(4px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a:not(.btn) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-300);
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--secondary-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav a:not(.btn):hover {
  color: var(--neutral-0);
}

.site-nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.site-nav .btn-primary {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-0);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 48px;
  overflow: hidden;
  background: var(--neutral-950);
  color: var(--neutral-0);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  animation: hero-zoom 18s var(--ease-out) forwards;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.15) 35%, rgba(7, 11, 20, 0.9) 80%, var(--neutral-950) 100%),
    linear-gradient(90deg, rgba(7, 11, 20, 0.75) 0%, rgba(7, 11, 20, 0) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.hero-content .eyebrow {
  color: var(--primary-300);
}

.hero-tagline {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--neutral-100);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-stats {
  position: relative;
  z-index: 2;
  list-style: none;
  margin-block: 0;
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--neutral-0);
}

.hero-stats span {
  font-size: 0.9rem;
  color: var(--neutral-300);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-figure {
  margin: 0;
  position: relative;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-800);
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out);
}

.about-figure:hover img {
  transform: scale(1.02);
}

.about-figure figcaption {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--neutral-500);
}

.about-copy h2 {
  margin-bottom: 24px;
}

.about-copy > p {
  font-size: 1.0625rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.pull-quote {
  margin: 40px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--secondary-400);
  background: rgba(251, 146, 60, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--neutral-0);
}

.pull-quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--secondary-400);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-glow);
}

.card h3 {
  margin-bottom: 12px;
}

.card > p {
  color: var(--neutral-400);
  line-height: 1.5;
}

.tag {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-300);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gear-image {
  width: calc(100% + 64px);
  max-width: none;
  height: 200px;
  margin: -32px -32px 24px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 1px solid var(--neutral-800);
  transition: transform 0.6s var(--ease-out);
}

.gear-card:hover .gear-image {
  transform: scale(1.04);
}

.gear-card .gear-meta {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary-400);
}

.code-card {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-left: 4px solid var(--secondary-400);
}

.code-image {
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neutral-800);
  transition: transform 0.5s var(--ease-out);
}

.code-card:hover .code-image {
  transform: scale(1.05);
}

.code-info {
  flex: 1;
}

.code-info h3 {
  margin-bottom: 8px;
}

.code-info p {
  color: var(--neutral-400);
  line-height: 1.5;
}

.code-button {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  background: var(--neutral-950);
  color: var(--neutral-0);
  border: 2px dashed var(--secondary-400);
  border-radius: var(--radius-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}

.code-button:hover {
  background: var(--neutral-800);
  transform: scale(1.03);
}

.code-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.code-action {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--secondary-400);
  color: var(--neutral-950);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 64px;
  text-align: center;
  transition: background-color 0.2s;
}

.code-button.is-copied {
  border-color: var(--success-400);
}

.code-button.is-copied .code-action {
  background: var(--success-400);
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px 32px;
  background: var(--neutral-900);
  border: 1px solid var(--neutral-800);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.event:hover {
  transform: translateX(8px);
  border-color: var(--secondary-400);
  box-shadow: 0 16px 40px rgba(251, 146, 60, 0.14);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  background: var(--neutral-950);
  border: 1px solid var(--neutral-700);
  color: var(--neutral-0);
}

.event-month {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-400);
}

.event-day {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.event-body h3 {
  margin-bottom: 8px;
}

.event-body p {
  color: var(--neutral-400);
  line-height: 1.5;
}

.event-meta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-300);
}

.link-card {
  text-decoration: none;
  color: inherit;
}

.link-card h3 {
  margin: 20px 0 12px;
}

.platform-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.dot-red {
  background: var(--accent-500);
}

.dot-green {
  background: var(--success-400);
}

.dot-blue {
  background: var(--primary-400);
}

.dot-orange {
  background: var(--secondary-400);
}

.link-cta {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 600;
  color: var(--primary-300);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

.link-card:hover .link-cta {
  transform: translateX(6px);
  color: var(--secondary-400);
}

.site-footer {
  padding: 48px 0;
  background: var(--neutral-1000);
  border-top: 1px solid var(--neutral-800);
  color: var(--neutral-400);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.back-to-top {
  color: var(--neutral-200);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.back-to-top:hover {
  color: var(--secondary-400);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 60;
  padding: 14px 24px;
  background: var(--neutral-100);
  color: var(--neutral-950);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transform: translateY(24px);
}

.hero .reveal.is-visible {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .split {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(7, 11, 20, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    font-size: 1.5rem;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .site-nav .btn-primary {
    margin-left: 0;
  }

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

  .about-figure img {
    aspect-ratio: 16 / 11;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .event {
    grid-template-columns: auto 1fr;
  }

  .event > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1200px, calc(100% - 32px));
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .code-card {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }

  .code-image {
    width: 100%;
    height: 180px;
  }

  .code-button {
    justify-content: space-between;
  }

  .card {
    padding: 24px;
  }

  .gear-image {
    width: calc(100% + 48px);
    margin: -24px -24px 24px;
  }

  .event {
    padding: 20px;
    gap: 20px;
  }

  .hero {
    padding-bottom: 24px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-tagline {
    font-size: 1.0625rem;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
