:root {
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f8fafc;
  background-color: #020202;
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #050505 0%, #050505 140px, #b80011 140px, #d40013 480px);
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: #050505;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 360px;
}

.logo {
  display: inline-flex;
  background: #f5c518;
  color: #050505;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-icon {
  width: 1.1rem;
  height: 1.1rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 2px solid currentColor;
}

.nav-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  flex: 1 1 360px;
}

.nav-search .category {
  border: none;
  background: #f6f6f6;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  cursor: default;
}

.nav-search input {
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.4rem 0.25rem;
  width: 100%;
  color: #050505;
  background: transparent;
}

.nav-search input::placeholder {
  color: rgba(15, 15, 15, 0.6);
}

.nav-search .search-submit {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  background: #f5c518;
  color: #050505;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-search svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.nav-pill,
.nav-icon {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 0.35rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-pill {
  background: #1a1a1a;
}

.hero-section {
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 6vw, 4.5rem) clamp(3rem, 5vw, 6rem);
}

.hero-panel {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin: 0.4rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-eyebrow {
  margin: 0.4rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.chip {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero-lead {
  max-width: 38ch;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
}

.cta.primary {
  background: #111;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.cta.ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.hero-art {
  position: relative;
  height: 320px;
  border-radius: 32px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 45%),
    rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 35px 60px rgba(0, 0, 0, 0.45);
}

.device {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(145deg, #030712, #0f172a);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.device.console {
  width: 60%;
  height: 55%;
  left: 20%;
  top: 22%;
}

.device.joycon {
  width: 16%;
  height: 60%;
  top: 18%;
  background: linear-gradient(120deg, #1e293b, #020617);
}

.device.joycon.left {
  left: 5%;
}

.device.joycon.right {
  right: 5%;
}

.device::after {
  content: '';
  position: absolute;
  inset: 18%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.how-it-works {
  background: #0d0d0d;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 6vw, 4.5rem);
  color: #e2e8f0;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-bottom: 0.4rem;
}

.section-heading p {
  color: rgba(226, 232, 240, 0.85);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.7rem;
  color: rgba(226, 232, 240, 0.6);
}

.steps {
  margin: 1.5rem 0 0;
  padding-left: 1.75rem;
  line-height: 1.6;
}

footer {
  background: #050505;
  color: rgba(226, 232, 240, 0.75);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
}

.secret-link {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  color: transparent;
  text-decoration: none;
}

.secret-link:focus-visible,
.secret-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-right {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-left {
    flex: 1 1 100%;
  }

  .nav-search {
    order: 3;
    width: 100%;
  }

  .menu-button {
    order: 2;
  }
}

@media (max-width: 520px) {
  .nav-search {
    grid-template-columns: 1fr auto;
  }

  .nav-search .category {
    display: none;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }
}
