:root {
  --bg: #080a0f;
  --bg-soft: #0d1119;
  --card: rgba(15, 20, 30, 0.88);
  --card-solid: #101620;
  --gold: #d7ad53;
  --gold-bright: #f1d28a;
  --cream: #eee3ce;
  --text: #f4f1ea;
  --muted: #a9a399;
  --line: rgba(215, 173, 83, 0.22);
  --line-soft: rgba(238, 227, 206, 0.1);
  --green: #69d49b;
  --red: #ff8b87;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 9%, rgba(215, 173, 83, 0.13), transparent 28rem),
    radial-gradient(circle at 16% 35%, rgba(86, 118, 158, 0.1), transparent 32rem),
    linear-gradient(180deg, #080a0f 0%, #090c12 58%, #07090d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(238, 227, 206, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 227, 206, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  color: #0b0d12;
  background: var(--gold-bright);
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #0b0d12;
  background: var(--gold-bright);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 3rem));
  min-height: 4.75rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(215, 173, 83, 0.55);
  border-radius: 0.55rem;
  background: linear-gradient(145deg, rgba(215, 173, 83, 0.18), rgba(215, 173, 83, 0.02));
  box-shadow: inset 0 0 18px rgba(215, 173, 83, 0.08), 0 0 24px rgba(215, 173, 83, 0.08);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border: solid var(--gold);
  transform: rotate(45deg);
}

.brand-mark::after {
  width: 0.3rem;
  height: 0.3rem;
  background: var(--gold-bright);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.brand-copy small {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

main {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 38rem;
  padding: 7.5rem 0 5rem;
  align-content: center;
}

.hero::after {
  position: absolute;
  top: 13%;
  right: -8rem;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  content: "";
  opacity: 0.65;
  border: 1px solid rgba(215, 173, 83, 0.12);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 2.7rem, rgba(215, 173, 83, 0.055) 2.75rem 2.8rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.08;
}

h1 {
  max-width: 880px;
  margin-bottom: 1.5rem;
  color: var(--cream);
  font-size: clamp(3rem, 8vw, 6.7rem);
  font-weight: 850;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  color: var(--cream);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  color: var(--cream);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(115deg, var(--gold-bright) 5%, #aa7c31 92%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-copy strong {
  color: var(--text);
  font-weight: 650;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  padding: 0.78rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.85rem;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  border-color: rgba(215, 173, 83, 0.55);
  background: rgba(215, 173, 83, 0.08);
  transform: translateY(-2px);
}

.button-primary {
  color: #0b0d12;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 34px rgba(215, 173, 83, 0.14);
}

.button-primary:hover {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, #f6dda0, #d7ad53);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 780px;
  margin-top: 3.7rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  background: var(--line-soft);
}

.metric {
  padding: 1rem 1.2rem;
  background: rgba(10, 14, 20, 0.88);
}

.metric strong {
  display: block;
  color: var(--gold-bright);
  font-size: 1rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--line-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  margin-bottom: 2.2rem;
  align-items: end;
  gap: 2rem;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  padding: 1.45rem;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.13);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.card::before {
  position: absolute;
  top: 0;
  left: 1.2rem;
  width: 2.6rem;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold), transparent);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.88rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 1.1rem;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.card-link:hover::after {
  transform: translateX(0.2rem);
}

.icon-box {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.2rem;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(215, 173, 83, 0.07);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 1rem;
}

.code-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #090d13;
  box-shadow: var(--shadow);
}

.code-header {
  display: flex;
  min-height: 2.9rem;
  padding: 0 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
}

.code-dots {
  display: flex;
  gap: 0.38rem;
}

.code-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inline-code {
  padding: 0.14rem 0.38rem;
  color: var(--gold-bright);
  border: 1px solid var(--line-soft);
  border-radius: 0.3rem;
  background: rgba(215, 173, 83, 0.06);
  font-size: 0.86em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 0.9rem;
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td:first-child {
  color: var(--text);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

td a {
  color: var(--gold-bright);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  padding: 0.34rem 0.58rem;
  align-items: center;
  gap: 0.38rem;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(215, 173, 83, 0.06);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge::before {
  width: 0.4rem;
  height: 0.4rem;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(105, 212, 155, 0.5);
}

.note {
  padding: 1.1rem 1.2rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  background: rgba(215, 173, 83, 0.045);
  font-size: 0.86rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  width: min(1180px, calc(100% - 3rem));
  min-height: 8rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-copy strong {
  color: var(--cream);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .hero {
    min-height: 34rem;
    padding-top: 5.5rem;
  }

  .grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .metric-row {
    max-width: none;
  }

  .section-heading,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .header-inner,
  main,
  .footer-inner {
    width: min(100% - 2rem, 1180px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 0.8rem 1.1rem;
    flex-wrap: wrap;
  }

  .site-nav a {
    font-size: 0.67rem;
  }

  .hero {
    min-height: auto;
    padding: 5rem 0 4rem;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.8rem);
  }

  .section {
    padding: 4rem 0;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    padding: 2rem 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
