:root {
  --ink: #f6f8fb;
  --muted: #aeb9c7;
  --soft: #d9e1eb;
  --bg: #071015;
  --panel: #101920;
  --panel-2: #172229;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #58d7e9;
  --coral: #ff7d66;
  --green: #9edb75;
  --gold: #e5c365;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #071015 0%, #0b1419 42%, #f4f0e6 42%, #f4f0e6 100%);
  color: var(--ink);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

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

.inline-resource {
  color: var(--ink);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(88, 215, 233, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.inline-resource:hover {
  color: var(--cyan);
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(88, 215, 233, 0.78);
  outline-offset: 3px;
}

.inline-resource.dark {
  color: #071015;
  text-decoration-color: rgba(11, 109, 120, 0.55);
}

.inline-resource.dark:hover {
  color: #0b6d78;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 56px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 14, 18, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.top-nav,
.hero-actions,
.community-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 740;
  letter-spacing: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 64% 35%, var(--coral) 0 12%, transparent 13%),
    radial-gradient(circle at 34% 68%, var(--cyan) 0 13%, transparent 14%),
    radial-gradient(circle at 68% 72%, var(--green) 0 8%, transparent 9%),
    #111b21;
}

.top-nav {
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: rgba(246, 248, 251, 0.78);
  font-size: 0.92rem;
}

.top-nav a,
.nav-action {
  white-space: nowrap;
}

.top-nav a {
  transition: color 160ms ease;
}

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

.nav-action {
  min-height: 40px;
  padding: 10px 17px;
  border-radius: 999px;
  background: rgba(246, 248, 251, 0.95);
  color: #071015;
  font-weight: 720;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 88svh;
  padding: 132px 24px 88px;
  overflow: hidden;
  background: #071015;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 16, 21, 0.92) 0%, rgba(7, 16, 21, 0.62) 38%, rgba(7, 16, 21, 0.15) 72%),
    linear-gradient(180deg, rgba(7, 16, 21, 0.18) 0%, rgba(7, 16, 21, 0.08) 54%, #071015 100%);
}

.hero-copy {
  width: min(760px, 100%);
  margin: 0 auto;
  transform: translateX(min(-14vw, -96px));
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 720px;
  font-size: clamp(4.5rem, 11vw, 9.8rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 5.4rem);
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.62rem);
  line-height: 1.08;
}

p {
  margin: 0;
  line-height: 1.62;
}

.hero-deck {
  max-width: 620px;
  margin-top: 26px;
  color: rgba(246, 248, 251, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.community-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 760;
}

.primary-action {
  background: var(--ink);
  color: #071015;
}

.secondary-action,
.community-actions a {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-link {
  display: block;
  min-height: 118px;
  padding: 28px clamp(18px, 4vw, 46px);
  background: #071015;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.signal-link:hover {
  background: #0d1a20;
}

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 9px;
  font-size: 1.06rem;
}

.signal-strip span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 148px) max(24px, calc((100vw - 1120px) / 2));
}

.intro-flow,
.flowing-map,
.catalog-section,
.tools-section,
.workflow-band,
.benchmark-section,
.about-section,
.community-section {
  background: #071015;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 8vw, 96px);
  align-items: end;
}

.intro-grid p,
.section-heading p,
.sticky-copy p,
.benchmark-copy p,
.about-copy p,
.community-section p {
  color: var(--muted);
  font-size: 1.05rem;
}

.flowing-map {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(36px, 8vw, 104px);
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 124px;
}

.sticky-copy h2 {
  font-size: clamp(2.1rem, 4.7vw, 4.8rem);
}

.sticky-copy p {
  margin-top: 24px;
}

.flow-list {
  display: grid;
  gap: 18px;
}

.flow-list article,
.catalog-card,
.workflow-lanes article,
.question-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.flow-list article {
  min-height: 230px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.flow-list article:nth-child(2) {
  transform: translateX(22px);
}

.flow-list article:nth-child(3) {
  transform: translateX(-18px);
}

.flow-list article:nth-child(4) {
  transform: translateX(12px);
}

.step {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.flow-list p,
.catalog-card p,
.workflow-lanes p,
.question-grid p,
.principles-list p {
  margin-top: 14px;
  color: var(--muted);
}

.catalog-section {
  color: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.9rem);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.search-box input:focus {
  border-color: rgba(88, 215, 233, 0.78);
  box-shadow: 0 0 0 4px rgba(88, 215, 233, 0.12);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  min-height: 54px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.filter {
  min-width: 86px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.filter.active {
  background: var(--ink);
  color: #071015;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 24px;
}

.suggestion-action {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(88, 215, 233, 0.36);
  border-radius: 8px;
  background: rgba(88, 215, 233, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.suggestion-action:hover {
  border-color: rgba(88, 215, 233, 0.84);
  background: rgba(88, 215, 233, 0.14);
}

.section-actions.light .suggestion-action {
  border-color: rgba(11, 109, 120, 0.3);
  background: rgba(11, 109, 120, 0.08);
  color: #071015;
}

.section-actions.light .suggestion-action:hover {
  border-color: rgba(11, 109, 120, 0.7);
  background: rgba(11, 109, 120, 0.13);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.noscript-grid {
  margin-top: 18px;
}

.catalog-card {
  display: grid;
  min-height: 308px;
  padding: 22px;
  gap: 16px;
}

.catalog-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.catalog-card h3 {
  font-size: 1.18rem;
  line-height: 1.18;
}

.catalog-type {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 44%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(88, 215, 233, 0.12);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 820;
  line-height: 1.15;
  text-align: right;
  text-transform: uppercase;
}

.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-self: end;
}

.catalog-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.78rem;
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(88, 215, 233, 0.34);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 780;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.source-link:hover {
  border-color: rgba(88, 215, 233, 0.82);
  background: rgba(88, 215, 233, 0.1);
}

.workflow-band,
.benchmark-section {
  color: #071015;
  background: #f4f0e6;
}

.workflow-band .section-kicker,
.benchmark-section .section-kicker,
.principles-section .section-kicker,
.submit-section .section-kicker {
  color: #0b6d78;
}

.workflow-band .section-heading p,
.workflow-lanes p,
.benchmark-copy p,
.question-grid p,
.principles-list p {
  color: #52605e;
}

.workflow-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-lanes article,
.question-grid article {
  border-color: rgba(7, 16, 21, 0.12);
  background: rgba(255, 255, 255, 0.64);
  padding: 26px;
  box-shadow: 0 18px 40px rgba(67, 57, 36, 0.08);
}

.workflow-lanes span {
  display: inline-block;
  margin-bottom: 26px;
  color: #0b6d78;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 38px;
  margin-top: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(11, 109, 120, 0.28);
  border-radius: 8px;
  color: #071015;
  font-size: 0.86rem;
  font-weight: 820;
}

.benchmark-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(340px, 1fr);
  gap: clamp(30px, 7vw, 84px);
  align-items: center;
}

.benchmark-table {
  overflow: hidden;
  border: 1px solid rgba(7, 16, 21, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 20px 48px rgba(67, 57, 36, 0.09);
}

.benchmark-table [role="row"] {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
}

.benchmark-table [role="row"] + [role="row"] {
  border-top: 1px solid rgba(7, 16, 21, 0.1);
}

.benchmark-table span {
  min-height: 74px;
  padding: 18px;
  border-right: 1px solid rgba(7, 16, 21, 0.1);
  color: #34413f;
}

.benchmark-table span:last-child {
  border-right: 0;
}

.benchmark-table [role="columnheader"] {
  min-height: 54px;
  background: #071015;
  color: var(--ink);
  font-weight: 820;
}

.signals-section {
  background: #071015;
}

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

.signal-card {
  display: grid;
  min-height: 350px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.signal-card > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-card h3 {
  margin-top: 28px;
  font-size: clamp(1.22rem, 2vw, 1.65rem);
}

.signal-card p {
  margin-top: 16px;
  color: var(--muted);
}

.signal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 24px;
}

.signal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(88, 215, 233, 0.32);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 780;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 0.68fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.9rem);
}

.about-copy p {
  margin-top: 24px;
}

.join-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  padding: 28px;
  box-shadow: var(--shadow);
}

.join-panel h3 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.join-panel p {
  margin-top: 16px;
  color: var(--muted);
}

.join-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.join-form label {
  display: grid;
  gap: 7px;
}

.join-form label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.join-form input,
.join-form select {
  min-height: 48px;
  padding: 0 13px;
}

.join-form textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  border-color: rgba(88, 215, 233, 0.78);
  box-shadow: 0 0 0 4px rgba(88, 215, 233, 0.12);
}

.join-form button,
.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-weight: 800;
}

.join-form button {
  margin-top: 4px;
  padding: 12px 16px;
  background: var(--ink);
  color: #071015;
}

.email-link {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(88, 215, 233, 0.34);
  background: transparent;
  color: var(--ink);
}

.community-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) auto;
  gap: 32px;
  align-items: end;
}

.community-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.principles-section,
.submit-section {
  color: #071015;
  background: #f4f0e6;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principles-list li {
  min-height: 230px;
  padding: 24px;
  border-top: 3px solid #071015;
  background: rgba(255, 255, 255, 0.5);
  counter-increment: principle;
}

.principles-list li::before {
  content: "0" counter(principle);
  display: block;
  margin-bottom: 32px;
  color: #0b6d78;
  font-weight: 850;
}

.principles-list span {
  font-size: 1.25rem;
  font-weight: 820;
}

.submit-section h2 {
  max-width: 860px;
  font-size: clamp(2.1rem, 4.2vw, 4.3rem);
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  background: #071015;
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  font-weight: 760;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 132px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 22px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 18px;
    margin-top: 8px;
    padding: 8px 2px 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .hero-copy {
    transform: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 16, 21, 0.93) 0%, rgba(7, 16, 21, 0.65) 60%, rgba(7, 16, 21, 0.2) 100%),
      linear-gradient(180deg, rgba(7, 16, 21, 0.18) 0%, rgba(7, 16, 21, 0.08) 52%, #071015 100%);
  }

  .signal-strip,
  .intro-grid,
  .flowing-map,
  .section-heading,
  .catalog-tools,
  .benchmark-section,
  .about-section,
  .community-section {
    grid-template-columns: 1fr;
  }

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

  .sticky-copy {
    position: static;
  }

  .flow-list article:nth-child(n) {
    transform: none;
  }

  .catalog-grid,
  .workflow-lanes,
  .signals-grid,
  .principles-list,
  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-tools {
    align-items: stretch;
  }

  .filter-tabs {
    overflow-x: auto;
  }

  .community-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 128px;
  }

  .site-header {
    top: 10px;
    width: min(100% - 20px, 1120px);
    min-height: 52px;
    padding-left: 12px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .nav-action {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 86svh;
    padding: 118px 20px 64px;
  }

  .hero-image {
    object-position: 62% center;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .hero-deck {
    font-size: 1rem;
  }

  .primary-action,
  .secondary-action,
  .community-actions a,
  .email-link {
    width: 100%;
  }

  .signal-strip,
  .catalog-grid,
  .workflow-lanes,
  .signals-grid,
  .principles-list,
  .question-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .filter {
    min-width: 94px;
  }

  .benchmark-table {
    overflow-x: auto;
  }

  .benchmark-table [role="row"] {
    min-width: 680px;
  }

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