/* =============================================
   SEIICHI MOROOKA — CFO INTELLIGENCE PLATFORM
   Premium Corporate Design System
   ============================================= */

/* --- CSS Variables --- */
:root {
  --navy-deep: #0a0e1a;
  --navy: #0f1628;
  --navy-light: #151d35;
  --navy-mid: #1a2340;
  --navy-surface: #1e2a4a;
  --blue-electric: #2d7aff;
  --blue-glow: #4a90ff;
  --blue-light: #6aa5ff;
  --blue-soft: rgba(45, 122, 255, 0.15);
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --gold-soft: rgba(201, 168, 76, 0.15);
  --white: #ffffff;
  --grey-100: #f0f2f8;
  --grey-200: #d0d5e0;
  --grey-300: #a0a8b8;
  --grey-400: #6a7080;
  --grey-500: #3a4050;
  --success: #00d97e;
  --warning: #f5a623;
  --danger: #ff4757;
  --glass-bg: rgba(15, 22, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(45, 122, 255, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-deep);
  color: var(--grey-200);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue-electric);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-light);
}

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

ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--blue-electric), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-electric);
}

.label-gold {
  color: var(--gold);
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Access Page --- */
.access-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

.access-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.access-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(45, 122, 255, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

.access-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 122, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.access-card {
  position: relative;
  z-index: 10;
  width: 440px;
  max-width: 90vw;
  padding: 48px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: center;
  transition: var(--transition-slow);
}

.access-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--blue-electric), var(--gold));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  font-weight: 800;
}

.access-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.access-card .subtitle {
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 36px;
}

.access-input-wrap {
  position: relative;
  margin-bottom: 20px;
}

.access-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-400);
  width: 18px;
  height: 18px;
}

.access-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.access-input:focus {
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.1);
}

.access-input::placeholder {
  color: var(--grey-500);
}

.access-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-electric), #1a5fd4);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 255, 0.3);
}

.access-btn:active {
  transform: translateY(0);
}

.access-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 12px;
  opacity: 0;
  transition: var(--transition);
}

.access-error.visible {
  opacity: 1;
}

.access-card.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(6px); }
}

.access-card.success {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.access-footer {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--grey-500);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-electric), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--grey-300);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--glass-bg-light);
}

.nav-link.active {
  color: var(--blue-electric);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Sections --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero-home {
  background: var(--navy-deep);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 122, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 255, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-bg-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--blue-electric);
  opacity: 0.08;
}

.hero-bg-glow-2 {
  bottom: -200px;
  left: -100px;
  background: var(--gold);
  opacity: 0.05;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(45, 122, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-electric);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--grey-300);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Heroes (Interior) --- */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 122, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .label {
  margin-bottom: 16px;
  display: block;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: var(--grey-300);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--grey-400);
}

.breadcrumb a {
  color: var(--grey-400);
}

.breadcrumb a:hover {
  color: var(--blue-electric);
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-electric), #1a5fd4);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 255, 0.3);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--grey-200);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--glass-bg-light);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a88a3c);
  color: var(--navy-deep);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

/* --- Cards --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-solid {
  background: var(--navy-light);
  backdrop-filter: none;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.card-icon-blue {
  background: var(--blue-soft);
  color: var(--blue-electric);
}

.card-icon-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.card p {
  color: var(--grey-300);
  font-size: 0.9rem;
}

/* --- KPI / Metric Cards --- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(45, 122, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.kpi-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.kpi-value .unit {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-electric);
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.kpi-change.up {
  color: var(--success);
  background: rgba(0, 217, 126, 0.1);
}

.kpi-change.down {
  color: var(--danger);
  background: rgba(255, 71, 87, 0.1);
}

/* --- Dashboard Panels --- */
.dashboard-panel {
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dashboard-panel-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-panel-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.dashboard-panel-body {
  padding: 28px;
}

.dashboard-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--blue-soft);
  color: var(--blue-electric);
  border-radius: 100px;
  font-weight: 600;
}

/* --- Chart Bars (CSS only) --- */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.chart-bar-label {
  min-width: 120px;
  font-size: 0.82rem;
  color: var(--grey-300);
}

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

.chart-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue-electric), var(--blue-light));
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar-fill.gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.chart-bar-value {
  min-width: 48px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

/* --- Data Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--grey-200);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: rgba(0, 217, 126, 0.1);
  color: var(--success);
}

.status-review {
  background: rgba(245, 166, 35, 0.1);
  color: var(--warning);
}

.status-pipeline {
  background: var(--blue-soft);
  color: var(--blue-electric);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-electric), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue-electric);
  border: 3px solid var(--navy-deep);
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.2);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-electric);
  margin-bottom: 6px;
}

.timeline-item h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--grey-300);
}

/* --- Process Flow --- */
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-electric), rgba(45, 122, 255, 0.2));
}

.process-step:last-child::after {
  display: none;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-soft);
  border: 1px solid rgba(45, 122, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-electric);
  position: relative;
  z-index: 2;
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.82rem;
  color: var(--grey-400);
}

/* --- Risk Matrix --- */
.risk-matrix {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 4px;
}

.risk-cell {
  padding: 20px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.risk-cell:hover {
  transform: scale(1.05);
}

.risk-header {
  background: transparent;
  color: var(--grey-400);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.risk-low { background: rgba(0, 217, 126, 0.1); color: var(--success); }
.risk-med { background: rgba(245, 166, 35, 0.1); color: var(--warning); }
.risk-high { background: rgba(255, 71, 87, 0.1); color: var(--danger); }
.risk-moderate { background: rgba(45, 122, 255, 0.1); color: var(--blue-electric); }

/* --- Allocation Ring --- */
.alloc-ring {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

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

.alloc-ring-center .kpi-value {
  font-size: 2rem;
}

.alloc-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.alloc-legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.alloc-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* --- Insights / Article Cards --- */
.article-card {
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.article-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.5;
  position: relative;
  overflow: hidden;
}

.article-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--navy-light));
}

.article-card-body {
  padding: 24px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-card-meta span {
  font-size: 0.75rem;
  color: var(--grey-400);
}

.article-card-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue-electric);
  border-radius: 100px;
  font-weight: 600;
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.article-card p {
  font-size: 0.85rem;
  color: var(--grey-300);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Contact Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-300);
}

.form-input,
.form-textarea {
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue-electric);
  box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(45, 122, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.02) 0%, transparent 50%);
}

.footer-main {
  position: relative;
  z-index: 2;
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--grey-400);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey-300);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--grey-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--blue-electric);
  transform: translateX(4px);
}

.footer-newsletter p {
  font-size: 0.85rem;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.newsletter-input:focus {
  border-color: var(--blue-electric);
}

.newsletter-btn {
  padding: 10px 20px;
  background: var(--blue-electric);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #1a5fd4;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--grey-500);
}

.footer-bottom a {
  color: var(--blue-electric);
}

.footer-bottom a:hover {
  color: var(--blue-light);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--blue-electric);
  border: none;
  border-radius: 14px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #1a5fd4;
  transform: translateY(-4px);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger > * {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* --- Separator --- */
.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0 auto;
  max-width: 800px;
}

/* --- Pill Tabs --- */
.pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pill-tab {
  padding: 8px 20px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--grey-300);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pill-tab:hover,
.pill-tab.active {
  background: var(--blue-soft);
  border-color: rgba(45, 122, 255, 0.3);
  color: var(--blue-electric);
}

/* --- Quote Block --- */
.quote-block {
  padding: 32px 36px;
  background: var(--glass-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--grey-200);
  line-height: 1.8;
}

.quote-block cite {
  display: block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

/* --- Donut / Ring SVG container --- */
.svg-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg-chart-container svg {
  max-width: 100%;
  height: auto;
}

/* --- Infographic Row --- */
.info-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.info-row > * {
  flex: 1;
}

/* --- Profile Image --- */
.profile-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.profile-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(10, 14, 26, 0.9));
}

/* --- Tag Cloud --- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--grey-300);
  transition: var(--transition);
}

.tag:hover {
  border-color: rgba(45, 122, 255, 0.3);
  color: var(--blue-electric);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4, .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-flow {
    flex-direction: column;
    gap: 24px;
  }
  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  .grid-2, .grid-3, .grid-4, .kpi-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .page-hero { padding: 120px 0 60px; }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
  }
  .risk-matrix {
    grid-template-columns: auto repeat(3, 1fr);
    font-size: 0.7rem;
  }
  .info-row {
    flex-direction: column;
  }
  .data-table {
    font-size: 0.8rem;
  }
  .data-table th, .data-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
  .kpi-value { font-size: 1.8rem; }
  .access-card { padding: 32px 24px; }
}

/* --- Mobile nav overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* --- Special layouts per page --- */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .split-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Decorative elements --- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 122, 255, 0.08);
  pointer-events: none;
}

.deco-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 122, 255, 0.1), transparent);
  pointer-events: none;
}

/* Numeric highlight */
.num-highlight {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.num-highlight .num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-electric);
  line-height: 1;
}

.num-highlight .num-label {
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* Icon list */
.icon-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.icon-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-electric);
  font-size: 16px;
}

.icon-list-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.icon-list-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.icon-list-text p {
  font-size: 0.85rem;
  color: var(--grey-400);
}

/* Stat row */
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

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

.stat-item .kpi-value {
  font-size: 2rem;
}

/* Flow diagram */
.flow-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-node {
  padding: 16px 28px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  width: 260px;
}

.flow-arrow {
  width: 2px;
  height: 32px;
  background: var(--blue-electric);
  position: relative;
}

.flow-arrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--blue-electric);
}

/* Contact info cards */
.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(45, 122, 255, 0.2);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-electric);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.82rem;
  color: var(--grey-400);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}
