/* SentinelAI custom theme */
:root {
    --bg: #06111f;
    --bg-2: #0b1f33;
    --surface: rgba(15, 34, 54, 0.82);
    --surface-strong: #10263d;
    --line: rgba(163, 205, 255, 0.16);
    --text: #eef7ff;
    --muted: #9fb6ca;
    --primary: #10e5b9;
    --primary-dark: #08a98a;
    --secondary: #28c2ff;
    --accent: #ffb020;
    --danger: #ff4d6d;
    --success: #2ee59d;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 5%, rgba(16, 229, 185, 0.16), transparent 28rem),
        radial-gradient(circle at 88% 20%, rgba(40, 194, 255, 0.14), transparent 24rem),
        linear-gradient(135deg, var(--bg), #081827 54%, #03101d);
    color: var(--text);
    min-height: 100vh;
}

h1, h2, h3, .navbar-brand {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: -0.04em;
}

a { color: inherit; }

a:hover { color: var(--primary); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #03101d;
    padding: .75rem 1rem;
    z-index: 9999;
}

.skip-link:focus { left: 1rem; top: 1rem; }

.app-nav {
    background: rgba(6, 17, 31, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.navbar-brand { color: var(--text); font-weight: 700; }
.navbar-brand:hover, .nav-link:hover { color: var(--primary); }
.nav-link { color: var(--muted); font-weight: 600; }
.navbar-toggler { border-color: var(--line); }
.navbar-toggler-icon { filter: invert(1); }
.brand-mark { color: var(--primary); text-shadow: 0 0 24px rgba(16, 229, 185, .75); }

.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-primary-neo {
    color: #02111d;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 0;
    box-shadow: 0 16px 36px rgba(16, 229, 185, 0.24);
}

.btn-primary-neo:hover, .btn-primary-neo:focus {
    color: #02111d;
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(40, 194, 255, 0.28);
}

.btn-ghost, .btn-admin {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover, .btn-admin:hover { border-color: var(--primary); background: rgba(16, 229, 185, 0.1); }

.hero-section { padding: 4rem 0 2rem; }
.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 4rem 0 2rem; }

.display-title {
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: .92;
    max-width: 12ch;
}

.page-title { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1; max-width: 12ch; }
.hero-copy { color: #c7d8e8; font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 43rem; }
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary);
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.eyebrow::before, .section-kicker::before {
    content: "";
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 24px rgba(16, 229, 185, .85);
}

.text-muted-soft { color: var(--muted); }
.letter-spaced { letter-spacing: .16em; color: var(--muted); }

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: .7;
    pointer-events: none;
}
.orb-one { width: 18rem; height: 18rem; right: -4rem; top: 6rem; background: radial-gradient(circle, rgba(16,229,185,.28), transparent 62%); }
.orb-two { width: 12rem; height: 12rem; left: 45%; bottom: 1rem; background: radial-gradient(circle, rgba(255,176,32,.18), transparent 62%); }

.glass-card, .surface-card, .metric-tile {
    background: linear-gradient(145deg, rgba(16, 38, 61, .9), rgba(9, 24, 40, .82));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.hero-panel { padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; overflow: hidden; }
.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -4rem -5rem auto;
    width: 14rem;
    height: 14rem;
    background: linear-gradient(135deg, rgba(16,229,185,.22), rgba(40,194,255,.16));
    transform: rotate(20deg);
    border-radius: 2.5rem;
}
.status-dot { width: .85rem; height: .85rem; background: var(--primary); border-radius: 50%; box-shadow: 0 0 22px var(--primary); }

.risk-meter {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #10263d 58%, transparent 59%),
        conic-gradient(var(--primary), var(--secondary), var(--accent), var(--primary));
    position: relative;
}
.risk-meter span { display: block; font: 700 3.5rem/1 "Space Grotesk"; }
.risk-meter small { display: block; color: var(--muted); margin-top: .25rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .72rem; }
.risk-meter.detail { width: 15rem; height: 15rem; }
.risk-ring-warning { background: radial-gradient(circle at center, #10263d 58%, transparent 59%), conic-gradient(var(--accent), #ffd166, var(--accent)); }
.risk-ring-danger, .risk-ring-critical { background: radial-gradient(circle at center, #10263d 58%, transparent 59%), conic-gradient(var(--danger), var(--accent), var(--danger)); }

.metric-card, .metric-tile {
    padding: 1rem;
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.metric-card strong, .metric-tile strong { display: block; font: 700 1.8rem/1 "Space Grotesk"; }
.metric-card span, .metric-tile span { color: var(--muted); font-size: .86rem; }
.metric-tile { padding: 1.4rem; }
.metric-tile strong { margin-top: .5rem; font-size: 2.2rem; }

.trust-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.trust-row span { padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: #d7e8f7; background: rgba(255,255,255,.04); }
.signal-list { display: grid; gap: .8rem; color: #d7e8f7; }
.signal { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .55rem; }
.signal.good { background: var(--success); } .signal.warn { background: var(--accent); } .signal.danger { background: var(--danger); }

.scan-form textarea, .scan-form input[type="text"], .form-control {
    width: 100%;
    color: var(--text);
    background: rgba(3, 16, 29, 0.72);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
}
.scan-form textarea:focus, .form-control:focus {
    color: var(--text);
    background: rgba(3, 16, 29, .9);
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(16, 229, 185, .12);
}
.form-label { color: #dcecff; font-weight: 800; }
.form-text { color: var(--muted); }
.invalid-copy { color: #ff8ba0; font-weight: 700; margin-top: .5rem; }

.scan-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.scan-choice {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    cursor: pointer;
    font-weight: 800;
}
.scan-choice:has(input:checked) { border-color: var(--primary); background: rgba(16,229,185,.12); }
.scan-choice input, .metadata-check input { accent-color: var(--primary); }

.privacy-stack { display: grid; gap: 1rem; }
.privacy-stack article { padding: 1.2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255,255,255,.035); }
.privacy-stack span { color: var(--primary); font-weight: 900; }
.privacy-stack h3 { font-size: 1.15rem; margin: .4rem 0; }
.privacy-stack p { color: var(--muted); margin: 0; }

.scan-card {
    display: block;
    min-height: 13rem;
    padding: 1.35rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(16,38,61,.86), rgba(9,24,40,.72));
    transition: transform .2s ease, border-color .2s ease;
}
.scan-card:hover { transform: translateY(-3px); border-color: var(--primary); color: var(--text); }
.scan-card strong { display: block; font: 700 2.2rem/1 "Space Grotesk"; margin: 1rem 0 .75rem; }
.scan-card p { color: #d6e7f6; }
.scan-card small { color: var(--muted); }

.badge { border-radius: 999px; padding: .45rem .7rem; }
.risk-success { background: rgba(46,229,157,.15); color: #7dffc8; border: 1px solid rgba(46,229,157,.28); }
.risk-warning { background: rgba(255,176,32,.15); color: #ffd68a; border: 1px solid rgba(255,176,32,.3); }
.risk-danger, .risk-critical { background: rgba(255,77,109,.16); color: #ff9aad; border: 1px solid rgba(255,77,109,.34); }

.empty-state { border: 1px dashed var(--line); border-radius: var(--radius-xl); background: rgba(255,255,255,.035); }
.empty-icon { font-size: 3rem; color: var(--primary); }

.page-hero { background: linear-gradient(180deg, rgba(16,229,185,.07), transparent); border-bottom: 1px solid var(--line); }
.app-table { --bs-table-bg: transparent; --bs-table-border-color: var(--line); color: var(--text); }
.app-table th { color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.preview-cell { max-width: 24rem; color: #d7e8f7; }

.scan-meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; margin-top: 1rem; }
.scan-meta dd { color: var(--text); margin-bottom: 0; word-break: break-word; }
.scan-meta code { color: var(--primary); }
.indicator-list { display: grid; gap: .8rem; }
.indicator-list article {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
}
.indicator-list p { color: var(--muted); margin: .25rem 0 0; }
.indicator-list span { color: var(--accent); font-weight: 900; }
.action-list { color: #d7e8f7; display: grid; gap: .7rem; }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); background: rgba(3,16,29,.72); }

@media (max-width: 767px) {
    .hero-section { padding-top: 2.5rem; }
    .scan-choice-grid { grid-template-columns: 1fr; }
    .risk-meter { width: 10.5rem; height: 10.5rem; }
    .display-title { max-width: 100%; }
}
