@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

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

:root {
  --bg: #0D0D1A;
  --surface: #1A1A2E;
  --border: rgba(255,255,255,0.06);
  --accent: #FFB800;
  --text: #FFFFFF;
  --muted: #888899;
  --max-w: 1100px;
  --radius: 16px;
  --btn-radius: 50px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

p { color: var(--muted); }

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

section { padding: 48px 0; }

.section-heading {
  margin-bottom: 48px;
}

.section-heading p {
  margin-top: 12px;
  max-width: 50ch;
}

/* ── Buttons ── */

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-appstore:hover {
  background: #ffc933;
  transform: translateY(-2px);
}

.btn-appstore svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-shell,
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a,
.subpage-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a:hover,
.subpage-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.subpage-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}

.header-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .subpage-nav { display: none; }
  .header-cta { padding: 10px 16px; font-size: 0.85rem; }
}

/* On subpages mobile: show back arrow only */
@media (max-width: 768px) {
  .subpage .header-shell,
  .subpage .header-inner {
    gap: 12px;
  }
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; gap: 20px; }

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 500px;
}

.hero-phones img {
  width: 240px;
  border-radius: 24px;
  position: absolute;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}


.hero-phones .phone-left {
  transform: rotate(-6deg);
  z-index: 2;
  left: 10%;
  top: 0;
}

.hero-phones .phone-right {
  transform: rotate(6deg);
  z-index: 1;
  right: 10%;
  top: 40px;
}

@media (min-width: 769px) {
  .hero-phones .phone-left {
    left: 60px;
  }
  .hero-phones .phone-right {
    right: -60px;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-tags { justify-content: center; }
  .hero-phones img { width: 160px; }
  .hero-phones .phone-left { left: 5%; }
  .hero-phones .phone-right { right: 5%; }
}

/* ── How It Works ── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,184,0,0.2);
}

.step-number {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 { margin-bottom: 8px; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ── Screenshots Carousel ── */

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.carousel-track {
  position: relative;
  width: 280px;
  height: 540px;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-slide.slide-left {
  transform: translateX(-40px);
}

.carousel-slide img {
  width: 260px;
  border-radius: 24px;
  margin: 0 auto;
}

.carousel-slide figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 48px;
}

.carousel-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255,184,0,0.1);
  border-color: rgba(255,184,0,0.3);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s;
  cursor: pointer;
}

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

@media (max-width: 768px) {
  .carousel-slide img { width: 220px; }
  .carousel-track { width: 240px; height: 460px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
}

/* ── Why It Works ── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,184,0,0.2);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.why-card h3 { margin-bottom: 8px; }

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item.open { border-color: rgba(255,184,0,0.2); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Download CTA ── */

.download-cta {
  text-align: center;
  border-top: 1px solid var(--border);
}

.download-cta p {
  margin: 12px 0 28px;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Subpage Content (privacy, terms, support) ── */

.page-content {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.page-content h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-content .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.page-content h2 { font-size: 1.25rem; margin: 32px 0 10px; }
.page-content p { margin-bottom: 14px; line-height: 1.7; }
.page-content ul { margin: 10px 0 14px 20px; }
.page-content ul li { color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.page-content a { color: var(--accent); }
.page-content a:hover { text-decoration: underline; }

.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.support-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.support-card h3 { margin-bottom: 8px; }
.support-card p { font-size: 0.9rem; margin-bottom: 16px; }

.btn-support {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: var(--btn-radius);
  transition: background 0.2s;
}

.btn-support:hover { background: #ffc933; }
