:root {
  color-scheme: dark;
  --bg: #080a0f;
  --surface: #10141d;
  --surface-raised: #151b26;
  --surface-soft: #0d1118;
  --line: #283140;
  --line-bright: #3c4a60;
  --text: #f4f7fb;
  --muted: #aab5c5;
  --accent: #4cda8a;
  --accent-strong: #76f0a9;
  --accent-dark: #103624;
  --max-width: 1180px;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 5%, rgb(53 155 101 / 14%), transparent 29rem),
    linear-gradient(180deg, #090c11 0, var(--bg) 42rem);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  color: #041109;
  background: var(--accent-strong);
  font-weight: 800;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: rgb(8 10 15 / 90%);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.36rem var(--bg), inset 0 0 0 0.48rem var(--accent);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.45rem;
  width: 2.9rem;
  height: 2px;
  background: var(--accent);
  transform: rotate(-42deg);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.84rem;
  letter-spacing: 0.16em;
}

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

.primary-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 0.55rem 0.72rem;
  border-radius: 0.55rem;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 6%);
}

.hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(19rem, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.9rem;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.3rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

h1 span {
  color: var(--accent-strong);
}

.hero-lede {
  max-width: 43rem;
  margin: 1.8rem 0 0;
  color: #c7d0dc;
  font-size: clamp(1.08rem, 2vw, 1.27rem);
}

.hero-actions,
.database-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #041109;
  background: var(--accent-strong);
}

.button-primary:hover {
  background: #a0ffc5;
}

.button-secondary {
  border-color: var(--line-bright);
  color: var(--text);
  background: rgb(255 255 255 / 3%);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: rgb(76 218 138 / 8%);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.trust-list li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.52rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.25rem rgb(76 218 138 / 12%);
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface-soft));
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 30%);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.panel-heading .eyebrow {
  margin: 0;
}

.signal {
  padding: 0.26rem 0.55rem;
  border: 1px solid #286846;
  border-radius: 999px;
  color: #9cf5bf;
  background: #0d2c1c;
  font-size: 0.72rem;
  font-weight: 750;
}

.hero-panel-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-panel img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgb(0 0 0 / 40%));
}

.hero-panel h2 {
  margin: 1.4rem 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.12;
}

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

.text-link,
.card-link {
  color: var(--accent-strong);
  font-weight: 800;
  text-underline-offset: 0.25em;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-bordered {
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: 1rem 4rem;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2,
.database-panel h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.section-heading > p:last-child,
.database-panel > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.resource-card {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(150deg, var(--surface-raised), var(--surface));
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.resource-card:hover {
  border-color: #4b5c72;
  transform: translateY(-3px);
}

.resource-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 88% 5%, rgb(76 218 138 / 18%), transparent 15rem),
    linear-gradient(145deg, #17241f, var(--surface));
}

.resource-card img {
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: auto;
  object-fit: contain;
}

.resource-card .card-kicker {
  margin: 1.5rem 0 0.25rem;
}

.resource-card h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.18;
}

.resource-card p {
  margin: 0.65rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.5;
}

.card-link {
  margin-top: auto;
  text-decoration: none;
}

.card-link::after {
  content: "  →";
}

.database-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 4rem;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  border: 1px solid #286846;
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    linear-gradient(115deg, rgb(76 218 138 / 12%), transparent 45%),
    var(--surface-soft);
}

.database-panel h2 {
  margin-bottom: 0.8rem;
}

.database-actions {
  min-width: max-content;
  flex-direction: column;
  margin: 0;
}

.site-footer {
  border-top: 1px solid rgb(255 255 255 / 9%);
  background: #06080c;
}

.footer-grid,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer-grid {
  align-items: center;
  padding-block: 3rem;
}

.footer-title,
.footer-note {
  margin: 0;
}

.footer-title {
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer ul {
  justify-content: flex-end;
  gap: 0.75rem 1.2rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-block: 1.1rem;
  border-top: 1px solid rgb(255 255 255 / 7%);
  color: #788596;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding-block: 1rem;
  }

  .primary-nav {
    width: 100%;
    overflow-x: auto;
  }

  .primary-nav ul {
    width: max-content;
  }

  .hero-grid,
  .section-heading,
  .database-panel {
    grid-template-columns: 1fr;
  }

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

  .database-actions {
    min-width: 0;
    align-items: flex-start;
  }
}

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

  .hero {
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .hero-actions,
  .hero-actions .button,
  .database-actions,
  .database-actions .button {
    width: 100%;
  }

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

  .resource-card.featured {
    grid-column: auto;
  }

  .resource-card {
    min-height: 20rem;
  }

  .footer-grid,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer ul {
    justify-content: flex-start;
  }
}

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

  .resource-card {
    transition: none;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .hero-panel,
  .resource-card,
  .database-panel,
  .button {
    border: 1px solid CanvasText;
  }

  .button-primary {
    color: ButtonText;
    background: ButtonFace;
  }
}
