/* ═══════════════════════════════════════════════
   SECURE PRIDE — Design System v2 Tokens
   ═══════════════════════════════════════════════ */
:root {
    /* Surfaces */
    --void:           #05050f;
    --bg:             #0a0a1a;
    --surface:        #111128;
    --elevated:       #1a1a35;
    --border:         #2a2a50;
    --border-glow:    #3a3a6a;

    /* Brand neon */
    --cyan:           #06d6e0;
    --pink:           #ff2d95;
    --violet:         #b24bf3;
    --teal:           #0a7e74;
    --blue:           #448aff;
    --yellow:         #ffd600;
    --green:          #00e676;

    /* Text */
    --text-primary:   #eeeef6;
    --text-secondary: #9898b8;
    --text-muted:     #5a5a78;

    /* Gradients */
    --grad-rainbow:   linear-gradient(135deg, #ff3d00, #ff9100, #ffd600, #00e676, #448aff, #b24bf3, #ff2d95);
    --grad-neon:      linear-gradient(135deg, #06d6e0, #b24bf3, #ff2d95);

    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Rajdhani', 'Inter', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Motion */
    --motion-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --motion-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ─── Ambient glow orbs ──────────────────────── */
.glow-orb-tr,
.glow-orb-bl {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}
.glow-orb-tr {
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(178,75,243,0.08), transparent 70%);
}
.glow-orb-bl {
    bottom: -20%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,214,224,0.06), transparent 70%);
}

/* ─── Header ─────────────────────────────────── */
header {
    background: rgba(17, 17, 40, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 214, 224, 0.15);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.header-title .neon {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(6,214,224,0.6), 0 0 30px rgba(6,214,224,0.2);
}

.header-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--motion-base);
}

.header-nav a:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(6,214,224,0.5);
}

.btn-support {
    padding: 9px 20px;
    background: transparent;
    border: 1.5px solid rgba(6,214,224,0.4);
    border-radius: 8px;
    color: var(--cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--motion-base);
    box-shadow: 0 0 10px rgba(6,214,224,0.08);
}

.btn-support:hover {
    background: rgba(6,214,224,0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(6,214,224,0.25);
}

.btn-full {
    width: 100%;
    margin-top: 16px;
    justify-content: center;
}

/* ─── Main layout ────────────────────────────── */
main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    padding: 28px 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ─── Cards ──────────────────────────────────── */
.gauge-section,
.audit-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gauge-card,
.audit-card {
    background: var(--surface);
    border: 1.5px solid rgba(6,214,224,0.12);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(6,214,224,0.06), 0 0 30px rgba(6,214,224,0.04);
}

/* Subtle radial gradient wash inside cards */
.gauge-card::before,
.audit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(6,214,224,0.05), transparent 60%);
    pointer-events: none;
}

/* Rainbow border on featured card */
.audit-card {
    border-color: transparent;
    background-clip: padding-box;
}
.audit-card-rainbow {
    position: relative;
    padding: 2px;
    background: var(--grad-rainbow);
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(255,45,149,0.15), 0 0 40px rgba(178,75,243,0.1), 0 0 60px rgba(6,214,224,0.08);
}
.audit-card-rainbow > .audit-card {
    border-radius: 16px;
    border: none;
    height: 100%;
}

/* ─── Section titles ─────────────────────────── */
.gauge-title,
.audit-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gauge-title::before,
.audit-title::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: var(--grad-neon);
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(6,214,224,0.4);
}

/* ─── Gauge ──────────────────────────────────── */
.gauge-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 4px;
    position: relative;
}

.gauge-svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 12px rgba(6,214,224,0.15));
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-value-number {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 16px rgba(6,214,224,0.6);
    line-height: 1;
}

.gauge-value-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.gauge-progress {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-status {
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(6,214,224,0.04);
    border-radius: 10px;
    border-left: 3px solid var(--cyan);
}

.gauge-status-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.gauge-status-text {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

/* ─── Status pills ───────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 8px;
}

.status-pill.pass {
    background: rgba(0,230,118,0.12);
    color: var(--green);
    border: 1px solid rgba(0,230,118,0.3);
    text-shadow: 0 0 8px rgba(0,230,118,0.4);
}

.status-pill.warn {
    background: rgba(255,214,0,0.12);
    color: var(--yellow);
    border: 1px solid rgba(255,214,0,0.3);
    text-shadow: 0 0 8px rgba(255,214,0,0.4);
}

.status-pill.fail {
    background: rgba(255,45,149,0.12);
    color: var(--pink);
    border: 1px solid rgba(255,45,149,0.3);
    text-shadow: 0 0 8px rgba(255,45,149,0.4);
}

/* ─── Audit feed ─────────────────────────────── */
.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.audit-status-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    background: rgba(6,214,224,0.08);
    border: 1px solid rgba(6,214,224,0.3);
    border-radius: 4px;
    color: var(--cyan);
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(6,214,224,0.4);
}

.findings-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finding-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px 14px;
    transition: all var(--motion-base);
}

.finding-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-glow);
}

.finding-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}

.finding-body { flex: 1; }

.finding-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.finding-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-family: var(--font-body);
}

.finding-score {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.score-pass { color: var(--green);  text-shadow: 0 0 8px rgba(0,230,118,0.4); }
.score-warn { color: var(--yellow); text-shadow: 0 0 8px rgba(255,214,0,0.4); }
.score-fail { color: var(--pink);   text-shadow: 0 0 8px rgba(255,45,149,0.4); }
.text-magenta { color: var(--pink); text-shadow: 0 0 8px rgba(255,45,149,0.4); }

/* ─── Scan placeholder ───────────────────────── */
.scan-placeholder {
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 24px 16px;
    text-align: center;
}

.scan-placeholder-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.scan-placeholder-subtext {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ─── Animations ─────────────────────────────── */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

.pulse { animation: pulse 2s ease-in-out infinite; }
.float { animation: float 3s ease-in-out infinite; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
    main { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 14px; padding: 14px 20px; }
    main   { padding: 16px; gap: 16px; }

    .gauge-container { width: 130px; height: 130px; }
    .gauge-value-number { font-size: 26px; }
    .header-title { font-size: 17px; }
}
