/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; }

:root {
  --color-background: #090a0b;
  --color-surface: #18191b;
  --color-button: #31ffe5;
  --color-button-hover: #31ffe5;
  --color-button-text: #090a0b;
  --color-secondary-button: #7a2e34;
  --color-secondary-button-hover: #4a171d;
  --color-secondary-button-text: #ffffff;
  --color-font: #f8f5ef;
  --color-headers: #ffffff;
  --color-link: #d9b36b;
  --color-link-hover: #31ffe5;
  --color-border: #d9b36b;
  --color-accent: #d9b36b;
  --font-family: Inter, Arial, sans-serif;
}

html { font-size: 16px; }

body {
  background-color: var(--color-background);
  color: var(--color-font);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-headers);
  font-family: var(--font-family);
  line-height: 1.2;
  font-weight: 700;
}

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

a:hover, a:focus {
  color: var(--color-link-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.btn, .cta-button {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  padding: 10px 20px;
  background-color: var(--color-button);
  color: var(--color-button-text);
  border: 1px solid var(--color-button);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover, .cta-button:hover, .btn:focus, .cta-button:focus {
  background-color: var(--color-button-hover);
  color: var(--color-button-text);
}

.btn-secondary {
  background-color: var(--color-secondary-button);
  color: var(--color-secondary-button-text);
  border: 1px solid var(--color-secondary-button);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--color-secondary-button-hover);
  color: var(--color-secondary-button-text);
}

/* Header */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  width: auto;
}

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: center;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

.legal-text {
  color: var(--color-font);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Tablet */
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* 404 page */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  min-height: 60vh;
  padding-top: 64px;
  padding-bottom: 64px;
}

.notfound-code {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
}

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

.notfound p {
  color: var(--color-font);
  opacity: 0.85;
  max-width: 40ch;
}

/* Page body additions (home page) */
.page-main {
  display: block;
}

.hero-carousel {
  overflow: hidden;
  padding-top: 16px;
}

.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.carousel-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 220px;
  background-color: var(--color-surface);
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(9,10,11,0) 0%, rgba(9,10,11,0.85) 100%);
}

.carousel-heading {
  font-size: 1.25rem;
  color: var(--color-headers);
}

.page-title-section {
  padding-top: 32px;
}

.page-title-section h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.toc-box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px;
  background-color: var(--color-surface);
}

.toc-intro {
  margin-bottom: 12px;
}

.toc-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.toc-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.intro-section {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-banner-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.promo-banner-img {
  width: 100%;
}

.data-section, .article-section, .trust-section, .support-section, .faq-section {
  padding-top: 40px;
}

.data-section h2, .article-section h2, .trust-section h2, .support-section h2, .faq-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.data-section p, .article-section p, .trust-section p, .support-section p {
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

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

.data-table th, .data-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table th {
  background-color: var(--color-surface);
  color: var(--color-headers);
}

.callout {
  background-color: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.step-list {
  list-style: none;
  margin-bottom: 16px;
  counter-reset: step-counter;
}

.step-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  counter-increment: step-counter;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--color-button);
  color: var(--color-button-text);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-img {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background-color: var(--color-surface);
}

.accordion-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-headers);
  list-style: none;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "+";
  float: right;
  color: var(--color-accent);
}

.accordion-item[open] summary::after {
  content: "\2212";
}

.accordion-item p {
  margin-top: 12px;
}

.article-section .cta-button,
.data-section .cta-button,
.trust-section .cta-button {
  margin-top: 4px;
}

/* Tablet */
@media (min-width: 768px) {
  .carousel-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .page-title-section h1 {
    font-size: 2.5rem;
  }
}