/**
 * Grand Billiards: 8 ball — luxury cruise + red felt + logo-style gradients
 * Typography: Russo One + Chakra Petch (ui-ux-pro-max gaming pairing)
 */

:root {
  --color-bg-deep: #070b14;
  --color-bg-panel: #0c1224;
  --color-royal: #1d4ed8;
  --color-ocean: #0c4a6e;
  --color-felt: #b91c1c;
  --color-felt-dark: #7f1d1d;
  --color-gold: #e7c15a;
  --color-gold-dim: #b45309;
  --color-text: #e8edf7;
  --color-muted: #94a3b8;
  --color-stroke: #f8fafc;
  --gradient-brand: linear-gradient(180deg, #22d3ee 0%, #a78bfa 45%, #e879f9 100%);
  --shadow-neon: 0 0 0 1px rgba(248, 250, 252, 0.35), 0 12px 40px rgba(34, 211, 238, 0.12), 0 24px 80px rgba(232, 121, 249, 0.08);
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "Chakra Petch", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-deep);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* --- Page atmosphere (deck + horizon) --- */
.page-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.page-atmosphere__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42vh;
  background: radial-gradient(120% 80% at 50% 0%, rgba(56, 189, 248, 0.14), transparent 60%);
  opacity: 0.9;
}

.page-atmosphere__rails {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30vh;
  background:
    linear-gradient(90deg, transparent 0%, rgba(248, 250, 252, 0.06) 50%, transparent 100%),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(231, 193, 90, 0.07) 48px, rgba(231, 193, 90, 0.07) 50px);
  mask-image: linear-gradient(to top, black, transparent);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(231, 193, 90, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.navbar {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.brand__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  object-fit: cover;
  border: 2px solid rgba(248, 250, 252, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.brand__icon--sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  border-width: 2px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(88, 28, 135, 0.55));
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.6);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(30, 41, 59, 0.85);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 1rem;
  right: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(12, 18, 36, 0.96);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: var(--shadow-neon);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
  }
}

.nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--color-muted);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(248, 250, 252, 0.06);
}

.nav-menu__cta {
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .nav-menu__cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  width: 100%;
}

@media (min-width: 520px) {
  .btn--lg {
    width: auto;
  }
}

.btn--cta {
  color: #0b1120;
  background: linear-gradient(135deg, var(--color-gold) 0%, #fde68a 40%, var(--color-gold) 100%);
  border-color: rgba(248, 250, 252, 0.85);
  box-shadow: 0 4px 0 rgba(180, 83, 9, 0.55), 0 12px 32px rgba(231, 193, 90, 0.25);
}

.btn--cta:hover {
  box-shadow: 0 4px 0 rgba(180, 83, 9, 0.55), 0 16px 48px rgba(34, 211, 238, 0.2);
}

.btn--outline {
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(248, 250, 252, 0.55);
}

.btn--outline:hover {
  border-color: rgba(34, 211, 238, 0.65);
  background: rgba(30, 41, 59, 0.65);
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg-deep);
}

/* Banner slot matches source asset 1200×627 — no vertical stretch */
.hero__banner {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.hero__figure {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 627;
  overflow: hidden;
  background: #0b1120;
}

.hero__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__veil--banner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7, 11, 20, 0.15) 0%,
    transparent 40%,
    rgba(7, 11, 20, 0.35) 85%,
    var(--color-bg-deep) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    padding-top: 3.25rem;
    padding-bottom: 4rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__title {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__title-gradient {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 0 var(--color-stroke))
    drop-shadow(0 2px 0 var(--color-stroke))
    drop-shadow(2px 0 0 var(--color-stroke))
    drop-shadow(-2px 0 0 var(--color-stroke))
    drop-shadow(0 -1px 0 var(--color-stroke))
    drop-shadow(0 10px 24px rgba(88, 28, 135, 0.55));
}

.hero__title-plain {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: rgba(248, 250, 252, 0.92);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.device-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 390 / 844;
  padding: 0.55rem;
  border-radius: 2.25rem;
  background: linear-gradient(160deg, #0f172a, #020617);
  border: 3px solid var(--color-stroke);
  box-shadow: var(--shadow-neon), 0 24px 60px rgba(0, 0, 0, 0.55);
}

.device-frame__notch {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 1.1rem;
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.device-frame__screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.85rem;
}

.device-caption {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
  max-width: 280px;
}

/* --- Mood band (lounge art) --- */
.mood-band {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 4.75rem 1.25rem 5.25rem;
  overflow: hidden;
}

.mood-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.mood-band__veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(7, 11, 20, 0.88) 0%, rgba(7, 11, 20, 0.45) 55%, rgba(12, 74, 110, 0.5) 100%);
  pointer-events: none;
}

.mood-band__panel {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  padding: 2.15rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(248, 250, 252, 0.9);
  background: rgba(12, 18, 36, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.mood-band__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mood-band__text {
  margin: 0;
  color: var(--color-muted);
}

/* --- Features + felt texture --- */
.features {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.25rem 6rem;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(185, 28, 28, 0.22), transparent 55%),
    repeating-linear-gradient(
      -8deg,
      rgba(0, 0, 0, 0.08),
      rgba(0, 0, 0, 0.08) 1px,
      transparent 1px,
      transparent 6px
    ),
    linear-gradient(180deg, var(--color-felt-dark), #450a0a 55%, var(--color-bg-deep));
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.section-title__gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  margin: 0;
  color: rgba(248, 250, 252, 0.78);
}

.features__grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(248, 250, 252, 0.88);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(7, 11, 20, 0.92));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(34, 211, 238, 0.12);
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: rgba(231, 193, 90, 0.12);
  border: 1px solid rgba(231, 193, 90, 0.35);
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

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

/* --- Screenshots gallery --- */
.screens {
  position: relative;
  z-index: 1;
  padding: 5.5rem 1.25rem 6rem;
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, #0a0f1a 50%, var(--color-bg-panel) 100%);
  border-top: 1px solid rgba(248, 250, 252, 0.06);
}

.screens .section-head {
  margin-bottom: 3rem;
}

.screens__grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (min-width: 700px) {
  .screens__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .screens__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.screens__figure {
  margin: 0;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(248, 250, 252, 0.32);
  background: #0f172a;
  aspect-ratio: 1080 / 1920;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.screens__item:hover .screens__figure {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.08);
}

.screens__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .screens__figure {
    transition: none;
  }
}

/* --- Download --- */
.download {
  position: relative;
  z-index: 1;
  padding: 5.25rem 1.25rem 6.25rem;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(29, 78, 216, 0.2), transparent 55%), var(--color-bg-deep);
}

.download__card {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.75rem 1.75rem;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(248, 250, 252, 0.2);
  background: rgba(12, 18, 36, 0.85);
  box-shadow: var(--shadow-neon);
}

.download__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
}

.download__text {
  margin: 0 0 1.5rem;
  color: var(--color-muted);
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 520px) {
  .download__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem 4.25rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  background: #030712;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-brand .brand__icon {
  box-shadow: none;
}

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

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

.site-footer__links a {
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-text);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.85);
}

/* --- Modal --- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(248, 250, 252, 0.85);
  background: rgba(12, 18, 36, 0.96);
  box-shadow: var(--shadow-neon);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(51, 65, 85, 0.95);
}

.modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.modal__body {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .feature-card,
  .nav-menu,
  .site-header {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}
