/* Poolshot GO — brand-matched night table (navy + cyan glow from market art) */

:root {
  --bg: #06101f;
  --bg-mid: #0b1a30;
  --surface: rgba(16, 32, 56, 0.92);
  --surface-solid: #12243e;
  --ink: #eef6ff;
  --ink-soft: rgba(238, 246, 255, 0.72);
  --cyan: #3dd4ff;
  --cyan-deep: #1aa8d4;
  --magenta: #c45fa8;
  --gold: #e8b84a;
  --line: rgba(61, 212, 255, 0.22);
  --glow: 0 0 36px rgba(61, 212, 255, 0.22);
  --shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Sora", "Outfit", sans-serif;
  --nav-h: 4.5rem;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: var(--bg);
}

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

/* Atmosphere — cyan + magenta haze like the banner */
.felt-wash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.felt-wash__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.felt-wash__blob--a {
  width: 50vw;
  height: 50vw;
  top: -15%;
  right: -10%;
  background: #1a6fa8;
}

.felt-wash__blob--b {
  width: 42vw;
  height: 42vw;
  bottom: 5%;
  left: -12%;
  background: #7a3a72;
}

/* Nav — glass over dark felt */
.chalk-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem 0;
  transition: padding 0.25s ease;
}

.chalk-nav.is-scrolled {
  padding-top: 0.4rem;
}

.chalk-nav__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  background: rgba(8, 18, 34, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.chalk-nav.is-scrolled .chalk-nav__bar {
  box-shadow: var(--glow);
  border-color: rgba(61, 212, 255, 0.4);
}

.chalk-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.chalk-nav__brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(61, 212, 255, 0.3);
}

.chalk-nav__brand em {
  font-style: normal;
  color: var(--cyan);
}

.chalk-nav__links {
  display: flex;
  gap: 1.35rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.chalk-nav__links a:hover,
.chalk-nav__links a:focus-visible {
  color: var(--cyan);
}

.chalk-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chalk-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.chalk-nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: calc(var(--nav-h) + 1rem) 1.25rem 1.5rem;
  background: rgba(6, 16, 31, 0.97);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-drawer[hidden] {
  display: none !important;
}

.nav-drawer a {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn--lg {
  padding: 0.95rem 1.6rem;
}

.btn--block {
  width: 100%;
}

.btn--solid {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #041018;
  box-shadow: 0 10px 28px rgba(61, 212, 255, 0.35);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(61, 212, 255, 0.5);
}

.btn--line {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn--line:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Main */
main {
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
}

.hero__media {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), var(--glow);
  background: #040c18;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
  object-position: center;
}

.hero__console {
  width: min(720px, 100%);
  margin: 1.25rem auto 0;
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem 1.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(61, 212, 255, 0.1);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__title {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__title span {
  color: var(--cyan);
  text-shadow: 0 0 28px rgba(61, 212, 255, 0.35);
}

.hero__lead {
  margin: 0 auto 1.35rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sections */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-head h2 span {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(61, 212, 255, 0.3);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* Features — angled “rack” cards */
.features {
  padding: 4.5rem 1.25rem 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  width: min(960px, 100%);
  margin: 0 auto;
}

.feature-card {
  padding: 1.4rem 1.3rem;
  background: linear-gradient(155deg, rgba(22, 42, 70, 0.95), rgba(10, 22, 40, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: var(--glow);
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(61, 212, 255, 0.12);
  color: var(--cyan);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Shots */
.shots {
  padding: 3.5rem 1.25rem 4rem;
  background:
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(61, 212, 255, 0.08), transparent 70%);
}

.shot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.9rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.shot-phone {
  margin: 0;
  flex: 0 1 170px;
  max-width: 190px;
  transition: transform 0.25s ease;
}

.shot-phone--up {
  margin-bottom: 1.25rem;
}

.shot-phone--focus {
  flex-basis: 210px;
  max-width: 230px;
  margin-bottom: 2rem;
}

.shot-phone:hover {
  transform: translateY(-6px);
}

.shot-phone__shell {
  padding: 9px;
  border-radius: 26px;
  background: linear-gradient(160deg, #1c304c, #0a1424);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot-phone--focus .shot-phone__shell {
  border-color: rgba(61, 212, 255, 0.55);
  box-shadow: var(--shadow), var(--glow);
}

.shot-phone__shell img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  background: #050a12;
}

/* Download */
.get-app {
  padding: 1rem 1.25rem 4.5rem;
}

.get-app__panel {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  text-align: center;
  background: linear-gradient(165deg, rgba(24, 48, 78, 0.95), rgba(8, 18, 34, 0.98));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow), 0 0 48px rgba(196, 95, 168, 0.12);
}

.get-app__panel img {
  margin: 0 auto 1rem;
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(61, 212, 255, 0.25), 0 12px 28px rgba(0, 0, 0, 0.4);
}

.get-app__panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.get-app__panel p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.get-app__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: #040a14;
  padding: 2rem 1.25rem;
}

.footer__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.footer__copy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(238, 246, 255, 0.4);
}

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

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  background: var(--surface-solid);
  border-radius: 22px;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow), var(--glow);
}

.modal__x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  color: var(--ink-soft);
  padding: 0.25rem;
}

.modal__x:hover {
  color: var(--cyan);
}

.modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(61, 212, 255, 0.12);
  color: var(--cyan);
}

.modal__panel h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
}

.modal__panel p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 768px) {
  .chalk-nav__links {
    display: none;
  }

  .chalk-nav__actions .btn {
    display: none;
  }

  .chalk-nav__burger {
    display: flex;
  }

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

  .hero__console {
    margin-top: 1rem;
    padding: 1.35rem 1.1rem 1.5rem;
  }

  .shot-phone,
  .shot-phone--focus,
  .shot-phone--up {
    flex: 0 1 calc(50% - 0.5rem);
    max-width: none;
    margin-bottom: 0;
  }
}

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

  .btn,
  .feature-card,
  .shot-phone {
    transition: none;
  }
}
