/* ===========================
   Mested Forms — landing.css
   =========================== */

.landing-page { background: var(--bg); }

/* ---- Nav ---- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--space-8); height: 64px; position: sticky; top: 0;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: var(--space-3); font-size: 17px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: var(--space-3); }

/* ---- Hero ---- */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: var(--space-16) var(--space-6) var(--space-12);
  max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent); border: 1px solid rgba(79,70,229,.2);
  padding: 5px 14px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
  margin-bottom: var(--space-6);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(48px, 8vw, 80px);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 20px; color: var(--text-secondary); max-width: 560px; line-height: 1.6; margin-bottom: var(--space-8); }
.hero-actions { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-10); }
.btn-hero-primary {
  display: inline-flex; align-items: center; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: var(--radius); font-size: 16px; font-weight: 700;
  transition: all var(--transition); box-shadow: 0 4px 20px rgba(79,70,229,.3);
}
.btn-hero-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(79,70,229,.4); }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text);
  padding: 14px 20px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  border: 1.5px solid var(--border); transition: all var(--transition);
}
.btn-hero-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats { display: flex; align-items: center; gap: var(--space-6); }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-secondary); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---- Features ---- */
.features { padding: var(--space-16) var(--space-8); max-width: 1100px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: var(--space-4); }
.feature-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: var(--space-8); transition: all var(--transition-md); box-shadow: var(--shadow-sm);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-large { grid-column: span 2; }
.feature-icon { font-size: 32px; margin-bottom: var(--space-4); }
.feature-card h3 { font-size: 20px; font-weight: 800; margin-bottom: var(--space-2); font-family: var(--font-display); }
.feature-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ---- Templates section ---- */
.templates-section { padding: var(--space-16) var(--space-8); background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: var(--space-10); }
.section-header h2 { font-family: var(--font-display); font-size: 36px; font-weight: 800; margin-bottom: var(--space-3); }
.section-header p { color: var(--text-secondary); font-size: 16px; }
.template-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); max-width: 960px; margin: 0 auto; }
.template-card {
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; cursor: pointer; transition: all var(--transition-md);
}
.template-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.template-preview { height: 160px; padding: var(--space-5); background: var(--bg-secondary); display: flex; flex-direction: column; gap: var(--space-2); }
.preview-header { height: 20px; background: var(--gray-300); border-radius: 4px; width: 60%; }
.preview-field { height: 12px; background: var(--border); border-radius: 4px; }
.preview-field.short { width: 40%; }
.preview-btn { height: 12px; width: 30%; background: var(--accent); border-radius: 4px; margin-top: var(--space-2); opacity: .6; }
.template-info { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); }
.template-name { font-size: 14px; font-weight: 700; }
.template-tag { font-size: 11px; font-weight: 600; color: var(--text-secondary); background: var(--bg-secondary); padding: 2px 8px; border-radius: var(--radius-full); }

/* Card template preview */
.card-preview { align-items: center; justify-content: center; }
.preview-card-inner { background: var(--bg); border-radius: var(--radius-lg); padding: var(--space-4); width: 100%; display: flex; flex-direction: column; gap: var(--space-2); box-shadow: var(--shadow); }
.preview-icon { width: 24px; height: 24px; background: var(--accent-light); border-radius: 6px; }

/* Minimal template preview */
.minimal-preview { gap: var(--space-3); }
.preview-line { height: 2px; background: var(--gray-300); }
.preview-line.short { width: 50%; }
.preview-line-btn { height: 2px; width: 25%; background: var(--accent); opacity: .7; }

/* Bold template preview */
.bold-preview { background: var(--gray-900); }
.preview-bold-header { height: 24px; background: rgba(255,255,255,.2); border-radius: 4px; width: 70%; }
.preview-bold-field { height: 10px; background: rgba(255,255,255,.1); border-radius: 4px; }
.preview-bold-btn { height: 12px; width: 35%; background: var(--accent); border-radius: 4px; }

/* Survey template preview */
.preview-progress { height: 4px; background: var(--border); border-radius: 4px; position: relative; overflow: hidden; }
.preview-progress::after { content: ''; position: absolute; left: 0; top: 0; width: 40%; height: 100%; background: var(--accent); border-radius: 4px; }
.preview-question { height: 14px; background: var(--gray-300); border-radius: 4px; }
.preview-options { display: flex; flex-direction: column; gap: 6px; }
.preview-option { height: 10px; background: var(--border); border-radius: 4px; }

/* Dark template preview */
.dark-preview { background: #0F172A; }
.preview-dark-header { height: 20px; background: rgba(255,255,255,.15); border-radius: 4px; width: 55%; }
.preview-dark-field { height: 10px; background: rgba(255,255,255,.08); border-radius: 4px; border: 1px solid rgba(255,255,255,.1); }
.preview-dark-field.short { width: 45%; }
.preview-dark-btn { height: 12px; width: 30%; background: var(--accent); border-radius: 4px; }

/* ---- CTA ---- */
.cta-section { padding: var(--space-16) var(--space-8); }
.cta-inner {
  max-width: 600px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  border-radius: var(--radius-xl); padding: var(--space-12); color: #fff;
  box-shadow: 0 20px 60px rgba(79,70,229,.3);
}
.cta-inner h2 { font-family: var(--font-display); font-size: 32px; font-weight: 800; margin-bottom: var(--space-3); }
.cta-inner p { opacity: .85; font-size: 16px; margin-bottom: var(--space-8); }
.btn-cta {
  display: inline-flex; background: #fff; color: var(--accent);
  padding: 14px 28px; border-radius: var(--radius); font-size: 16px; font-weight: 700;
  transition: all var(--transition); box-shadow: var(--shadow-md);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--accent-hover); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: var(--space-8); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); }
.footer-logo { font-size: 16px; font-weight: 800; color: var(--text); }
.footer-links { display: flex; gap: var(--space-6); }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }

@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .template-showcase { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .template-showcase { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}
