:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e9f2;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --accent: #06b6d4;
  --ok: #10b981;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(79, 70, 229, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fbfcfe;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; }
a { color: inherit; text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff !important;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { background: #4338ca; background-image: linear-gradient(135deg, #4338ca, #6d28d9); }
.btn-ghost { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding: clamp(2.5rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem);
  max-width: 1200px; margin: 0 auto;
}
.pill {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(79, 70, 229, .1); color: var(--primary); font-weight: 700; font-size: .85rem;
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.hero-cta { display: flex; gap: .8rem; margin: 1.6rem 0 1rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-weight: 600; font-size: .9rem; }

.hero-visual { position: relative; min-height: 320px; }
.card-float {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
}
.card-1 { top: 10%; left: 5%; width: 78%; z-index: 2; }
.card-2 { bottom: 6%; right: 2%; width: 62%; }
.card-float .row { display: flex; align-items: center; justify-content: space-between; }
.card-float .muted { color: var(--muted); }
.card-float .small { font-size: .82rem; }
.card-float .amount { font-size: 1.8rem; font-weight: 800; margin: .4rem 0 .1rem; }
.card-float .amount small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.badge { padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.paid { background: rgba(16, 185, 129, .12); color: var(--ok); }
.bar { height: 8px; border-radius: 999px; background: var(--line); margin: .5rem 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); }

/* ---------- Sections ---------- */
section { padding: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem); }
.features, .pricing { max-width: 1200px; margin: 0 auto; text-align: center; }
.features h2, .pricing h2, .billing h2, .cta-final h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-sub { color: var(--muted); margin-bottom: 2.5rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: left; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .ico { font-size: 1.8rem; margin-bottom: .6rem; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Billing ---------- */
.billing {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.code {
  background: var(--bg); color: #cbd5e1; border-radius: var(--radius); padding: 1.4rem;
  overflow-x: auto; font-size: .85rem; line-height: 1.5; box-shadow: var(--shadow);
}
.code code { font-family: "Cascadia Code", "Fira Code", Consolas, monospace; white-space: pre; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; text-align: left; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; position: relative;
}
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan .tag {
  position: absolute; top: -.8rem; right: 1.2rem; background: var(--primary); color: #fff;
  padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.plan .price { font-size: 2rem; font-weight: 800; margin: .4rem 0 1rem; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.plan ul li { padding: .35rem 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.plan .btn { width: 100%; }

/* ---------- Lead capture form ---------- */
.lead-section {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
}
.lead-intro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead-intro p { color: var(--muted); }
.lead-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .8rem;
}
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; outline: none;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--primary); }
.lead-form .btn { width: 100%; margin-top: .3rem; }
.lead-status { text-align: center; font-size: .9rem; margin: .3rem 0 0; min-height: 1.2em; color: var(--muted); }
.lead-status.ok { color: var(--ok); font-weight: 600; }
.lead-status.err { color: #dc2626; }

@media (max-width: 800px) {
  .lead-section { grid-template-columns: 1fr; }
}

/* ---------- Începe gratuit (chenar) ---------- */
.start-free { max-width: 1000px; margin: 0 auto; }
.start-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center; position: relative; overflow: hidden;
}
.start-box::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent));
}
.start-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .8rem 0 .4rem; }
.start-box > p { color: var(--muted); max-width: 54ch; margin: 0 auto 1.4rem; }
.start-list {
  list-style: none; padding: 0; margin: 0 auto 1.8rem; max-width: 620px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.6rem; text-align: left;
}
.start-list li { position: relative; padding-left: 1.6rem; color: var(--ink); font-weight: 600; }
.start-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.start-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .start-list { grid-template-columns: 1fr; } }

/* ---------- CTA + Footer ---------- */
.cta-final {
  text-align: center; background: linear-gradient(135deg, var(--bg), var(--bg-soft)); color: #fff;
  margin: 2rem clamp(1rem, 4vw, 4rem); border-radius: 24px;
}
.cta-final h2 { margin-bottom: 1.4rem; }

.footer {
  max-width: 1200px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 4rem) 2rem;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 2rem; border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { font-size: .95rem; }
.footer-cols a { display: block; color: var(--muted); padding: .2rem 0; }
.footer-cols a:hover { color: var(--primary); }
.footer-social { display: flex; gap: .75rem; padding-top: .2rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); padding: 0; transition: all .15s ease; }
.footer-social a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.footer-legal { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero, .billing { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .grid, .plans { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .plan.featured { transform: none; }
}
