:root{
    --bg:#0b1220;
    --surface:rgba(11,18,32,.72);
    --surface-2:rgba(15,23,42,.78);
    --surface-3:rgba(19,31,52,.82);
    --text:#e5edf7;
    --muted:#b0bdd0;
    --border:rgba(148,163,184,.16);
    --primary:#2f6fed;
    --primary-hover:#235ed2;
    --success:#22c55e;
    --warning:#f59e0b;
    --danger:#ef4444;
    --info:#60a5fa;
    --shadow:0 20px 45px rgba(0,0,0,.28);
    --radius-xl:24px;
    --maxw:1460px;
    
    --overlay-a:.42;
    --overlay-b:.60;
}

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    -webkit-tap-highlight-color:transparent;
}

html,body{
    width:100%;
    min-height:100%;
    overflow-x:hidden;
}

body{
    font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background:var(--bg);
    color:var(--text);
    padding:20px;
    user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
}

.bg-image{
    position:fixed;
    inset:0;
    z-index:-3;
    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;
    opacity:0;
    transition:opacity .25s ease;
    pointer-events:none;
}
.bg-image.visible{opacity:var(--bg-opacity)}

.bg-overlay{
    position:fixed;
    inset:0;
    z-index:-2;
    background:
        linear-gradient(180deg, rgba(7,12,22,var(--overlay-a)), rgba(7,12,22,var(--overlay-b))),
        radial-gradient(circle at 15% 20%, rgba(96,165,250,.10), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(47,111,237,.08), transparent 22%),
        radial-gradient(circle at 50% 90%, rgba(255,255,255,.04), transparent 18%);
    pointer-events:none;
}

.app-shell{
    max-width:var(--maxw);
    margin:0 auto;
}

.hero{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    backdrop-filter:blur(10px);
    box-shadow:var(--shadow);
    padding:24px 24px 18px;
    margin-bottom:18px;
}

.hero-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.logo-slot{
    width:170px;
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.brand-logo{
    max-width:210px;
    max-height:110px;
    width:auto;
    height:auto;
    display:block;
    object-fit:contain;
    filter:drop-shadow(0 8px 16px rgba(0,0,0,.18));
}

.logo-placeholder{
    min-width:120px;
    min-height:48px;
    padding:10px 14px;
    border:1px dashed rgba(255,255,255,.18);
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--muted);
    font-size:.82rem;
    letter-spacing:.14em;
    text-transform:uppercase;
    background:rgba(255,255,255,.03);
}

.hero-security-note{
    font-size:.78rem;
    color:#d5deea;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:999px;
    padding:8px 12px;
    line-height:1.2;
    white-space:nowrap;
}

.hero-center{
    text-align:center;
    padding:4px 8px 12px;
}

.hero h1{
    font-size:clamp(2rem,4vw,2.85rem);
    line-height:1.08;
    font-weight:650;
    letter-spacing:-.02em;
    margin-bottom:10px;
    color:#f7fbff;
}

.hero-subtitle{
    color:var(--muted);
    font-size:.9rem;
    line-height:1.55;
    max-width:860px;
    margin:0 auto;
}

.main-nav{
    display:flex;
    gap:12px;
    justify-content:center;
    flex-wrap:wrap;
    margin-top:12px;
}

.nav-btn,
.action-btn{
    appearance:none;
    border:none;
    cursor:pointer;
    transition:.2s ease;
    font-weight:650;
    letter-spacing:.01em;
}

.nav-btn{
    padding:12px 18px;
    border-radius:12px;
    background:rgba(255,255,255,.05);
    color:var(--text);
    border:1px solid rgba(255,255,255,.08);
    min-width:210px;
}

.nav-btn:hover,
.nav-btn.active{
    background:linear-gradient(180deg, rgba(47,111,237,.92), rgba(35,94,210,.92));
    border-color:rgba(47,111,237,.95);
    box-shadow:0 10px 22px rgba(47,111,237,.24);
    transform:translateY(-1px);
}

.panel{
    display:none;
    animation:fadeIn .24s ease;
}
.panel.active{display:block}

.panel-card{
    background:var(--surface-2);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    backdrop-filter:blur(9px);
    box-shadow:var(--shadow);
    padding:22px;
    margin-bottom:18px;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

.section-head h2{
    font-size:1.38rem;
    font-weight:650;
    color:#f5f9ff;
    margin-bottom:6px;
}

.section-head p{
    color:var(--muted);
    font-size:.95rem;
    line-height:1.55;
    max-width:920px;
}

.input-shell{
    display:flex;
    align-items:stretch;
    gap:0;
    overflow:hidden;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
    box-shadow:0 12px 30px rgba(0,0,0,.20);
}

.input-shell:focus-within{
    border-color:rgba(96,165,250,.55);
    box-shadow:0 0 0 4px rgba(96,165,250,.12);
}

input[type="email"]{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    font:inherit;
    padding:17px 18px;
}

.action-btn{
    background:linear-gradient(180deg, var(--primary), var(--primary-hover));
    color:#f9fbff;
    padding:0 22px;
    white-space:nowrap;
}

.status-line{
    min-height:24px;
    margin-top:14px;
    color:var(--muted);
    font-size:.93rem;
    line-height:1.5;
}

.concept-card{
    display:flex;
    gap:14px;
    align-items:flex-start;
    background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;
    padding:16px;
    margin-top:16px;
}

.concept-icon{
    font-size:1.8rem;
    line-height:1;
    opacity:.78;
}

.concept-card h4{
    color:#f5f9ff;
    margin-bottom:5px;
    font-size:1rem;
}

.concept-card p{
    color:var(--muted);
    font-size:.92rem;
    line-height:1.55;
}

.metrics-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
    margin:18px 0 20px;
}

.metric-card{
    background:var(--surface-3);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    min-height:168px;
}

.metric-value{
    font-size:2rem;
    line-height:1;
    font-weight:700;
    margin-bottom:8px;
}

.metric-label{
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:.77rem;
    color:var(--muted);
    font-weight:700;
}

.metric-sub{
    margin-top:6px;
    font-size:.8rem;
    color:var(--muted);
    line-height:1.45;
}

.progress-track{
    width:100%;
    height:8px;
    background:rgba(255,255,255,.07);
    border-radius:999px;
    overflow:hidden;
    margin-top:12px;
}

.progress-fill{
    height:100%;
    border-radius:999px;
    background:var(--primary);
    transition:width .3s ease;
}

.metric-note{
    font-size:.74rem;
    color:var(--muted);
    line-height:1.4;
    margin-top:8px;
}

.breach-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
    gap:14px;
}

.breach-card{
    background:linear-gradient(180deg, rgba(18,28,46,.90), rgba(14,22,37,.86));
    border:1px solid rgba(255,255,255,.08);
    border-left:4px solid var(--danger);
    border-radius:16px;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.breach-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    flex-wrap:wrap;
    padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,.07);
}

.breach-title{
    font-size:1.06rem;
    font-weight:650;
    color:#fff;
    overflow-wrap:anywhere;
}

.tag-row,
.risk-answer-list,
.data-chip-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.tag,
.answer-chip,
.data-chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:.74rem;
    padding:5px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.08);
    font-weight:650;
}

.tag.industry{background:rgba(96,165,250,.12);color:#a8cbff}
.tag.verified{background:rgba(34,197,94,.12);color:#9be7b6}
.tag.generic{background:rgba(255,255,255,.05);color:#dfe7f3}
.answer-chip.good{background:rgba(34,197,94,.12);color:#9be7b6}
.answer-chip.bad{background:rgba(239,68,68,.12);color:#ffb1b1}
.data-chip{background:rgba(255,255,255,.06);color:#e7eef9}

.breach-stats{
    display:flex;
    flex-wrap:wrap;
    gap:10px 14px;
    color:var(--muted);
    font-size:.9rem;
}

.breach-stats strong{color:#fff}

.breach-desc{
    color:#dce5f1;
    font-size:.92rem;
    line-height:1.58;
}

.info-box{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.06);
    border-radius:14px;
    padding:14px;
}

.info-box-title{
    font-size:.76rem;
    color:var(--muted);
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:8px;
    font-weight:700;
}

.risk-layout{
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
    gap:16px;
}

.questions-grid{
    display:grid;
    gap:12px;
}

.question-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.07);
    border-radius:16px;
    padding:15px 16px;
}

.question-card label{
    color:#edf3fb;
    font-size:.95rem;
    line-height:1.5;
}

.q-toggle{
    display:inline-flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
}

.q-toggle input{
    width:18px;
    height:18px;
    accent-color:var(--primary);
    cursor:pointer;
}

.q-toggle span{
    font-size:.86rem;
    color:var(--muted);
    font-weight:650;
}

.risk-summary-card{
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
}

.risk-summary-card h3{
    font-size:1rem;
    color:#f5f9ff;
    margin-bottom:14px;
}

.risk-big-score{
    font-size:2.5rem;
    line-height:1;
    font-weight:750;
    margin-bottom:10px;
}

.risk-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    padding:7px 12px;
    font-size:.8rem;
    font-weight:750;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:12px;
}

.risk-low{
    background:rgba(34,197,94,.12);
    color:#9be7b6;
    border:1px solid rgba(34,197,94,.22);
}

.risk-medium{
    background:rgba(245,158,11,.12);
    color:#ffd286;
    border:1px solid rgba(245,158,11,.22);
}

.risk-high{
    background:rgba(239,68,68,.12);
    color:#ffb1b1;
    border:1px solid rgba(239,68,68,.22);
}

.risk-description{
    margin-top:14px;
    color:#dce5f1;
    font-size:.93rem;
    line-height:1.58;
}

.risk-list{
    margin:12px 0 0 18px;
    color:#dce5f1;
    font-size:.92rem;
    line-height:1.55;
}

.risk-list li+li{
    margin-top:7px;
}

.hidden{display:none!important}
.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.text-danger{color:var(--danger)}
.text-success{color:var(--success)}
.text-warning{color:var(--warning)}
.text-info{color:var(--info)}
.text-muted{color:var(--muted)}

@keyframes fadeIn{
    from{opacity:0;transform:translateY(8px)}
    to{opacity:1;transform:translateY(0)}
}

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

    .hero-top{
        align-items:flex-start;
    }

    .hero-security-note{
        white-space:normal;
        max-width:280px;
    }
}

@media (max-width:760px){
    body{
        padding:14px;
    }

    .hero{
        padding:18px 16px 16px;
    }

    .hero-top{
        flex-direction:column;
        align-items:flex-start;
        margin-bottom:12px;
    }

    .logo-slot{
        width:100%;
        min-height:auto;
    }

    .hero-center{
        padding:2px 0 10px;
    }

    .main-nav{
        flex-direction:column;
    }

    .nav-btn{
        width:100%;
        min-width:0;
    }

    .input-shell{
        flex-direction:column;
        gap:10px;
        border:none;
        background:transparent;
        box-shadow:none;
    }

    .input-shell input{
        border-radius:14px;
        background:rgba(255,255,255,.05);
        border:1px solid rgba(255,255,255,.08);
    }

    .action-btn{
        min-height:50px;
        border-radius:14px;
    }

    .panel-card{
        padding:16px;
    }

    .metrics-grid,
    .breach-grid{
        grid-template-columns:1fr;
    }

    .question-card{
        flex-direction:column;
        align-items:flex-start;
    }
}