/* ═══════════════════════════════════════════════════════════════════
   LexiMark — site de prezentare
   Identitate: editorial, tipografic, reținut.
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --ink:         #154567;   /* navy din logo */
    --ink-soft:    #1f3a52;
    --ink-muted:   #5b6a79;
    --ink-faint:   #93a1af;
    --paper:       #f4f6f9;
    --paper-card:  #ffffff;
    --line:        #dfe5ec;
    --line-strong: #c8d2dc;
    --accent:      #c19a4a;   /* auriu, complementar navy */
    --accent-deep: #9c7c33;
    --ok:          #2f6a4e;
    --bad:         #a13c2c;

    --font-display: "DM Serif Display", Georgia, serif;
    --font-body:    "DM Sans", "Segoe UI", sans-serif;

    --wrap: 1160px;
    --radius: 12px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: #172f43; /* navy închis, lizibil pentru text */
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

::selection { background: var(--ink); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.18rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; color: var(--accent); }

p { color: var(--ink-muted); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ─── Buttons & links ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 8px;
    font-size: 15px; font-weight: 600; letter-spacing: -.01em;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform .18s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: 0 10px 26px rgba(25,25,23,.22); }

.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { box-shadow: 0 12px 30px rgba(193,154,74,.4); }

.btn--ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

.link { font-weight: 500; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .18s; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; }
.link:hover { border-color: var(--accent); }

/* ─── Kicker ──────────────────────────────────────────────────────── */
.kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.kicker--light { color: #d9b56a; }

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(246,244,239,.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.05); }

.nav__inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

.brand { display: inline-flex; align-items: center; }
.brand__logo {
    height: 38px; width: auto;
    transition: opacity .2s, transform .2s var(--ease);
}
.brand:hover .brand__logo { opacity: .85; transform: scale(1.03); }

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a:not(.btn) { font-size: 15px; color: var(--ink-muted); transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--ink); }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; margin-left: auto; padding: 8px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }

.hero__grid {
    display: grid; grid-template-columns: 1.02fr .98fr;
    gap: clamp(40px, 6vw, 84px); align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.lede { font-size: 18px; max-width: 48ch; margin-bottom: 32px; }

.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; }

.hero__meta { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-faint); }
.hero__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ─── Window mockup ───────────────────────────────────────────────── */
.window {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -30px rgba(25,25,23,.28);
    overflow: hidden;
}
.window__bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f4f7fa;
}
.window__tabs { display: flex; gap: 4px; }
.window__tab { font-size: 12px; color: var(--ink-faint); padding: 5px 10px; border-radius: 6px; cursor: default; }
.window__tab.is-on { color: var(--ink); background: var(--paper-card); border: 1px solid var(--line); }
.window__grip { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

.window__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.window__primary {
    background: var(--ink); color: #fff; border: 0; border-radius: 8px;
    padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: default;
}
.window__progress { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.window__progress span { display: block; height: 100%; width: 66%; background: var(--accent); border-radius: 99px; animation: sweep 2.6s var(--ease) infinite; }
@keyframes sweep { 0%,100% { width: 56%; opacity: 1; } 50% { width: 78%; opacity: .8; } }

.window__sugg { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 9px; padding: 12px 14px; background: var(--paper); }
.window__sugg-label { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.window__sugg-original { font-size: 13px; color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--bad); margin-bottom: 4px; }
.window__sugg-fix { font-size: 13px; color: var(--ok); font-weight: 600; }

.window__dosar { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.window__dosar-head { padding: 9px 14px; font-size: 12px; font-weight: 600; color: #fff; background: var(--ink); }
.window__dosar-row { display: flex; align-items: center; gap: 9px; padding: 9px 14px; font-size: 13.5px; border-top: 1px solid var(--line); background: var(--paper-card); }
.window__dosar-row svg { width: 15px; height: 15px; }
.ico-check { color: var(--ok); }
.ico-x { color: var(--bad); }
.window__dosar-row.is-bad { color: var(--ink-muted); }
.window__state { margin-left: auto; font-size: 11.5px; color: var(--bad); font-weight: 600; }

/* ─── Marquee ─────────────────────────────────────────────────────── */
.marquee {
    margin-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    overflow: hidden; padding: 16px 0;
}
.marquee__track {
    display: flex; align-items: center; gap: 28px; width: max-content;
    animation: scroll 36s linear infinite;
    font-family: var(--font-display); font-size: 17px; color: var(--ink-soft);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { font-style: normal; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ─── Sections ────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section__head .kicker { justify-content: center; }
.section__head .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section__head--left { text-align: left; margin: 0 0 56px; }
.section__head--left .kicker { justify-content: flex-start; }
.section__head--left .kicker::after { display: none; }
.section__sub { margin-top: 16px; font-size: 17px; }

/* ─── Features ────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
    position: relative;
    padding: 34px 30px 38px;
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--paper-card);
    transition: background .25s ease;
}
.feature:hover { background: #f2f6fa; }
.feature__num { position: absolute; top: 22px; right: 24px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-faint); }
.feature__icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 20px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 14.5px; }

/* ─── Timeline ────────────────────────────────────────────────────── */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: var(--line-strong); }
.tstep { position: relative; z-index: 1; padding-right: 26px; }
.tstep__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--paper-card); border: 1px solid var(--line-strong);
    font-family: var(--font-body); font-weight: 600;
    font-size: 17px; line-height: 1; color: var(--ink);
    margin-bottom: 20px;
}
.tstep h3 { margin-bottom: 6px; }
.tstep p { font-size: 14.5px; }

/* ─── Dark (dosar) ────────────────────────────────────────────────── */
.dark { background: var(--ink); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.dark__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.dark h2 { color: #fff; margin-bottom: 20px; }
.dark p:not(.kicker) { color: rgba(255,255,255,.72); font-size: 16.5px; }
.dark__list { list-style: none; margin-top: 26px; columns: 2; gap: 8px 24px; }
.dark__list li { color: rgba(255,255,255,.85); font-size: 14.5px; padding-left: 20px; position: relative; }
.dark__list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--accent); }

.sheet { background: var(--paper-card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.sheet__head { padding: 13px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.sheet__row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid var(--line); background: var(--paper-card); }
.sheet__row:last-child { border-bottom: 0; }
.sheet__row svg { width: 15px; height: 15px; }
.sheet__row.is-ok { color: var(--ink); }
.sheet__row.is-ok svg { color: var(--ok); }
.sheet__row.is-missing { color: var(--ink-muted); }
.sheet__row.is-missing svg { color: var(--bad); }
.sheet__tag { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--bad); }

/* ─── Security cols ───────────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col { border-top: 1px solid var(--line-strong); padding: 24px 2px 6px; }
.col__icon { width: 22px; height: 22px; color: var(--accent); margin-bottom: 18px; }
.col h3 { margin-bottom: 7px; }
.col p { font-size: 14.5px; }

/* ─── CTA ─────────────────────────────────────────────────────────── */
.cta { padding: clamp(56px, 8vw, 96px) 0; }
.cta__box {
    text-align: center; background: var(--ink); color: #fff;
    border-radius: 20px; padding: clamp(44px, 7vw, 76px) 28px;
}
.cta__box .kicker { justify-content: center; color: #d9b56a; }
.cta__box .kicker::before, .cta__box .kicker::after { background: currentColor; }
.cta__box .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.cta__box h2 { color: #fff; margin-bottom: 14px; }
.cta__box p { color: rgba(255,255,255,.7); margin-bottom: 30px; font-size: 16px; }
.cta__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer__brand-logo { height: 34px; width: auto; }
.footer__tag { font-size: 14px; }
.footer__legal { font-size: 13px; color: var(--ink-faint); }

/* ─── Reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .timeline { grid-template-columns: 1fr 1fr; gap: 34px 0; }
    .timeline::before { display: none; }
    .dark__grid { grid-template-columns: 1fr; }
    .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav__links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 4%;
    }
    .nav__links.is-open { display: flex; }
    .nav__toggle { display: flex; }
    .features { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .cols { grid-template-columns: 1fr; }
    .hero__actions { gap: 18px; }
    .dark__list { columns: 1; }
}

/* ─── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
