/* ========================================
   OS360 Design System
   ======================================== */

:root {
  /* Brand Colors */
  --alpine-navy: #003B5C;
  --alpine-navy-10: rgba(0, 59, 92, 0.1);
  --innovation-teal: #0891B2;
  --deep-teal: #0E7490;
  --teal-breeze: #E0F7FA;
  --executive-gold: #B8860B;
  --professional-gray: #4A5568;
  --medium-gray: #718096;
  --background-gray: #F7FAFC;
  --border-gray: #E2E8F0;
  --pure-white: #FFFFFF;

  /* KRI Colors (Data Visualization Only) */
  --kri-blue: #3B82F6;
  --kri-green: #10B981;
  --kri-amber: #F59E0B;
  --kri-red: #EF4444;
  --kri-grey: #718096;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --gutter: 1.5rem;
  --container-max: 1200px;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--professional-gray);
  background: var(--pure-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--innovation-teal);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4 {
  color: var(--alpine-navy);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.5rem;
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.max-w-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 0;
}

.bg-gray {
  background-color: var(--background-gray);
}

.bg-navy {
  background-color: var(--alpine-navy);
  color: white;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--gutter);
}

.grid-cols-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: var(--alpine-navy);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu>li {
  position: relative;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  opacity: 1;
  text-decoration: none;
}

.nav-cta {
  background: var(--innovation-teal);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  color: white !important;
}

.nav-cta:hover {
  background: var(--deep-teal);
  text-decoration: none;
}

/* Solutions Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.nav-dropdown-toggle:hover {
  color: white;
}

.nav-dropdown-toggle::after {
  content: '';
  border: solid rgba(255, 255, 255, 0.7);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  margin-top: 0.75rem;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: white;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--alpine-navy);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--background-gray);
  color: var(--innovation-teal);
  text-decoration: none;
}

.nav-dropdown-menu a.active {
  color: var(--innovation-teal);
  background: var(--teal-breeze);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: transform 0.2s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--alpine-navy);
    flex-direction: column;
    padding: 2rem;
    align-items: center;
    gap: 1rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    border-radius: var(--radius-sm);
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--alpine-navy) 0%, var(--innovation-teal) 100%);
  color: white;
  padding: 7.5rem 0;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero .subheadline {
  font-size: var(--text-xl);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero .credibility {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: 2rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--innovation-teal);
  color: white;
}

.btn-primary:hover {
  background: var(--deep-teal);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-white {
  background: white;
  color: var(--alpine-navy);
}

.btn-white:hover {
  background: var(--teal-breeze);
  text-decoration: none;
}

.btn-secondary {
  border-color: var(--alpine-navy);
  color: var(--alpine-navy);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--alpine-navy);
  color: white;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

/* ========================================
   Cards
   ======================================== */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-gray);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card .descriptor {
  color: var(--innovation-teal);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.card .example {
  background: var(--background-gray);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--medium-gray);
  margin-top: 1rem;
}

/* ========================================
   KARMA Sections
   ======================================== */

.karma-dimension {
  padding: 2rem;
  border-left: 4px solid var(--innovation-teal);
  background: var(--background-gray);
  margin-bottom: 1.5rem;
}

.goal-label {
  background: var(--alpine-navy-10);
  color: var(--alpine-navy);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

/* ========================================
   Comparison Grid
   ======================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.comparison-grid .column {
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.comparison-grid .reporting {
  background: var(--background-gray);
  border: 1px solid var(--border-gray);
}

.comparison-grid .orchestrating {
  background: var(--alpine-navy);
  color: white;
}

.comparison-grid .orchestrating h4 {
  color: white;
}

.comparison-grid ul {
  list-style: none;
}

.comparison-grid li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: var(--text-sm);
}

.comparison-grid .orchestrating li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Forms
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--innovation-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-group input.is-invalid {
  border-color: var(--kri-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.email-error {
  color: var(--kri-red);
  font-size: var(--text-sm);
  margin-top: 0.5rem;
  display: none;
}

/* Checkbox Styling */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  cursor: pointer;
}

.form-checkbox span {
  font-size: var(--text-sm);
  color: var(--professional-gray);
}

/* Email Capture Section */
.email-capture {
  background: var(--teal-breeze);
  padding: 5rem 0;
  text-align: center;
}

.email-capture form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.email-capture input {
  flex: 1;
}

@media (max-width: 640px) {
  .email-capture form {
    flex-direction: column;
  }
}

.privacy {
  font-size: var(--text-sm);
  color: var(--medium-gray);
  margin-top: 1rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   FAQ
   ======================================== */

.faq-item {
  border-bottom: 1px solid var(--border-gray);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  transition: color 0.15s ease;
}

.faq-item h3:hover {
  color: var(--innovation-teal);
}

.faq-item h3::after {
  content: '+';
  color: var(--innovation-teal);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item.is-open h3 {
  margin-bottom: 1rem;
}

.faq-item.is-open h3::after {
  transform: rotate(45deg);
}

.faq-item p {
  display: none;
  color: var(--professional-gray);
}

.faq-item.is-open p {
  display: block;
}

/* ========================================
   Resources Page
   ======================================== */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.resource-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-gray);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.resource-type {
  display: inline-block;
  color: var(--innovation-teal);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
}

.resource-card p {
  color: var(--medium-gray);
  font-size: var(--text-sm);
  margin-bottom: 1.5rem;
}

/* ========================================
   Modal
   ======================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 59, 92, 0.8);
  /* Dark overlay */
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

/* Updated class name to match resources.html */
.modal-container {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal.is-open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-gray);
  position: relative;
  background: var(--pure-white);
  /* Ensure header is white */
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-header h3 {
  margin-bottom: 0.25rem;
  padding-right: 2rem;
  color: var(--alpine-navy);
}

.modal-resource-title {
  color: var(--innovation-teal);
  font-size: var(--text-sm);
  font-weight: 600;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--medium-gray);
  transition: color 0.15s ease;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--alpine-navy);
}

.modal-body {
  padding: 2rem;
  background: var(--pure-white);
  /* Ensure body is white */
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-form-content {
  background: var(--pure-white);
}

/* Ensure labels are visible */
.modal-form label {
  color: var(--alpine-navy);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-form h2 {
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: var(--professional-gray);
  margin-bottom: 1.5rem;
  font-size: var(--text-sm);
}

.modal-body .form-group:last-of-type {
  margin-bottom: 1rem;
}

.modal-note {
  font-size: var(--text-xs);
  color: var(--medium-gray);
  margin-top: 1rem;
  text-align: center;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.modal-success svg {
  width: 64px;
  height: 64px;
  color: var(--kri-green);
  margin-bottom: 1rem;
}

.modal-success h4 {
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.modal-success p {
  color: var(--medium-gray);
  font-size: var(--text-sm);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  background: var(--alpine-navy);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-column h4 {
  color: white;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color 0.15s ease;
}

.footer-column a:hover {
  color: white;
  text-decoration: none;
}

.footer-brand {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: auto;
  max-height: 54px;
  margin-bottom: 1rem;
  width: auto;
  max-width: 280px;
}

.tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

.footer-legal {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 1rem;
}

.attribution {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .footer-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ========================================
   Platform Page Specific
   ======================================== */

.platform-role {
  padding: 5rem 0;
}

.platform-role:nth-child(even) {
  background: var(--background-gray);
}

.role-header {
  text-align: center;
  margin-bottom: 3rem;
}

.role-number {
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  background: var(--innovation-teal);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: var(--text-xl);
  margin-bottom: 1rem;
}

.role-title {
  color: var(--innovation-teal);
  font-size: var(--text-3xl);
  margin-bottom: 0.5rem;
}

.role-subtitle {
  color: var(--medium-gray);
  font-size: var(--text-lg);
}

.role-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .role-content {
    grid-template-columns: 1fr;
  }
}

.role-block h4 {
  color: var(--alpine-navy);
  margin-bottom: 1rem;
  font-size: var(--text-lg);
}

.role-block p {
  color: var(--professional-gray);
}

/* ========================================
   Solutions Page Specific
   ======================================== */

.solution-hero {
  background: var(--alpine-navy);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.solution-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.solution-hero .subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-lg);
}

/* ========================================
   Utility Classes
   ======================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Chart Containers
   ======================================== */

.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
  max-height: 400px;
  margin: 0 auto;
}

.chart-container canvas {
  max-width: 100%;
}

/* ========================================
   Strategic Gap Section (Homepage)
   ======================================== */

.gap-section {
  background: var(--pure-white);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.gap-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--teal-breeze);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.gap-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  color: var(--kri-amber);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* ========================================
   The Shift Section (Homepage)
   ======================================== */

.shift-section {
  background: var(--alpine-navy);
  color: white;
  padding: 6rem 0;
}

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .shift-grid {
    grid-template-columns: 1fr;
  }
}

.shift-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.shift-card--legacy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shift-card--os360 {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.2) 0%, rgba(0, 59, 92, 0.8) 100%);
  border: 1px solid var(--innovation-teal);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.shift-card-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.25rem 1rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
}

.shift-card--legacy .shift-card-label {
  background: var(--medium-gray);
  color: white;
}

.shift-card--os360 .shift-card-label {
  background: var(--innovation-teal);
  color: white;
}

.shift-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--medium-gray);
}

.shift-card--os360 .shift-card-icon {
  color: var(--innovation-teal);
}

.shift-card h3 {
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: 0.5rem;
  color: white;
}

.shift-card .subtitle {
  text-align: center;
  font-size: var(--text-base);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.shift-card--os360 .subtitle {
  color: var(--teal-breeze);
}

.shift-list {
  list-style: none;
}

.shift-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shift-list li:last-child {
  border-bottom: none;
}

.shift-list-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
}

.shift-card--os360 .shift-list-icon {
  background: rgba(8, 145, 178, 0.2);
  color: var(--innovation-teal);
}

.shift-list strong {
  display: block;
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
  color: white;
}

.shift-list span {
  font-size: var(--text-sm);
  opacity: 0.8;
  line-height: 1.5;
}

/* ========================================
   KARMA Tabs (Platform Page)
   ======================================== */

.karma-tabs {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .karma-tabs {
    grid-template-columns: 1fr;
  }
}

.karma-tab-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.karma-tab-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  border-left: 4px solid transparent;
  background: var(--background-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.karma-tab-btn:hover {
  background: var(--pure-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.karma-tab-btn.is-active {
  background: var(--pure-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.karma-tab-btn.is-active[data-tab="share"] {
  border-left-color: var(--kri-blue);
}

.karma-tab-btn.is-active[data-tab="everyday"] {
  border-left-color: var(--kri-green);
}

.karma-tab-btn.is-active[data-tab="ecosystem"] {
  border-left-color: #8B5CF6;
}

.karma-tab-btn h4 {
  color: var(--alpine-navy);
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}

.karma-tab-btn .tab-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.karma-tab-btn[data-tab="share"] .tab-label {
  color: var(--kri-blue);
}

.karma-tab-btn[data-tab="everyday"] .tab-label {
  color: var(--kri-green);
}

.karma-tab-btn[data-tab="ecosystem"] .tab-label {
  color: #8B5CF6;
}

.karma-tab-btn p {
  font-size: var(--text-sm);
  color: var(--professional-gray);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.karma-tab-content {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  min-height: 450px;
}

.karma-panel {
  display: none;
}

.karma-panel.is-active {
  display: block;
}

.karma-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.karma-panel-header h4 {
  font-size: var(--text-2xl);
  color: var(--alpine-navy);
}

.karma-panel-stat {
  text-align: right;
}

.karma-panel-stat .value {
  font-size: var(--text-3xl);
  font-weight: 700;
}

.karma-panel-stat .label {
  font-size: var(--text-xs);
  color: var(--medium-gray);
  text-transform: uppercase;
}

.karma-panel[data-panel="share"] .karma-panel-stat .value {
  color: var(--kri-blue);
}

.karma-panel[data-panel="everyday"] .karma-panel-stat .value {
  color: var(--kri-green);
}

.karma-panel[data-panel="ecosystem"] .karma-panel-stat .value {
  color: #8B5CF6;
}

/* ========================================
   Ecosystem Rings (Platform Page)
   ======================================== */

.ecosystem-container {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecosystem-rings {
  position: relative;
  width: 340px;
  height: 340px;
}

.ecosystem-ring {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Outer Ring - Trade Partners */
.ring-outer {
  width: 340px;
  height: 340px;
  top: 0;
  left: 0;
  background: conic-gradient(from 0deg,
      var(--kri-green) 0deg 90deg,
      var(--border-gray) 90deg 360deg);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2),
    0 8px 32px rgba(0, 59, 92, 0.15);
}

.ring-outer:hover {
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4),
    0 12px 40px rgba(0, 59, 92, 0.25);
}

/* Gap rings */
.ring-gap-outer {
  width: 280px;
  height: 280px;
  top: 30px;
  left: 30px;
  background: white;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 1;
}

/* Middle Ring - Group Companies */
.ring-middle {
  width: 260px;
  height: 260px;
  top: 40px;
  left: 40px;
  background: conic-gradient(from 0deg,
      #8B5CF6 0deg 180deg,
      var(--border-gray) 180deg 360deg);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2),
    0 6px 24px rgba(0, 59, 92, 0.12);
  z-index: 2;
}

.ring-middle:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.4),
    0 10px 36px rgba(0, 59, 92, 0.2);
}

.ring-gap-middle {
  width: 200px;
  height: 200px;
  top: 70px;
  left: 70px;
  background: white;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 3;
}

/* Inner Ring - Key Stakeholders */
.ring-inner {
  width: 180px;
  height: 180px;
  top: 80px;
  left: 80px;
  background: conic-gradient(from 0deg,
      var(--kri-blue) 0deg 216deg,
      var(--border-gray) 216deg 360deg);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2),
    0 4px 16px rgba(0, 59, 92, 0.1);
  z-index: 4;
}

.ring-inner:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.4),
    0 8px 30px rgba(0, 59, 92, 0.18);
}

.ring-gap-inner {
  width: 120px;
  height: 120px;
  top: 110px;
  left: 110px;
  background: white;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 5;
}

/* Center - Customer */
.ring-center {
  width: 100px;
  height: 100px;
  top: 120px;
  left: 120px;
  background: linear-gradient(135deg, var(--alpine-navy) 0%, var(--innovation-teal) 100%);
  box-shadow: 0 4px 20px rgba(0, 59, 92, 0.3),
    0 0 0 4px rgba(255, 255, 255, 0.9);
  z-index: 10;
  animation: pulse-ring 3s infinite;
}

.ring-center:hover {
  transform: scale(1.08);
  animation: none;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4), 0 4px 20px rgba(0, 59, 92, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(8, 145, 178, 0), 0 4px 20px rgba(0, 59, 92, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.9);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(8, 145, 178, 0), 0 4px 20px rgba(0, 59, 92, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.9);
  }
}

.ring-center-content {
  text-align: center;
  color: white;
}

.ring-center-content i {
  font-size: 1.5rem;
  margin-bottom: 4px;
  display: block;
}

.ring-center-content span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Ring Labels */
.ring-label-external {
  position: absolute;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--alpine-navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ring-label-external .label-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ring-label-external .label-title {
  font-weight: 700;
  font-size: var(--text-xs);
}

.ring-label-external .label-percent {
  font-size: var(--text-sm);
  font-weight: 800;
}

.label-trade {
  top: -8px;
  right: -100px;
}

.label-trade .label-dot {
  background: var(--kri-green);
}

.label-group {
  top: 60px;
  right: -110px;
}

.label-group .label-dot {
  background: #8B5CF6;
}

.label-stakeholder {
  top: 130px;
  right: -120px;
}

.label-stakeholder .label-dot {
  background: var(--kri-blue);
}

/* Ecosystem Legend */
.ecosystem-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--professional-gray);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Ecosystem Tooltips */
.eco-tooltip {
  position: absolute;
  background: linear-gradient(135deg, var(--alpine-navy) 0%, #0a4a6e 100%);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 20px 40px rgba(0, 59, 92, 0.3);
}

.eco-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.eco-tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.eco-tooltip-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eco-tooltip-title {
  font-weight: 700;
  font-size: var(--text-base);
}

.eco-tooltip-subtitle {
  font-size: var(--text-xs);
  opacity: 0.7;
  margin-top: 2px;
}

.eco-tooltip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eco-tooltip-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.eco-tooltip-stat-value {
  font-size: var(--text-lg);
  font-weight: 700;
}

.eco-tooltip-stat-label {
  font-size: var(--text-xs);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.eco-tooltip-insight {
  background: rgba(16, 185, 129, 0.2);
  border-left: 3px solid var(--kri-green);
  padding: 0.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
  line-height: 1.4;
}

.eco-tooltip-insight.opportunity {
  background: rgba(59, 130, 246, 0.2);
  border-left-color: var(--kri-blue);
}

/* ========================================
   OS360 Simulator (Platform Page)
   ======================================== */

.simulator-container {
  display: flex;
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  min-height: 600px;
}

@media (max-width: 900px) {
  .simulator-container {
    flex-direction: column;
  }
}

/* Simulator Sidebar */
.simulator-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--alpine-navy);
  color: white;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .simulator-sidebar {
    width: 100%;
  }
}

.simulator-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.simulator-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.simulator-sidebar-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--innovation-teal);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.simulator-sidebar-logo span {
  font-weight: 600;
  font-size: var(--text-sm);
}

.simulator-filters {
  display: flex;
  gap: 0.25rem;
}

.simulator-filter-btn {
  flex: 1;
  padding: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.simulator-filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.simulator-filter-btn.is-active {
  background: var(--innovation-teal);
  color: white;
}

.simulator-filter-btn--attention.is-active {
  background: rgba(245, 158, 11, 0.3);
  color: #FCD34D;
}

.simulator-filter-btn--growth.is-active {
  background: rgba(59, 130, 246, 0.3);
  color: #93C5FD;
}

/* Client List */
.simulator-client-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.simulator-client-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.simulator-client-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.simulator-client-item.is-selected {
  background: rgba(255, 255, 255, 0.15);
}

.client-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.client-status-dot--action {
  background: var(--kri-amber);
}

.client-status-dot--opp {
  background: var(--kri-blue);
}

.client-status-dot--healthy {
  background: var(--kri-green);
}

.simulator-client-item span {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Simulator User */
.simulator-user {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.simulator-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.simulator-user-info {
  font-size: var(--text-xs);
}

.simulator-user-info strong {
  display: block;
  color: white;
}

.simulator-user-info span {
  color: rgba(255, 255, 255, 0.6);
}

/* Simulator Main Area */
.simulator-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--background-gray);
}

.simulator-header {
  background: var(--pure-white);
  border-bottom: 1px solid var(--border-gray);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simulator-header h3 {
  font-size: var(--text-xl);
  color: var(--alpine-navy);
  margin-bottom: 0;
}

.simulator-header-meta {
  display: flex;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--medium-gray);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.simulator-content {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

/* Empty State */
.simulator-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  text-align: center;
}

.simulator-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Active State */
.simulator-active {
  display: none;
}

.simulator-active.is-visible {
  display: block;
}

/* KRI Cards */
.kri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .kri-grid {
    grid-template-columns: 1fr;
  }
}

.kri-card {
  background: var(--pure-white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  position: relative;
  overflow: hidden;
}

.kri-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.kri-card--opp::before {
  background: var(--kri-blue);
}

.kri-card--healthy::before {
  background: var(--kri-green);
}

.kri-card--action::before {
  background: var(--kri-amber);
}

.kri-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.kri-card-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kri-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.kri-badge--opp {
  background: rgba(59, 130, 246, 0.1);
  color: var(--kri-blue);
}

.kri-badge--healthy {
  background: rgba(16, 185, 129, 0.1);
  color: var(--kri-green);
}

.kri-badge--action {
  background: rgba(245, 158, 11, 0.1);
  color: var(--kri-amber);
}

.kri-card-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.kri-card-desc {
  font-size: var(--text-xs);
  color: var(--professional-gray);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Actions Table */
.actions-section h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.actions-table {
  width: 100%;
  background: var(--pure-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}

.actions-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.actions-table thead {
  background: var(--background-gray);
  border-bottom: 1px solid var(--border-gray);
}

.actions-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--medium-gray);
  font-size: var(--text-xs);
  text-transform: uppercase;
}

.actions-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-gray);
}

.actions-table tr:last-child td {
  border-bottom: none;
}

.action-status {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.action-status--progress {
  background: rgba(59, 130, 246, 0.1);
  color: var(--kri-blue);
}

.action-status--open {
  background: var(--background-gray);
  color: var(--medium-gray);
}

/* Collaborators */
.collaborators-section h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collaborators-list {
  display: flex;
  gap: 0.5rem;
}

.collaborator-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--background-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--alpine-navy);
  border: 2px solid var(--pure-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Outcomes Section (Platform Page)
   ======================================== */

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.outcome-card--blue {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.outcome-card--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.outcome-card--purple {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.outcome-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.outcome-card--blue .outcome-value {
  color: var(--kri-blue);
}

.outcome-card--amber .outcome-value {
  color: var(--kri-amber);
}

.outcome-card--purple .outcome-value {
  color: #8B5CF6;
}

.outcome-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.outcome-desc {
  font-size: var(--text-xs);
  color: var(--professional-gray);
  margin-bottom: 0;
}

/* ========================================
   Process Steps (Platform Page)
   ======================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  background: var(--pure-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.process-step-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--innovation-teal);
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h4 {
  color: var(--alpine-navy);
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--professional-gray);
  margin-bottom: 0;
}

/* ========================================
   Tooltips
   ======================================== */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--innovation-teal);
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: var(--alpine-navy);
  color: white;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: var(--text-xs);
  font-weight: 400;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========================================
   Action Modal (Simulator)
   ======================================== */

.action-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 59, 92, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.action-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.action-modal-container {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.action-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-modal-header h3 {
  font-size: var(--text-xl);
  color: var(--alpine-navy);
  margin-bottom: 0;
}

.action-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--medium-gray);
  font-size: 1.25rem;
  padding: 0.25rem;
  transition: color 0.15s ease;
}

.action-modal-close:hover {
  color: var(--alpine-navy);
}

.action-modal-body {
  padding: 1.5rem;
}

.action-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-gray);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ========================================
   Contact Page Grid
   ======================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-form-container {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--background-gray);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.contact-info-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 1rem;
}

.contact-info-card p {
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.contact-success {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-success h3 {
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.contact-success p {
  color: var(--professional-gray);
}

/* ========================================
   NEW: Persona-Specific Layouts
   (Additive - Does not break existing site)
   ======================================== */

/* CEO: Boardroom Split */
.boardroom-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 4rem 0;
}

.boardroom-stat {
  flex: 1;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--innovation-teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.boardroom-stat h3 {
  font-size: var(--text-4xl);
  color: var(--alpine-navy);
  margin-bottom: 0.5rem;
}

.boardroom-stat span {
  font-size: var(--text-sm);
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* CDO: Technical Schematic */
.schematic-block {
  background: #1E293B;
  /* Slate 800 - distinct from Navy */
  color: #E2E8F0;
  padding: 2rem;
  border-radius: var(--radius-md);
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.schematic-block::before {
  content: 'ARCHITECTURE_CONFIG.YAML';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  color: #94A3B8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.schematic-line {
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.schematic-key {
  color: #38BDF8;
}

/* Light Blue */
.schematic-val {
  color: #A5B4FC;
}

/* Light Purple */
.schematic-comment {
  color: #64748B;
  font-style: italic;
}

/* CWBO: Multiplier Cards */
.multiplier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.multiplier-card {
  text-align: center;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
}

.multiplier-icon {
  width: 64px;
  height: 64px;
  background: var(--teal-breeze);
  color: var(--innovation-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

/* Banker: Time Arbitrage Table */
.arbitrage-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.arbitrage-table th {
  background: var(--alpine-navy);
  color: white;
  text-align: left;
  padding: 1.5rem;
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.arbitrage-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-gray);
  vertical-align: top;
}

.arbitrage-table tr:last-child td {
  border-bottom: none;
}

.arbitrage-col-old {
  width: 45%;
  background: rgba(247, 250, 252, 0.5);
  color: var(--medium-gray);
}

.arbitrage-col-new {
  width: 45%;
  color: var(--alpine-navy);
  font-weight: 500;
}

.arbitrage-col-icon {
  width: 10%;
  text-align: center;
  color: var(--innovation-teal);
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .boardroom-split {
    flex-direction: column;
    gap: 2rem;
  }

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

  .arbitrage-table,
  .arbitrage-table thead,
  .arbitrage-table tbody,
  .arbitrage-table th,
  .arbitrage-table td,
  .arbitrage-table tr {
    display: block;
  }

  .arbitrage-table thead {
    display: none;
  }

  .arbitrage-table td {
    width: 100%;
    padding: 1rem;
    border: none;
  }

  .arbitrage-col-icon {
    display: none;
  }

  .arbitrage-col-old {
    border-bottom: 1px solid var(--border-gray);
    font-style: italic;
  }

  .arbitrage-row {
    border: 1px solid var(--border-gray);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
  }
}

/* ========================================
   V3 FINAL POLISH
   (Metrics & Dashboard Widgets)
   ======================================== */

/* Hero Metrics */
.hero-metric-box {
  margin-top: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Center align for generic, override in HTML if needed */
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.hero-metric-val {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--innovation-teal);
  line-height: 1;
}

.hero-metric-label {
  font-size: var(--text-xs);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* CWBO: Team Health Monitor Widget */
.health-monitor {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gray);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 2rem auto;
}

.monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-gray);
}

.monitor-row:last-child {
  border-bottom: none;
}

.monitor-label strong {
  display: block;
  color: var(--alpine-navy);
  font-size: var(--text-sm);
}

.monitor-label span {
  color: var(--medium-gray);
  font-size: var(--text-xs);
}

.monitor-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--teal-breeze);
  color: var(--deep-teal);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

/* ========================================
   Coming Soon Resource Styles
   ======================================== */

.resource-card.coming-soon {
  opacity: 0.8;
  background: #FAFAFA;
  /* Slightly off-white */
  border: 1px dashed var(--border-gray);
  /* Dashed border implies "under construction" */
  cursor: default;
  /* No pointer cursor */
  box-shadow: none;
  /* Flat look */
}

/* Disable hover effects for coming soon cards */
.resource-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-gray);
}

.resource-card.coming-soon h3 {
  color: var(--professional-gray);
  /* Muted title color */
}

.resource-tag-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--medium-gray);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.resource-card.coming-soon p {
  margin-bottom: 0;
  /* No button below, so reduce spacing */
}

/* ========================================
   Divergence Chart (CEO Page)
   ======================================== */

.divergence-container {
  background: var(--pure-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Legend */
.d-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.d-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--professional-gray);
}

.dot-rev,
.dot-health {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-rev {
  background: var(--alpine-navy);
}

.dot-health {
  background: var(--innovation-teal);
}

/* Bar Chart Container */
.divergence-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 200px;
  padding: 0 1rem;
  border-bottom: 2px solid var(--border-gray);
  gap: 1rem;
}

/* Individual Bar Group (Revenue + Health pair) */
.d-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  max-width: 80px;
  height: 100%;
  position: relative;
  padding-bottom: 1.5rem;
}

/* Quarter Labels */
.d-label {
  position: absolute;
  bottom: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--medium-gray);
}

/* Bar Styles */
.d-bar-rev,
.d-bar-health {
  width: 100%;
  max-width: 28px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.4s ease;
}

.d-bar-rev {
  background: var(--alpine-navy);
}

.d-bar-health {
  background: var(--innovation-teal);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .divergence-container {
    padding: 1.5rem;
  }
  
  .divergence-bars {
    height: 160px;
    padding: 0 0.5rem;
  }
  
  .d-bar-group {
    gap: 4px;
    max-width: 60px;
  }
  
  .d-bar-rev,
  .d-bar-health {
    max-width: 22px;
  }
  
  .d-legend {
    gap: 1rem;
  }
}