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

:root {
  --bg:          #FAFAF8;
  --surface:     #FFFFFF;
  --text:        #1A1914;
  --text-muted:  #6B6B5E;
  --accent:      #D97706;
  --accent-light:#FEF3C7;
  --border:      #E5E4DC;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 24px rgba(0,0,0,.07);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.12);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.02em;
}

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

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { opacity: 1; transform: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-small {
  background: var(--surface);
  color: var(--text);
  padding: 8px 18px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.btn-large {
  font-size: 17px;
  padding: 16px 32px;
}

/* ─────────────────────────────────────────
   Nav
───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
}
.hero-logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 8px;
  display: block;
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--text-muted); }

/* ─────────────────────────────────────────
   Phone mockup
───────────────────────────────────────── */
.hero-mockups {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
}

.mockup {
  position: relative;
  display: inline-block;
}
.mockup-center {
  width: 240px;
}
.mockup-small {
  width: 160px;
}

.mockup-screen {
  position: relative;
  background: var(--surface);
  border-radius: 36px;
  border: 6px solid #1A1914;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 9/19.5;
}
.mockup-small .mockup-screen {
  border-radius: 28px;
  border-width: 5px;
}

.mockup-screen .screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* shown only while real screenshot is absent */
.mockup-screen .screenshot[src=""] + .mockup-placeholder,
.mockup-screen:not(:has(img[src])) .mockup-placeholder {
  display: flex;
}
.mockup-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.mockup-placeholder small {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
}

/* fallback: show placeholder when image fails to load */
.screenshot { display: block; }
.screenshot:not([src]), .screenshot[src=""] { display: none; }
.screenshot:not([src]) ~ .mockup-placeholder,
.screenshot[src=""] ~ .mockup-placeholder { display: flex; }

/* ─────────────────────────────────────────
   Features
───────────────────────────────────────── */
.features {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 56px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─────────────────────────────────────────
   Screenshots
───────────────────────────────────────── */
.screenshots {
  padding: 96px 0;
}
.screenshots h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 56px;
}
.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.screenshot-item figcaption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

/* ─────────────────────────────────────────
   Privacy
───────────────────────────────────────── */
.privacy {
  background: var(--accent-light);
  border-top: 1px solid #FBBF24;
  border-bottom: 1px solid #FBBF24;
  padding: 72px 0;
}
.privacy-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.privacy-icon {
  font-size: 48px;
  flex-shrink: 0;
  line-height: 1;
}
.privacy-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #92400E;
}
.privacy-text p {
  font-size: 16px;
  color: #78350F;
  line-height: 1.75;
  max-width: 640px;
}
.privacy-text strong { font-weight: 700; }

/* ─────────────────────────────────────────
   Download CTA
───────────────────────────────────────── */
.download {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.download h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}
.download > .download-inner > p {
  font-size: 17px;
  color: var(--text-muted);
}
.download-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -4px;
}
.download-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub { max-width: 100%; margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-mockups { margin-top: 8px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-inner {
    flex-direction: column;
    text-align: center;
  }
  .privacy-text p { max-width: 100%; }

  .footer-inner { justify-content: center; text-align: center; }
}

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

  .screenshots-row { gap: 24px; }
  .mockup-small { width: 130px; }
}