/* =====================================================================
   Notiqo — Landing (pagina de prezentare). Paletă navy + violet.
   ===================================================================== */

:root {
    --navy-900: #19243d;
    --navy-800: #1f2c4a;
    --navy-700: #26365c;
    --navy-600: #2f4067;
    --navy-100: #dfe4ec;
    --navy-50: #eef1f6;
    --accent: #7255d9;
    --accent-600: #5d41c2;
    --accent-500: #7255d9;
    --accent-400: #9a83e6;
    --accent-50: #f0ecfb;
    --ink: #1b2740;
    --body: #3a4256;
    --muted: #7a8194;
    --line: #e5e8f0;
    --surface: #ffffff;
    --soft: #f6f8fc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--body);
    background: var(--surface);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    color: var(--ink);
    line-height: 1.15;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: .8rem 1.4rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    font-family: 'Instrument Sans', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(114, 85, 217, .7);
}

.btn-primary:hover {
    background: var(--accent-600);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(114, 85, 217, .8);
}

.btn-light {
    background: #fff;
    color: var(--accent-600);
}

.btn-light:hover {
    transform: translateY(-2px);
}

/* Header */
header.site {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 65;
    transition: .28s;
}

header.site .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand img {
    height: 30px;
    display: block;
}

.brand .logo-white {
    display: block;
}

.brand .logo-orange {
    display: none;
}

header.site.solid {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

header.site.solid .bar {
    height: 64px;
}

header.site.solid .brand .logo-white {
    display: none;
}

header.site.solid .brand .logo-orange {
    display: block;
}

nav.main {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav.main a.link {
    color: rgba(255, 255, 255, .86);
    font-weight: 500;
    font-size: .95rem;
    transition: .15s;
}

nav.main a.link:hover {
    color: #fff;
}

header.site.solid nav.main a.link {
    color: var(--navy-700);
}

header.site.solid nav.main a.link:hover {
    color: var(--accent-600);
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 9px;
    overflow: hidden;
}

.lang a {
    padding: 5px 10px;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
}

.lang a.active {
    background: var(--accent);
    color: #fff;
}

header.site.solid .lang {
    border-color: var(--line);
}

header.site.solid .lang a {
    color: var(--muted);
}

header.site.solid .lang a.active {
    background: var(--accent);
    color: #fff;
}

.burger {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}

header.site.solid .burger {
    color: var(--ink);
}

/* Hero — dark navy with animated blobs */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
    color: #eef1f6;
    padding: 150px 0 110px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .5;
    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: 52px 52px;
    -webkit-mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
    mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    z-index: 0;
}

.blob.b1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #7255d9, transparent 65%);
    top: -140px;
    right: -80px;
    animation: float1 14s ease-in-out infinite;
}

.blob.b2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #2f4067, transparent 60%);
    bottom: -160px;
    left: -60px;
    animation: float2 17s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0)
    }
    50% {
        transform: translate(-40px, 40px)
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0)
    }
    50% {
        transform: translate(40px, -30px)
    }
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(114, 85, 217, .15);
    color: var(--accent-400);
    border: 1px solid rgba(114, 85, 217, .35);
    padding: 7px 15px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
    max-width: 26ch;
}

.hero h1 .grad {
    background: linear-gradient(100deg, #9a83e6, #7255d9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: 1.15rem;
    color: #c7cfdd;
    max-width: 56ch;
    margin: 22px 0 32px;
}

.hero .cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero .cta-note {
    color: #93a0b6;
    font-size: .88rem;
}

/* Sections */
section {
    padding: 84px 0;
}

section.soft {
    background: var(--soft);
}

.sec-head {
    max-width: 660px;
    margin: 0 auto 48px;
    text-align: center;
}

.sec-head .kicker {
    color: var(--accent-600);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sec-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    margin-top: 8px;
}

.sec-head p {
    color: var(--muted);
    margin-top: 10px;
    font-size: 1.06rem;
}

.grid {
    display: grid;
    gap: 22px;
}

.grid-3 {
    grid-template-columns:repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns:repeat(2, 1fr);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px -30px rgba(25, 36, 61, .5);
    border-color: var(--accent-50);
}

.card:hover::after {
    transform: scaleX(1);
}

.card .ico {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, var(--accent-50), #fff);
    color: var(--accent);
    font-size: 1.45rem;
    margin-bottom: 17px;
    border: 1px solid var(--accent-50);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 9px;
}

.card p {
    color: var(--muted);
    font-size: .96rem;
    margin: 0;
}

/* Steps */
.step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.step .num {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--accent), var(--accent-600));
    color: #fff;
    font-family: 'Source Serif 4', serif;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px -8px rgba(114, 85, 217, .7);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: .96rem;
    margin: 0;
}

/* FAQ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.qa {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}

.qa[open] {
    border-color: var(--accent-50);
    box-shadow: 0 14px 34px -26px rgba(25, 36, 61, .5);
}

.qa summary {
    list-style: none;
    cursor: pointer;
    padding: 19px 22px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Source Serif 4', serif;
}

.qa summary::-webkit-details-marker {
    display: none;
}

.qa summary i {
    color: var(--accent);
    transition: .25s;
    flex: 0 0 auto;
}

.qa[open] summary i {
    transform: rotate(135deg);
}

.qa .ans {
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: .97rem;
}

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(130deg, var(--navy-800), var(--navy-900));
    border-radius: 24px;
    padding: 60px 44px;
    text-align: center;
    color: #fff;
}

.cta-band .blob {
    opacity: .4;
}

.cta-band .inner {
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-band p {
    color: #c7cfdd;
    margin: 12px 0 28px;
    font-size: 1.08rem;
}

/* Footer */
footer.site {
    border-top: 1px solid var(--line);
    padding: 38px 0;
    color: var(--muted);
    font-size: .9rem;
}

footer.site .foot-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

footer.site .foot-brand img {
    height: 26px;
    margin-bottom: 8px;
    display: block;
}

footer.site .foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

footer.site .foot-links a {
    color: var(--navy-700);
    font-weight: 500;
    transition: color .15s;
}

footer.site .foot-links a:hover {
    color: var(--accent-600);
}

footer.site .foot-copy {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .85rem;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* Overlay sub drawer-ul mobil (ascuns implicit) */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 34, .55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 60;
}
.nav-overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 860px) {
    /* Meniu mobil = drawer care intră din stânga, 80% din lățime */
    nav.main {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 340px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 88px 26px 26px;
        border-right: 1px solid var(--line);
        box-shadow: 24px 0 60px -30px rgba(15, 20, 34, .6);
        transform: translateX(-100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        z-index: 70;
        overflow-y: auto;
    }

    nav.main.open {
        transform: translateX(0);
    }

    /* logo Notiqo în capul drawer-ului */
    nav.main::before {
        content: "";
        position: absolute;
        top: 26px;
        left: 26px;
        width: 120px;
        height: 30px;
        background: url('/assets/images/logo.svg') left center / contain no-repeat;
    }

    nav.main a.link {
        padding: 13px 4px;
        width: 100%;
        color: var(--navy-700) !important;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--navy-50);
    }
    nav.main a.link:hover { color: var(--accent-600) !important; }

    body.nav-open { overflow: hidden; }

    .burger {
        display: block;
        position: relative;
        z-index: 65;
    }

    .grid-3, .grid-2 {
        grid-template-columns:1fr;
    }

    .hero {
        padding: 120px 0 80px;
    }

    /* buton de autentificare mai mic + doar iconiță pe mobil */
    .menu-actions .btn-primary {
        padding: .5rem .7rem;
        font-size: .85rem;
        gap: 0;
        box-shadow: 0 6px 16px -8px rgba(114, 85, 217, .7);
    }
    .menu-actions .btn-primary span {
        display: none;
    }
    .menu-actions .btn-primary i {
        font-size: 1.05rem;
    }
    .lang a {
        padding: 4px 8px;
        font-size: .78rem;
    }
    .menu-actions {
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blob {
        animation: none;
    }

    .reveal {
        transition: none;
    }
}

/* =====================================================================
   Autentificare (login) — pe layout-ul comun, paletă violet + navy
   ===================================================================== */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 24px 70px;
    background:
        radial-gradient(1000px 460px at 100% 0%, rgba(114, 85, 217, .10), transparent 60%),
        radial-gradient(800px 460px at 0% 100%, rgba(38, 54, 92, .10), transparent 55%),
        var(--soft);
}

.login-shell {
    width: 100%;
    max-width: 940px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px -40px rgba(25, 36, 61, .5);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.login-aside {
    background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
    color: #eef1f6;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.login-aside .a-blob {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    background: radial-gradient(circle, #7255d9, transparent 65%);
    top: -120px;
    right: -80px;
}
.login-aside .brand-img { height: 32px; margin-bottom: 34px; position: relative; z-index: 2; }
.login-aside h1 { font-size: 1.9rem; line-height: 1.2; color: #fff; margin-bottom: 14px; position: relative; z-index: 2; }
.login-aside h1 span { color: var(--accent-400); }
.login-aside p { color: #c7cfdd; font-size: .96rem; position: relative; z-index: 2; }
.login-aside ul { list-style: none; padding: 0; margin: 22px 0 0; position: relative; z-index: 2; }
.login-aside li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: #dfe4ec; font-size: .92rem; }
.login-aside li i { color: var(--accent-400); margin-top: 2px; }
.login-aside .foot { margin-top: auto; color: #93a0b6; font-size: .8rem; padding-top: 24px; position: relative; z-index: 2; }

.login-form { padding: 46px 42px; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 1.5rem; margin-bottom: 6px; }
.login-form .subtitle { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.login-form label { font-weight: 500; font-size: .88rem; color: var(--ink); }
.login-form .form-control { padding: .72rem .9rem; border-radius: 10px; border: 1px solid var(--line); }
.login-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(114, 85, 217, .16); outline: none; }

.btn-accent {
    background: var(--accent); border: 0; color: #fff; font-weight: 600;
    padding: .75rem 1rem; border-radius: 10px; width: 100%; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s, transform .15s;
}
.btn-accent:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-accent:disabled { opacity: .65; }
.btn-ghost {
    background: transparent; border: 1px solid var(--line); color: var(--ink);
    padding: .65rem 1rem; border-radius: 10px; width: 100%; font-weight: 500; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost:hover { background: var(--navy-50); }
.login-hint { color: var(--muted); font-size: .82rem; margin-top: 16px; margin-bottom: 0; }

@media (max-width: 767px) {
    .login-shell { grid-template-columns: 1fr; max-width: 460px; }
    .login-aside { display: none; }
    .login-form { padding: 34px 26px; }
    .auth-wrap { padding: 96px 18px 50px; }
}

/* =====================================================================
   Pagini legale (Termeni, Confidențialitate)
   ===================================================================== */
.legal {
    padding: 120px 0 80px;
    background:
        radial-gradient(900px 380px at 100% 0%, rgba(114, 85, 217, .08), transparent 60%),
        var(--surface);
}
.legal .doc {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 46px 46px 52px;
    box-shadow: 0 24px 60px -44px rgba(25, 36, 61, .45);
}
.legal .kicker { color: var(--accent-600); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.legal h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 8px 0 6px; }
.legal .updated { color: var(--muted); font-size: .85rem; margin-bottom: 26px; }
.legal .body { color: var(--body); font-size: 1rem; line-height: 1.7; }
.legal .body h2 { font-size: 1.25rem; margin: 26px 0 10px; }
.legal .body h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.legal .body p { margin: 0 0 14px; }
.legal .body ul, .legal .body ol { margin: 0 0 14px; padding-left: 22px; }
.legal .body li { margin-bottom: 6px; }
.legal .body a { color: var(--accent-600); text-decoration: underline; }
.legal .empty { color: var(--muted); }

@media (max-width: 767px) {
    .legal .doc { padding: 32px 22px 38px; }
}
