/* ================================================
   theme.css — FlowPostHub Design System
   Light mode default, dark mode via .dark class
   ================================================ */

:root {
  /* ── Color tokens (LIGHT MODE DEFAULT) ── */
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-card: #f0f2f5;
  --bg-elevated: #e8ebf0;
  --bg-hover: #dde1e8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim: rgba(59, 130, 246, 0.10);
  --accent-glow: rgba(59, 130, 246, 0.22);
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-subtle: #94a3b8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.18s ease;

  /* Platform colors (unchanged between themes) */
  --li: #0a66c2;
  --tw: #1a1a1a;
  --ig: #e1306c;
  --fb: #1877f2;
}

/* ── DARK MODE ── */
.dark,
[data-theme="dark"] {
  --bg: #080b14;
  --bg-subtle: #0d1117;
  --bg-card: #111827;
  --bg-elevated: #161d2e;
  --bg-hover: #1c2438;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.25);
  --fg: #f1f5f9;
  --fg-muted: #8892a4;
  --fg-subtle: #4b5563;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* ── THEME TOGGLE BUTTON ─────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--border-strong);
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}
.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 450;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition), transform 0.1s;
  letter-spacing: -0.1px;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}
/* Subtle radial gradient in background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 0%, rgba(59,130,246,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow { margin-bottom: 24px; }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: #3b82f6;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-headline .accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
  letter-spacing: -0.2px;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--fg);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.platform-badge {
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* Hero demo card */
.hero-demo { margin-top: 60px; position: relative; }
.compose-window {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  margin: 0 auto;
}
.compose-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}
.compose-title { font-weight: 600; font-size: 13px; color: var(--fg); letter-spacing: -0.1px; }
.compose-count {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.compose-body { padding: 18px 20px; }
.compose-text { font-size: 13px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 14px; font-style: italic; }
.compose-ai-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 0;
}
.ai-label { font-size: 12px; color: var(--fg-muted); }
.ai-check { font-size: 10px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.compose-platforms { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.platform-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.platform-row:hover { background: var(--bg-elevated); }
.plat-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.plat-icon.li { background: var(--li); }
.plat-icon.tw { background: var(--tw); border: 1px solid #333; }
.plat-icon.ig { background: var(--ig); }
.plat-icon.fb { background: var(--fb); }
.plat-name { flex: 1; font-size: 13px; color: var(--fg-muted); }
.plat-status { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.plat-status.ready { color: #22c55e; }
.compose-cta {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  padding: 11px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.2px;
  text-decoration: none;
  text-align: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.compose-cta:hover { background: var(--accent-hover); box-shadow: 0 4px 16px var(--accent-glow); }

/* ── SOCIAL PROOF STRIP ───────────────────────────────────── */
.demo-strip {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.demo-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.demo-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.demo-num { font-size: 38px; font-weight: 700; color: var(--fg); letter-spacing: -1.5px; line-height: 1; }
.demo-num .accent { color: var(--accent); }
.demo-label { font-size: 13px; color: var(--fg-muted); font-weight: 450; }
.demo-divider { width: 1px; height: 48px; background: var(--border); }

/* ── MANIFESTO ─────────────────────────────────────────────── */
.manifesto { padding: 100px 32px; }
.manifesto-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.manifesto-headline { font-size: clamp(24px, 3vw, 36px); color: var(--fg); margin-bottom: 28px; letter-spacing: -1px; line-height: 1.2; font-weight: 650; }
.manifesto-body { font-size: 16px; color: var(--fg-muted); line-height: 1.85; margin-bottom: 14px; }

/* ── FEATURES ──────────────────────────────────────────────── */
.features {
  padding: 80px 32px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 16px; display: block; }
.section-headline { font-size: 32px; font-weight: 700; color: var(--fg); letter-spacing: -1px; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--fg-muted); margin-bottom: 56px; max-width: 520px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform 0.15s, box-shadow var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.feature-card h3 { font-size: 15px; font-weight: 650; color: var(--fg); margin-bottom: 8px; letter-spacing: -0.2px; }
.feature-card p { font-size: 13px; color: var(--fg-muted); line-height: 1.6; }

/* ── PLATFORMS ─────────────────────────────────────────────── */
.platforms { padding: 80px 32px; }
.platforms-inner { max-width: 1100px; margin: 0 auto; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform 0.15s;
}
.platform-item:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.platform-item span { font-size: 12px; color: var(--fg-muted); font-weight: 500; }
.platform-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
}
.platform-logo.linkedin { background: var(--li); }
.platform-logo.twitter { background: var(--tw); border: 1px solid #333; }
.platform-logo.instagram { background: var(--ig); }
.platform-logo.facebook { background: var(--fb); }

/* ── CLOSING / CTA ─────────────────────────────────────────── */
.closing { padding: 100px 32px; border-top: 1px solid var(--border); text-align: center; }
.closing-inner { max-width: 600px; margin: 0 auto; }
.closing-headline { font-size: clamp(26px, 4vw, 44px); color: var(--fg); margin-bottom: 18px; letter-spacing: -1.5px; font-weight: 700; }
.closing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 40px; }
.closing-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 8px; }
.price-tag { font-size: 52px; font-weight: 700; color: var(--fg); letter-spacing: -2px; }
.price-period { font-size: 18px; color: var(--fg-muted); font-weight: 400; }
.price-note { font-size: 13px; color: var(--fg-subtle); margin-top: 8px; }
.closing-cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
}
.closing-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.closing-cta-sub { display: block; margin-top: 14px; font-size: 13px; color: var(--fg-subtle); }
.closing-cta-sub a { color: var(--fg-muted); text-decoration: none; }
.closing-cta-sub a:hover { color: var(--fg); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { padding: 40px 32px; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--fg); }
.footer-tagline { font-size: 13px; color: var(--fg-subtle); }
.footer-meta { font-size: 12px; color: var(--fg-subtle); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-inner { gap: 24px; }
  .demo-divider { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-links .nav-link { display: none; }
  .hero { padding: 90px 20px 60px; }
  .hero-headline { font-size: 38px; }
  .features-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-price { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}