/* =============================================
   FlashNote Site — Shared Styles
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #000;
  color: #f5f5f7;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.light-bg { background: #f5f5f7; color: #1d1d1f; }
main { flex: 1; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.light-bg .site-nav {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f5f5f7;
}
.light-bg .nav-logo { color: #1d1d1f; }
.nav-logo-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 16px; height: 16px; fill: white; }
.nav-logo span { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: rgba(245,245,247,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.light-bg .nav-links a { color: rgba(29,29,31,0.65); }
.nav-links a:hover { color: #f5f5f7; }
.light-bg .nav-links a:hover { color: #1d1d1f; }

.lang-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  color: rgba(245,245,247,0.5);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
  margin-left: 8px;
}
.light-bg .lang-pill { color: rgba(29,29,31,0.5); border-color: rgba(0,0,0,0.15); }
.lang-pill:hover { color: #f5f5f7; border-color: rgba(255,255,255,0.3); }
.light-bg .lang-pill:hover { color: #1d1d1f; border-color: rgba(0,0,0,0.3); }

/* ── Footer ── */
.site-footer {
  padding: 48px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.light-bg .site-footer { border-top: 1px solid rgba(0,0,0,0.08); }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 14px; height: 14px; fill: white; }
.footer-logo span { font-size: 14px; font-weight: 600; }
.light-bg .footer-logo span { color: #1d1d1f; }
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }
.footer-links a {
  font-size: 14px;
  color: rgba(245,245,247,0.6);
  text-decoration: none;
}
.light-bg .footer-links a { color: rgba(29,29,31,0.6); }
.footer-links a:hover { color: #f5f5f7; }
.light-bg .footer-links a:hover { color: #1d1d1f; }
footer p { font-size: 13px; color: rgba(245,245,247,0.4); }
.light-bg footer p { color: rgba(29,29,31,0.4); }

/* ── Marketing page sections ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, #1a1a2e 0%, #000 60%);
}
.hero-icon {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(0,122,255,0.3);
}
.hero-icon svg { width: 52px; height: 52px; fill: white; }
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 30%, #a0a0a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline {
  font-size: 24px;
  color: rgba(245,245,247,0.6);
  font-weight: 400;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}
.hero-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #007AFF;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.badge:hover { background: #005FCC; transform: translateY(-2px); }
.badge svg { width: 22px; height: 22px; fill: white; }
.badge-sub { font-size: 11px; font-weight: 400; opacity: 0.8; line-height: 1.2; }
.badge-coming {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  color: rgba(245,245,247,0.6);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}
.badge-coming svg { width: 22px; height: 22px; fill: rgba(245,245,247,0.5); }

.section-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 16px;
}
.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 64px;
}

.screenshots {
  padding: 100px 24px;
  background: #000;
}
.screenshots-light {
  padding: 100px 24px;
  background: #f5f5f7;
}
.screenshot-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 24px;
  justify-content: center;
}
.screenshot-grid img {
  flex: 0 0 auto;
  height: 400px;
  width: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: contain;
}
.screenshots-light .screenshot-grid img {
  border-color: rgba(0,0,0,0.1);
}

.features {
  padding: 100px 24px;
  background: #f5f5f7;
  color: #1d1d1f;
}
.features-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.feature-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 26px; height: 26px; fill: white; }
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.3px; }
.feature-card p { font-size: 15px; color: #86868b; line-height: 1.6; }

.highlight {
  padding: 120px 24px;
  background: #000;
  text-align: center;
}
.highlight-inner { max-width: 720px; margin: 0 auto; }
.highlight h2 { font-size: 48px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 24px; }
.highlight p { font-size: 20px; color: rgba(245,245,247,0.6); line-height: 1.7; margin-bottom: 48px; }
.highlight-visual {
  width: 100%; max-width: 860px;
  background: #0a0a1a;
  border-radius: 24px; margin: 0 auto; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.highlight-visual img { width: 100%; height: auto; display: block; }

.privacy-note {
  padding: 80px 24px;
  background: #f5f5f7;
  color: #1d1d1f;
  text-align: center;
}
.privacy-note-inner { max-width: 560px; margin: 0 auto; }
.privacy-note h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 16px; }
.privacy-note p { font-size: 16px; color: #86868b; margin-bottom: 32px; }
.privacy-note a { font-size: 15px; color: #007AFF; text-decoration: none; }
.privacy-note a:hover { text-decoration: underline; }

/* ── Simple pages (support / privacy) ── */
main { flex: 1; display: flex; flex-direction: column; }
.simple-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  background: #f5f5f7;
  color: #1d1d1f;
}
.simple-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}
.simple-card p { text-wrap: balance; }
.simple-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #007AFF, #5856D6);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.simple-logo svg { width: 40px; height: 40px; fill: white; }
.simple-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 6px; }
.simple-card .subtitle { font-size: 15px; color: #86868b; margin-bottom: 32px; }
.simple-card p { font-size: 15px; color: #1d1d1f; line-height: 1.6; margin-bottom: 24px; }
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #007AFF;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.email-btn:hover { background: #0056CC; }
.email-btn svg { width: 18px; height: 18px; fill: white; }

/* Privacy page */
.privacy-page { flex: 1; background: #f5f5f7; color: #1d1d1f; padding: 128px 24px 48px; }
.privacy-content { max-width: 680px; margin: 0 auto; }
.privacy-content h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.privacy-content .date { font-size: 14px; color: #86868b; margin-bottom: 40px; }
.privacy-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.privacy-card h2 { font-size: 17px; font-weight: 600; margin-top: 28px; margin-bottom: 10px; }
.privacy-card h2:first-child { margin-top: 0; }
.privacy-card p { font-size: 15px; line-height: 1.7; color: #3d3d3f; margin-bottom: 12px; }
.privacy-card ul { padding-left: 20px; margin: 8px 0; }
.privacy-card li { font-size: 15px; line-height: 1.7; color: #3d3d3f; margin-bottom: 6px; }
.privacy-card strong { color: #1d1d1f; }
.privacy-card a { color: #007AFF; text-decoration: none; }
.privacy-card a:hover { text-decoration: underline; }
.contact-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.contact-row svg { width: 16px; height: 16px; fill: #86868b; flex-shrink: 0; }
.contact-row a { color: #007AFF; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; letter-spacing: -1px; }
  .hero .tagline { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .highlight h2 { font-size: 32px; }
  .screenshot-grid img { height: 280px; }
}
