:root {
  --bg-canvas: #0f1b2d;
  --bg-surface: #1d2d43;
  --text-primary: #f4f1ea;
  --text-muted: #b8c3d4;
  --accent-primary: #d4a84b;
  --border-subtle: #2b3f5c;
  --depth-shadow: 0 16px 36px rgba(5, 11, 20, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
  --inset-bevel: inset 1px 1px 1px rgba(255, 255, 255, 0.12), inset -1px -1px 2px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.05rem;
  overflow-x: hidden;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #0f1b2d;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus-visible {
  top: 1rem;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* Floating Non-Sticky Header with Rounded Ends */
.site-header-container {
  max-width: 1240px;
  margin: 1.25rem auto 0.75rem auto;
  padding: 0 1rem;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  box-shadow: var(--depth-shadow), var(--inset-bevel);
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  margin-right: auto;
}

.brand-gem {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #f3d489, var(--accent-primary));
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(212, 168, 75, 0.4);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding: 0.2rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.site-nav a:hover::after, .site-nav a[aria-current="page"]::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  cursor: pointer;
  line-height: 1;
}

/* Base Layout Containers */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.reading-wrapper {
  max-width: 72ch;
  margin: 0 auto;
}

/* Background Dots Pattern */
.dotted-pattern {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle, #273b57 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Buttons and Links */
.btn-primary {
  display: inline-block;
  background: var(--accent-primary);
  color: #0f1b2d;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 168, 75, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 168, 75, 0.35);
}

.inline-link {
  color: var(--accent-primary);
  text-decoration: none;
  position: relative;
  font-weight: 600;
  display: inline-block;
}

.inline-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.inline-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 3rem 1.25rem 4rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--depth-shadow);
  display: block;
}

.hero-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Floating Facts Panel */
.facts-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: var(--depth-shadow), var(--inset-bevel);
  margin-bottom: 1.75rem;
}

.facts-panel-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.fact-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fact-item:last-child {
  border-bottom: none;
}

.fact-badge {
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
}

.fact-text {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Split Sections (Alternating) */
.split-section {
  padding: 4rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-section.reverse .split-container {
  direction: rtl;
}

.split-section.reverse .split-container > * {
  direction: ltr;
}

.split-media-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--depth-shadow);
  display: block;
}

.split-media-box figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

.split-text-box h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  line-height: 1.25;
  margin-bottom: 1rem;
  color: #ffffff;
}

.split-text-box p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Icon-Led List Rows Separated by Thin Dividers */
.rows-container {
  margin: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.list-row {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: flex-start;
}

.row-icon-cube {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--inset-bevel);
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.1rem;
}

.row-details {
  flex: 1;
}

.row-details h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.row-details p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.row-meta {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 600;
}

/* Chronological / Step Checklist */
.timeline-list {
  list-style: none;
  margin: 2rem 0;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.step-marker {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ Accordion / Rows */
.faq-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-row h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.faq-row p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Form Styles */
.form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--depth-shadow), var(--inset-bevel);
  margin-top: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: #111e30;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent-primary);
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.status-msg {
  font-size: 0.9rem;
  color: var(--accent-primary);
  min-height: 1.5rem;
}

/* Table Wrapper */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: #152438;
  color: var(--accent-primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

td {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #09121f;
  padding: 3.5rem 1.25rem 2.5rem 1.25rem;
  margin-top: 4rem;
  font-size: 0.95rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid,
  .split-container,
  .split-section.reverse .split-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    border-radius: 9999px;
    padding: 0.6rem 1.2rem;
  }
  
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: var(--depth-shadow);
    flex-direction: column;
    padding: 1rem;
    gap: 0.8rem;
    z-index: 90;
  }
  
  .site-nav.is-open {
    display: flex;
  }
  
  .site-nav a {
    width: 100%;
    padding: 0.5rem 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
