/* ═══════════════════════════════════════════════════════════════════
   NoteFlow — Product Page Styles
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --bg: #0a0e1a;
  --bg-light: #0f1629;
  --card: #151b2e;
  --card-border: #1e293b;
  --text: #94a3b8;
  --heading: #f1f5f9;
  --white: #ffffff;
  --green: #22c55e;
  --purple: #8b5cf6;
  --orange: #f59e0b;
  --red: #ef4444;
  --teal: #14b8a6;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; }

a { color: var(--primary-light); text-decoration: none; }

/* ─── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); background: rgba(37, 99, 235, 0.05); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ─── Navbar ─────────────────────────────────────────────────────── */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all 0.3s;
}
.navbar.scrolled { background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--card-border); padding: 10px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand span { font-size: 1.3rem; font-weight: 800; color: var(--white); }
.nav-logo {
  width: 36px; height: 36px; background: var(--primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 6px;
}
.nav-logo svg { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-direction: column; justify-content: space-between;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ─── Hero ───────────────────────────────────────────────────────── */

.hero {
  padding: 140px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(37, 99, 235, 0.1); color: var(--primary-light);
  padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px; border: 1px solid rgba(37, 99, 235, 0.2);
}
.hero h1 { font-size: 3.2rem; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; line-height: 1.7; margin-bottom: 32px; max-width: 520px; color: var(--text); }
.hero-ctas { display: flex; gap: 16px; margin-bottom: 16px; }
.hero-note { font-size: 0.82rem; color: #64748b; }

/* ─── App Preview (Hero visual) ──────────────────────────────────── */

.hero-visual { position: relative; z-index: 1; }
.app-preview {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}
.preview-header {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: #1a2038; border-bottom: 1px solid var(--card-border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }
.preview-title { color: var(--heading); font-weight: 700; font-size: 0.85rem; }
.preview-tabs {
  display: flex; gap: 0; background: #1a2038; border-bottom: 1px solid var(--card-border);
  padding: 0 16px; font-size: 0.75rem;
}
.preview-tabs span { padding: 10px 16px; color: var(--text); cursor: default; }
.preview-tabs span.active { color: var(--white); border-bottom: 2px solid var(--primary); }
.preview-body { padding: 24px; }
.preview-statement { background: var(--white); border-radius: 8px; padding: 24px; color: #1e293b; }
.preview-company { text-align: center; font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.preview-stitle { text-align: center; color: #64748b; font-size: 0.85rem; margin-bottom: 2px; }
.preview-period { text-align: center; color: #94a3b8; font-size: 0.75rem; margin-bottom: 16px; }
.preview-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.8rem; border-bottom: 1px solid #f1f5f9; }
.preview-line .preview-section { font-weight: 700; font-size: 0.7rem; letter-spacing: 0.05em; color: var(--primary); }
.preview-line.total { font-weight: 700; border-top: 1px solid #cbd5e1; border-bottom: 1px solid #cbd5e1; }
.preview-line.highlight { background: #eff6ff; margin: 0 -24px; padding: 6px 24px; }
.preview-amt { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem; }

/* ─── Trust Bar ──────────────────────────────────────────────────── */

.trust-bar { padding: 40px 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text); }
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ─── Section Headers ────────────────────────────────────────────── */

.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-header p { font-size: 1.05rem; color: var(--text); }

/* ─── Features ───────────────────────────────────────────────────── */

.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 28px; transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(37, 99, 235, 0.3); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon.blue { background: rgba(37, 99, 235, 0.12); color: var(--primary-light); }
.feature-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.feature-icon.orange { background: rgba(245, 158, 11, 0.12); color: var(--orange); }
.feature-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.feature-icon.teal { background: rgba(20, 184, 166, 0.12); color: var(--teal); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; line-height: 1.6; }

/* ─── How It Works ───────────────────────────────────────────────── */

.how-it-works { padding: 100px 0; background: var(--bg-light); }
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 20px; }
.step {
  flex: 1; max-width: 320px; background: var(--card); border: 1px solid var(--card-border);
  border-radius: 12px; padding: 32px; text-align: center;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  color: var(--white); font-size: 1.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 12px; }
.step p { font-size: 0.88rem; line-height: 1.6; }
.step-arrow { display: flex; align-items: center; padding-top: 60px; color: #334155; }

/* ─── Pricing ────────────────────────────────────────────────────── */

.pricing { padding: 100px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 14px;
  padding: 36px 28px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 40px rgba(37, 99, 235, 0.15); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); font-size: 0.7rem; font-weight: 700;
  padding: 4px 16px; border-radius: 12px;
}
.price-name { font-size: 1.2rem; font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.price-desc { font-size: 0.82rem; color: var(--text); margin-bottom: 20px; }
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--heading); margin-bottom: 24px; }
.price-amount span { font-size: 1rem; font-weight: 400; color: var(--text); }
.price-features { list-style: none; flex: 1; margin-bottom: 28px; }
.price-features li {
  padding: 8px 0; font-size: 0.88rem; border-bottom: 1px solid var(--card-border);
  position: relative; padding-left: 24px;
}
.price-features li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* ─── FAQ ─────────────────────────────────────────────────────────── */

.faq { padding: 100px 0; background: var(--bg-light); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--card-border); border-radius: 10px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-weight: 600; font-size: 0.95rem; color: var(--heading);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--text); font-weight: 300; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 18px; font-size: 0.9rem; line-height: 1.7; }

/* ─── CTA Section ────────────────────────────────────────────────── */

.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}
.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section > .container > p { font-size: 1.05rem; margin-bottom: 32px; }
.cta-note { font-size: 0.82rem; color: #64748b; margin-top: 16px; }

/* ─── Footer ─────────────────────────────────────────────────────── */

.footer { padding: 60px 0 32px; border-top: 1px solid var(--card-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; color: var(--heading); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--card-border); padding-top: 24px; text-align: center; font-size: 0.82rem; color: #475569; }

/* ─── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { max-width: 580px; margin: 40px auto 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--card-border); }
  .nav-links.open { display: flex; }
  .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); padding: 0; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .trust-items { gap: 20px; }
  .trust-item { font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.6rem; }
  .preview-tabs span { padding: 8px 8px; font-size: 0.65rem; }
}
