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

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f5f7;
  --color-surface-alt: #e8e8ed;
  --color-border: #d2d2d7;
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #aeaeb2;
  --color-accent: #0066cc;
  --color-accent-hover: #0055aa;
  --color-hero-bg: #0a0a0f;
  --color-hero-text: #f5f5f7;
  --color-hero-sub: #a1a1aa;
  --color-card-bg: #ffffff;
  --color-card-border: rgba(0,0,0,0.08);
  --color-strip-bg: #f5f5f7;
  --color-privacy-bg: #e8f0fa;
  --color-cta-bg: #0a0a0f;
  --color-cta-text: #f5f5f7;
  --color-footer-bg: #1d1d1f;
  --color-footer-text: #a1a1aa;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-device: 0 32px 80px rgba(0,0,0,0.28), 0 8px 24px rgba(0,0,0,0.16);
  --nav-height: 64px;
  --max-width: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #000000;
    --color-surface: #111111;
    --color-surface-alt: #1c1c1e;
    --color-border: #2c2c2e;
    --color-text: #f5f5f7;
    --color-text-secondary: #98989d;
    --color-text-tertiary: #636366;
    --color-accent: #2997ff;
    --color-accent-hover: #5badff;
    --color-card-bg: #1c1c1e;
    --color-card-border: rgba(255,255,255,0.08);
    --color-strip-bg: #111111;
    --color-privacy-bg: #0c1929;
    --color-cta-bg: #0a0a0f;
    --color-footer-bg: #0a0a0a;
    --shadow-card: 0 2px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  }
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* ===== LAYOUT HELPERS ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border);
}
@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(0,0,0,0.82);
  }
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background 0.15s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--color-accent-hover) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--color-border); }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
}

/* ===== HERO ===== */
.hero {
  background: var(--color-hero-bg);
  min-height: calc(100svh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}
.hero-badge {
  display: inline-block;
  background: rgba(41, 151, 255, 0.15);
  border: 1px solid rgba(41, 151, 255, 0.3);
  color: #2997ff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-hero-text);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #2997ff 0%, #5ac8fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-hero-sub);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero device mockup */
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
}
.device-frame {
  position: relative;
  width: min(280px, 45vw);
  background: #1c1c1e;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(255,255,255,0.08);
}
.device-frame img {
  border-radius: 34px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px 56px;
    text-align: center;
    gap: 40px;
  }
  .hero-content { order: 1; }
  .hero-device { order: 2; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .device-frame { width: min(220px, 60vw); }
}

/* Override hero background to full-bleed */
body > .hero {
  max-width: 100%;
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

/* ===== BUTTONS ===== */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2997ff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.35);
}
.btn-appstore:hover {
  background: #5badff;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(41, 151, 255, 0.45);
}
.btn-appstore--large {
  font-size: 1.1rem;
  padding: 18px 32px;
}
.btn-ghost {
  color: var(--color-hero-sub);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 0;
  transition: color 0.15s;
}
.btn-ghost:hover { color: #fff; }

/* ===== TAGLINE STRIP ===== */
.tagline-strip {
  background: var(--color-strip-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  overflow: hidden;
}
.tagline-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.tagline-inner .sep { color: var(--color-text-tertiary); }

/* ===== FEATURES ===== */
.features {
  padding: 96px 0;
  background: var(--color-bg);
}
.features > .section-inner { display: flex; flex-direction: column; gap: 48px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
}
.feature-card--wide {
  grid-column: span 2;
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  padding: 96px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.screenshots > .section-inner { display: flex; flex-direction: column; gap: 48px; }

.screenshots-scroll {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.screenshot-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.screenshot-item img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(0,0,0,0.22), 0 4px 12px rgba(0,0,0,0.12);
}
.screenshot-item figcaption {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
}

@media (max-width: 900px) {
  .screenshots-scroll {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}
@media (max-width: 560px) {
  .screenshots-scroll {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

/* Platform sub-heading inside the screenshots section */
.screenshots-platform {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0;
}
.screenshots-platform + .screenshots-scroll,
.screenshots-platform + .screenshots-mac { margin-top: -24px; }

/* Mac shots are landscape (16:10), so they get a 2-column grid that
   collapses to 1 column on narrow viewports — never the 6-column phone
   layout. */
.screenshots-mac {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.screenshot-item-mac img {
  border-radius: 14px;
}
@media (max-width: 720px) {
  .screenshots-mac { grid-template-columns: 1fr; }
}

/* ===== PRIVACY CALLOUT ===== */
.privacy-callout {
  padding: 80px 0;
  background: var(--color-privacy-bg);
}
.privacy-callout-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}
.privacy-icon { font-size: 3.5rem; line-height: 1; }
.privacy-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.privacy-text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 16px;
}
.link-underline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .privacy-callout-inner { grid-template-columns: 1fr; text-align: center; }
  .privacy-icon { text-align: center; }
  .privacy-text p { margin-left: auto; margin-right: auto; }
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
  padding: 112px 0;
  background: var(--color-cta-bg);
  text-align: center;
}
.download-cta .section-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.download-cta h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-cta-text);
}
.download-cta p {
  font-size: 1.1rem;
  color: #a1a1aa;
  max-width: 440px;
}
.cta-note {
  font-size: 0.8rem !important;
  color: #636366 !important;
  margin-top: -4px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-footer-bg);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.footer-brand strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f5f7;
}
.footer-brand span {
  font-size: 0.8rem;
  color: var(--color-footer-text);
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.85rem;
  color: var(--color-footer-text);
  transition: color 0.15s;
}
.footer-nav a:hover { color: #f5f5f7; }
.footer-copy {
  width: 100%;
  font-size: 0.8rem;
  color: #48484a;
  margin-top: 8px;
}
.footer-copy a {
  color: var(--color-footer-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copy a:hover { color: #f5f5f7; }

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: var(--color-hero-bg);
  padding: 72px 24px 64px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-hero-text);
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--color-hero-sub);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== PROSE CONTENT ===== */
.prose-section {
  padding: 72px 0;
  background: var(--color-bg);
}
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--color-text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.prose p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.75;
}
.prose li { margin-bottom: 6px; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--color-text); font-weight: 600; }
.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* ===== SUPPORT CARDS ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.support-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}
.support-card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.support-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.support-card p { font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.6; margin: 0; }

/* ===== FAQ ===== */
.faq-list { margin-top: 40px; }
.faq-item {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== 404 ===== */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}
.not-found .emoji { font-size: 4rem; }
.not-found h1 { font-size: 2rem; font-weight: 800; }
.not-found p { color: var(--color-text-secondary); max-width: 380px; }
