/* ═══ VARIABILE ═══ (aceeași familie cu OptimalProd: Inter, colțuri rotunjite; identitate proprie: bleumarin de cale ferată + galben de semnal) */
:root {
    --navy: #0b1730;
    --navy-2: #12224a;
    --accent: #1d4ed8;
    --accent-dark: #1e40af;
    --signal: #f5b301;
    --green: #15a05a;
    --red: #d63b3b;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --text: #131a2b;
    --text-secondary: #5b6478;
    --border: #e3e7ef;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: 0 1px 3px rgba(11, 23, 48, 0.07);
    --shadow-lg: 0 14px 40px rgba(11, 23, 48, 0.12);
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-secondary); font-size: 0.9rem; }

/* ═══ BUTOANE ═══ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--signal); color: #1a1400; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(245, 179, 1, 0.35); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* ═══ NAVBAR ═══ */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 23, 48, 0.92); backdrop-filter: blur(10px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.navbar.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
.nav-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.logo-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--signal); color: #1a1400; font-size: 0.85rem; font-weight: 800; }
.nav-links { display: flex; gap: 26px; font-size: 0.93rem; font-weight: 500; }
.nav-links a { opacity: 0.82; }
.nav-links a:hover { opacity: 1; }
.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ═══ HERO ═══ */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f3a7a 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 76px 0 88px; overflow: hidden; }
.hero-container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(245, 179, 1, 0.14); color: var(--signal); font-size: 0.82rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
.accent-text { color: var(--signal); }
.hero-subtitle { margin: 22px 0 30px; font-size: 1.12rem; color: rgba(255, 255, 255, 0.8); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stats dt { font-size: 2rem; font-weight: 800; color: var(--signal); line-height: 1; }
.hero-stats dd { margin-top: 6px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.7); }

.board { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 20px 20px 0; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
.board-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.board-row:nth-last-child(2) { border-bottom: 0; }
.b-title { flex: 1; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #c4cad8; flex: none; }
.dot.ok { background: var(--green); }
.dot.warn { background: var(--signal); }
.b-tag { font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--text-secondary); white-space: nowrap; }
.b-tag.amber { background: #fff4d1; color: #8a6400; }
.b-tag.green { background: #dff5e9; color: #0f6b3c; }
/* șina de jos: două fire + traverse */
.rail { display: flex; justify-content: space-between; margin: 18px -20px 0; padding: 10px 26px; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); background: #eef1f7; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.rail span { width: 6px; height: 18px; background: #9aa3b8; border-radius: 2px; }

/* ═══ SECȚIUNI ═══ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #fff; }
.eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.section-dark .eyebrow { color: var(--signal); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; max-width: 26ch; }
.section-lead { margin-top: 14px; color: var(--text-secondary); font-size: 1.05rem; max-width: 68ch; }

/* probleme */
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; margin-top: 44px; }
.gain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; margin-top: 20px; }
.pain-card { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); border-top: 4px solid var(--red); background: #fff; box-shadow: var(--shadow); }
.pain-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.pain-card p { color: var(--text-secondary); font-size: 0.95rem; }
.gain-card { border-top-color: var(--green); }
.gain-card strong { color: var(--text); font-weight: 600; }

/* module */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 30px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.module { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.module[hidden] { display: none; }
.m-cat { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.module h3 { font-size: 1.18rem; margin-bottom: 16px; }
.pains { display: grid; gap: 10px; margin-bottom: 18px; }
.pains li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 0.93rem; }
.pains li::before { content: "✕"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #fde8e8; color: var(--red); font-size: 0.62rem; font-weight: 800; }
.fix { margin-top: auto; padding: 14px 16px; border-radius: 10px; background: #e9f7ef; border-left: 4px solid var(--green); font-size: 0.93rem; color: #14402a; }
.fix strong { color: #0f6b3c; }
.m-perk { align-self: flex-start; margin-top: 10px; padding: 4px 12px; border-radius: 999px; background: rgba(21, 160, 90, 0.12); color: #0f6b3c; font-size: 0.8rem; font-weight: 700; }
.m-perk::before { content: "✓ "; }

/* flux */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 46px; counter-reset: pas; position: relative; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 21px; height: 4px; background: repeating-linear-gradient(90deg, var(--navy) 0 14px, transparent 14px 22px); opacity: 0.25; }
.flow li { position: relative; }
.step { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--signal); color: #1a1400; font-weight: 800; margin-bottom: 16px; box-shadow: 0 0 0 6px #fff; }
.flow h3 { font-size: 1.02rem; margin-bottom: 8px; }
.flow p { color: var(--text-secondary); font-size: 0.92rem; }

/* încredere */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 36px; margin-top: 44px; }
.trust-grid h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--signal); }
.trust-grid p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

/* contact + footer */
.contact { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.contact-card { padding: 34px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.contact-card .muted { color: rgba(255, 255, 255, 0.65); margin-top: 14px; }
.contact-card .contact-mail a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.contact-card .contact-mail + .contact-mail { margin-top: 4px; }
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer .logo-icon { width: 30px; height: 30px; font-size: 0.72rem; }
.footer-legal { font-size: 0.85rem; }
.footer-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--navy); }

/* apariție la derulare (doar dacă utilizatorul nu a cerut mișcare redusă) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .module { transition: none; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
    .hero-container, .contact { grid-template-columns: 1fr; }
    .hero-visual { max-width: 460px; }
    .flow { grid-template-columns: 1fr; gap: 26px; }
    .flow::before { left: 21px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--navy) 0 14px, transparent 14px 22px); }
    .flow li { padding-left: 64px; }
    .step { position: absolute; left: 0; top: 0; margin: 0; }
}
@media (max-width: 760px) {
    .section { padding: 64px 0; }
    .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 8px 24px 16px; }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 0; }
    .hero { padding: 52px 0 64px; }
    .hero-stats { grid-template-columns: 1fr; gap: 14px; }
    .module-grid { grid-template-columns: 1fr; }
}
