:root {

    --bg: #080d16;
    --bg-secondary: #101827;
    --surface: #131d2f;
    --surface-hover: #19243b;

    --border: rgba(255,255,255,.08);

    --text: #f8fafc;
    --text-muted: #94a3b8;

    --primary: #4f8cff;
    --primary-hover: #6aa0ff;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --radius: 16px;

    --container: 1500px;

    --shadow:
        0 10px 40px rgba(0,0,0,.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #13213d 0%,
            #080d16 40%
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;

    line-height: 1.5;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: .2s;
}

a:hover {
    color: var(--primary-hover);
}

.container {

    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin: auto;
}

/* HEADER */

.header {

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(20px);

    background:
        rgba(8,13,22,.85);

    border-bottom:
        1px solid var(--border);
}

.header-inner {

    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin: auto;

    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {

    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo a {
    color: white;
}

.nav {

    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {

    color: var(--text-muted);

    padding: 10px 14px;

    border-radius: 12px;

    transition: .2s;
}

.nav a:hover,
.nav a.active {

    background:
        rgba(255,255,255,.06);

    color: white;
}

/* PAGE */

.page {
    padding: 40px 0;
}

.hero {

    padding: 120px 0 80px;

    text-align: center;
}

.hero h1 {

    font-size: 72px;
    line-height: 1;

    letter-spacing: -3px;

    margin-bottom: 20px;
}

.hero p {

    max-width: 850px;

    margin: auto;

    font-size: 22px;

    color: var(--text-muted);
}

/* LANDING PAGE */

.hero-center {

    max-width: 1200px;

    margin: 0 auto;

    padding: 120px 20px;

    text-align: center;
}

.hero-center h1 {

    font-size: 84px;

    line-height: 1;

    margin-bottom: 24px;

    letter-spacing: -3px;
}

.hero-center p {

    max-width: 1000px;

    margin: 0 auto 40px;

    font-size: 24px;

    color: var(--text-muted);
}

.search-wrap {

    max-width: 900px;

    margin: 0 auto 60px;
}

.search-wrap form {

    display: flex;
}

.search-wrap input {

    flex: 1;

    border: none;

    background: var(--surface);

    color: white;

    padding: 20px;

    font-size: 18px;

    border-radius: 14px 0 0 14px;
}

.search-wrap button {

    border: none;

    background: var(--primary);

    color: white;

    padding: 0 30px;

    cursor: pointer;

    border-radius: 0 14px 14px 0;
}

.cta {
    margin-top: 60px;
}

.cta a {

    display: inline-block;

    background: var(--primary);

    color: white;

    padding: 18px 34px;

    border-radius: 14px;

    font-weight: 600;
}

/* STATS */

.stat-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 20px;

    margin-top: 40px;
}

.stat {

    background:
        rgba(19,29,47,.9);

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 30px;

    box-shadow: var(--shadow);
}

.stat-label {

    color: var(--text-muted);

    margin-bottom: 12px;
}

.stat-value {

    font-size: 48px;

    font-weight: 800;
}

/* CARDS */

.cards {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));

    gap: 20px;
}

.card,
.panel {

    background:
        rgba(19,29,47,.9);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

    padding: 24px;
}

.card:hover,
.panel:hover {

    border-color:
        rgba(79,140,255,.3);
}

.card-title {

    color: var(--text-muted);

    font-size: 14px;

    margin-bottom: 8px;
}

.card-value {

    font-size: 42px;

    font-weight: 800;
}

/* GRID */

.grid {

    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 24px;
}

/* TABLES */

.table {

    width: 100%;

    border-collapse: collapse;
}

.table th {

    text-align: left;

    color: var(--text-muted);

    padding: 14px;
}

.table td {

    padding: 14px;

    border-top:
        1px solid var(--border);
}

/* BADGES */

.badge {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    background:
        rgba(79,140,255,.15);

    color: #b9d0ff;

    font-size: 12px;

    font-weight: 600;
}

.subtitle {
    color: var(--text-muted);
}

.muted {
    color: var(--text-muted);
}

/* FOOTER */

.footer {

    margin-top: 80px;

    padding: 40px 0;

    text-align: center;

    color: var(--text-muted);

    border-top:
        1px solid var(--border);
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-center h1 {
        font-size: 52px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-center p {
        font-size: 18px;
    }

    .nav {
        flex-wrap: wrap;
    }
}

/* ==========================================
USER MENU
========================================== */

.user-menu {
position: relative;
}

.user-menu-trigger {
display: flex;
align-items: center;
gap: 8px;


background: transparent;
border: none;
cursor: pointer;

padding: 0;
color: white;


}

.user-avatar {
width: 38px;
height: 38px;


border-radius: 50%;

background: linear-gradient(
    135deg,
    var(--primary),
    #2f5fd4
);

color: white;

display: flex;
align-items: center;
justify-content: center;

font-weight: 800;
font-size: 14px;

box-shadow:
    0 0 20px rgba(79,140,255,.25);


}

.user-avatar-large {
width: 56px;
height: 56px;


margin: 0 auto 12px;

border-radius: 50%;

background: linear-gradient(
    135deg,
    var(--primary),
    #2f5fd4
);

color: white;

display: flex;
align-items: center;
justify-content: center;

font-weight: 800;
font-size: 22px;


}

.user-chevron {
font-size: 10px;
opacity: .7;
color: var(--text-muted);
}

.user-dropdown {
position: absolute;
top: calc(100% + 14px);
right: 0;


width: 280px;

background: rgba(19,29,47,.98);

border: 1px solid var(--border);

border-radius: 16px;

box-shadow: var(--shadow);

overflow: hidden;

display: none;

z-index: 2000;


}

.user-menu.open .user-dropdown {
display: block;
}

.user-dropdown-header {
padding: 20px;
text-align: center;


border-bottom: 1px solid var(--border);


}

.user-dropdown-name {
font-size: 16px;
font-weight: 700;
color: white;
}

.user-dropdown-email {
margin-top: 4px;


font-size: 13px;

color: var(--text-muted);

word-break: break-word;


}

.user-dropdown-plan {
margin-top: 12px;


display: inline-block;

padding: 6px 12px;

border-radius: 999px;

background: rgba(79,140,255,.15);

color: #b9d0ff;

font-size: 11px;
font-weight: 700;

text-transform: uppercase;


}

.user-dropdown-links {
padding: 8px 0;
}

.user-dropdown-links a {
display: block;


padding: 12px 18px;

color: var(--text);

text-decoration: none;


}

.user-dropdown-links a:hover {
background: rgba(255,255,255,.05);
color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-input,
.form-textarea {
    width: 100%;

    background: rgba(255,255,255,.04);

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text);

    padding: 14px 16px;

    font-size: 14px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(79,140,255,.15);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;

    border: none;
    border-radius: 10px;

    background: var(--primary);

    color: white;

    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: .9;
}

.assessment-section {
    margin-top: 20px;
}

.assessment-section strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.assessment-list {
    margin: 0;
    padding-left: 20px;
}

.assessment-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #cbd5e1;
}

.assessment-analysis {
    margin-top: 10px;
    line-height: 1.7;
    color: #cbd5e1;
}

.assessment-metrics {
    display: flex;
    gap: 20px;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.assessment-metric {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 10px 14px;
}

.assessment-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.assessment-verdict {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
}

.verdict-good {
    background: rgba(34,197,94,.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,.4);
}

.verdict-bad {
    background: rgba(239,68,68,.15);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,.4);
}

.verdict-warning {
    background: rgba(245,158,11,.15);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,.4);
}

.verdict-neutral {
    background: rgba(148,163,184,.15);
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,.4);
}

.assessment-score {
    min-width: 250px;
}

.assessment-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg,#22c55e,#16a34a);
}

.progress-fill.confidence {
    background: linear-gradient(90deg,#3b82f6,#2563eb);
}

.assessment-value {
    margin-top: 6px;
    font-weight: 600;
}

.search-form input {
    height: 58px;
    font-size: 18px;
    border-radius: 12px;
}

.search-form button {
    height: 58px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
}

.intelligence-search {
    max-width: 900px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-row input {
    flex: 1;
    height: 58px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(15,23,42,.75);
    color: #fff;
    font-size: 17px;
    padding: 0 18px;
    outline: none;
}

.search-row input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.search-row button {
    height: 58px;
    border: 0;
    border-radius: 12px;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.search-options {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.verify-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    cursor: pointer;
}

.verify-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.toggle-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.toggle-text small {
    color: #64748b;
    font-size: 12px;
}