:root {
  --primary: #003366;
  --primary-light: #004d99;
  --accent: #00a8cc;
  --accent-dark: #007a99;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6478;
  --border: #d0dce8;
  --danger: #c0392b;
  --success: #1a7a4a;
  --font-mono: 'Courier New', monospace;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0.65rem 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  /* invert black logo to white for dark nav */
  filter: brightness(0) invert(1);
}

.nav-logo-text span {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo small {
  color: var(--accent);
  font-size: 0.65rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  display: block;
}

nav ul li a:hover, nav ul li a.active {
  background: var(--accent);
  color: white;
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #001a40 60%, #002255 100%);
  color: white;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300a8cc' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,168,204,0.2);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 650px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

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

.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

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

.btn-dark:hover { background: var(--primary-light); }

/* ── LAYOUT ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4.5rem 2rem;
}

.section-alt { background: var(--surface); }

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,51,102,0.12);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── STAT STRIP ── */
.stat-strip {
  background: var(--primary);
  color: white;
  padding: 3rem 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 0.4rem;
}

/* ── DATA TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.data-table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:nth-child(even) td { background: var(--bg); }

.data-table tr:hover td { background: #e8f0fb; }

/* ── RISK BADGE ── */
.risk-high { color: var(--danger); font-weight: 700; }
.risk-med  { color: #d68910; font-weight: 700; }
.risk-low  { color: var(--success); font-weight: 700; }

/* ── ALERT BOX ── */
.alert-box {
  border-left: 4px solid var(--danger);
  background: #fdf2f2;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
}

.alert-box.info {
  border-color: var(--accent);
  background: #f0fafd;
}

.alert-box h4 {
  color: var(--danger);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-box.info h4 { color: var(--accent-dark); }

.alert-box p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── TWO COLUMN ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* ── TECH SPEC BOX ── */
.spec-box {
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 2rem;
}

.spec-box h3 {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}

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

.spec-key { color: rgba(255,255,255,0.65); }
.spec-val { color: white; font-weight: 600; font-family: var(--font-mono); }

/* ── FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,168,204,0.12);
}

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

/* ── CHART BAR ── */
.bar-chart { margin-top: 1.5rem; }

.bar-item {
  margin-bottom: 1.1rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.bar-label span:last-child {
  font-weight: 700;
  font-family: var(--font-mono);
}

.bar-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s ease;
}

/* ── FOOTER ── */
footer {
  background: #001229;
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1140px;
  margin: 0 auto 2.5rem;
}

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

.footer-brand h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.87rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

/* ── BREADCRUMB ── */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #002255 100%);
  color: white;
  padding: 3rem 2rem;
}

.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 620px;
}

/* ── MISC ── */
.highlight-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
}

.highlight-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.highlight-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.tag {
  display: inline-block;
  background: rgba(0,168,204,0.15);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
  border-radius: 4px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-danger { color: var(--danger); }
