/* ============================================================
   Landing page: aceleasi culori ca aplicatia (resources/css/app.css).
   Pentru alt brand: schimba variabilele de mai jos.
   ============================================================ */
:root {
    --brand-50: #effcf9;
    --brand-100: #c8f5ec;
    --brand-500: #12a192;
    --brand-600: #0b8178;
    --brand-700: #0e6762;
    --brand-900: #124442;

    --ink: #0f172a;
    --muted: #64748b;
    --line: #e4e7eb;
    --canvas: #f6f7f9;
    --surface: #ffffff;
    --dark: #0b1220;

    --ok: #1baf7a;
    --warn: #eda100;
    --bad: #d03b3b;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 1px 3px rgb(15 23 42 / .06);
    --shadow-lg: 0 24px 60px -20px rgb(15 23 42 / .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 16px; max-width: 620px; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.accent { color: var(--brand-600); }

/* ---------- Butoane ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
    padding: 10px 18px; border: 1px solid transparent; cursor: pointer;
    transition: background .15s, transform .15s; text-decoration: none !important;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--canvas); }
.btn--sm { padding: 7px 14px; font-size: .88rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / .9); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo { letter-spacing: -.02em; }
.logo__mark { display: block; width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--muted); font-size: .93rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-50), transparent 60%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { list-style: none; margin-top: 28px; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.hero__points li::before { content: "✓"; color: var(--brand-600); font-weight: 700; margin-right: 10px; }
.hero__visual { position: relative; display: flex; justify-content: center; }

/* Telefon (mockup CSS) */
.phone {
    width: 300px; border-radius: 42px; padding: 12px; background: var(--dark);
    box-shadow: var(--shadow-lg); position: relative;
}
.phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: var(--dark); border-radius: 0 0 14px 14px; z-index: 2; }
.screen { background: var(--canvas); border-radius: 32px; padding: 40px 14px 16px; font-size: 12px; min-height: 560px; }
.screen__back { color: var(--brand-700); font-weight: 600; }
.screen__title { font-size: 18px; font-weight: 700; margin-top: 8px; }
.screen__meta { color: var(--muted); }
.scan-ok { margin: 10px 0; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 7px 10px; font-weight: 600; }
.reading { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-top: 6px; }
.reading__name { font-weight: 600; }
.reading__hint { color: var(--muted); font-size: 10.5px; }
.reading__value { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 700; white-space: nowrap; }
.reading__value--bad { border-color: #fca5a5; background: #fef2f2; color: var(--bad); }
.reading__ok { display: flex; gap: 4px; }
.reading__ok span { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-weight: 600; color: var(--muted); }
.reading__ok .on { border-color: var(--ok); background: #ecfdf5; color: #065f46; }
.alert-pop { margin-top: 10px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid #fecaca; padding: 10px 12px; }
.alert-pop__title { font-weight: 700; color: #991b1b; }
.alert-pop__text { color: var(--muted); margin-top: 2px; }
.alert-pop__note { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--ink); }
.screen__cta { margin-top: 12px; background: var(--brand-600); color: #fff; text-align: center; border-radius: 10px; padding: 11px; font-weight: 700; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.float-card--top { top: 40px; left: -10px; }
.float-card--bottom { bottom: 60px; right: -10px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dot--ok { background: var(--ok); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }

/* ---------- Sectiuni ---------- */
.section { padding: 88px 0; }
.section--muted { background: var(--canvas); }
.section__head { margin-bottom: 44px; }
.section__head .lead { max-width: 700px; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.compare__col--good { border-color: var(--brand-100); box-shadow: 0 0 0 4px var(--brand-50); }
.compare__col h3 { margin-bottom: 14px; font-size: 1.15rem; }

.list { list-style: none; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 28px; }
.list li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.list--check li::before { content: "✓"; background: var(--brand-50); color: var(--brand-700); }
.list--x li::before { content: "✕"; background: #fef2f2; color: var(--bad); }
.list--x li { color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.feature__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-700); font-weight: 700; margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
.feature--soon { border-style: dashed; background: transparent; box-shadow: none; }
.badge { display: inline-block; font-size: .7rem; font-weight: 600; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 8px; vertical-align: middle; letter-spacing: 0; }

/* Dashboard */
.dash { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dash .list { margin-top: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg); }
.panel__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { display: block; font-size: .75rem; color: var(--muted); }
.kpi strong { font-size: 1.6rem; }
.panel__label { margin: 20px 0 10px; font-size: .85rem; font-weight: 600; }
.strips { display: grid; gap: 10px; }
.strip-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; font-size: .82rem; }
.strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.strip i { aspect-ratio: 1; border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .78rem; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.role h3 { margin-bottom: 8px; }
.role p { color: var(--muted); font-size: .95rem; }

.timeline { list-style: none; counter-reset: t; display: grid; gap: 14px; max-width: 760px; }
.timeline li { counter-increment: t; position: relative; padding: 16px 18px 16px 62px; border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li::before { content: counter(t); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; }
.note { margin-top: 24px; color: var(--muted); }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-600); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* CTA + formular */
.cta { background: var(--dark); color: #fff; }
.cta .lead { color: #cbd5e1; }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea {
    font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.form textarea { resize: vertical; min-height: 80px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(18 161 146 / .15); }
.form input.invalid { border-color: var(--bad); }
.form__opt { font-weight: 400; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__msg { font-size: .9rem; min-height: 1.4em; }
.form__msg.ok { color: #065f46; }
.form__msg.err { color: var(--bad); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Aparitie la scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .float-card { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero__grid, .dash, .cta__grid { grid-template-columns: 1fr; }
    .hero { padding-top: 48px; }
    .features { grid-template-columns: 1fr 1fr; }
    .roles { grid-template-columns: 1fr 1fr; }
    .float-card--top { left: 0; }
    .float-card--bottom { right: 0; }
}
@media (max-width: 720px) {
    .menu-toggle { display: block; }
    .nav {
        position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
        display: none;
    }
    .nav.open { display: flex; }
    .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 14px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .compare, .steps, .features, .roles { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .phone { width: 270px; }
    .float-card { display: none; }
    .panel__kpis { grid-template-columns: 1fr; }
}
