:root {
  color-scheme: dark;
  --bg: #070908;
  --text: #f5f6ef;
  --muted: #a9b5ad;
  --line: rgba(255, 255, 255, 0.16);
  --gold: #f4db8b;
  --mint: #77e0a1;
  --cyan: #86d8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 14%, rgba(119, 224, 161, 0.16), transparent 24rem),
    #070908;
  letter-spacing: 0;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.9rem clamp(1rem, 4vw, 2.2rem);
  background: rgba(7, 9, 8, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-right: auto;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

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

.brand small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.nav a,
.sound,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
}

.nav a {
  padding: 0 0.85rem;
  color: rgba(245, 246, 239, 0.78);
}

.nav a:hover,
.nav a:focus-visible,
.sound:hover,
.sound:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: rgba(244, 219, 139, 0.7);
  outline: none;
}

.nav-cta,
.button.primary {
  color: #101512 !important;
  background: linear-gradient(135deg, #fff7d5, #80e5aa);
}

.sound {
  width: 58px;
  padding: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.sound.is-on {
  color: #101512;
  background: var(--mint);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(2.8rem, 7vw, 6.5rem) clamp(1rem, 5vw, 5rem);
}

.eyebrow,
.link-grid span,
dt {
  margin: 0;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0.55rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 15vw, 10.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 0;
  color: rgba(245, 246, 239, 0.88);
  font-size: clamp(1.02rem, 2.2vw, 1.35rem);
  font-weight: 650;
  line-height: 1.9;
}

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

.button {
  min-width: 154px;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.signal-card,
.link-grid a {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-card {
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 210px;
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    radial-gradient(circle at 86% 18%, rgba(119, 224, 161, 0.18), transparent 12rem),
    linear-gradient(135deg, #0c1020, #12221d);
}

.card-head img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

.card-head span,
.card-head strong,
.card-head small {
  display: block;
}

.card-head span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
}

.card-head strong {
  margin-top: 0.25rem;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.card-head small {
  margin-top: 0.85rem;
  color: rgba(245, 246, 239, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
}

dl {
  display: grid;
  gap: 0;
  margin: 0;
}

dl div {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

dd {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-weight: 850;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 3rem clamp(1rem, 5vw, 5rem);
  background: #f4f0e4;
  color: #121712;
}

.link-grid a {
  min-height: 122px;
  padding: 1.1rem;
  color: #121712;
  background: #ffffff;
  border-color: rgba(18, 23, 18, 0.1);
}

.link-grid a:hover,
.link-grid a:focus-visible {
  border-color: rgba(18, 23, 18, 0.35);
  outline: none;
}

.link-grid strong {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 5vw, 5rem) 2rem;
  color: #263126;
  background: #f4f0e4;
}

.footer span {
  font-weight: 900;
}

.burst {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
}

.burst span,
.burst b {
  grid-area: 1 / 1;
}

.burst span {
  width: min(56vw, 620px);
  aspect-ratio: 1;
  border: 2px solid rgba(134, 216, 255, 0.95);
  border-radius: 50%;
  transform: scale(0.2);
}

.burst span:nth-child(2) {
  width: min(42vw, 460px);
  border-color: rgba(119, 224, 161, 0.9);
}

.burst b {
  color: #fff;
  font-size: clamp(2rem, 9vw, 7rem);
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(134, 216, 255, 0.75);
  transform: translateY(12px) scale(0.94);
}

body.is-bursting .burst {
  animation: flash 620ms ease-out both;
}

body.is-bursting .burst span {
  animation: ring 620ms ease-out both;
}

body.is-bursting .burst span:nth-child(2) {
  animation-delay: 60ms;
}

body.is-bursting .burst b {
  animation: word 540ms ease-out both;
}

@keyframes flash {
  0%,
  100% { opacity: 0; }
  12%,
  74% { opacity: 1; }
}

@keyframes ring {
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes word {
  to {
    opacity: 0;
    transform: translateY(-16px) scale(1.08);
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    width: calc(100% - 74px);
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .card-head {
    align-items: flex-start;
    min-height: 0;
  }

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

  .footer {
    flex-direction: column;
  }
}

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

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

/* Public OSS landing layout */
.hero {
  position: relative;
  grid-template-columns: 1fr;
  min-height: calc(91svh - 72px);
  padding: 4.5rem clamp(1rem, 6vw, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 20, 17, 0.98) 0%, rgba(8, 20, 17, 0.94) 64%, rgba(8, 20, 17, 0.62) 100%),
    linear-gradient(180deg, rgba(8, 20, 17, 0.08) 0%, rgba(8, 20, 17, 0.9) 100%),
    url("./assets/github-social-preview.png") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 9rem;
  content: "";
  background: linear-gradient(180deg, transparent, #eef5ed);
}

.hero-copy {
  width: min(100%, 920px);
}

h1 {
  max-width: 860px;
  margin: 0.55rem 0 1rem;
  font-size: 4.8rem;
  line-height: 0.98;
}

h2,
h3 {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.18;
}

h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.lede {
  max-width: 780px;
  font-size: 1.2rem;
  line-height: 1.85;
}

.audience-band,
.try-band,
.link-grid,
.trust-band,
.footer {
  color: #0b1110;
  background: #eef5ed;
}

.audience-band,
.try-band,
.trust-band {
  padding: 3.5rem clamp(1rem, 5vw, 5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 1.4rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 1180px;
  margin: 0 auto;
}

.audience-grid article,
.command-panel,
.trust-band {
  border: 1px solid rgba(13, 26, 22, 0.14);
  border-radius: 8px;
}

.audience-grid article {
  min-height: 210px;
  padding: 1.25rem;
  background: #fff;
}

.audience-grid span,
.command-panel span,
.try-copy .eyebrow,
.trust-band .eyebrow,
.link-grid span {
  color: #1f6b58;
}

.audience-grid p,
.try-copy p,
.trust-band li {
  color: #31423b;
  font-size: 1rem;
  line-height: 1.75;
}

.try-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 1.2rem;
  align-items: stretch;
}

.try-copy {
  max-width: 650px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 0.7rem;
  color: #0c4e3f;
  font-weight: 900;
  border-bottom: 2px solid #1f6b58;
}

.command-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  color: #eef5ed;
  background: #0c1816;
  box-shadow: 0 18px 50px rgba(12, 24, 22, 0.18);
}

.command-panel div {
  display: grid;
  gap: 0.55rem;
}

.command-panel code,
.command-panel pre {
  margin: 0;
  color: #eef5ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.command-panel > div:first-child code {
  display: block;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
}

.link-grid a {
  color: #0b1110;
  background: #fff;
  border-color: rgba(13, 26, 22, 0.14);
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 1.6rem;
  max-width: none;
  margin: 0;
  background: #dfece4;
  border: 0;
  border-radius: 0;
}

.trust-band ul {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(88svh - 133px);
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(8, 20, 17, 0.98), rgba(8, 20, 17, 0.93)),
      url("./assets/github-social-preview.png") center / cover no-repeat;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .section-head,
  .try-band,
  .trust-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 540px) {
  h1 {
    font-size: 2.65rem;
  }

  .lede {
    font-size: 1.04rem;
    line-height: 1.75;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
