/* === Custom Properties === */
:root {
  --navy: #1a365d;
  --blue: #2b6cb0;
  --blue-light: #3182ce;
  --blue-hover: #2c5282;
  --gold: #c9a84c;
  --gold-light: rgba(203, 164, 82, 0.12);
  --bg: #f7fafc;
  --white: #ffffff;
  --gray-100: #f0f4f8;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-500: #718096;
  --gray-700: #4a5568;
  --gray-900: #1a202c;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  --radius: 10px;
  --container: 1200px;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "DM Sans", var(--font-body);
  --font-display: "DM Serif Display", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* === Container === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Hero === */
.hero {
  position: relative;
  color: var(--white);
  padding: 72px 0 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 25% 50%, rgba(43, 108, 176, 0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(203, 133, 47, 0.1) 0%, transparent 60%),
    linear-gradient(170deg, #091727 0%, #112a4a 35%, #1a3a5c 60%, #1e4976 100%);
  z-index: 0;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 28 30 30 Q45 32 60 30' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='0.5'/%3E%3Cpath d='M0 15 Q15 13 30 15 Q45 17 60 15' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Cpath d='M0 45 Q15 43 30 45 Q45 47 60 45' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  opacity: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-logo-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroFadeUp 0.7s ease-out both;
}

.hero-logo-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-ring::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo-ring::after {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.hero-logo {
  display: block;
  width: 420px;
  height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
}

.hero-text {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  animation: heroFadeUp 0.7s 0.15s ease-out both;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-rule {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(203, 164, 82, 0.9), rgba(203, 164, 82, 0.3));
  margin: 20px 0;
  border-radius: 1px;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  max-width: 800px;
  line-height: 1.7;
}

.hero .disclaimer {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.hero .disclaimer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.hero .disclaimer a:hover {
  color: var(--white);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.hero-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

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

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--white);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* === Section Shared === */
.section {
  padding: 72px 0;
}

.section:nth-child(even) {
  background: var(--white);
}

.section + .section {
  border-top: 1px solid var(--gray-200);
}

.section:nth-child(even),
.section:nth-child(even) + .section {
  border-top: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(203, 164, 82, 0.3));
  border-radius: 1px;
}

.section-desc {
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 800px;
  line-height: 1.7;
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
  transform: translateY(-50%);
  transition: height 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-300);
}

.card:hover::before {
  height: 40%;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.card-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

/* === Featured Card === */
.card-featured {
  background: linear-gradient(135deg, #0f2744 0%, var(--navy) 40%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  margin-bottom: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.card-featured::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.card-featured::before {
  display: none;
}

.card-featured:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.card-featured .card-title {
  color: var(--white);
  font-size: 1.25rem;
}

.card-featured .card-meta {
  color: rgba(255, 255, 255, 0.75);
}

.card-featured .icon-large {
  flex-shrink: 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--gray-300);
}

.btn-outline:hover {
  background: var(--gray-100);
  border-color: var(--blue);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--blue);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === Table === */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.table th {
  background: var(--navy);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.table th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}

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

.table tr:hover td {
  background: rgba(43, 108, 176, 0.04);
}

/* === Tabs === */
.tab-bar {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  border-bottom: none;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.tab-btn:hover {
  color: var(--gray-700);
}

.tab-btn.active {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* === Cross-region subsection === */
.subsection-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 32px;
  margin-bottom: 16px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

/* === Back-to-top === */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  pointer-events: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--blue);
}

#back-to-top svg {
  width: 20px;
  height: 20px;
}

/* === Footer === */
.footer {
  background: linear-gradient(180deg, var(--navy) 0%, #0d1f36 100%);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 36px;
  text-align: center;
  font-size: 0.8125rem;
}

.footer a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.footer a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.footer p + p {
  margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 36px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-text {
    padding-left: 0;
  }

  .hero-logo-ring {
    width: 200px;
    height: 200px;
  }

  .hero-logo {
    width: 240px;
    height: 240px;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
  }

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

  .hero-rule {
    margin: 16px auto;
  }

  .hero .subtitle {
    font-size: 0.95rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 8px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .tab-bar {
    display: flex;
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
  }

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

  .card-featured {
    flex-direction: column;
    text-align: center;
  }

  .table th,
  .table td {
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-logo-ring {
    width: 160px;
    height: 160px;
  }

  .hero-logo {
    width: 190px;
    height: 190px;
  }

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

  .card {
    padding: 18px;
  }

  .btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}
