/**
 * Royal Shot 8 — landing styles
 * Palette: deep felt (#0a0618), neon violet (#a855f7), rail green (#22c55e), gold accents (#eab308)
 */

:root {
  --bg-deep: #0a0618;
  --bg-card: rgba(20, 12, 40, 0.55);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --violet: #a855f7;
  --violet-dim: #7c3aed;
  --green: #22c55e;
  --cyan: #22d3ee;
  --gold: #eab308;
  --ring: rgba(168, 85, 247, 0.35);
  --glass-border: rgba(255, 255, 255, 0.12);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-glow-violet: 0 0 40px rgba(168, 85, 247, 0.25);
  --shadow-glow-green: 0 0 36px rgba(34, 197, 94, 0.2);
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* --- Ambient background --- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.page-bg__rings {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120vmin;
  height: 120vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(168, 85, 247, 0.12),
    inset 0 0 0 1px rgba(168, 85, 247, 0.08) 0 0 0 12vmin,
    inset 0 0 0 1px rgba(34, 211, 238, 0.06) 0 0 0 24vmin;
  opacity: 0.9;
}

.page-bg__glow {
  position: absolute;
  width: 50vmin;
  height: 50vmin;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.page-bg__glow--1 {
  left: -10%;
  top: 10%;
  background: var(--violet-dim);
}

.page-bg__glow--2 {
  right: -15%;
  bottom: 5%;
  background: var(--green);
}

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 6, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.brand__mark {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 12px var(--ring));
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.brand__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

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

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.1);
}

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

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 879px) {
  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0.75rem auto 0.75rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(12, 8, 28, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow-violet);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

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

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav-menu__cta {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--glass-border);
  }

  .nav-menu__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 880px) {
  .nav-menu {
    gap: 0.35rem;
  }

  .nav-link {
    padding: 0.5rem 0.85rem;
  }

  .nav-menu__cta {
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--glass-border);
  }
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

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

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

.btn--wide {
  width: 100%;
  max-width: 280px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dim) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-violet);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 48px rgba(168, 85, 247, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  box-shadow: var(--shadow-glow-green);
}

/* --- Icons (Lucide) --- */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

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

.icon--xs {
  width: 0.85rem;
  height: 0.85rem;
}

.icon--lg {
  width: 2rem;
  height: 2rem;
}

/* --- Hero --- */
.hero {
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.hero__layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__title-line {
  display: block;
  color: var(--text);
}

.hero__title-accent {
  display: block;
  background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.hero__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__ticks li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__ticks .icon {
  color: var(--green);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
}

.hero__orbit {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  border: 1px solid var(--ring);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
  animation: pulse-ring 6s var(--ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero__orbit {
    animation: none;
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

.hero__phone {
  position: relative;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.25), rgba(34, 197, 94, 0.12));
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero__phone-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: #12081f;
}

/* --- Sections --- */
.section {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.section__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section__title--tight {
  margin-bottom: 0.5rem;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Feature cards --- */
.features__grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

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

.feature-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  cursor: default;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.12;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card--violet::before {
  background: radial-gradient(circle at 20% 0%, var(--violet), transparent 55%);
}

.feature-card--violet {
  box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.2);
}

.feature-card--violet:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-glow-violet);
}

.feature-card--cyan::before {
  background: radial-gradient(circle at 80% 0%, var(--cyan), transparent 55%);
}

.feature-card--cyan {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.feature-card--cyan:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.feature-card--green::before {
  background: radial-gradient(circle at 50% 100%, var(--green), transparent 55%);
}

.feature-card--green {
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.feature-card--green:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: var(--shadow-glow-green);
}

.feature-card--gold::before {
  background: radial-gradient(circle at 0% 100%, var(--gold), transparent 55%);
}

.feature-card--gold {
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.22);
}

.feature-card--gold:hover {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: 0 0 36px rgba(234, 179, 8, 0.18);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Full screenshot visible (portrait phone UI): scale down inside frame, no cropping */
.feature-card__figure {
  margin: 0 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.08), #12081f 55%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  min-height: 120px;
  max-height: min(480px, 62vh);
}

.feature-card__img {
  display: block;
  max-width: 100%;
  max-height: min(468px, 58vh);
  width: auto;
  height: auto;
  object-fit: contain;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

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

/* --- Screenshot gallery --- */
.shots {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--glass-border);
}

.shots__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--text);
}

.shots__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

/* Exactly four tiles: 2×2 mobile / tablet, single row on wide screens */
.shots__grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.shots__grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #12081f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.shots__grid img:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(168, 85, 247, 0.12);
}

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

  .shots__grid img:hover {
    transform: none;
  }
}

/* --- Download --- */
.download__panel {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(10, 6, 24, 0.9) 45%, rgba(34, 197, 94, 0.12) 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .download__panel {
    grid-template-columns: 1fr 200px;
    align-items: center;
  }
}

.download__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 42rem;
}

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

.download__art {
  position: relative;
  min-height: 120px;
}

.download__orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.5), transparent 65%);
  filter: blur(2px);
}

.download__orb--2 {
  width: 100px;
  height: 100px;
  right: 40%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45), transparent 65%);
}

/* --- Footer --- */
.footer {
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem;
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 3, 12, 0.6);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer__brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer__tag {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .footer__links {
    align-items: flex-end;
  }
}

.footer__link {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.footer__link:hover {
  color: #67e8f9;
}

.footer__copy {
  margin: 0;
  width: 100%;
  font-size: 0.85rem;
  color: var(--muted);
}

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

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 2, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: rgba(18, 10, 36, 0.95);
  box-shadow: var(--shadow-glow-violet);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal__icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

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

.modal__text {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}
