/* ============================================
   JD SAVER — LANDING PAGE STYLES (Vercel-like Dark)
   ============================================ */

:root {
  --bg-black: #000000;
  --bg-dark: #0a0a0c;
  --bg-card: #121215;
  --bg-input: #1a1a1e;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent: #10b981;
  --accent-hover: #059669;
  --accent-glow: rgba(16, 185, 129, 0.15);
  
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.1);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 20px;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.btn-primary-nav {
  padding: 6px 14px;
  background: #fff;
  color: #000;
}

.btn-primary-nav:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-hero {
  background: #fff;
  color: #000;
  padding: 14px 28px;
  font-size: 15px;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #fff;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px auto;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
}

.hero-badge {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- Mockup Animation ---- */
.hero-mockup-wrap {
  perspective: 1200px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-mockup {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0,0,0,0.8), 0 0 40px rgba(16, 185, 129, 0.05);
  overflow: hidden;
  text-align: left;
  transform: rotateX(8deg);
  transition: transform 500ms ease;
}

.hero-mockup:hover {
  transform: rotateX(0deg);
}

.mockup-header {
  height: 38px;
  background: #111115;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.mockup-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.mockup-tab {
  margin-left: 20px;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-black);
  padding: 4px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mockup-body {
  display: flex;
  height: 340px;
}

.mockup-sidebar {
  width: 140px;
  background: #0d0d10;
  border-right: 1px solid var(--border);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m-item {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 4px;
}

.m-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

.mockup-content {
  flex: 1;
  padding: 24px;
}

.mockup-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mockup-content .meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mockup-content .chips {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.mockup-content .chips span {
  padding: 2px 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 9px;
  color: var(--text-muted);
}

.preview-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.export-row {
  display: flex;
  gap: 8px;
}

.m-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 10px;
  border-radius: var(--radius-sm);
}

.m-btn.active {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-bg);
}

/* ---- Section Common Headers ---- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #fff;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---- Card Grid Layout ---- */
.problem-section, .features-section, .how-works, .comparison-section, .pricing-section, .use-cases, .seo-section, .faq-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- How It Works ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-weight: 600;
}

.step-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 12px;
  color: var(--text-secondary);
  max-width: 250px;
  margin: 0 auto;
}

/* ---- Features Card Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
}

.f-icon {
  font-size: 20px;
  margin-bottom: 12px;
  display: block;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Comparison Table ---- */
.table-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.compare-table th {
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.compare-table td.tick {
  color: var(--green);
  font-weight: 500;
}

.compare-table td.cross {
  color: var(--text-muted);
}

.compare-table .highlight-col {
  color: var(--accent);
  font-weight: 600;
}

/* ---- Pricing Section ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
}

.price-card.pro {
  border-color: var(--accent);
}

.pro-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.price-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.price span {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.price-card .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.price-features li strong {
  color: var(--text-primary);
}

/* ---- SEO Section Text ---- */
.seo-container-text {
  max-width: 800px;
}

.seo-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.seo-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.seo-section p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.65;
}

.seo-section ul {
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.seo-section li {
  margin-bottom: 6px;
}

/* ---- FAQ Accordion ---- */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger::after {
  content: '+';
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.faq-item.active .faq-trigger::after {
  content: '−';
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-panel p {
  padding: 0 20px 16px 20px;
  font-size: 12px;
  color: var(--text-secondary);
}

.faq-item.active .faq-panel {
  max-height: 120px;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  background: #000;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-right a:hover {
  color: var(--text-primary);
}

/* ============================================
   RESPONSIVE DESIGN (Landing Page)
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .cards-grid, .steps-grid, .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .navbar .nav-links {
    display: none;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
