/* ─────────────────────────────────────────────
   ISW AI Readiness Portal — Global Styles
   Brand: Navy #1a2b4c | Teal #00a3e0
   ───────────────────────────────────────────── */

:root {
    --isw-navy:   #1a2b4c;
    --isw-navy2:  #243a6b;
    --isw-teal:   #00a3e0;
    --isw-teal2:  #0092ca;
    --isw-light:  #f0f6fb;
    --isw-border: #dde8f5;
    --text-dark:  #1a2334;
    --text-mid:   #495057;
    --text-muted: #6c757d;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: #f5f7fb;
    font-size: 15px;
    line-height: 1.65;
}

/* ── Navigation ── */
.isw-navbar {
    background: var(--isw-navy);
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(26,43,76,0.25);
}

.isw-navbar .brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.isw-navbar .nav-link {
    color: rgba(255,255,255,0.75) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem !important;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.isw-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

/* ── Buttons ── */
.btn-accent {
    background: var(--isw-teal);
    color: #fff !important;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-accent:hover {
    background: var(--isw-teal2);
    transform: translateY(-1px);
}

.btn-primary-isw {
    background: var(--isw-navy);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: background 0.2s;
}

.btn-primary-isw:hover { background: var(--isw-navy2); color: #fff; }

.text-accent { color: var(--isw-teal); }
.text-navy   { color: var(--isw-navy); }

/* ── Footer ── */
.isw-footer {
    background: #12213a;
    margin-top: auto;
}

/* ── Page Header Bar ── */
.page-header-bar {
    background: linear-gradient(135deg, var(--isw-navy), var(--isw-navy2));
    color: #fff;
    padding: 2rem 0;
}

.page-title    { font-size: 1.6rem; font-weight: 800; color: #fff; }
.page-subtitle { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, var(--isw-navy) 0%, #1a3a6b 60%, #0f2542 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,163,224,0.08) 0%, transparent 70%);
}

.min-vh-hero { min-height: 60vh; }

.hero-badge {
    display: inline-block;
    background: rgba(0,163,224,0.15);
    border: 1px solid rgba(0,163,224,0.3);
    color: #7dd3f9;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.accent-text { color: var(--isw-teal); }

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    line-height: 1.7;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--isw-teal);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.2rem;
}

.hero-visual { padding: 1rem; }

.radar-preview {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem;
}

/* ── Categories Section ── */
.categories-section { background: #fff; }

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--isw-navy);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
}

.category-card {
    background: var(--isw-light);
    border: 1.5px solid var(--isw-border);
    border-radius: 14px;
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,43,76,0.1);
    border-color: var(--isw-teal);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--isw-navy), var(--isw-navy2));
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-card h5 {
    font-weight: 700;
    color: var(--isw-navy);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.category-weight {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--isw-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Maturity Levels ── */
.levels-section { background: var(--isw-light); }

.maturity-ladder { max-width: 680px; margin: 0 auto; }

.maturity-rung {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
    background: #fff;
    box-shadow: 0 1px 6px rgba(26,43,76,0.06);
}

.level-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.level-info strong { display: block; font-weight: 700; color: var(--isw-navy); }
.level-info span   { font-size: 0.85rem; color: var(--text-muted); }

.level-initial    .level-number { background: #6c757d; }
.level-exploratory .level-number { background: #ffc107; }
.level-defined    .level-number { background: #fd7e14; }
.level-managed    .level-number { background: var(--isw-teal); }
.level-optimized  .level-number { background: #28a745; }

/* ── CTA Section ── */
.cta-section { background: linear-gradient(135deg, var(--isw-light), #e2edf9); }

/* ── Dashboard ── */
.summary-card {
    background: #fff;
    border: 1.5px solid var(--isw-border);
    border-radius: 14px;
    padding: 1.75rem 1.25rem;
    box-shadow: 0 1px 8px rgba(26,43,76,0.05);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--isw-navy);
    line-height: 1;
}

.summary-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.table-header-isw {
    background: var(--isw-navy);
    color: #fff;
}

.table-header-isw th {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    border: none;
    padding: 0.85rem 0.75rem;
}

.score-pill {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
}

.score-optimized  { background: #d1fae5; color: #065f46; }
.score-managed    { background: #dbeafe; color: #1e40af; }
.score-defined    { background: #fef3c7; color: #92400e; }
.score-exploratory { background: #fee2e2; color: #991b1b; }
.score-initial    { background: #f3f4f6; color: #374151; }

.maturity-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-optimized  { background: #d1fae5; color: #065f46; }
.badge-managed    { background: #dbeafe; color: #1e40af; }
.badge-defined    { background: #fef3c7; color: #92400e; }
.badge-exploratory { background: #fee2e2; color: #991b1b; }
.badge-initial    { background: #f3f4f6; color: #374151; }

/* ── Empty State ── */
.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--isw-border);
    display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { padding: 3rem 0; }
    .hero-title   { font-size: 2rem; }
    .wizard-body  { padding: 1.5rem; }
}
