:root {
  --ink: #15130f;
  --muted: #605d53;
  --line: #d9d2c5;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --wash: #efede5;
  --lime: #b9ff2c;
  --mint: #00a876;
  --coral: #ff4f3f;
  --amber: #f4b000;
  --shadow: 0 18px 44px rgba(21, 19, 15, 0.13);
  --soft-shadow: 0 10px 30px rgba(21, 19, 15, 0.08);
  --radius: 8px;
  --fast: 180ms ease;
}

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

body {
  min-width: 320px;
  background:
    linear-gradient(rgba(21, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.navbar {
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar-brand .navbar-item {
  gap: 0.65rem;
  font-weight: 800;
}

.navbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.navbar-menu {
  background: transparent;
}

.navbar-item {
  color: var(--muted);
  font-weight: 700;
}

.navbar-item:hover,
.navbar-item:focus {
  background: transparent;
  color: var(--ink);
}

.hero-shell {
  min-height: calc(100vh - 54px);
  display: grid;
  align-items: center;
  padding: 5.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(185, 255, 44, 0.28), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(255, 79, 63, 0.16), transparent 28%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--lime);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero-title {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(3rem, 8vw, 6.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.89;
  margin-bottom: 1.35rem;
}

.hero-copy {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.9vw, 2.25rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-slogan {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.36em;
  margin: 0;
  color: transparent;
  filter: drop-shadow(2px 3px 0 rgba(21, 19, 15, 0.14));
}

.slogan-line {
  display: inline-block;
  background: linear-gradient(92deg, var(--ink) 0%, var(--ink) 38%, var(--mint) 70%, var(--lime) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.slogan-line-accent {
  background-image: linear-gradient(92deg, var(--coral) 0%, var(--amber) 34%, var(--mint) 74%, var(--ink) 100%);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.star-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  max-width: 680px;
  margin-top: 1.35rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 5px 5px 0 rgba(185, 255, 44, 0.75);
}

.star-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
}

.star-callout p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
}

.button {
  border-radius: var(--radius) !important;
  font-weight: 800 !important;
  min-height: 3rem;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
}

.button.is-primary-buddy {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--paper);
  box-shadow: 7px 7px 0 var(--lime);
}

.button.is-primary-buddy:hover,
.button.is-primary-buddy:focus {
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--lime);
}

.button.is-secondary-buddy {
  background: var(--panel);
  border: 1px solid var(--ink);
  color: var(--ink);
}

.button.is-secondary-buddy:hover,
.button.is-secondary-buddy:focus {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}

.hero-art {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.65deg);
}

.hero-tabs {
  display: flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.7rem;
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.98), rgba(239, 237, 229, 0.96));
}

.traffic-lights {
  display: flex;
  flex: 0 0 auto;
  gap: 0.38rem;
  align-items: center;
}

.traffic-lights span {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.traffic-lights span:nth-child(1) { background: var(--coral); }
.traffic-lights span:nth-child(2) { background: var(--amber); }
.traffic-lights span:nth-child(3) { background: var(--lime); }

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  object-fit: cover;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
}

.metric {
  padding: 1rem;
  border-right: 1px solid var(--ink);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section.is-wash {
  background: rgba(239, 237, 229, 0.8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  color: var(--mint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 0.35rem 0 1.2rem;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.section-lede {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.12rem;
}

.demo-frame {
  margin-top: 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.demo-frame video {
  display: block;
  width: 100%;
  background: var(--ink);
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--panel);
  border-top: 1px solid var(--ink);
  color: var(--muted);
}

.demo-caption strong {
  color: var(--ink);
}

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

.demo-card {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.demo-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  object-fit: contain;
}

.demo-card h3 {
  padding: 1rem 1rem 0.2rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.demo-card p {
  padding: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.workflow-grid,
.spotlight-grid,
.example-grid,
.capability-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.feature-cluster {
  margin-top: 2.75rem;
}

.feature-heading {
  max-width: 760px;
  margin-bottom: 1rem;
}

.feature-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  margin-bottom: 0.7rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.8vw, 2.35rem);
  font-weight: 900;
  line-height: 1.05;
}

.feature-cluster .workflow-grid,
.feature-cluster .spotlight-grid,
.feature-cluster .example-grid,
.feature-cluster .capability-grid {
  margin-top: 0;
}

.workflow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.spotlight-grid,
.example-grid,
.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card,
.spotlight-card,
.example-card,
.capability-card {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  padding: 1.25rem;
}

.workflow-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1.1rem;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.workflow-card h3,
.spotlight-card h3,
.example-card h3,
.capability-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.workflow-card p,
.spotlight-card p,
.example-card p,
.capability-card p {
  color: var(--muted);
}

.spotlight-board {
  position: relative;
  margin-top: 0.25rem;
  padding: 1.25rem 0 0.1rem;
  isolation: isolate;
}

.spotlight-board::before {
  content: "";
  position: absolute;
  inset: -1.15rem calc(50% - 50vw) -1.6rem;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(185, 255, 44, 0.12), transparent 34%, rgba(255, 79, 63, 0.08) 70%, transparent),
    repeating-linear-gradient(135deg, rgba(21, 19, 15, 0.04) 0 1px, transparent 1px 18px);
  border-top: 1px solid rgba(21, 19, 15, 0.08);
  border-bottom: 1px solid rgba(21, 19, 15, 0.08);
}

.spotlight-grid {
  counter-reset: spotlight;
}

.spotlight-card {
  --accent: var(--lime);
  --accent-ink: var(--ink);
  position: relative;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    var(--panel);
  overflow: hidden;
  counter-increment: spotlight;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
}

.spotlight-card::before {
  content: "0" counter(spotlight);
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  color: rgba(21, 19, 15, 0.08);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 0.8;
  pointer-events: none;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 0 1.25rem;
  height: 5px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-bottom: 0;
}

.spotlight-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(21, 19, 15, 0.18);
}

.spotlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  box-shadow: 4px 4px 0 var(--ink);
}

.spotlight-tag {
  width: fit-content;
  margin-bottom: 0.72rem;
  padding: 0.14rem 0.55rem;
  border-left: 4px solid var(--accent);
  background: rgba(21, 19, 15, 0.045);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.spotlight-card h3,
.spotlight-card p,
.spotlight-icon,
.spotlight-tag {
  position: relative;
  z-index: 1;
}

.spotlight-card:nth-child(3n + 2) .spotlight-icon {
  --accent: var(--coral);
  --accent-ink: var(--paper);
}

.spotlight-card:nth-child(3n) .spotlight-icon {
  --accent: var(--amber);
}

.spotlight-card:nth-child(3n + 2) {
  --accent: var(--coral);
  --accent-ink: var(--paper);
}

.spotlight-card:nth-child(3n) {
  --accent: var(--amber);
}

.capability-card {
  position: relative;
  overflow: hidden;
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: rgba(185, 255, 44, 0.5);
}

.terminal {
  margin-top: 2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #171510;
  color: #f9f1dd;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(249, 241, 221, 0.22);
  color: #d9d2c5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
}

.terminal pre {
  margin: 0;
  padding: 1.25rem;
  background: transparent;
  color: inherit;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.terminal code {
  color: inherit;
}

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

.footer {
  background: var(--ink);
  color: rgba(251, 250, 246, 0.78);
  padding: 3rem 1.5rem;
}

.footer a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast), visibility var(--fast), transform var(--fast);
  box-shadow: 5px 5px 0 var(--ink);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translate(-2px, -2px);
}

@media screen and (max-width: 1180px) {
  .workflow-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 980px) {
  .hero-grid,
  .workflow-grid,
  .spotlight-grid,
  .example-grid,
  .capability-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-art {
    transform: none;
  }
}

@media screen and (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .navbar-menu {
    display: none !important;
  }

  .hero-shell,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-shell {
    padding-top: 4.75rem;
  }

  .hero-title {
    font-size: clamp(2.55rem, 15vw, 4rem);
  }

  .hero-slogan {
    gap: 0 0.28em;
  }

  .cta-row .button {
    width: 100%;
  }

  .hero-tabs {
    min-height: 1.65rem;
    padding: 0 0.55rem;
  }

  .traffic-lights {
    gap: 0.28rem;
  }

  .traffic-lights span {
    width: 9px;
    height: 9px;
  }

  .metrics-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    padding: 0.72rem 0.55rem;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .metric:last-child {
    border-right: 0;
  }

  .metric strong {
    font-size: 1.15rem;
  }

  .metric span {
    display: block;
    font-size: 0.64rem;
    line-height: 1.25;
  }
}
