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

:root {
  --accent: #E8773A;
  --accent-light: #F4A261;
  --bg: #FAF8F5;
  --bg-warm: #FFF6EF;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --radius: 16px;
  --max-width: 1120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* ── Phone Frame (iPhone 17 Pro Max) ── */
.phone-frame {
  position: relative;
  /* Frame is 1470x3000, screen is 1320x2868 */
  /* Screen inset: 5.1% left, 2.2% top, 89.8% width, 95.6% height */
  filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
}

.phone-frame .phone-screen {
  position: absolute;
  top: 2.2%;
  left: 5.1%;
  width: 89.8%;
  height: 95.6%;
  border-radius: 8.5% / 4.2%;
  overflow: hidden;
}

.phone-frame .phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame .phone-bezel {
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px 100px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

.app-store-badge {
  display: inline-block;
  margin-top: 36px;
  transition: transform 0.2s ease;
}

.app-store-badge:hover { transform: scale(1.05); }

.hero-phone {
  flex: 0 0 auto;
}

.hero-phone .phone-frame {
  width: 320px;
}


/* ── Section Headers ── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── Features ── */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-warm);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots {
  padding: 80px 0 100px;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 32px;
  padding: 0 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}

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

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-item .phone-frame {
  width: 240px;
  transition: transform 0.3s ease;
}

.screenshot-item:hover .phone-frame {
  transform: translateY(-8px);
}

.screenshot-caption {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, transparent 0%, var(--bg-warm) 100%);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cta .app-store-badge { margin-top: 28px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

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

/* ── Subpages (Privacy, Terms, Support) ── */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page .page-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
}

.page p, .page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.page a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 56px;
  }

  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-phone .phone-frame { width: 280px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .nav-links { gap: 20px; font-size: 0.82rem; }
  .features-grid { grid-template-columns: 1fr; }

  .screenshots-track {
    justify-content: flex-start;
    padding: 0 20px;
  }

  .screenshot-item .phone-frame { width: 200px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
