:root {
  color-scheme: dark;
  --deep-teal: #05141a;
  --mid-teal: #0f332b;
  --forest: #1a3d35;
  --gold: #f2c166;
  --gold-dim: #c48c40;
  --gold-glow: rgba(242, 193, 102, 0.25);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-subtle: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.1);
  --glass: rgba(5, 20, 26, 0.65);
  --glass-strong: rgba(5, 20, 26, 0.85);
  --max-width: 72rem;
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--deep-teal);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 61, 53, 0.6), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(196, 140, 64, 0.15), transparent),
    linear-gradient(165deg, var(--deep-teal) 0%, var(--mid-teal) 45%, #1a2e26 75%, #2a1f14 100%);
}

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

a:hover {
  color: #ffd98a;
}

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

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.site-nav .brand:hover {
  color: var(--text);
}

.site-nav .brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
  background: rgba(242, 193, 102, 0.1);
}

/* ── Layout ── */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.page-narrow {
  max-width: 42rem;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4.5rem 0 5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-icon {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.25rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(242, 193, 102, 0.2);
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.eyebrow a:hover {
  color: #ffd98a;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 32rem;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.badge svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: var(--gold);
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-store-badge:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.app-store-badge img {
  height: 3rem;
  width: auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 280px;
  border-radius: var(--radius);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .hero-visual img {
    max-width: 320px;
  }
}

/* ── Section headers ── */

.section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Feature cards ── */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(242, 193, 102, 0.25);
  box-shadow: 0 0 24px var(--gold-glow);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.65rem;
  background: rgba(242, 193, 102, 0.12);
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--gold);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Screenshot carousel ── */

.section-screenshots {
  overflow: visible;
}

.carousel {
  position: relative;
  --slide-width: min(72vw, 280px);
  --carousel-gap: 1rem;
}

@media (min-width: 600px) {
  .carousel {
    --slide-width: min(48vw, 340px);
    --carousel-gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .carousel {
    --slide-width: 400px;
    --carousel-gap: 1.5rem;
  }
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
  outline: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 var(--slide-width);
  scroll-snap-align: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--glass);
  cursor: zoom-in;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.carousel-slide:hover,
.carousel-slide:focus-visible {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(242, 193, 102, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(242, 193, 102, 0.15);
  outline: none;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.carousel-btn {
  display: none;
  position: absolute;
  top: calc(50% - 1.5rem);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.carousel-btn:hover:not(:disabled) {
  border-color: rgba(242, 193, 102, 0.4);
  background: rgba(242, 193, 102, 0.12);
  color: var(--gold);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-btn-prev {
  left: 0.25rem;
}

.carousel-btn-next {
  right: 0.25rem;
}

@media (min-width: 768px) {
  .carousel-btn {
    display: inline-flex;
  }

  .carousel-track {
    scroll-padding-inline: 3.5rem;
    padding-inline: 3.5rem;
  }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.carousel-dot.is-active {
  width: 1.25rem;
  background: var(--gold);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Lightbox ── */

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(96vw, 480px);
  max-width: 96vw;
  max-height: min(94vh, 94dvh);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(5, 20, 26, 0.92);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: visible;
}

.lightbox[open] {
  display: block;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88vh, 88dvh);
  object-fit: contain;
  border-radius: 1.25rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass-strong);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-close {
  top: -0.75rem;
  right: -0.75rem;
  width: 2.5rem;
  height: 2.5rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
}

.lightbox-prev {
  left: -0.75rem;
}

.lightbox-next {
  right: -0.75rem;
}

.lightbox-close svg,
.lightbox-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  border-color: rgba(242, 193, 102, 0.4);
  color: var(--gold);
}

@media (max-width: 600px) {
  .lightbox {
    width: min(94vw, 420px);
  }

  .lightbox-prev {
    left: 0.35rem;
  }

  .lightbox-next {
    right: 0.35rem;
  }

  .lightbox-close {
    top: 0.35rem;
    right: 0.35rem;
  }
}

/* ── CTA banner ── */

.cta-banner {
  margin: 2rem 0 0;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(242, 193, 102, 0.08), rgba(15, 51, 43, 0.6)),
    var(--glass);
  border: 1px solid rgba(242, 193, 102, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.cta-banner p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Content pages ── */

.hero.compact {
  padding: 2.5rem 0 1.5rem;
  display: block;
}

.content {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.content p,
.content ul {
  margin: 0 0 1rem;
}

.content ul {
  padding-left: 1.25rem;
}

.content li {
  margin-bottom: 0.35rem;
}

/* ── Footer ── */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--text-muted);
}

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

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

.footer-links a {
  text-decoration: none;
}

/* ── Legacy compat ── */

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

.links a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  background: var(--glass);
}

.footer {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--text-muted);
}

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