/* ══════════════════════════════════════════════
   ASSESSMENT PAGE — Tomorrow Solutions
   ══════════════════════════════════════════════ */

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

:root {
    --bg: #040d1a;
    --bg2: #060f20;
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(0, 212, 255, 0.12);
    --border-h: rgba(0, 212, 255, 0.35);
    --cyan: #00d4ff;
    --cyan-d: rgba(0, 212, 255, 0.15);
    --purple: #7c3aed;
    --green: #00ff88;
    --yellow: #f59e0b;
    --red: #ef4444;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #475569;
    --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(4, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.logo-accent {
    color: var(--cyan);
}

.back-link {
    font-size: 13px;
    color: var(--text2);
    text-decoration: none;
    transition: var(--t);
}

.back-link:hover {
    color: var(--cyan);
}

/* HERO */
.assess-hero {
    text-align: center;
    padding: 80px 32px 48px;
    position: relative;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
}

.a-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00d4ff, transparent);
    top: -200px;
    left: -100px;
}

.a-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #7c3aed, transparent);
    top: -100px;
    right: -100px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    color: #00ff88;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.bdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 8px #00ff88;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.assess-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cyan-text {
    color: var(--cyan);
}

.hero-sub {
    font-size: 16px;
    color: var(--text2);
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-chips span {
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text2);
}

/* PROGRESS */
.progress-wrap {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
}

.progress-inner {
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.prog-step span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text3);
    transition: var(--t);
}

.prog-step small {
    font-size: 10px;
    color: var(--text3);
    letter-spacing: 0.5px;
    transition: var(--t);
}

.prog-step.active span {
    background: var(--cyan-d);
    border-color: var(--border-h);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.prog-step.active small {
    color: var(--cyan);
}

.prog-step.done span {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.prog-step.done small {
    color: #00ff88;
}

.prog-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 16px;
}

.progress-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    border-radius: 10px;
    width: 20%;
    transition: width 0.5s ease;
}

/* MAIN */
.assess-main {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

/* STEP CARD */
.step-card {
    display: none;
    animation: fadeUp 0.5s ease both;
}

.step-card.active {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.step-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.step-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.step-header p {
    font-size: 14px;
    color: var(--text2);
}

/* FORM FIELDS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.field-group input,
.field-group select,
.field-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: var(--t);
    -webkit-appearance: none;
}

.field-group input::placeholder {
    color: var(--text3);
}

.field-group input:focus,
.field-group select:focus {
    border-color: var(--border-h);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.field-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.field-group select option {
    background: #0f172a;
    color: var(--text);
}

.mt-20 {
    margin-top: 20px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.check-hint {
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 16px;
}

/* CHECKBOXES */
.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--t);
    font-size: 14px;
    color: var(--text2);
}

.check-item:hover {
    border-color: var(--border-h);
    background: rgba(0, 212, 255, 0.04);
    color: var(--text);
}

.check-item input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--cyan);
    cursor: pointer;
    flex-shrink: 0;
}

.check-item:has(input:checked) {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.06);
    color: var(--text);
}

/* RADIO */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text2);
    cursor: pointer;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: var(--t);
}

.radio-item:hover {
    border-color: var(--border-h);
}

.radio-item:has(input:checked) {
    border-color: var(--border-h);
    color: var(--cyan);
    background: var(--cyan-d);
}

.radio-item input {
    accent-color: var(--cyan);
}

/* RISK GRID */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.risk-card {
    padding: 18px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--t);
    text-align: center;
    user-select: none;
}

.risk-card:hover {
    border-color: var(--border-h);
    background: rgba(0, 212, 255, 0.04);
}

.risk-card.selected {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.08);
}

.risk-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.risk-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}

.risk-sub {
    font-size: 11px;
    color: var(--text3);
    line-height: 1.3;
}

/* STEP ACTIONS */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
}

.btn-next {
    padding: 14px 28px;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.45);
}

.btn-back {
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t);
}

.btn-back:hover {
    border-color: var(--border-h);
    color: var(--text);
}

/* ══ REPORT ══ */
.report-container {
    background: var(--bg2);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.report-header {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--cyan);
}

.rpt-company-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    text-align: right;
}

.rpt-date {
    font-size: 12px;
    color: var(--text2);
    text-align: right;
    margin-top: 2px;
}

/* Score */
.score-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 36px 32px;
    border-bottom: 1px solid var(--border);
}

.score-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.score-ring {
    width: 160px;
    height: 160px;
}

.score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}

.score-label {
    font-size: 13px;
    color: var(--text2);
}

.score-grade {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.score-desc {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 380px;
}

.risk-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.risk-low {
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.risk-medium {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.risk-high {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.risk-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

/* Findings */
.findings-section,
.recs-section,
.compliance-section {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
}

.section-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.findings-list,
.recs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.finding-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
}

.finding-sev {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.sev-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.sev-high {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.sev-medium {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.finding-text {
    font-size: 14px;
    color: var(--text2);
}

.finding-text strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 14px;
}

.rec-item {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(0, 255, 136, 0.04);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
}

.rec-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.rec-text {
    font-size: 14px;
    color: var(--text2);
}

.rec-text strong {
    display: block;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 2px;
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.comp-item {
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.comp-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.comp-status {
    font-size: 12px;
}

.status-yes {
    color: #00ff88;
}

.status-no {
    color: #ef4444;
}

/* Report CTA */
.report-cta {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(124, 58, 237, 0.05));
}

.cta-text h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.cta-text p {
    font-size: 13px;
    color: var(--text2);
}

.cta-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    border-radius: 10px;
    color: white;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: var(--t);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.cta-btn:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

/* Download bar */
.download-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-btn {
    flex: 1;
    min-width: 160px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--t);
    border: none;
}

.dl-btn.primary {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.dl-btn.primary:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.45);
    transform: translateY(-1px);
}

.dl-btn.secondary {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-h);
    color: var(--cyan);
}

.dl-btn.secondary:hover {
    background: rgba(0, 212, 255, 0.18);
}

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

.dl-btn.ghost:hover {
    border-color: var(--border-h);
    color: var(--text);
}

/* FOOTER */
.assess-footer {
    text-align: center;
    padding: 32px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text3);
}

.assess-footer a {
    color: var(--cyan);
    text-decoration: none;
}

@media (max-width: 768px) {

    .form-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .risk-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-section {
        flex-direction: column;
        text-align: center;
    }

    .comp-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-cta {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .assess-main {
        padding: 32px 20px 60px;
    }

    .risk-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-header {
        flex-direction: column;
        gap: 8px;
    }

    .rpt-company-name,
    .rpt-date {
        text-align: left;
    }
}