/* ===== Reset + Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===== Variables ===== */
:root {
  --primary: #1a365d;
  --primary-dark: #0f2444;
  --primary-light: #2c5282;
  --secondary: #047857;
  --accent: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --success: #10b981;
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section.tight { padding: 48px 0; }

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  font-weight: 700;
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
h3 { font-size: 22px; margin-bottom: 12px; }

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow.light { color: rgba(255,255,255,0.85); }

.lead {
  font-size: 19px;
  color: var(--gray-700);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { font-weight: 800; font-size: 20px; color: var(--primary); display: inline-flex; align-items: center; line-height: 0; }
.logo img { display: block; height: 44px; width: auto; }
.logo span { color: var(--secondary); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: 15px; color: var(--gray-700); font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.btn-primary { color: var(--white); }
.main-nav a.btn-primary:hover { color: var(--white); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-success { background: var(--secondary); color: var(--white); }
.btn-success:hover { background: #065f46; }
.btn-large { padding: 18px 36px; font-size: 17px; }
.btn-block { width: 100%; }

/* ===== HERO with Demo Widget ===== */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(26,54,93,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  position: relative;
}

.hero-content h1 { margin-bottom: 16px; }
.hero-content .lead { margin: 0 0 24px 0; font-size: 18px; }
.hero-bullets {
  list-style: none;
  margin-bottom: 32px;
}
.hero-bullets li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--gray-700);
}
.hero-bullets li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

/* Demo widget container */
.demo-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.demo-widget-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 20px 24px;
}
.demo-widget-header h3 {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-widget-header p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

.demo-form { padding: 20px 24px; }
.demo-advanced { margin-top: 20px; border: 1px solid var(--gray-200); border-radius: 8px; padding: 0; background: var(--gray-50); }
.demo-advanced > summary { padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--gray-700); cursor: pointer; user-select: none; list-style: none; }
.demo-advanced > summary::-webkit-details-marker { display: none; }
.demo-advanced > summary::before { content: "▸"; display: inline-block; margin-right: 8px; transition: transform 0.2s; }
.demo-advanced[open] > summary::before { transform: rotate(90deg); }
.demo-advanced[open] > summary { border-bottom: 1px solid var(--gray-200); margin-bottom: 12px; }
.demo-advanced > label, .demo-advanced > .demo-options, .demo-advanced > input[type="text"] { padding: 0 16px; }
.demo-advanced > label:first-of-type { margin-top: 0; }
.demo-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  margin-top: 14px;
}
.demo-form label:first-child { margin-top: 0; }
.demo-form textarea,
.demo-form select,
.demo-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
}
.demo-form textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.5;
}
.demo-form textarea:focus,
.demo-form select:focus,
.demo-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,54,93,0.1);
}

.demo-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.demo-options.colors { grid-template-columns: repeat(6, 1fr); }
.demo-options input[type="radio"] { display: none; }
.demo-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 1.5px solid var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-700);
  margin: 0;
  transition: all 0.15s;
  text-align: center;
}
.demo-options input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}
.demo-options.colors label { padding: 0; height: 32px; border-radius: 50%; }
.demo-options input[type="radio"]:checked + label.color-swatch { 
  outline: 3px solid var(--primary); 
  outline-offset: 2px; 
}
.color-swatch.albastru { background: #1e40af; }
.color-swatch.verde { background: #047857; }
.color-swatch.portocaliu { background: #f97316; }
.color-swatch.mov { background: #a855f7; }
.color-swatch.negru { background: #1f2937; }
.color-swatch.maro { background: #92400e; }

.btn-generate {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: linear-gradient(135deg, var(--secondary), #065f46);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}
.btn-generate:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-generate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.demo-footer-note {
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===== Preview Modal ===== */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.preview-overlay.active { display: flex; opacity: 1; }

.preview-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
.preview-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
}
.preview-header h3 { font-size: 18px; margin: 0; }
.preview-close {
  background: var(--white);
  border: 1px solid var(--gray-300);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.preview-close:hover { background: var(--gray-200); }

.preview-body {
  flex: 1;
  overflow: hidden;
  background: var(--gray-100);
  position: relative;
  min-height: 400px;
}
.preview-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
  min-height: 480px;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  z-index: 2;
}
.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preview-loading h4 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.preview-loading p { color: var(--gray-500); font-size: 14px; }
.preview-loading .steps { margin-top: 16px; font-size: 13px; color: var(--gray-700); text-align: center; }
.preview-loading .steps span { display: block; padding: 4px 0; }

.preview-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.preview-footer-left { font-size: 13px; color: var(--gray-700); }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.error-state {
  padding: 48px 24px;
  text-align: center;
  color: #b91c1c;
  background: #fef2f2;
}
.error-state h4 { color: #b91c1c; margin-bottom: 8px; }

/* ===== Stats Banner ===== */
.stats-banner {
  background: var(--primary);
  color: var(--white);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 13px; opacity: 0.9; text-transform: uppercase; letter-spacing: 1px; }

/* ===== Sections ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-700); }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.price-card.featured::before {
  content: '🎯 CEL MAI POPULAR';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.price-tier {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.price-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.price-tag {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.price-tag span { font-size: 16px; color: var(--gray-500); font-weight: 500; }
.price-monthly {
  font-size: 15px;
  color: var(--gray-700);
  margin: 8px 0 24px 0;
}
.price-features {
  list-style: none;
  margin: 0 0 28px 0;
  flex-grow: 1;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--gray-700);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.price-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Comparison Table ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}
.compare-card.bad { border-color: #fecaca; background: #fef2f2; }
.compare-card.good { border-color: #bbf7d0; background: #f0fdf4; }
.compare-card h3 { font-size: 18px; margin-bottom: 18px; }
.compare-list { list-style: none; }
.compare-list li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  gap: 8px;
  border-bottom: 1px dashed var(--gray-200);
}
.compare-list li:last-child { border-bottom: none; }
.compare-list .icon { font-size: 16px; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  user-select: none;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--gray-50); }
.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px 24px;
}

/* ===== Verticals ===== */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vertical-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
}
.vertical-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vertical-emoji { font-size: 32px; margin-bottom: 12px; }
.vertical-card h3 { font-size: 17px; margin-bottom: 8px; }
.vertical-card p { font-size: 14px; color: var(--gray-700); margin-bottom: 12px; }
.vertical-tag {
  display: inline-block;
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 500;
}

/* ===== Final CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  margin: 24px 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 32px auto;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.cta-banner .btn-primary:hover { background: var(--gray-100); }
.trust-badges {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0 24px 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand h4 { color: var(--white); font-size: 20px; margin-bottom: 12px; }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid,
  .pricing-grid,
  .verticals-grid,
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-grid { gap: 32px; }
  .price-card.featured { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0; }
}
@media (max-width: 540px) {
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-options { grid-template-columns: repeat(2, 1fr); }
  .demo-options.colors { grid-template-columns: repeat(6, 1fr); }
  .preview-modal { max-height: 100vh; border-radius: 0; }
}
