/* ═══════════════════════════════════════════════
   DRUIDIC DEV — Shared Styles
   ═══════════════════════════════════════════════ */

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

:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EFEB;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #9A9A9A;
  --accent: #2D5A3D;
  --accent-light: #3A7A52;
  --accent-glow: #2D5A3D15;
  --border: #E5E4E0;
  --border-strong: #D0CFC9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,250,248,0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s ease; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px; border-radius: 100px;
  font-size: 0.8125rem !important; font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.nav-cta:hover { background: var(--accent-light) !important; transform: translateY(-1px); }

/* ─── LAYOUT ─── */
section { padding: 100px 32px; }
.container { max-width: 1200px; margin: 0 auto; }

/* ─── TYPOGRAPHY ─── */
.section-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.15;
  letter-spacing: -0.03em; color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}

/* ─── PAGE HERO (used on pricing, about) ─── */
.page-hero { padding: 140px 32px 60px; text-align: center; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.04em; margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p {
  font-size: 1.2rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(45,90,61,0.25);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(45,90,61,0.3); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-light); transform: translateY(-2px); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 12px rgba(45,90,61,0.3);
}
.btn-accent:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(45,90,61,0.35); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text-light); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ─── FEATURE CARDS (used on product pages) ─── */
.features { padding: 100px 32px; background: var(--bg-alt); }
.features-inner { max-width: 1200px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-subtitle { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ─── PRODUCT HERO (used on lore-keeper, discord-recorder) ─── */
.product-hero { padding: 140px 32px 80px; position: relative; overflow: hidden; }
.product-hero::before {
  content: ''; position: absolute;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}
.product-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; position: relative;
}
.product-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(45,90,61,0.2);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 24px;
}
.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.04em; margin-bottom: 20px;
}
.product-hero h1 em { font-style: italic; color: var(--accent); }
.product-hero-text > p {
  font-size: 1.125rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 32px; max-width: 480px;
}
.product-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ─── PRODUCT PREVIEW WINDOW ─── */
.product-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-lg);
}
.preview-window {
  background: #1E1B2E; border-radius: var(--radius-sm);
  padding: 24px; min-height: 340px;
  display: flex; flex-direction: column; gap: 16px;
}
.preview-bar { display: flex; gap: 6px; margin-bottom: 8px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #FF5F57; }
.preview-dot:nth-child(2) { background: #FFBD2E; }
.preview-dot:nth-child(3) { background: #28C840; }

/* ─── CTA SECTION (used on product pages) ─── */
.cta-section { padding: 100px 32px; background: var(--bg-alt); }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; margin-bottom: 16px; letter-spacing: -0.03em;
}
.cta-inner p { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.cta-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ─── PRICING CARDS ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; max-width: 500px; margin: 0 auto; padding: 0 32px 100px;
}
.pricing-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px; position: relative;
  transition: all 0.3s ease;
}
.pricing-features {
  text-align: left;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent);
}
.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 16px; border-radius: 100px;
}
.pricing-icon {
  width: 56px; height: 56px; border-radius: 14px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pricing-icon.lk { background: #EEF2FF; color: #4F46E5; }
.pricing-icon.dr { background: #EDE9FE; color: #7C3AED; }
.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 600; margin-bottom: 4px;
}
.pricing-card .subtitle { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 20px; }
.pricing-card .price {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 700;
  letter-spacing: -0.04em; 
  margin-top: -20px;
  margin-bottom: 4px;
}
.pricing-card .price sup { font-size: 1.25rem; vertical-align: super; margin-right: 2px; }
.pricing-card .price-note { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  font-size: 0.9375rem; color: var(--text-muted);
  padding: 8px 0; display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before {
  content: "\2713"; color: var(--accent);
  font-weight: 700; font-size: 0.875rem;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow); border-radius: 50%; flex-shrink: 0;
}
.pricing-btn {
  display: block; width: 100%; padding: 14px;
  border-radius: 100px; font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  transition: all 0.2s ease;
}
.pricing-btn:hover { border-color: var(--text-light); }
.pricing-card.featured .pricing-btn {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(45,90,61,0.25);
}
.pricing-card.featured .pricing-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px rgba(45,90,61,0.3);
}

/* ─── FORMS ─── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8125rem;
  font-weight: 600; color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem; color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease;
}
.form-submit:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ─── FAQ ─── */
.faq { background: var(--bg-alt); }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px; margin-bottom: 12px;
}
.faq-item h4 {
  font-family: var(--font-display);
  font-size: 1.0625rem; font-weight: 600; margin-bottom: 8px;
}
.faq-item p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.65; }

/* ─── FOOTER ─── */
footer { padding: 40px 32px; border-top: 1px solid var(--border); text-align: center; }
footer p { font-size: 0.8125rem; color: var(--text-light); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a {
  font-size: 0.8125rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ─── ANIMATIONS ─── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  section { padding: 72px 20px; }
  .page-hero { padding: 120px 20px 40px; }
  .product-hero { padding: 120px 20px 60px; }
  .product-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .features, .cta-section { padding: 72px 20px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; padding: 0 20px 72px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
