/* ============================================================
   LexiFlow Product Landing Pages — Base Shared Styles
   ============================================================ */

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0d1f33;
  --accent: #c9a84c;
  --accent-light: #e2c96e;
  --accent-dark: #a88a30;
  --text-dark: #1a1a2e;
  --text-muted: #6b7280;
  --text-light: #f8fafc;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --bg-dark: #0d1f33;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1100px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-light);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; color: var(--primary); }
.nav-logo-icon { width: 32px; height: 32px; background: var(--primary); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; background: var(--accent); color: var(--primary-dark) !important;
  font-weight: 600; border-radius: var(--radius);
  transition: all 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }

/* --- Hero --- */
.hero {
  padding: 120px 0 70px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 60%; height: 160%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 {
  font-family: var(--font-serif); font-size: 2.75rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em;
}
.hero-content h1 .highlight { color: var(--accent); }
.hero-content .subtitle { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 500px; }
.hero-badges { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 100px;
  font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--text-light); border: 2px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(20px); width: 100%;
}

/* --- Section Commons --- */
.section { padding: 85px 0; }
.section-alt { background: var(--bg-white); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-label {
  display: inline-block; padding: 4px 14px;
  background: rgba(201,168,76,0.12); color: var(--accent-dark);
  font-size: 0.78rem; font-weight: 600; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700;
  color: var(--primary); line-height: 1.2; margin-bottom: 14px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* --- Features Grid (2-col) --- */
.features-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all 0.3s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); border-color: var(--accent); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: rgba(26,58,92,0.08); color: var(--primary);
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* --- Benefits list --- */
.benefits-list { list-style: none; margin: 20px 0; }
.benefits-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 0.95rem; color: var(--text-dark);
}
.benefits-list li::before { content: '✓'; color: var(--accent-dark); font-weight: 700; flex-shrink: 0; }

/* --- Lead Magnet Box --- */
.lead-magnet {
  background: linear-gradient(135deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.02) 100%);
  border: 2px solid var(--accent); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; margin: 36px 0;
}
.lead-magnet h3 { font-family: var(--font-serif); font-size: 1.4rem; color: var(--primary); margin-bottom: 8px; }
.lead-magnet p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.lead-magnet-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.lead-magnet-form input {
  flex: 1; min-width: 200px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.92rem; font-family: inherit; outline: none;
}
.lead-magnet-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.lead-magnet .btn { flex-shrink: 0; }

/* --- CTA Section --- */
.cta-section {
  padding: 85px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-light); text-align: center;
}
.cta-section h2 { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; margin-bottom: 14px; }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Stats Bar --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 50px 0; text-align: center;
}
.stat h4 { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.stat p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }

/* --- Footer --- */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.7);
  padding: 40px 0 28px;
}
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.82rem; }

/* --- Testimonial --- */
.testimonial {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  margin: 24px 0;
}
.testimonial-stars { color: var(--accent); font-size: 1rem; margin-bottom: 10px; }
.testimonial-text { font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; font-style: italic; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.testimonial-name { font-size: 0.85rem; font-weight: 600; color: var(--primary); }
.testimonial-role { font-size: 0.76rem; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-content h1 { font-size: 2.3rem; }
  .features-grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 0 50px; }
  .hero-content h1 { font-size: 1.9rem; }
  .section-header h2 { font-size: 1.8rem; }
  .cta-section h2 { font-size: 1.9rem; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer .container { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .lead-magnet-form { flex-direction: column; }
  .lead-magnet-form input { min-width: auto; }
}