/* ===== Design tokens — dark (default) ===== */
:root {
  --color-accent:     #FF6D2C;
  --color-success:    #2E9E5B;
  --color-bg:         #0E0C09;
  --color-surface:    #1A1714;
  --color-surface-2:  #252118;
  --color-text:       #FDFDFC;
  --color-text-muted: #9E9991;
  --color-border:     rgba(255, 109, 44, 0.15);
  --color-navbar-bg:  rgba(14, 12, 9, 0.85);
  --color-img-border: rgba(255, 255, 255, 0.06);

  --radius-card:      12px;
  --radius-btn:       8px;
  --spacing-section:  clamp(3rem, 8vw, 6rem);
  --max-width:        1100px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Layout utilities ===== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
}

section { padding-block: var(--spacing-section); }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.875rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}
.navbar-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-cta {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-btn);
  transition: opacity 0.2s;
}
.navbar-cta:hover { opacity: 0.85; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--spacing-section);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 109, 44, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero .container { grid-template-columns: 1fr 1fr; }
}
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(255, 109, 44, 0.3);
}
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-sub strong { color: var(--color-text); }
.hero-cta-group { display: flex; flex-direction: column; gap: 0.75rem; }
.play-badge-link { display: inline-block; }
.play-badge-link img { display: block; height: 60px; width: auto; transition: transform 0.15s, opacity 0.15s; }
.play-badge-link:hover img { transform: translateY(-2px); opacity: 0.9; }
.hero-micro { font-size: 0.8rem; color: var(--color-text-muted); }

.hero-visual { display: none; }
@media (min-width: 768px) {
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-visual img {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.6);
    opacity: 0.9;
    transition: opacity 0.25s;
  }

}

/* ===== Features ===== */
.features {
  background: var(--color-surface);
  transition: background-color 0.25s ease;
}
.section-header { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }
.accent { color: var(--color-accent); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, background-color 0.25s ease;
}
.feature-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 109, 44, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.5; }

/* ===== Screenshots ===== */
.screenshots-section .section-header { margin-bottom: 2rem; }
.carousel-wrapper { position: relative; }

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-block: 1rem;
  padding-inline: clamp(1rem, 5vw, 2rem);
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex-shrink: 0;
  width: 230px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.carousel-slide img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid var(--color-img-border);
  cursor: zoom-in;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.carousel-slide img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.carousel-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.carousel-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--color-surface-2); border-color: var(--color-accent); }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* Desktop: replace carousel with a flat 6-column grid */
@media (min-width: 900px) {
  .carousel-wrapper {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2rem);
  }
  .carousel-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-inline: 0;
    padding-block: 1rem;
  }
  .carousel-slide {
    width: 100%;
    scroll-snap-align: none;
  }
  .carousel-controls { display: none; }
}

/* ===== Lightbox ===== */
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: min(480px, 90vw);
  max-height: 92dvh;
  overflow: visible;
}
/* Only flex when open — avoids overriding the browser's dialog:not([open]){display:none} */
.lightbox[open] {
  display: flex;
  animation: lightbox-in 0.2s ease;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: backdrop-in 0.2s ease;
}
#lightbox-img {
  display: block;
  max-width: min(420px, 84vw);
  max-height: 84dvh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: -3.25rem; }
.lightbox-next { right: -3.25rem; }

@media (max-width: 560px) {
  .lightbox-prev { left: -2.75rem; }
  .lightbox-next { right: -2.75rem; }
  .lightbox-nav { width: 34px; height: 34px; }
}

/* ===== Privacy callout ===== */
.privacy-section {
  background: linear-gradient(135deg, rgba(46, 158, 91, 0.08) 0%, transparent 60%);
  border-top: 1px solid rgba(46, 158, 91, 0.15);
  border-bottom: 1px solid rgba(46, 158, 91, 0.15);
}
.privacy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 680px;
  margin-inline: auto;
}
.privacy-icon {
  width: 64px;
  height: 64px;
  background: rgba(46, 158, 91, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}
.privacy-icon svg { width: 30px; height: 30px; }
.privacy-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.privacy-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  width: 100%;
  max-width: 420px;
}
.privacy-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.privacy-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 0.45em;
  flex-shrink: 0;
}

/* ===== CTA Banner ===== */
.cta-banner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta-banner p { color: var(--color-text-muted); max-width: 44ch; }

/* ===== Footer ===== */
footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 2.5rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a { color: var(--color-text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--color-text); }
.footer-copy { font-size: 0.78rem; color: var(--color-text-muted); max-width: 52ch; }
.footer-disclaimer { font-size: 0.72rem; color: var(--color-text-muted); opacity: 0.6; max-width: 52ch; }

/* ===== Scroll-in animation ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: none;
  }
}
