/* Orange Space — landing */

:root {
  --space-deep: #050b16;
  --space: #0a1424;
  --space-mid: #122038;
  --orange: #ff8a1f;
  --orange-bright: #ffb14a;
  --orange-soft: rgba(255, 138, 31, 0.18);
  --cyan: #5ec8ff;
  --cyan-soft: rgba(94, 200, 255, 0.15);
  --text: #f2f6fc;
  --muted: #9eb0c9;
  --line: rgba(255, 255, 255, 0.1);
  --font-brand: "Fredoka", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--space-deep);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ——— Starfield ——— */
.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(94, 200, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 138, 31, 0.08), transparent 50%),
    var(--space-deep);
}

.stars canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ——— Layout shell ——— */
.site {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 0;
}

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

.nav-brand {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--orange-bright);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.35) 0%, rgba(5, 11, 22, 0.2) 35%, rgba(5, 11, 22, 0.75) 70%, rgba(5, 11, 22, 0.96) 100%),
    linear-gradient(90deg, rgba(5, 11, 22, 0.55) 0%, transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6.5rem 0 3.5rem;
  max-width: 36rem;
}

.brand {
  font-family: var(--font-brand);
  font-weight: 650;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
  animation: rise 0.9s var(--ease) both;
}

.brand span {
  display: block;
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 138, 31, 0.35);
}

.hero-tag {
  font-family: var(--font-brand);
  font-weight: 450;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--cyan);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: rgba(242, 246, 252, 0.88);
  max-width: 28rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.65rem;
  font-weight: 560;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--orange);
  color: #1a0d00;
}

.btn-primary:hover {
  background: var(--orange-bright);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.hero-scroll span {
  width: 1px;
  height: 1.75rem;
  background: linear-gradient(to bottom, var(--orange), transparent);
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 10vw, 6.5rem) 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.65rem;
  font-weight: 560;
}

.section-title {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

/* How to play */
.play {
  background: linear-gradient(180deg, transparent, rgba(18, 32, 56, 0.45), transparent);
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
  max-width: 40rem;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 1.5rem 2.5rem;
  }
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.step.is-in {
  opacity: 1;
  transform: none;
}

.step-num {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.2;
  min-width: 1.75rem;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.feature-item.is-in {
  opacity: 1;
  transform: none;
}

.feature-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 138, 31, 0.55);
  margin-top: 0.45rem;
}

.feature-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }
}

/* Gallery */
.gallery {
  background: linear-gradient(180deg, transparent, rgba(94, 200, 255, 0.04), transparent);
  overflow: hidden;
}

.gallery-head {
  margin-bottom: 2.25rem;
}

.gallery-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 31, 0.55) transparent;
  outline: none;
}

.gallery-scroll:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 138, 31, 0.55);
}

.gallery-scroll::-webkit-scrollbar {
  height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 31, 0.45);
  border-radius: 999px;
}

.gallery-track {
  --shot-w: min(52vw, 220px);
  display: flex;
  gap: 1rem;
  width: max-content;
  padding: 0.35rem calc(50% - var(--shot-w) / 2) 1.1rem;
}

.shot {
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  width: var(--shot-w);
  scroll-snap-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.shot.is-in {
  opacity: 1;
  transform: none;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.7s var(--ease), border-color 0.4s var(--ease);
}

.shot:hover img {
  transform: scale(1.02);
  border-color: rgba(255, 138, 31, 0.45);
}

@media (min-width: 700px) {
  .gallery-track {
    --shot-w: min(38vw, 260px);
    gap: 1.25rem;
  }
}

/* Closing CTA */
.close {
  text-align: center;
  padding-bottom: clamp(5rem, 12vw, 7rem);
}

.close-inner {
  position: relative;
  padding: 3.5rem 1.5rem;
  max-width: 40rem;
  margin-inline: auto;
}

.close-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255, 138, 31, 0.14), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.close .section-title {
  margin-bottom: 0.85rem;
}

.close .section-lead {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.close .cta-row {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-brand {
  font-family: var(--font-brand);
  color: var(--text);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--orange-bright);
}

/* ——— Privacy policy page ——— */
.policy-page {
  min-height: 100svh;
}

.policy-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 22, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.policy-main {
  padding: 3rem 0 5rem;
  max-width: 720px;
}

.policy-main h1 {
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.policy-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.policy-main > p {
  color: rgba(242, 246, 252, 0.9);
  margin: 0 0 1.25rem;
}

.policy-main h2 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.85rem;
  color: var(--orange-bright);
}

.policy-main h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
}

.policy-main ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.policy-main li {
  margin-bottom: 0.4rem;
}

.policy-main li strong,
.policy-main p strong {
  color: var(--text);
}

.policy-main a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-main a:hover {
  color: var(--orange-bright);
}

.policy-note {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--orange);
  background: var(--orange-soft);
  color: rgba(242, 246, 252, 0.92);
  font-size: 0.95rem;
}

.contact-block {
  margin-top: 1rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-block strong {
  display: block;
  color: var(--text);
  font-family: var(--font-brand);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* 404 */
.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.not-found h1 {
  font-family: var(--font-brand);
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--orange);
  margin: 0 0 0.5rem;
}

.not-found p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* ——— Motion ——— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-scroll,
  .brand,
  .hero-tag,
  .hero-lead,
  .cta-row {
    animation: none;
  }

  .step,
  .feature-item,
  .shot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
