/* ==========================================================================
   Lumen Peak Games — styles.css
   Static site, mobile-first, no external dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --bg-3: #101a36;
  --surface: rgba(16, 26, 54, 0.72);
  --line: rgba(140, 170, 255, 0.14);
  --line-strong: rgba(140, 170, 255, 0.28);

  --text: #eef2ff;
  --muted: #a9b4d0;

  --blue: #4f8cff;
  --blue-deep: #2457d8;
  --blue-soft: #7fb0ff;
  /* Button gradient — kept slightly darker than the accent blue so white text passes WCAG AA (>= 5:1) */
  --btn-blue: #2f66e6;
  --btn-blue-deep: #1e47c2;
  --gold: #e9c46a;
  --gold-soft: #f6dfa0;

  --glow-blue: rgba(79, 140, 255, 0.35);
  --glow-gold: rgba(233, 196, 106, 0.28);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  --header-h: 72px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #1a1400;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Typography ---------- */
.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head-left {
  text-align: left;
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-icon {
  flex: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--btn-blue) 0%, var(--btn-blue-deep) 100%);
  box-shadow: 0 10px 30px -10px var(--glow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(79, 140, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
  background: rgba(233, 196, 106, 0.06);
}

/* Non-clickable "coming soon" state for the Google Play button */
.btn-soon {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
}

.tag {
  display: inline-block;
  padding: 0.22em 0.6em;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
  background: rgba(233, 196, 106, 0.12);
  border: 1px solid rgba(233, 196, 106, 0.35);
}

/* Email button: scales down on narrow phones so the address never breaks mid-word */
.btn-mail {
  max-width: 100%;
  padding-inline: clamp(1rem, 4vw, 1.6rem);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(0.82rem, 3.6vw, 0.95rem);
}

/* Larger hero call-to-action */
.btn-lg {
  min-height: 54px;
  padding: 0.95rem 2.1rem;
  font-size: 0.88rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand-mark {
  flex: none;
  filter: drop-shadow(0 0 10px var(--glow-gold));
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

/* Hamburger — hidden on desktop, shown on small screens when JS is available */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  /* Mountain height drives the bottom padding so the lit peak always sits below the CTA */
  --mtn-h: clamp(170px, 22vw, 380px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding: clamp(5rem, 10vw, 7rem) 0 calc(var(--mtn-h) + 0.5rem);
  text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(79, 140, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #0a1128 0%, var(--bg) 100%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 520px at 50% 34%, rgba(79, 140, 255, 0.22), transparent 62%),
    radial-gradient(circle 240px at 50% 18%, rgba(233, 196, 106, 0.16), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 9vw, 6.75rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
}

.hero-title-accent {
  background: linear-gradient(90deg, var(--blue-soft) 0%, #cfe0ff 45%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin-top: clamp(1.25rem, 3vw, 1.75rem);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 700;
  letter-spacing: clamp(0.16em, 1vw, 0.32em);
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 24px var(--glow-gold);
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.hero-actions {
  margin-top: 2.25rem;
}

.hero-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: var(--mtn-h);
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Game card ---------- */
.game-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.game-media {
  min-width: 0;
}

.game-feature {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.game-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* The <picture> wrapper must behave exactly like the icon <img> did as a flex item */
.game-heading picture {
  flex: none;
}

.game-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 22%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px -10px var(--glow-blue);
}

.game-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-genre {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.game-desc {
  color: var(--muted);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.feature-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--glow-gold);
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

/* ---------- Coming soon ---------- */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  color: var(--blue-soft);
  background: rgba(255, 255, 255, 0.015);
}

.coming-soon-mark {
  flex: none;
}

.coming-soon-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 479px) {
  .coming-soon {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.about-text {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
}

.about-text p:first-child {
  color: var(--text);
}

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.pillar-index {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-card {
  position: relative;
  overflow: hidden;
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 320px at 50% 0%, rgba(79, 140, 255, 0.2), transparent 70%);
}

.contact-lead {
  margin: 0.75rem 0 1.75rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: #05091a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--gold-soft);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Small screens: collapsible nav (only when JS is present — otherwise nav simply wraps) */
@media (max-width: 899px) {
  .has-js .nav-toggle {
    display: flex;
  }

  .has-js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: rgba(7, 11, 24, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9);
  }

  .has-js .site-nav:not(.is-open) {
    display: none;
  }

  .has-js .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .has-js .nav-list a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
  }

  .has-js .nav-list li:last-child a {
    border-bottom: 0;
  }

  .has-js .nav-list a::after {
    display: none;
  }

  /* Hamburger -> X */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

  /* Without JS the nav wraps under the brand on very narrow screens */
  html:not(.has-js) .header-inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }
}

/* Tablet and up */
@media (min-width: 640px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .game-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
  }

  .about-grid .pillars {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-lead {
    max-width: 38rem;
  }
}

/* Motion & preference safety */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
