:root {
  --onyx-bg: var(--bg);
  --onyx-panel: var(--panel);
  --onyx-panel-2: var(--panel-2);
  --onyx-line: var(--line);
  --onyx-ivory: var(--text);
  --onyx-gold: var(--accent);
  --onyx-gold-soft: var(--accent-2);
  --onyx-copy: var(--prose);
}

html {
  background: var(--onyx-bg);
  color-scheme: dark;
}

body {
  background: var(--onyx-bg);
  color: var(--onyx-copy);
  letter-spacing: 0.01em;
}

body::before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28vw;
  height: 1px;
  background: var(--onyx-gold);
  opacity: 0.72;
  z-index: 4;
}

body::after {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 18vh;
  background: var(--onyx-gold);
  opacity: 0.72;
  z-index: 4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--onyx-ivory);
  font-weight: 600;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

h1 {
  text-transform: uppercase;
}

h2,
h3 {
  text-transform: none;
}

p,
li,
td,
th {
  color: var(--onyx-copy);
}

a {
  color: var(--onyx-gold);
  text-decoration-color: var(--onyx-line);
  text-underline-offset: 0.22em;
  transition: color 320ms ease, text-decoration-color 320ms ease;
}

a:hover {
  color: var(--onyx-gold-soft);
  text-decoration-color: var(--onyx-gold);
}

section {
  background: var(--onyx-bg);
}

section:nth-of-type(even) {
  background: var(--onyx-panel);
}

main {
  background: var(--onyx-bg);
}

.site-header {
  background: var(--onyx-bg);
  border-bottom: 1px solid var(--onyx-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

.nav a {
  color: var(--onyx-copy);
  letter-spacing: 0.025em;
  transition: color 280ms ease;
}

.nav a:hover {
  color: var(--onyx-gold);
}

.hero {
  background: var(--onyx-bg);
  color: var(--onyx-copy);
}

.hero::before {
  display: block;
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 0;
  width: 64px;
  height: 1px;
  background: var(--onyx-gold);
}

.hero h1 {
  color: var(--onyx-ivory);
  letter-spacing: 0.04em;
}

.hero p {
  color: var(--onyx-copy);
}

.card,
.feature,
.tile,
.faq-item,
.tab {
  background: var(--onyx-panel);
  border: 1px solid var(--onyx-line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: border-color 320ms ease, box-shadow 320ms ease, transform 320ms ease, background-color 320ms ease;
}

.card:hover,
.feature:hover,
.tile:hover {
  background: var(--onyx-panel-2);
  border-color: var(--onyx-gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.card::before,
.feature::before,
.tile::before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 1px;
  background: var(--onyx-gold);
  opacity: 0.9;
}

.icon {
  background: var(--onyx-panel-2);
  border: 1px solid var(--onyx-line);
  border-radius: var(--radius);
  color: var(--onyx-gold);
  box-shadow: inset 0 0 0 1px rgba(198, 155, 60, 0.08);
}

.badge {
  background: var(--onyx-panel-2);
  border: 1px solid var(--onyx-line);
  border-radius: 999px;
  color: var(--onyx-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  background: transparent;
  border: 1px solid var(--onyx-gold);
  border-radius: var(--radius);
  color: var(--onyx-gold);
  box-shadow: none;
  transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.btn:hover {
  background: var(--onyx-gold);
  color: var(--on-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--onyx-panel);
  border-color: var(--onyx-line);
  color: var(--onyx-ivory);
}

.btn-secondary:hover {
  background: var(--onyx-panel-2);
  border-color: var(--onyx-gold);
  color: var(--onyx-gold);
}

.faq-item {
  overflow: hidden;
}

.faq-item:hover,
.tab:hover {
  border-color: var(--onyx-gold);
}

.tab {
  border-radius: var(--radius);
  color: var(--onyx-copy);
}

.tab[aria-selected="true"],
.tab.active {
  background: var(--onyx-panel-2);
  border-color: var(--onyx-gold);
  color: var(--onyx-ivory);
}

img {
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

input,
button {
  border-radius: var(--radius);
}

input {
  background: var(--onyx-panel);
  border: 1px solid var(--onyx-line);
  color: var(--onyx-ivory);
}

input:focus,
button:focus,
a:focus-visible {
  outline: 1px solid var(--onyx-gold);
  outline-offset: 3px;
}

table {
  border-collapse: collapse;
}

th {
  color: var(--onyx-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td,
th {
  border-bottom: 1px solid var(--onyx-line);
}

footer {
  background: var(--onyx-panel);
  border-top: 1px solid var(--onyx-line);
  color: var(--onyx-copy);
}

@keyframes onyx-reveal {
  from {
    opacity: 0.9;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero p,
.card,
.feature,
.tile {
  animation: onyx-reveal 900ms ease both;
}

.card:nth-child(2),
.feature:nth-child(2),
.tile:nth-child(2) {
  animation-delay: 90ms;
}

.card:nth-child(3),
.feature:nth-child(3),
.tile:nth-child(3) {
  animation-delay: 180ms;
}

.card:nth-child(4),
.feature:nth-child(4),
.tile:nth-child(4) {
  animation-delay: 270ms;
}