/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0A0A0A;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --text-primary: #F5F5F5;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.3);
  --accent: #E8923A;
  --cta-bg: #FFFFFF;
  --cta-text: #0A0A0A;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* === Layout === */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand svg {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* === Hero (mobile-first) === */
.hero {
  text-align: center;
  padding: 48px 0 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

/* === App Store Button === */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.app-store-btn:hover {
  opacity: 0.9;
}

.app-store-btn svg {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
}

/* === Screenshots (mobile-first) === */
.screenshots {
  padding: 20px 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.screenshots-row {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-end;
  min-width: min-content;
  padding: 20px 20px 0;
}

.screenshots-row img {
  width: 140px;
  height: auto;
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.screenshots-row img:hover {
  opacity: 0.85;
}

.screenshots-row img.featured {
  width: 160px;
  transform: translateY(-12px);
}

/* === Screenshot Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox.active {
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  flex-shrink: 0;
}

.lightbox-counter {
  font-size: 14px;
  color: var(--text-tertiary);
}

.lightbox-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.lightbox-body {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  display: flex;
  align-items: center;
}

.lightbox-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  padding: 0 20px;
}

.lightbox-slide img {
  max-height: 80vh;
  max-width: 100%;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  flex-shrink: 0;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.lightbox-dot.active {
  background: var(--accent);
}

/* === Features (mobile-first: single column) === */
.features {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.features .eyebrow,
.features h2 {
  text-align: center;
}

.features h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === CTA === */
.cta {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta .subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* === Content Pages (Privacy, Support) === */
.content-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-section a:hover {
  opacity: 0.85;
}

.page-header {
  padding: 40px 0 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-header .date {
  font-size: 14px;
  color: var(--text-tertiary);
}

.content-section {
  margin-bottom: 32px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.content-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
}

.content-section p,
.content-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.content-section ul {
  list-style: none;
  padding: 0;
}

.content-section ul li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* === Contact Card === */
.contact-card {
  background: rgba(232, 146, 58, 0.08);
  border: 1px solid rgba(232, 146, 58, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  word-break: break-all;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card .response-time {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* === FAQ === */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Tablet and up (min-width: 600px) === */
@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 16px 0;
  }

  .nav-brand svg {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .nav-brand span {
    font-size: 20px;
  }

  .nav-links {
    gap: 28px;
    font-size: 14px;
  }

  .hero {
    padding: 60px 0 32px;
  }

  .eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: -0.75px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .screenshots {
    padding: 20px 0 50px;
  }

  .screenshots-row {
    gap: 14px;
    padding: 20px 24px 0;
  }

  .screenshots-row img {
    width: 160px;
    border-radius: 12px;
  }

  .screenshots-row img.featured {
    width: 180px;
    transform: translateY(-16px);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .features {
    padding: 48px 0;
  }

  .features h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .cta {
    padding: 48px 0;
  }

  .cta h2 {
    font-size: 26px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .page-header {
    padding: 48px 0 36px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .faq summary {
    padding: 20px 24px;
    font-size: 16px;
  }

  .faq .faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
  }

  .contact-card {
    padding: 28px;
  }

  .contact-card a {
    font-size: 18px;
    word-break: normal;
  }
}

/* === Desktop (min-width: 900px) === */
@media (min-width: 900px) {
  .hero {
    padding: 80px 0 40px;
  }

  .eyebrow {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .hero .subtitle {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .screenshots {
    padding: 20px 0 60px;
    overflow-x: visible;
  }

  .screenshots-row {
    justify-content: center;
    gap: 16px;
  }

  .screenshots-row img {
    width: 200px;
  }

  .screenshots-row img.featured {
    width: 220px;
    transform: translateY(-20px);
  }

  .features {
    padding: 60px 0;
  }

  .features h2 {
    font-size: 32px;
    margin-bottom: 48px;
  }

  .feature-card {
    padding: 28px;
  }

  .cta {
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 28px;
  }

  .page-header {
    padding: 60px 0 40px;
  }

  .page-header h1 {
    font-size: 36px;
  }

  .content-section {
    margin-bottom: 40px;
  }

  .content-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
}
