﻿:root {
    --ins-bg: #f3f4f6;
    --ins-bg-dark: #020617;
    --ins-surface: #ffffff;
    --ins-surface-dark: #020617;
    --ins-primary: #0f172a; /* blu notte */
    --ins-accent: #14b8a6; /* teal finance */
    --ins-gold: #fbbf24;
    --ins-text-muted: #6b7280;
}

body {
    background: var(--ins-bg);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: #111827;
    transition: background .3s ease, color .3s ease;
}

    body.dark {
        background: #020617;
        color: #e5e7eb;
    }

/* HEADER */
.ins-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(243, 244, 246, 0.90);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.dark .ins-header {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(30, 64, 175, 0.5);
}

.ins-header-inner {
    max-width: 1120px;
    margin: auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ins-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ins-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: radial-gradient(circle at 20% 20%, var(--ins-gold), var(--ins-accent));
    box-shadow: 0 0 18px rgba(56, 189, 248, .55);
}

.ins-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ins-primary);
}

body.dark .ins-logo-text {
    color: #e5e7eb;
}

.ins-header-nav a {
    font-size: 14px;
    margin-left: 18px;
    text-decoration: none;
    color: var(--ins-text-muted);
}

    .ins-header-nav a:hover {
        color: var(--ins-primary);
    }

body.dark .ins-header-nav a {
    color: #9ca3af;
}

    body.dark .ins-header-nav a:hover {
        color: #e5e7eb;
    }

/* THEME TOGGLE */
.ins-toggle-btn {
    border-radius: 999px;
}

/* HERO */
.hero {
    background: radial-gradient(circle at 10% 10%, #1e293b, #020617 70%);
    color: white;
    padding: 120px 20px 80px;
    text-align: center;
}

.hero-inner {
    max-width: 900px;
    margin: auto;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .75);
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 18px;
    color: #e5e7eb;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.hero p {
    font-size: 18px;
    color: #cbd5f5;
    margin-top: 16px;
}

.hero-cta {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* KPI STRIP */
.kpi-strip {
    max-width: 1120px;
    margin: -40px auto 40px;
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(15,23,42,0.97), rgba(8,47,73,0.97));
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
}

.kpi-strip-item {
    flex: 1;
}

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: #9ca3af;
}

.kpi-value {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.kpi-delta {
    font-size: 12px;
    color: #6ee7b7;
}

/* SECTION TITLES */
.section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ins-primary);
    margin-bottom: 12px;
}

body.dark .section-title {
    color: #e5e7eb;
}

.section-subtitle {
    color: var(--ins-text-muted);
    max-width: 640px;
}

body.dark .section-subtitle {
    color: #9ca3af;
}

/* FEATURE BOXES */
.feature-box {
    padding: 26px;
    background: var(--ins-surface);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: 100%;
}

    .feature-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
        border-color: rgba(37, 99, 235, 0.6);
    }

body.dark .feature-box {
    background: #020617;
    border-color: #1f2937;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

body.dark .feature-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

/* FUTURE INDEX BANNER */
.future-index {
    max-width: 1120px;
    margin: 50px auto;
    padding: 34px 28px;
    border-radius: 20px;
    background: linear-gradient(120deg, #0f172a, #020617 55%, #083344);
    color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.future-index-score {
    font-size: 56px;
    font-weight: 900;
    line-height: .9;
}

.future-index-badge {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .25);
    border: 1px solid rgba(45, 212, 191, .7);
    color: #a5f3fc;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* DASHBOARD MOCKUP */
.dashboard-mockup {
    max-width: 1120px;
    margin: 0 auto 50px;
    background: var(--ins-surface);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    border: 1px solid #e5e7eb;
}

body.dark .dashboard-mockup {
    background: #020617;
    border-color: #1f2937;
}

.mock-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.mock-dots span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 4px;
}

/* FORM AREA */
.form-area {
    background: var(--ins-surface);
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid #e5e7eb;
}

body.dark .form-area {
    background: #020617;
    border-color: #1f2937;
}

/* FOOTER */
.ins-footer {
    margin-top: 60px;
    padding: 30px 16px;
    text-align: center;
    background: #020617;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 768px) {
    .kpi-strip {
        flex-direction: column;
        text-align: center;
    }
}
.ins-card {
    background: var(--ins-surface);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

    .ins-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
        border-color: rgba(20, 184, 166, .40); /* accent soft */
    }

body.dark .ins-card {
    background: var(--ins-surface-dark);
    border-color: rgba(31,41,55,.90);
    box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

.ins-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ins-text-muted);
    margin-bottom: 6px;
}

.ins-input {
    border: 1px solid rgba(148,163,184,.45);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 15px;
    width: 100%;
    background: rgba(255,255,255,.85);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

    .ins-input:focus {
        outline: none;
        border-color: rgba(20,184,166,.65);
        box-shadow: 0 0 0 4px rgba(20,184,166,.14);
        background: #fff;
    }

body.dark .ins-input {
    background: rgba(2,6,23,.65);
    border-color: rgba(51,65,85,.80);
    color: #e5e7eb;
}

    body.dark .ins-input:focus {
        box-shadow: 0 0 0 4px rgba(20,184,166,.18);
    }

/* Buttons: niente gradienti, solo brand */
.ins-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 15px;
    background: var(--ins-primary);
    color: #fff;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

    .ins-btn:hover {
        transform: translateY(-1px);
        opacity: .95;
    }

.ins-btn-accent {
    background: var(--ins-accent);
    color: #062a2a;
    box-shadow: 0 14px 30px rgba(20,184,166,.22);
}

    .ins-btn-accent:hover {
        opacity: .95;
    }

.ins-btn-outline {
    width: 100%;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
    font-size: 15px;
    background: transparent;
    border: 1px solid rgba(148,163,184,.55);
    color: var(--ins-primary);
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

    .ins-btn-outline:hover {
        transform: translateY(-1px);
        background: rgba(15,23,42,.04);
        border-color: rgba(20,184,166,.45);
    }

body.dark .ins-btn-outline {
    color: #e5e7eb;
    border-color: rgba(51,65,85,.85);
}

    body.dark .ins-btn-outline:hover {
        background: rgba(255,255,255,.06);
    }

/* Mockup KPI/Charts: neutro, accent minimo */
.ins-kpi {
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 16px;
    padding: 14px;
    height: 100%;
}

body.dark .ins-kpi {
    background: rgba(2,6,23,.55);
    border-color: rgba(31,41,55,.85);
}

.ins-kpi-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ins-text-muted);
    margin-bottom: 6px;
}

.ins-kpi-value {
    font-size: 26px;
    font-weight: 900;
    color: var(--ins-primary);
    line-height: 1.1;
}

body.dark .ins-kpi-value {
    color: #e5e7eb;
}

.ins-kpi-sub {
    font-size: 12px;
    color: var(--ins-text-muted);
    margin-top: 6px;
}

    .ins-kpi-sub.positive {
        color: rgba(20,184,166,.95);
    }

.ins-chart {
    height: 180px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,.35);
    background: linear-gradient(180deg, rgba(15,23,42,.06) 0%, rgba(15,23,42,0) 78%);
    overflow: hidden;
}

body.dark .ins-chart {
    border-color: rgba(31,41,55,.85);
    background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,0) 78%);
}

.ins-bar {
    height: var(--h);
    width: 18px;
    margin: 0 auto;
    border-radius: 8px 8px 0 0;
    background: rgba(15,23,42,.18);
    border: 1px solid rgba(148,163,184,.35);
}

body.dark .ins-bar {
    background: rgba(255,255,255,.14);
    border-color: rgba(31,41,55,.85);
}

.ins-bar-label {
    font-size: 11px;
    margin-top: 6px;
    color: var(--ins-text-muted);
}

/* Piccolo fix per le classi auto-style che hai messo bianche */
.auto-style1, .auto-style2 {
    color: inherit;
}

/* LOGIN CARD */
.login-card {
    background: linear-gradient(145deg, #f7f9fb, #eef2f7);
    border-radius: 22px;
    padding: 32px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.3), 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.4);
}

.login-icon {
    font-size: 48px;
    color: #0a4cff;
    margin-bottom: 15px;
}

.auto-style1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.auto-style2 {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 22px;
    max-width: 300px;
}