:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  color: #e0e2ee;
  background: #10131c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  --surface: #10131c;
  --surface-raised: #181b24;
  --surface-card: #1c1f28;
  --text: #e0e2ee;
  --muted: #b9cac4;
  --accent: #00f0d0;
  --border: rgba(132, 148, 143, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -15%, rgba(0, 240, 208, 0.09), transparent 40rem),
    var(--surface);
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: #00382f;
  background: var(--accent);
  border-radius: 0.5rem;
}

.container,
.header-inner {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 19, 28, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-logo img {
  display: block;
  width: min(190px, 32vw);
  height: auto;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.desktop-nav a,
.mobile-nav nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav nav a:hover {
  color: var(--accent);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.header-cta,
.button-primary {
  color: #00382f;
  background: var(--accent);
}

.header-cta:hover,
.button-primary:hover {
  color: #00382f;
  background: #30fddd;
  transform: translateY(-1px);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav nav {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  left: 0;
  display: grid;
  padding: 0.6rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #10131c;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.site-main {
  min-height: 68vh;
  padding-block: clamp(2rem, 6vw, 4rem) 5rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.page-heading {
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

h3 {
  font-size: 1.15rem;
}

.page-content {
  max-width: 900px;
}

.page-content p,
.page-content li {
  color: var(--muted);
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content .lead {
  max-width: 780px;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.article-meta {
  margin-top: 1rem !important;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-body > h2 {
  margin-top: 2.5rem;
}

.article-body > h3 {
  margin-top: 1.75rem;
}

.article-body > ul,
.article-body > ol {
  padding-left: 1.4rem;
}

.article-body > ul li,
.article-body > ol li {
  padding-left: 0.25rem;
  margin-block: 0.55rem;
  color: var(--muted);
}

.article-card h2 a {
  text-decoration: none;
}

.related-reading,
.article-references {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.related-reading li,
.article-references li {
  padding-block: 0.25rem;
}

.updated-note,
.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.content-section {
  margin-block: 2.5rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.4rem;
}

.numbered-list li,
.check-list li {
  padding-left: 0.25rem;
  margin-block: 0.55rem;
}

.check-list li::marker {
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-card,
.contact-panel,
.hero-panel,
.faq-list,
.video-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(28, 31, 40, 0.96), rgba(19, 22, 31, 0.96));
}

.info-card h2,
.video-card h2 {
  font-size: 1.2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.hero-panel {
  margin-block: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border-color: rgba(0, 240, 208, 0.26);
}

.button-row,
.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-raised);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.cta-panel {
  justify-content: space-between;
  margin-top: 3rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(0, 240, 208, 0.26);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(0, 240, 208, 0.08), rgba(28, 31, 40, 0.94));
}

.cta-panel h2,
.cta-panel p {
  margin-bottom: 0.35rem;
}

.faq-list {
  margin-block: 2.5rem;
}

.faq-list details {
  padding-block: 1rem;
  border-top: 1px solid var(--border);
}

.faq-list summary {
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  margin-block: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--surface-raised);
}

caption {
  padding: 1rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--accent);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0.7rem;
  background: #080a10;
  object-fit: contain;
}

.video-card h2 {
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 1rem;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form label {
  margin-top: 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text);
  background: #0b0e16;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  font: inherit;
  cursor: pointer;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent) !important;
}

.form-status[data-error="true"] {
  color: #ffb4ab !important;
}

.error-page {
  padding-block: clamp(3rem, 10vw, 8rem);
}

.error-page h1 {
  margin-bottom: 1rem;
}

.error-page > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.site-footer {
  padding-block: 2rem 1rem;
  border-top: 1px solid var(--border);
  background: #0b0e16;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-grid h2 {
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid ul {
  display: grid;
  gap: 0.35rem;
  padding: 0;
  list-style: none;
}

.footer-grid a,
.footer-bottom a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 980px) {
  .desktop-nav {
    gap: 0;
  }

  .desktop-nav a {
    padding-inline: 0.45rem;
    font-size: 0.8rem;
  }

  .site-logo img {
    width: min(165px, 24vw);
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    justify-content: flex-start;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    padding-inline: 0.8rem;
    font-size: 0.88rem;
  }

  .card-grid,
  .video-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
