/* ── DeyLabs CyberHUB Styles ────────────────────── */

:root {
    --primary: #0052cc;
    --primary-hover: #003d99;
    --primary-light: #deebff;
    --bg: #f4f6f8;
    --card-bg: #ffffff;
    --text: #172b4d;
    --text-secondary: #5e6c84;
    --border: #dfe1e6;
    --pill-bg: #ebecf0;
    --pill-active: #0052cc;
    --pill-active-text: #ffffff;
    --success: #36b37e;
    --warning: #ffab00;
    --danger: #de350b;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Top Navigation ─────────────────────────────── */
.topnav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topnav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

/* ── Main Layout ────────────────────────────────── */
main { flex: 1; padding: 30px 0; }

.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 { font-size: 28px; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); font-size: 16px; }

/* ── Cards ──────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.assessment-card {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    background: var(--card-bg);
    transition: all 0.2s;
    position: relative;
}

.assessment-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,82,204,0.15);
}

.assessment-card .icon { font-size: 36px; margin-bottom: 12px; }
.assessment-card h3 { margin-bottom: 8px; }
.assessment-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.assessment-card .badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Stepper ────────────────────────────────────── */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 15px;
    overflow-x: auto;
    gap: 8px;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}

.step-tab.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* ── Form Elements ──────────────────────────────── */
.step-content { display: none; }
.step-content.active { display: block; }

.form-group { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    background: var(--card-bg);
}

/* ── Pill Selector ──────────────────────────────── */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 8px 16px;
    background: var(--pill-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pill.selected {
    background: var(--pill-active);
    color: var(--pill-active-text);
    border-color: var(--pill-active);
}

/* ── Requirements Grid ──────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f4f5f7;
}

.req-item select { width: 120px; }

/* ── Buttons ────────────────────────────────────── */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-prev {
    background: #ebecf0;
    color: #42526e;
}

.btn-next, .btn-primary {
    background: var(--primary);
    color: white;
}

.btn-next:hover, .btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--pill-bg); color: var(--text); }

/* ── Results ────────────────────────────────────── */
.vendor-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.vendor-card.top {
    border-left: 4px solid var(--primary);
    background: #f0f5ff;
}

.vendor-score {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.badge-critical { color: var(--danger); font-weight: bold; }
.badge-high { color: var(--warning); font-weight: bold; }
.badge-low { color: var(--success); font-weight: bold; }

/* ── Footer ─────────────────────────────────────── */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ── Saved Reports ──────────────────────────────── */
.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.report-item:last-child { border-bottom: none; }

.report-meta { font-size: 13px; color: var(--text-secondary); }

/* ── Results Legend ─────────────────────────────── */
.legend {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   LANDING PAGE STYLES
   ══════════════════════════════════════════════════ */

/* ── Hero Section ──────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f5f0ff 100%);
    padding: 60px 0 80px;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text { flex: 1.3; }

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0,82,204,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #091e42;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #6554c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,82,204,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Hero Stats Card ───────────────────────────── */
.hero-visual { flex: 1; }

.hero-stats-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #f0f1f4;
}

.stat-row:last-child { border-bottom: none; }

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Sections ──────────────────────────────────── */
.section {
    padding: 60px 0;
}

.section-alt {
    background: #f8f9fc;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ── Assessment Cards (Landing) ────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.assessment-card {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    background: var(--card-bg);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.assessment-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,82,204,0.12);
    transform: translateY(-2px);
}

.card-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-icon { font-size: 26px; }

.assessment-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.assessment-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.card-footer {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-alt {
    background: #eef2f6;
    color: #42526e;
}

/* ── How It Works ──────────────────────────────── */
.steps-grid {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.step-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.step-number-bg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h3 { margin-bottom: 8px; font-size: 16px; }
.step-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

.step-arrow {
    font-size: 24px;
    color: var(--primary);
    padding-top: 48px;
    font-weight: 700;
}

/* ── Features Grid ─────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 6px; font-size: 16px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ── Reports Panel ─────────────────────────────── */
.reports-panel {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 8px;
    min-height: 60px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.report-row:last-child { border-bottom: none; }

.report-info { display: flex; flex-direction: column; gap: 2px; }
.report-meta { font-size: 13px; color: var(--text-secondary); }

.report-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* ── Loading Spinner ───────────────────────────── */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content { flex-direction: column; gap: 30px; }
    .hero-text h1 { font-size: 28px; }
    .hero-subtitle { font-size: 16px; }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); padding-top: 0; text-align: center; }
    .card-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero { padding: 40px 0; }
    .section { padding: 40px 0; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
}
