/* Site-ul CATCHWAVE ERP: aceeași paletă ca aplicația (Design 2.88), temă luminoasă și întunecată, fără fonturi externe. */
:root {
  --bg: #ffffff; --bg-2: #f4f6fa; --card: #ffffff; --line: #e2e7ef; --text: #1a2233; --muted: #5d6779;
  --navy: #0e1b33; --navy-2: #13264a; --primary: #1f63d6; --primary-dark: #1953b8; --primary-soft: #eaf1fd; --on-primary: #ffffff;
  --accent: #b45309; --accent-soft: #fff7ea; --ok: #157347; --ok-soft: #eaf7f0;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06); --ring: 0 0 0 3px rgba(31, 99, 214, .3);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d1220; --bg-2: #111829; --card: #151c2c; --line: #263049; --text: #e6ebf3; --muted: #97a3b7; --primary: #5b9cf5; --primary-dark: #7aaef7;
    --primary-soft: rgba(91, 156, 245, .12); --on-primary: #0b1324; --accent: #f0b05a; --accent-soft: rgba(240, 176, 90, .1); --ok: #4cc38a; --ok-soft: rgba(76, 195, 138, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Bara de sus */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--navy) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .1em; }
.brand svg { width: 30px; height: 30px; }
.menu { display: flex; gap: 22px; margin-left: auto; }
.menu a { color: #c9d5ea; text-decoration: none; font-size: 15px; }
.menu a:hover { color: #fff; }
.top .btn { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; }

/* Butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background .15s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(16, 24, 40, .15); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn-ghost:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 15px; }

/* Prima secțiune */
.hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(91, 156, 245, .28), transparent 60%), linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9cc0fb; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: #c9d5ea; margin: 0 0 28px; max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #9fb0cc; font-size: 14px; }
.hero .proof span::before { content: "✓ "; color: #6fdc9f; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); background: #fff; }
.hero .shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }

/* Secțiuni */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); }
.head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.head h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.head p { color: var(--muted); font-size: 18px; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ico svg { width: 24px; height: 24px; }

/* Funcțiile, cu captură */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 84px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1.15fr 1fr; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: 28px; line-height: 1.25; margin: 6px 0 12px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 17px; margin: 0 0 14px; }
.feature ul { padding: 0; margin: 0; list-style: none; }
.feature li { padding: 6px 0 6px 30px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft);
  box-shadow: inset 0 0 0 5px var(--ok-soft), inset 0 0 0 9px var(--ok); }
.feature .shot { box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }

/* Prețuri */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.best { border: 2px solid var(--primary); }
.plan.best::before { content: "Cel mai ales"; position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 600;
  padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin: 0 0 4px; }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 10px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 24px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.plan li:last-child { border-bottom: 0; }
.note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 15px; }

/* Întrebări */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Final și subsol */
.final { background: linear-gradient(135deg, var(--primary), #3b7be3); color: #fff; text-align: center; }
.final h2 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 10px; }
.final p { margin: 0 0 26px; color: #e3ecfd; font-size: 18px; }
.final .btn-primary { background: #fff; color: #133f8c; }
.final .btn-ghost { color: #fff; }
footer { background: var(--navy); color: #9fb0cc; font-size: 14px; padding: 48px 0 32px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer a { color: #c9d5ea; text-decoration: none; }
footer a:hover { color: #fff; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }

/* Paginile de text (termeni, confidențialitate) */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc .muted { color: var(--muted); }

@media (max-width: 980px) {
  .hero .wrap, .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .text { order: 0; }
  .hero .shot { transform: none; }
  .grid3, .prices { grid-template-columns: 1fr; }
  .grid2, footer .cols { grid-template-columns: 1fr; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); padding: 8px 24px 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; }
  .burger { display: inline-block; }
  .top .btn { margin-left: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) { .wrap { padding: 0 16px; } .top .btn-small.login { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .hero .shot { transition: none; transform: none; } }
.after { margin-top: 8px; }
/* elementele din grilă se pot micșora sub lățimea capturilor (altfel pagina iese din ecran pe telefon) */
.hero .wrap > *, .feature > *, .grid3 > *, .grid2 > *, .prices > * { min-width: 0; }
.plan .price.ask { font-size: 24px; color: var(--muted); }
