:root {
  --ink: #092f35;
  --ink-deep: #03272e;
  --paper: #f8fbfa;
  --white: #ffffff;
  --orange: #ef8b26;
  --orange-light: #ffc167;
  --teal: #0b6970;
  --aqua: #8bd7d8;
  --line: rgba(9, 47, 53, 0.16);
  --muted: #577278;
  --shadow: 0 28px 80px rgba(0, 37, 45, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.3rem;
  background: var(--white);
  color: var(--ink-deep);
  transform: translateY(-180%);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 1.2rem 2rem;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease,
    max-width 180ms ease;
}

.site-header.is-scrolled {
  max-width: none;
  background: rgba(248, 251, 250, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 0.7rem;
}

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

nav a,
.footer-links a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:not(.nav-github):hover,
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.nav-github {
  padding: 0.55rem 0.95rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: var(--ink-deep);
}

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

.hero-art {
  z-index: -2;
  background: url("assets/consensus-table.jpg") center 40% / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 23, 28, 0.98) 0%, rgba(2, 29, 35, 0.86) 45%, rgba(2, 25, 31, 0.17) 78%),
    linear-gradient(0deg, rgba(3, 39, 46, 0.62), transparent 42%);
}

.hero-content {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
  padding: 8.5rem 0 5.5rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--orange-light);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.07;
}

h1 {
  max-width: 830px;
  margin-bottom: 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

.hero-copy {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--orange);
  color: #102d31;
}

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 3.7rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: grid;
  gap: 0.05rem;
  min-width: 150px;
  padding: 0 1.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-proof li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-proof strong {
  color: var(--white);
  font-size: 1.1rem;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.product-showcase,
.methods,
.install,
footer {
  width: min(var(--max), calc(100% - 4rem));
  margin: 0 auto;
}

.product-showcase {
  padding: 8rem 0;
}

.section-intro {
  max-width: 760px;
}

.section-intro > p:last-child,
.capability-copy > p:last-child,
.install > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.product-frame {
  margin: 4rem 0 0;
  overflow: hidden;
  border: 1px solid rgba(9, 47, 53, 0.2);
  border-radius: 1.1rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.product-frame img {
  width: 100%;
  height: auto;
}

.frame-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.7rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
}

.frame-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #e15e55;
}

.frame-bar i:nth-child(2) {
  background: #f1ae31;
}

.frame-bar i:nth-child(3) {
  background: #4cba55;
}

.frame-bar span {
  position: absolute;
  left: 50%;
  color: #6b7c80;
  font-size: 0.72rem;
  font-style: normal;
  transform: translateX(-50%);
}

.methods {
  padding: 7rem 0 8rem;
  border-top: 1px solid var(--line);
}

.split-intro {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 5rem;
  align-items: end;
}

.split-intro p:last-child {
  margin-bottom: 1.3rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--line);
}

.method-card {
  min-height: 270px;
  padding: 2rem;
  background: var(--white);
}

.method-card-featured {
  grid-column: span 2;
  background: var(--ink);
  color: var(--white);
}

.method-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.method-card-featured p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.7);
}

.method-number {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.phase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.phase-list li {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
}

.method-card-all {
  background: #dff3f1;
}

.method-card-all a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--teal);
  font-weight: 760;
  text-underline-offset: 0.3rem;
}

.capabilities {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 7rem;
  padding: 8rem max(2rem, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--ink-deep);
}

.capability-copy {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.capability-copy .eyebrow {
  color: var(--orange-light);
}

.capability-copy > p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.capability-list h3 {
  margin-bottom: 0.55rem;
}

.capability-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.capability-mark {
  color: var(--orange-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 6rem;
  padding: 9rem 0;
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(9, 47, 53, 0.16);
  border-radius: 0.7rem;
  color: #d9f0ee;
  background: #082f35;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.terminal-bar button {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.3rem;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.terminal-bar button:hover,
.terminal-bar button:focus-visible {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.terminal pre {
  margin: 0;
  padding: 2.7rem 1.5rem;
  overflow-x: auto;
  color: var(--white);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
}

.terminal pre span {
  color: var(--orange-light);
}

.terminal-note {
  display: flex;
  gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.terminal-note code {
  color: var(--aqua);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}

.brand-footer {
  color: var(--ink);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(1, 23, 28, 0.96), rgba(2, 29, 35, 0.7));
  }

  .split-intro,
  .capabilities,
  .install {
    grid-template-columns: 1fr;
  }

  .split-intro,
  .capabilities,
  .install {
    gap: 2.5rem;
  }

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

  .method-card-featured {
    grid-column: span 2;
  }

  .capability-copy {
    position: static;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 0.85rem 1rem;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 0.9rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  nav a:nth-child(1),
  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-art {
    background-position: 61% 50%;
    opacity: 0.78;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(1, 23, 28, 0.98), rgba(2, 29, 35, 0.62));
  }

  .hero-content,
  .product-showcase,
  .methods,
  .install,
  footer {
    width: min(100% - 2rem, var(--max));
  }

  .hero-content {
    padding-top: 7rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero-proof {
    gap: 1rem 0;
    margin-top: 2.6rem;
  }

  .hero-proof li {
    min-width: 50%;
    padding: 0 0.9rem;
  }

  .hero-proof li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .product-showcase,
  .methods,
  .install {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
  }

  .product-frame {
    margin-top: 2.5rem;
    border-radius: 0.7rem;
  }

  .frame-bar span {
    display: none;
  }

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

  .method-card,
  .method-card-featured {
    grid-column: auto;
    min-height: 240px;
  }

  .capabilities {
    padding: 5.5rem 1rem;
  }

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

  .terminal pre {
    padding: 2rem 1rem;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 2rem 0 2.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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