/* =========================================================================
   NextLevelSoft — sistem de design
   1. Tokens        2. Reset       3. Tipografie   4. Layout
   5. Componente    6. Sectiuni    7. Formulare    8. Utilitare / motion
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    color-scheme: light;

    --brand-50: #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-400: #818cf8;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-900: #312e81;

    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;

    --emerald-500: #10b981;
    --amber-500: #f59e0b;
    --rose-500: #f43f5e;

    --bg: #ffffff;
    --bg-subtle: #f6f7fb;
    --bg-sunken: #eef1f8;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-inverse: #0b1020;

    --border: #e3e7f0;
    --border-strong: #cbd3e3;

    --text: #0d1424;
    --text-muted: #5a6580;
    --text-faint: #8892a8;
    --text-inverse: #f5f7fd;

    --ring: rgba(99, 102, 241, .35);

    --shadow-xs: 0 1px 2px rgba(13, 20, 36, .06);
    --shadow-sm: 0 2px 8px rgba(13, 20, 36, .06), 0 1px 2px rgba(13, 20, 36, .04);
    --shadow-md: 0 12px 32px -12px rgba(13, 20, 36, .18), 0 2px 8px rgba(13, 20, 36, .05);
    --shadow-lg: 0 32px 64px -24px rgba(13, 20, 36, .28);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 7.5rem);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    --step--1: clamp(.8125rem, .78rem + .16vw, .875rem);
    --step-0: clamp(.9375rem, .9rem + .2vw, 1rem);
    --step-1: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
    --step-2: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
    --step-3: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
    --step-4: clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
    --step-5: clamp(2.25rem, 1.55rem + 3.1vw, 3.75rem);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur: 220ms;
}

[data-theme='dark'] {
    color-scheme: dark;

    --bg: #070a13;
    --bg-subtle: #0b1020;
    --bg-sunken: #0e1425;
    --surface: #0e1425;
    --surface-raised: #141b30;
    --surface-inverse: #f5f7fd;

    --border: #1e2740;
    --border-strong: #2c3855;

    --text: #e9edf8;
    --text-muted: #a2adc6;
    --text-faint: #74809a;
    --text-inverse: #0b1020;

    --brand-50: #171d38;
    --brand-100: #1d2547;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
    --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        color-scheme: dark;

        --bg: #070a13;
        --bg-subtle: #0b1020;
        --bg-sunken: #0e1425;
        --surface: #0e1425;
        --surface-raised: #141b30;
        --surface-inverse: #f5f7fd;

        --border: #1e2740;
        --border-strong: #2c3855;

        --text: #e9edf8;
        --text-muted: #a2adc6;
        --text-faint: #74809a;
        --text-inverse: #0b1020;

        --brand-50: #171d38;
        --brand-100: #1d2547;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-sm: 0 2px 10px rgba(0, 0, 0, .45);
        --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, .7);
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8);
    }
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--brand-500); color: #fff; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: .75rem 1.25rem;
    background: var(--brand-600);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Tipografie ------------------------------------------------ */
h1, h2, h3, h4, h5 {
    margin: 0;
    font-weight: 640;
    line-height: 1.15;
    letter-spacing: -.022em;
    color: var(--text);
}
h1 { font-size: var(--step-5); letter-spacing: -.032em; }
h2 { font-size: var(--step-4); letter-spacing: -.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-600);
}
.eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, var(--brand-500), transparent);
}
.eyebrow--light { color: var(--accent-400); }

.lead { font-size: var(--step-1); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.text-balance { text-wrap: balance; }

.gradient-text {
    background: linear-gradient(120deg, var(--brand-400) 0%, var(--accent-400) 55%, var(--brand-200) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- 4. Layout ---------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    padding-inline: var(--gutter);
    margin-inline: auto;
}
.container--narrow { --container: 820px; }
.container--wide { --container: 1360px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--subtle { background: var(--bg-subtle); }
.section--sunken { background: var(--bg-sunken); }

.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head h2 { margin: .9rem 0 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split {
    max-width: none;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
}
@media (min-width: 900px) {
    .section-head--split { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .section-head--split .section-head__aside { text-align: right; }
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.stack { display: grid; gap: 1rem; align-content: start; }
.stack--lg { gap: 2rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- 5. Componente ------------------------------------------------ */
.btn {
    --btn-bg: var(--brand-600);
    --btn-color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: var(--step-0);
    font-weight: 560;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-color); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.05em; height: 1.05em; }

.btn--primary { background: linear-gradient(135deg, var(--brand-600), var(--brand-500) 55%, var(--accent-500)); box-shadow: 0 10px 24px -12px var(--brand-600); }
.btn--secondary { background: var(--surface-raised); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { color: var(--text); border-color: var(--brand-400); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--text); background: var(--bg-subtle); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--sm { padding: .5rem 1rem; font-size: var(--step--1); }
.btn--lg { padding: 1rem 1.9rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 560;
    color: var(--brand-600);
}
.link-arrow::after {
    content: '→';
    transition: transform var(--dur) var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-full);
    background: var(--brand-50);
    border: 1px solid var(--border);
    color: var(--brand-700);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}
[data-theme='dark'] .badge { color: var(--brand-200); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .badge { color: var(--brand-200); } }
.badge--muted { background: var(--bg-sunken); color: var(--text-muted); }
.badge--accent { background: rgba(6, 182, 212, .12); border-color: rgba(6, 182, 212, .3); color: var(--accent-600); }
.badge--success { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); color: var(--emerald-500); }
.badge--dot::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: clamp(1.4rem, 2.4vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card--link:hover { transform: translateY(-4px); border-color: var(--brand-400); box-shadow: var(--shadow-md); }
.card--flush { padding: 0; overflow: hidden; }
.card h3 { font-size: var(--step-1); }
.card__body { padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.card__footer { margin-top: auto; padding-top: .5rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: var(--step--1); color: var(--text-faint); }

.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.icon--sm { width: .95rem; height: .95rem; opacity: .65; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    background: linear-gradient(140deg, var(--brand-50), transparent);
    border: 1px solid var(--border);
    color: var(--brand-600);
    flex: none;
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }
.icon-tile--accent { color: var(--accent-600); background: linear-gradient(140deg, rgba(6, 182, 212, .14), transparent); }

.avatar {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    color: #fff;
    font-weight: 620;
    font-size: .95rem;
    letter-spacing: .02em;
}
.avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.25rem; }

.stat { display: grid; gap: .35rem; }
.stat__value {
    font-size: var(--step-4);
    font-weight: 680;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat__label { font-size: var(--step--1); color: var(--text-muted); }

.divider-dot { color: var(--text-faint); }

.breadcrumbs { font-size: var(--step--1); color: var(--text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; }
.breadcrumbs li::after { content: '/'; margin-left: .45rem; color: var(--text-faint); }
.breadcrumbs li:last-child::after { content: none; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand-600); }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span {
    display: grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding-inline: .6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 560;
    background: var(--surface);
}
.pagination a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.pagination .is-current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.alert {
    display: flex;
    gap: .75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    font-size: var(--step--1);
}
.alert--error { border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .08); color: var(--rose-500); }
.alert--success { border-color: rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .08); color: var(--emerald-500); }

.prose { max-width: 68ch; color: var(--text-muted); }
.prose h2 { font-size: var(--step-3); margin: 2.4rem 0 .9rem; color: var(--text); }
.prose h3 { font-size: var(--step-1); margin: 1.9rem 0 .7rem; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35rem; }
.prose li { margin-bottom: .45em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; }
.prose ul li::before {
    content: '';
    position: absolute;
    left: .35rem;
    top: .62em;
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: var(--brand-500);
}
.prose ol { padding-left: 1.35rem; }
.prose blockquote {
    margin: 1.8rem 0;
    padding: 1.1rem 1.4rem;
    border-left: 3px solid var(--brand-500);
    background: var(--bg-subtle);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text);
    font-size: var(--step-1);
}
.prose code {
    font-family: var(--font-mono);
    font-size: .875em;
    padding: .15em .4em;
    border-radius: 5px;
    background: var(--bg-sunken);
    color: var(--brand-700);
}
[data-theme='dark'] .prose code { color: var(--brand-200); }
.prose strong { color: var(--text); font-weight: 620; }

.check-list { list-style: none; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-muted); }
.check-list li::before {
    content: '';
    flex: none;
    margin-top: .35em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .65rem no-repeat;
}

/* ---------- 6. Header / navigatie ---------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-xs); }

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); font-weight: 680; letter-spacing: -.02em; font-size: 1.05rem; }
.brand:hover { color: var(--text); }
.brand__mark {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
}
.brand__suffix { color: var(--brand-500); }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; }
.main-nav__link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .8rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 540;
    white-space: nowrap;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.main-nav__link svg { flex-shrink: 0; }
.main-nav__link:hover { color: var(--text); background: var(--bg-subtle); }
.main-nav__link.is-active { color: var(--brand-600); }

.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 50%;
    translate: -50% 0;
    width: min(92vw, 34rem);
    padding: .6rem;
    display: grid;
    gap: .15rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item { display: flex; gap: .75rem; padding: .7rem; border-radius: var(--radius); color: var(--text); }
.dropdown__item:hover { background: var(--bg-subtle); color: var(--text); }
.dropdown__item strong { display: block; font-size: var(--step--1); font-weight: 600; }
.dropdown__item span { font-size: .78rem; color: var(--text-muted); line-height: 1.45; }
.dropdown__item .icon-tile { width: 2.1rem; height: 2.1rem; border-radius: 9px; }
.dropdown__item .icon-tile .icon { width: 1.1rem; height: 1.1rem; }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-button {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.icon-button:hover { color: var(--brand-600); border-color: var(--brand-400); }

.lang-switch { display: flex; gap: .1rem; padding: .18rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.lang-switch a {
    padding: .28rem .55rem;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 660;
    letter-spacing: .04em;
    color: var(--text-faint);
    text-transform: uppercase;
}
.lang-switch a.is-active { background: var(--brand-600); color: #fff; }

.nav-toggle { display: none; }

@media (max-width: 1200px) {
    .nav-toggle { display: grid; }
    .main-nav {
        position: fixed;
        inset: 4.5rem 0 auto;
        margin: 0;
        padding: 1.25rem var(--gutter) 2rem;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
    .main-nav__link { padding: .85rem .5rem; font-size: var(--step-0); border-bottom: 1px solid var(--border); border-radius: 0; }
    .dropdown {
        position: static;
        translate: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        width: auto;
        grid-template-columns: 1fr;
        padding: .25rem 0 .75rem;
        background: transparent;
        display: none;
    }
    .has-dropdown.is-open .dropdown { display: grid; }
    .header-actions .btn { display: none; }
}

/* ---------- 7. Hero / sectiuni bogate ------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
    background: radial-gradient(120% 120% at 80% -10%, #1b2a6b 0%, transparent 55%),
                radial-gradient(90% 90% at 5% 10%, #10306b 0%, transparent 50%),
                linear-gradient(165deg, #070c1c 0%, #0b1226 55%, #070a16 100%);
    color: #e8edfb;
    isolation: isolate;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -8rem;
    top: -12rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, .38), transparent 62%);
    filter: blur(20px);
    z-index: -1;
}
.hero h1, .hero h2 { color: #f2f5ff; }
.hero p { color: #b9c4e0; }

.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }

.hero__content { max-width: 44rem; display: grid; gap: 1.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .5rem; }
.hero__trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1.5rem 2rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__trust .stat__value { color: #fff; }
.hero__trust .stat__label { color: #94a2c4; }

.page-hero {
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    background: linear-gradient(180deg, var(--bg-subtle), var(--bg));
    border-bottom: 1px solid var(--border);
}
.page-hero__inner { display: grid; gap: 1.1rem; max-width: 60rem; }

.panel {
    position: relative;
    padding: 1.4rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
    backdrop-filter: blur(8px);
}
.panel__bar { display: flex; align-items: center; gap: .4rem; padding-bottom: .9rem; }
.panel__bar span { width: .65rem; height: .65rem; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.panel__bar strong {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .45);
}
.code-block {
    margin: 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(4, 8, 20, .78);
    border: 1px solid rgba(255, 255, 255, .07);
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.75;
    color: #c3cde8;
    overflow-x: auto;
}
.code-block .tok-key { color: #8ea2ff; }
.code-block .tok-str { color: #6fe1c0; }
.code-block .tok-num { color: #f5b967; }
.code-block .tok-com { color: #5f6b8c; }

.panel__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.panel__metric { padding: .8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.panel__metric b { display: block; font-size: 1.15rem; color: #fff; letter-spacing: -.02em; }
.panel__metric span { font-size: .7rem; color: #93a1c2; }

.feature-row { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
    .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-row--reverse .feature-row__media { order: -1; }
}

.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1.25rem;
    padding-bottom: 2.25rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3rem;
    bottom: .35rem;
    width: 1px;
    background: linear-gradient(var(--border-strong), transparent);
}
.timeline__item:last-child::before { display: none; }
.timeline__num {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 600;
    color: var(--brand-600);
}
.timeline__body h3 { font-size: var(--step-1); margin-bottom: .4rem; }

.metric-band {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.quote-card {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.6rem, 3vw, 2.4rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}
.quote-card blockquote { margin: 0; font-size: var(--step-1); line-height: 1.6; color: var(--text); }
.quote-card blockquote::before { content: '“'; display: block; font-size: 3rem; line-height: .6; color: var(--brand-400); margin-bottom: .4rem; }
.quote-card__author { display: flex; align-items: center; gap: .85rem; }
.quote-card__author strong { display: block; font-size: var(--step--1); }
.quote-card__author span { font-size: .8rem; color: var(--text-muted); }
.rating { display: flex; gap: .15rem; color: var(--amber-500); font-size: .85rem; }

.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #101a3d 0%, #1b2a6b 48%, #0a2f5c 100%);
    color: #eaf0ff;
    display: grid;
    gap: 1.75rem;
    align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta-band::after {
    content: '';
    position: absolute;
    right: -6rem;
    bottom: -10rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 60%);
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #b7c4e4; position: relative; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; position: relative; }

.tech-group { display: grid; gap: 1rem; }
.tech-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    font-size: var(--step--1);
    font-weight: 520;
    color: var(--text-muted);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tech-pill:hover { border-color: var(--brand-400); color: var(--text); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.25rem; }
.filter-bar a {
    padding: .45rem .95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--step--1);
    color: var(--text-muted);
    background: var(--surface);
}
.filter-bar a:hover { border-color: var(--brand-400); color: var(--brand-600); }
.filter-bar a.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.job-row {
    position: relative;
    display: grid;
    gap: .85rem;
    padding: 1.4rem clamp(1.2rem, 2.5vw, 1.75rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.job-row:hover { border-color: var(--brand-400); transform: translateX(3px); }
@media (min-width: 780px) {
    .job-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}
.job-row h3 { font-size: var(--step-1); margin-bottom: .35rem; }

/* ---------- 8. Footer ---------------------------------------------------- */
.site-footer {
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    background: var(--surface-inverse);
    color: #aab5cf;
}
[data-theme='dark'] .site-footer { border-top: 1px solid var(--border); }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 600; }
.site-footer a { color: #aab5cf; font-size: var(--step--1); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.footer-grid__brand { grid-column: 1 / -1; max-width: 26rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } .footer-grid__brand { grid-column: auto; } }
.footer-list { list-style: none; display: grid; gap: .55rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
    color: #7c88a5;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; }
.social-links { display: flex; gap: .5rem; }
.social-links a {
    display: grid;
    place-items: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-sm);
}
.social-links a:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }

/* ---------- 9. Formulare ------------------------------------------------- */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid__full { grid-column: 1 / -1; } }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 560; color: var(--text); }
.field .required { color: var(--rose-500); }
.field__help { font-size: .78rem; color: var(--text-faint); }

.input, .select, .textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--ring);
}
.textarea { resize: vertical; min-height: 8rem; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6580' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; padding-right: 2.4rem; }

.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--rose-500); }
.field__errors { list-style: none; display: grid; gap: .2rem; font-size: .78rem; color: var(--rose-500); }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; }
.checkbox input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--brand-600); flex: none; }
.checkbox label { font-size: .82rem; font-weight: 440; color: var(--text-muted); line-height: 1.55; }
.checkbox a { text-decoration: underline; text-underline-offset: 2px; }

.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.form-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.contact-aside { display: grid; gap: 1.5rem; align-content: start; }
.contact-item { display: flex; gap: .9rem; align-items: flex-start; }
.contact-item strong { display: block; font-size: var(--step--1); }
.contact-item span, .contact-item a { font-size: var(--step--1); color: var(--text-muted); }

.login-shell { display: grid; place-items: center; min-height: 100dvh; padding: 2rem var(--gutter); background: var(--bg-subtle); }
.login-card { width: min(100%, 26rem); display: grid; gap: 1.25rem; }

/* ---------- 10. Utilitare / animatii ------------------------------------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.full-width { grid-column: 1 / -1; }

/* Aparitia progresiva se activeaza doar dupa ce modulul JS a pornit; fara el,
   continutul ramane vizibil (imbunatatire progresiva, nu dependenta). */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; }
}

.cookie-banner {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 1.25rem;
    z-index: 120;
    display: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 56rem;
    margin-inline: auto;
    padding: 1.1rem 1.35rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: var(--step--1);
    color: var(--text-muted);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 20rem; }

/* ---------- 11. Tabele in continutul editorial ---------------------------- */
.prose table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: collapse;
    font-size: var(--step--1);
    display: block;
    overflow-x: auto;
}
.prose thead th {
    text-align: left;
    padding: .7rem .85rem;
    background: var(--bg-sunken);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}
.prose tbody td { padding: .7rem .85rem; border-top: 1px solid var(--border); vertical-align: top; }

/* ---------- 12. Layout cu bara laterala ---------------------------------- */
.layout-sidebar {
    display: grid;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.layout-sidebar__aside {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}
@media (min-width: 960px) {
    .layout-sidebar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .layout-sidebar--balanced { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .layout-sidebar__aside { position: sticky; top: 6rem; }
}

/* ---------- 13. Utilitare de tipografie ---------------------------------- */
.text-sm { font-size: var(--step--1); }
.text-xs { font-size: .78rem; }
.text-base { font-size: var(--step-0); }
.text-lg { font-size: var(--step-1); }
.text-xl { font-size: var(--step-2); }
.text-2xl { font-size: var(--step-3); }
.link-plain { color: inherit; }
.link-plain:hover { color: var(--brand-600); }
.label-caps {
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.surface-sunken { background: var(--bg-sunken); }
.stack-tight { display: grid; gap: .5rem; }
.center-x { margin-inline: auto; }

/* ---------- 14. Utilitare de spațiere și aliniere ------------------------ */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.gap-xs { gap: .4rem; }
.gap-sm { gap: .5rem; }
.cluster--center { justify-content: center; }
.prose--wide { max-width: none; }
.stat--sm .stat__value { font-size: var(--step-2); }
.stat--sm .stat__label { font-size: .72rem; }
.definition-value { margin: 0; font-weight: 560; }
.block { display: block; }

/* ---------- 15. Formularul de newsletter din subsol ---------------------- */
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form .input {
    flex: 1 1 10rem;
    min-width: 0;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
    padding: .55rem .75rem;
    font-size: var(--step--1);
}
.newsletter-form .input::placeholder { color: #7c88a5; }
.newsletter-form .input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
.newsletter-form .field { display: contents; }
.footer-note { line-height: 1.6; margin-bottom: 1rem; color: #7c88a5; }
.site-footer .footer-note:last-child { margin: .75rem 0 0; }
