:root {
    --bg: #050914;
    --panel: #0c1424;
    --panel-soft: #101c30;
    --text: #f4f8ff;
    --muted: #9dafc6;
    --aurora: #57f2c2;
    --aurora-blue: #5aa7ff;
    --border: rgba(255, 255, 255, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(87, 242, 194, 0.13), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(90, 167, 255, 0.12), transparent 32%),
        var(--bg);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--border);
    background: rgba(5, 9, 20, 0.88);
}

.brand {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.84rem;
}

.hero {
    padding: 100px 0 70px;
    text-align: center;
}

.eyebrow {
    color: var(--aurora);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0;
    font-size: clamp(3rem, 8vw, 6.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.tagline {
    margin: 0 auto;
    max-width: 760px;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.6;
}

.status {
    display: inline-flex;
    margin-top: 30px;
    padding: 10px 16px;
    border: 1px solid rgba(87, 242, 194, 0.3);
    border-radius: 999px;
    color: var(--aurora);
    background: rgba(87, 242, 194, 0.06);
    font-size: 0.86rem;
}

.section {
    padding: 38px 0 80px;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.section-title p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

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

.card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(16, 28, 48, 0.88),
        rgba(8, 15, 28, 0.88)
    );
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

.notice {
    margin-top: 24px;
    padding: 22px;
    border-left: 3px solid var(--aurora-blue);
    background: rgba(90, 167, 255, 0.07);
    color: var(--muted);
    line-height: 1.7;
}

footer {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
}

@media (max-width: 760px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 70px;
    }

    .container {
        width: min(100% - 28px, 1120px);
    }
}

/* Language selector */
.brand {
    justify-content: flex-start;
}

.brand-copy {
    flex: 1;
}

.language-switch {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    font-weight: 700;
}

.language-switch a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.language-switch a:hover {
    color: var(--aurora);
}

.language-switch span {
    color: rgba(255, 255, 255, 0.25);
}

html[lang="it"] .lang-it,
html[lang="en"] .lang-en {
    color: var(--aurora);
}

@media (max-width: 520px) {
    .brand-subtitle {
        display: none;
    }

    .language-switch {
        padding: 7px 10px;
    }
}

/* Sentinel pricing */
.pricing-section {
    max-width: 760px;
    margin: 56px auto;
    padding: 0 20px;
}

.pricing-card {
    text-align: center;
    padding: 36px;
    border: 1px solid rgba(87, 242, 194, 0.25);
    border-radius: 22px;
    background: linear-gradient(
        180deg,
        rgba(87, 242, 194, 0.07),
        rgba(12, 20, 36, 0.96)
    );
}

.pricing-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pricing-main {
    margin-top: 14px;
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-or {
    margin: 8px 0;
    color: var(--muted);
}

.pricing-abrs {
    color: var(--aurora);
    font-size: 2rem;
    font-weight: 800;
}

.pricing-reference {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.pricing-note {
    max-width: 590px;
    margin: 18px auto 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.86rem;
}

.payment-preview {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.payment-preview span {
    min-width: 90px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
}

.payment-disabled {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 520px) {
    .pricing-card {
        padding: 28px 18px;
    }

    .pricing-main {
        font-size: 2rem;
    }

    .pricing-abrs {
        font-size: 1.7rem;
    }
}

/* SENTINEL_LOCAL_AI_UI_V1 */
.sentinel-ai-section { padding: 30px 0 55px; }
.sentinel-ai-panel {
  max-width: 850px;
  margin: auto;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(75, 210, 200, .35);
  border-radius: 18px;
  background: rgba(15, 28, 44, .92);
  color: #f4f8ff;
}
.sentinel-ai-panel h2 { color: #65e4d4; }
#sentinel-ai-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 25px 0;
}
#sentinel-ai-file { max-width: 100%; color: inherit; }
#sentinel-ai-submit {
  padding: 13px 22px;
  border: 0;
  border-radius: 9px;
  background: #35cbbb;
  color: #08222a;
  font-weight: 700;
  cursor: pointer;
}
#sentinel-ai-submit:disabled {
  opacity: .55;
  cursor: wait;
}
.sentinel-ai-results {
  margin-top: 20px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
}
.sentinel-ai-results[hidden] { display: none; }
.sentinel-ai-track {
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  background: #304252;
}
.sentinel-ai-track div {
  height: 100%;
  width: 0;
  background: #35cbbb;
  transition: width .3s ease;
}
#sentinel-ai-real-bar { background: #9784f2; }
.sentinel-ai-disclaimer {
  margin-top: 20px;
  font-size: .9rem;
  line-height: 1.6;
  opacity: .8;
}


/* SENTINEL_PASSO25_UI */

.sentinel-ai-section {
    padding: 45px 20px 70px;
}

.sentinel-ai-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;
    background: linear-gradient(
        145deg,
        #101c31,
        #081321
    );
    border: 1px solid #29445b;
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
    color: #f4f8ff;
}

.sentinel-ai-panel h2 {
    margin-bottom: 14px;
    color: #50e6d0;
    font-size: clamp(24px, 3vw, 32px);
}

.sentinel-ai-panel > p {
    line-height: 1.7;
    color: #bdd0e3;
}

#sentinel-ai-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 25px;
    margin-top: 25px;
    background: #0b182b;
    border: 1px solid #24394f;
    border-radius: 14px;
}

#sentinel-ai-form label {
    font-weight: 700;
    color: #f0f6ff;
}

#sentinel-ai-file {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 14px;
    color: #d9e8f7;
    background: #101f34;
    border: 1px solid #35516a;
    border-radius: 10px;
}

#sentinel-ai-file::file-selector-button {
    padding: 10px 16px;
    margin-right: 15px;
    background: #263d55;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

#sentinel-ai-submit {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(
        90deg,
        #23c9b3,
        #65e2d5
    );
    color: #06202b;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

#sentinel-ai-submit:hover:not(:disabled) {
    filter: brightness(1.08);
}

#sentinel-ai-submit:disabled {
    opacity: .55;
    cursor: wait;
}

#sentinel-ai-status {
    margin-top: 16px;
    font-weight: 600;
    color: #60e2d0;
}

.sentinel-ai-results {
    margin-top: 25px;
    padding: 26px;
    background: #0b192c;
    border: 1px solid #2b445c;
    border-radius: 14px;
}

.sentinel-ai-results[hidden] {
    display: none !important;
}

.sentinel-ai-results h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #ffffff;
}

.sentinel-ai-results p {
    margin: 16px 0 8px;
    font-weight: 600;
    color: #e4eef9;
}

.sentinel-ai-track {
    width: 100%;
    height: 16px;
    background: #253b50;
    border-radius: 30px;
    overflow: hidden;
}

.sentinel-ai-track > div {
    height: 100%;
    width: 0;
    border-radius: 30px;
    background: #31d5bd;
    transition: width .35s ease;
}

#sentinel-ai-real-bar {
    background: #9682f0;
}

.sentinel-ai-disclaimer {
    margin-top: 22px;
    font-size: 13px;
    line-height: 1.7;
    color: #aebed0;
}

@media (max-width: 600px) {
    .sentinel-ai-section {
        padding: 25px 12px 45px;
    }

    .sentinel-ai-panel {
        padding: 20px;
    }

    #sentinel-ai-form {
        padding: 16px;
    }

    .sentinel-ai-results {
        padding: 18px;
    }
}

/* SENTINEL_RESULT_V2 */
#sentinel-ai-model {
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #35d4bd;
    background: rgba(53, 212, 189, .07);
    border-radius: 8px;
    color: #e2f9f4;
    line-height: 1.7;
    font-weight: 500;
}

/* SENTINEL_REPORT_UI_V1 */
.sentinel-forensic-report {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #35516a;
}
.sentinel-forensic-report h3 {
    color: #55e1d2;
    margin: 0 0 20px;
}
.sentinel-forensic-report h4 {
    color: #ffffff;
    margin: 24px 0 12px;
}
.sentinel-forensic-report p {
    margin: 9px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
    font-weight: 400;
}
.sentinel-forensic-report .sentinel-report-note {
    margin-top: 24px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(70, 200, 190, .08);
    border-left: 3px solid #36d1bf;
}

/* SENTINEL_PDF_BUTTON_V1 */
.sentinel-pdf-download {
  display: block;
  margin-top: 20px;
  padding: 15px 22px;
  border-radius: 10px;
  background: #20c9bc;
  color: #071727;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}
.sentinel-pdf-download:hover {
  background: #5dded0;
}
.sentinel-pdf-warning {
  margin-top: 14px;
  color: #f1c16d;
}

/* PASSO153_DISCLAIMER */
.sentinel-disclaimer { font-size: 0.85em; opacity: 0.85; margin-top: 0.5em; line-height: 1.4; }

/* PASSO155_CHECKOUT */
.sentinel-checkout { margin: 1rem 0; padding: 1rem; border: 1px solid rgba(127,127,127,.4); border-radius: 8px; max-width: 100%; overflow-wrap: anywhere; }
.sentinel-checkout button { margin: .25rem .5rem .25rem 0; min-height: 44px; }
.sentinel-checkout-methods { display: flex; flex-wrap: wrap; }
.sentinel-checkout-amount strong { font-size: 1.2em; }
.sentinel-checkout-mono { font-family: monospace; font-size: .9em; }
.sentinel-checkout-qr { width: 200px; max-width: 100%; height: auto; background: #fff; padding: 8px; display: block; }
.sentinel-checkout-txid { width: 100%; max-width: 40rem; display: block; margin: .25rem 0; font-family: monospace; }
.sentinel-checkout-note { font-size: .85em; opacity: .85; }
