:root {
  --bg: #07080b;
  --bg-raised: #101218;
  --bg-plugins: #0c141c;
  --gold: #d4a017;
  --gold-soft: #e8c15a;
  --ink: #f4f1ea;
  --muted: #9d988c;
  --line: rgba(212, 160, 23, 0.28);
  --slate: #7aa0b8;
  --slate-line: rgba(122, 160, 184, 0.28);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #111;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 8, 11, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: var(--gold-soft);
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid var(--line);
  background: #000;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 42rem);
  display: grid;
  align-items: end;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.35) 0%, rgba(7, 8, 11, 0.55) 42%, rgba(7, 8, 11, 0.96) 100%),
    linear-gradient(90deg, rgba(7, 8, 11, 0.72) 0%, rgba(7, 8, 11, 0.18) 55%, rgba(7, 8, 11, 0.55) 100%);
}

.hero-kicker {
  color: var(--gold-soft);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 650;
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.hero-lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #161208;
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: #161208;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.section {
  padding: 4.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  font-weight: 650;
}

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

.plugins {
  background:
    linear-gradient(180deg, rgba(122, 160, 184, 0.05), transparent 18%),
    var(--bg-plugins);
  border-block: 1px solid var(--slate-line);
}

.plugins .section-head h2 {
  color: #e7eef3;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.plugin-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid var(--slate-line);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  overflow: hidden;
}

.plugin-card:hover {
  color: inherit;
  border-color: rgba(122, 160, 184, 0.55);
}

.plugin-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a0e12;
}

.plugin-card-body {
  padding: 1rem 1.05rem 1.15rem;
}

.plugin-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  font-weight: 650;
  color: #eef4f8;
}

.plugin-card p {
  margin: 0;
  color: #9eb0bd;
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-cta {
  margin: 1.75rem 0 0;
}

.section-cta a {
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-soft);
}

.plugins .section-cta a {
  color: #b7d0de;
}

.section-cta a:hover {
  color: var(--ink);
}

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

.env-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.env-card:hover {
  color: inherit;
  border-color: var(--line);
}

.env-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.env-card-title {
  display: block;
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.about h2,
.contact-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.contact-panel {
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  background: rgba(212, 160, 23, 0.04);
}

.contact-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.mail-link {
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--gold-soft);
}

.mail-link:hover {
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.page-main {
  padding: 3.2rem 0 4.5rem;
}

.page-main h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 42rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-table th {
  color: var(--muted);
  font-weight: 600;
  width: 15rem;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose h2 {
  margin: 2.1rem 0 0.7rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .plugin-grid,
  .env-grid,
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 1.5rem), var(--wrap));
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: #0b0d12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.4rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero {
    min-height: 0;
    padding: 3.2rem 0 3rem;
    align-items: center;
  }

  .plugin-grid,
  .env-grid,
  .about-grid,
  .legal-table th,
  .legal-table td {
    grid-template-columns: 1fr;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th {
    padding-bottom: 0.15rem;
    border: 0;
  }

  .legal-table td {
    padding-top: 0.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
