:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --ink: #0c223a;
  --muted: #5c6d82;
  --accent: #003a70;
  --accent-2: #00a1c7;
  --accent-3: #17b5d1;
  --border: #dbe3ef;
  --shadow: 0 24px 50px rgba(0, 58, 112, 0.12);
  --glow: 0 0 0 1px rgba(0, 161, 199, 0.15), 0 18px 36px rgba(0, 58, 112, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(0, 161, 199, 0.08), transparent 55%), var(--bg);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(120deg, #002a52 0%, #00498c 60%, #00a1c7 100%);
  color: #ffffff;
  padding: 18px 28px;
  box-shadow: var(--shadow);
}

.topbar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
}

.topnav {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-pill {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.nav-pill.is-active {
  background: #ffffff;
  color: var(--accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta,
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta {
  background: #ffffff;
  color: var(--accent);
  box-shadow: var(--glow);
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.cta:hover,
.ghost:hover,
.nav-pill:hover {
  transform: translateY(-1px);
}

.main {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 60px;
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, rgba(0, 58, 112, 0.06), rgba(0, 161, 199, 0.08));
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% 40% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 161, 199, 0.35), transparent 70%);
  opacity: 0.7;
}

.hero h1 {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 2.2rem;
  margin: 0 0 12px 0;
}

.hero p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px 0;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.kpi span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kpi strong {
  font-size: 1.2rem;
}

.side-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.side-panel h3 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}

.side-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  margin-top: 26px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.4rem;
  margin: 0;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  animation: fadeInUp 0.7s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card h4 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 10px 0;
  color: var(--muted);
  line-height: 1.5;
}

.card ul {
  margin: 0 0 10px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.card ul li {
  margin-bottom: 6px;
}

.card ul li:last-child {
  margin-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 58, 112, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-row a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.media-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.media-card img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.media-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-wrap {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(0, 58, 112, 0.08);
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

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

.doc-content {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  line-height: 1.7;
  font-size: 0.98rem;
}

.doc-content h2,
.doc-content h3,
.doc-content h4 {
  font-family: "Sora", "Manrope", sans-serif;
  margin: 22px 0 10px;
}

.doc-content h2 {
  font-size: 1.25rem;
}

.doc-content h3 {
  font-size: 1.05rem;
}

.doc-content h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doc-content p {
  margin: 0 0 12px 0;
}

.citation-inline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.citation-list {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.citation-list li {
  margin-bottom: 12px;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.doc-content li {
  margin-bottom: 6px;
}

.doc-content code {
  background: rgba(0, 58, 112, 0.08);
  border-radius: 6px;
  padding: 1px 4px;
  font-size: 0.92em;
}

.doc-content pre {
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 12px;
  overflow-x: auto;
}

.doc-content pre code {
  background: transparent;
  padding: 0;
}

.doc-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.doc-content a:hover {
  text-decoration: underline;
}

.tab-section {
  display: none;
}

.tab-section.is-active {
  display: block;
}

.notice {
  background: #f7fbff;
  border: 1px solid #d6e4f3;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--muted);
}

.qa-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.qa-pill {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.qa-pill.is-active {
  background: var(--accent);
  color: #ffffff;
}

.qa-panel {
  display: none;
  margin-top: 16px;
}

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

.media-card img {
  cursor: zoom-in;
}

.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.media-modal.is-active {
  display: flex;
}

.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
}

.media-modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  max-width: min(1000px, 92vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  z-index: 1;
}

.media-modal-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
}

.media-modal-content img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

.media-modal-content p {
  margin: 12px 0 0 0;
  color: var(--muted);
}

.media-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.comparison-grid .tile {
  background: linear-gradient(135deg, rgba(0, 58, 112, 0.05), rgba(0, 161, 199, 0.08));
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
}

.tile strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 22px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .topbar-row {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

@media (max-width: 720px) {
  .topnav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .topbar {
    padding: 16px 18px;
  }

  .main {
    padding: 20px 16px 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}
