/* ==========================================================================
   AB Project — Design System
   Tema dark, accento lime/teal. Font: Space Grotesk (titoli) + Manrope (testo).
   ========================================================================== */

:root {
    /* Palette */
    --bg:            #02050A;
    --bg-2:          #0a1019;
    --bg-3:          #111a26;
    --surface:       #0e1621;
    --surface-2:     #131f2d;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text:          #eef2f4;
    --text-muted:    #9fb0bd;
    --text-dim:      #6b7c8a;

    --lime:          #A8D709;
    --lime-soft:     #c2f880;
    --teal:          #00d084;
    --teal-soft:     #7bdcb5;
    --blue:          #0693e3;

    --accent:        var(--lime);
    --accent-2:      var(--teal);

    /* Effetti */
    --radius:        16px;
    --radius-sm:     10px;
    --radius-lg:     24px;
    --shadow:        0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --glow:          0 0 40px -6px rgba(168, 215, 9, 0.35);

    --maxw:          1180px;
    --gutter:        24px;

    --font:      'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* Background ambientale */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60rem 40rem at 78% -8%, rgba(0, 208, 132, 0.10), transparent 60%),
        radial-gradient(52rem 40rem at 8% 8%, rgba(168, 215, 9, 0.08), transparent 55%),
        var(--bg);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
section { position: relative; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--accent);
    display: inline-block;
}
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-lead { color: var(--text-muted); max-width: 680px; font-size: 1.08rem; }
.text-center { text-align: center; }
.text-center .section-lead, .text-center .eyebrow { margin-inline: auto; }
.text-center .eyebrow { justify-content: center; }

.gradient-text {
    background: linear-gradient(100deg, var(--lime), var(--teal-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    background: var(--accent);
    color: #06210a;
    box-shadow: var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 52px -4px rgba(168, 215, 9, .55); }
.btn--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}
.link-arrow .arrow { transition: transform .2s; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(2, 5, 10, 0.72);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo svg { height: 34px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__menu a {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .18s, background .18s;
}
.nav__menu a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__menu a.is-active { color: var(--accent); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px;
    color: var(--text);
}
.nav__toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 22px;
}
.hero__lead { font-size: 1.18rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.7rem; color: var(--text); font-weight: 800; }
.hero__stat span { font-size: .9rem; color: var(--text-dim); }

.hero__visual {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 26px;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.hero__visual::after {
    content: "";
    position: absolute; inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, rgba(168,215,9,.4), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}
.code-window { font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; font-size: 13.5px; }
.code-window__bar { display: flex; gap: 7px; margin-bottom: 16px; }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3644; display: block; }
.code-window__bar i:first-child { background: #ff6057; }
.code-window__bar i:nth-child(2) { background: #febc2e; }
.code-window__bar i:nth-child(3) { background: #28c840; }
.code-line { color: var(--text-muted); white-space: pre; }
.code-line .k { color: var(--teal-soft); }
.code-line .s { color: var(--lime-soft); }
.code-line .c { color: var(--text-dim); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform .25s ease, border-color .25s, box-shadow .25s;
    height: 100%;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.card__icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(168, 215, 9, 0.12);
    color: var(--accent);
    margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.24rem; }
.card p { color: var(--text-muted); font-size: .98rem; margin-bottom: 0; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.tag--accent { color: var(--accent); border-color: rgba(168,215,9,.3); background: rgba(168,215,9,.08); }

/* Feature list */
.feature-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list .check {
    flex: none;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(168,215,9,.14);
    color: var(--accent);
    display: grid; place-items: center;
    margin-top: 2px;
}
.feature-list strong { color: var(--text); display: block; }

/* ---------- Split section ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.split--reverse .split__media { order: 2; }
.panel {
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Chat mock (per company brain) */
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat__bubble {
    max-width: 88%;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.55;
}
.chat__bubble--user {
    align-self: flex-end;
    background: rgba(168,215,9,.14);
    border: 1px solid rgba(168,215,9,.3);
    color: var(--text);
    border-bottom-right-radius: 4px;
}
.chat__bubble--ai {
    align-self: flex-start;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-bottom-left-radius: 4px;
}
.chat__source {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--teal-soft);
    background: rgba(0,208,132,.1);
    padding: 3px 8px;
    border-radius: 6px;
}

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
}
.step__num {
    font-size: 13px; font-weight: 700;
    color: var(--accent);
    letter-spacing: .1em;
    margin-bottom: 12px;
}
.step h3 { font-size: 1.12rem; }
.step p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* Roadmap table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.roadmap { width: 100%; border-collapse: collapse; min-width: 560px; }
table.roadmap th, table.roadmap td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); }
table.roadmap thead th { background: var(--bg-3); color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
table.roadmap tbody tr:last-child td { border-bottom: 0; }
table.roadmap td:first-child { color: var(--accent); font-weight: 700; }
table.roadmap tr:hover td { background: rgba(255,255,255,.02); }

/* Role columns (company brain security) */
.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.role { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--surface); }
.role__badge { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.role p { color: var(--text-muted); font-size: .93rem; margin: 0; }

/* Flow diagram (company brain) */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; }
.flow__col { display: grid; gap: 10px; }
.flow__node {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 600;
    display: flex; align-items: center; gap: 8px; color: var(--text-muted);
}
.flow__brain {
    background: linear-gradient(160deg, rgba(168,215,9,.16), rgba(0,208,132,.12));
    border: 1px solid rgba(168,215,9,.35);
    border-radius: var(--radius);
    padding: 26px 20px; text-align: center; color: var(--text); font-weight: 800;
    box-shadow: var(--glow);
}
.flow__arrow { color: var(--text-dim); font-size: 22px; text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, rgba(168,215,9,.12), rgba(0,208,132,.08));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band p { color: var(--text-muted); max-width: 560px; margin-inline: auto; margin-bottom: 28px; }
.cta-band .btn { margin-inline: 6px; }

/* Logos / trust row */
.trust { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; opacity: .85; }
.trust span { font-weight: 600; color: var(--text-dim); font-size: 15px; }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; }
.stat span { color: var(--text-dim); font-size: .95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168,215,9,.15);
}
.field textarea { resize: vertical; min-height: 140px; }
.form__error { color: #ff8a80; font-size: 13px; margin-top: 6px; }
.alert-success {
    background: rgba(0,208,132,.1);
    border: 1px solid rgba(0,208,132,.35);
    color: var(--teal-soft);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    margin-bottom: 8px;
}
.alert-warning {
    background: rgba(252,185,0,.1);
    border: 1px solid rgba(252,185,0,.35);
    color: #f6c650;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    margin-bottom: 8px;
    margin-top: 12px;
}
.alert-warning a { color: #ffd873; text-decoration: underline; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item .card__icon { margin-bottom: 0; width: 46px; height: 46px; }
.contact-item h4 { margin: 0 0 3px; font-size: 1rem; }
.contact-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.contact-item a:hover { color: var(--accent); }

/* ---------- Page hero (interne) ---------- */
.page-hero { padding: 72px 0 44px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 680px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 40px; background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand svg { height: 32px; margin-bottom: 16px; }
.footer__brand p { color: var(--text-muted); font-size: .95rem; max-width: 280px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin: 0 0 16px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: var(--text-muted); font-size: .95rem; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
    color: var(--text-dim); font-size: 13.5px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); display: grid; place-items: center;
    color: var(--text-muted); transition: .2s;
}
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2,1fr); }
    .flow { grid-template-columns: 1fr; }
    .flow__arrow { transform: rotate(90deg); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav__menu { display: none; }
    .nav__toggle { display: grid; place-items: center; }
    .nav.is-open .nav__menu {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 74px; left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 14px var(--gutter); gap: 4px;
    }
    .grid-2, .grid-3, .grid-4, .roles, .steps, .form__row { grid-template-columns: 1fr; }
    .section { padding: 68px 0; }
    .cta-band { padding: 40px 24px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    body { font-size: 16px; }
}
@media (max-width: 480px) {
    .footer__grid { grid-template-columns: 1fr; }
    .stats-band { grid-template-columns: 1fr 1fr; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }
}

/* ==========================================================================
   Spotlight (blog)
   ========================================================================== */
.post-card{
    display:flex; flex-direction:column; overflow:hidden;
    background:linear-gradient(180deg,var(--surface),var(--bg-2));
    border:1px solid var(--border); border-radius:var(--radius);
    transition:transform .25s ease, border-color .25s, box-shadow .25s; height:100%;
}
.post-card:hover{ transform:translateY(-5px); border-color:var(--border-strong); box-shadow:var(--shadow); }
.post-card__media{ aspect-ratio:16/10; background:var(--bg-3); overflow:hidden; }
.post-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.post-card:hover .post-card__media img{ transform:scale(1.04); }
.post-card__body{ padding:22px 24px 26px; display:flex; flex-direction:column; flex:1; }
.post-card__date{ font-size:12.5px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.post-card__body h3{ font-size:1.2rem; margin-bottom:10px; }
.post-card__body p{ color:var(--text-muted); font-size:.96rem; margin-bottom:16px; flex:1; }

/* Dettaglio articolo */
.article-title{ font-size:clamp(2rem,4.2vw,3.1rem); max-width:900px; }
.article-hero{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow); }
.article-hero img{ width:100%; max-height:460px; object-fit:cover; display:block; }

/* Tipografia del corpo articolo (HTML fidato) */
.prose{ max-width:760px; margin-inline:auto; color:var(--text-muted); font-size:1.08rem; line-height:1.75; }
.prose > *:first-child{ margin-top:0; }
.prose h2{ font-size:1.7rem; color:var(--text); margin:2em 0 .6em; }
.prose h3{ font-size:1.3rem; color:var(--text); margin:1.6em 0 .5em; }
.prose p{ margin:0 0 1.2em; }
.prose a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.prose ul, .prose ol{ margin:0 0 1.2em; padding-left:1.3em; list-style:revert; }
.prose li{ margin:.4em 0; }
.prose img{ border-radius:var(--radius); margin:1.6em 0; border:1px solid var(--border); }
.prose blockquote{ margin:1.6em 0; padding:6px 20px; border-left:3px solid var(--accent); color:var(--text); font-style:italic; }
.prose code{ background:var(--bg-3); border:1px solid var(--border); border-radius:6px; padding:2px 7px; font-size:.9em; }
.prose pre{ background:var(--bg-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:18px 20px; overflow-x:auto; margin:1.4em 0; }
.prose pre code{ background:none; border:0; padding:0; }
.prose strong{ color:var(--text); }
.prose hr{ border:0; border-top:1px solid var(--border); margin:2em 0; }

/* Paginazione */
.pager{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:44px; }
.pager__item{
    min-width:42px; height:42px; padding:0 12px; border-radius:12px;
    display:inline-flex; align-items:center; justify-content:center;
    border:1px solid var(--border); color:var(--text-muted); font-weight:600; font-size:15px;
    transition:.18s;
}
.pager__item:hover{ border-color:var(--accent); color:var(--accent); }
.pager__item.is-active{ background:var(--accent); color:#06210a; border-color:var(--accent); }
.pager__item.is-disabled{ opacity:.35; pointer-events:none; }
