:root {
  --bg: #0b0d0f;
  --surface: #12161a;
  --surface-hover: #161c21;
  --border: #262d33;

  --text: #f5f7f8;
  --muted: #9aa4ad;

  --accent: #8ef0b5;
  --accent-light: #b8ffd2;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    "Segoe UI",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;

  background: var(--bg);
  color: var(--text);

  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(
    var(--max-width),
    calc(100% - 40px)
  );

  margin-inline: auto;
}

/* HEADER */

header {
  position: sticky;
  top: 0;

  z-index: 100;

  background: rgba(11, 13, 15, 0.88);

  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(38, 45, 51, 0.8);
}

.nav {
  height: 72px;

  display: flex;
  align-items: center;

  gap: 26px;
}

.logo {
  margin-right: auto;

  display: flex;
  align-items: center;

  gap: 9px;

  text-decoration: none;

  font-size: 1.1rem;
  font-weight: 800;

  letter-spacing: -0.04em;
}

.logo-mark {
  height: 34px;
  width: auto;

  display: block;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;

  gap: 26px;
}

.nav-links a {
  text-decoration: none;

  color: var(--muted);

  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.nav-menu-only {
  display: none;
}

.nav-cta {
  padding: 9px 16px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--text);

  font-size: 0.9rem;
  font-weight: 600;

  text-decoration: none;

  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

/* Keep anchored sections clear of the sticky header. */
main [id] {
  scroll-margin-top: 84px;
}

/* HERO */

.hero {
  position: relative;

  overflow: hidden;

  padding: 120px 0 95px;

  background:
    radial-gradient(
      circle at 80% 10%,
      rgba(142, 240, 181, 0.12),
      transparent 25%
    ),
    radial-gradient(
      circle at 20% 90%,
      rgba(142, 240, 181, 0.05),
      transparent 30%
    );
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  opacity: 0.16;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    );

  background-size: 40px 40px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 90%
    );
}

.hero-grid {
  position: relative;
}

.eyebrow {
  display: flex;
  align-items: center;

  gap: 10px;

  margin: 0 0 20px;

  color: var(--accent);

  font-size: 0.74rem;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 28px;
  height: 2px;

  background: var(--accent);
}

h1 {
  margin: 0 0 28px;

  max-width: 850px;

  font-size: clamp(
    3.2rem,
    7vw,
    6.5rem
  );

  line-height: 0.92;

  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 700px;

  margin: 0 0 36px;

  color: var(--muted);

  font-size: 1.15rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.button {
  min-height: 50px;

  padding: 0 21px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  text-decoration: none;

  font-size: 0.94rem;
  font-weight: 750;

  transition: 0.2s;
}

.button-primary {
  background: var(--accent);
  color: #0b0d0f;
}

.button-primary:hover {
  background: var(--accent-light);

  transform: translateY(-2px);
}

.button-secondary {
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.02);
}

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

/* SECTIONS */

section.content-section {
  padding: 95px 0;

  border-top:
    1px solid
    rgba(38,45,51,0.65);
}

.section-heading {
  max-width: 760px;

  margin-bottom: 45px;
}

h2 {
  margin: 0 0 17px;

  font-size: clamp(
    2.3rem,
    4vw,
    4rem
  );

  line-height: 1;

  letter-spacing: -0.05em;
}

.section-description {
  margin: 0;

  color: var(--muted);

  font-size: 1.04rem;
}

/* TOOLS: one row per tool, problem first, then the tool */

.tool-rows {
  display: grid;

  gap: 40px;
}

.tool-row {
  padding: 44px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.15fr);

  grid-template-areas:
    "problem visual"
    "intro visual"
    "solution visual";

  grid-template-rows:
    auto
    auto
    1fr;

  column-gap: 56px;

  align-items: start;

  border: 1px solid var(--border);
  border-radius: 30px;

  background: var(--surface);
}

.tool-row:nth-child(even) {
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1fr);

  grid-template-areas:
    "visual problem"
    "visual intro"
    "visual solution";
}

.tool-problem {
  grid-area: problem;
}

/* Numbers the rows ("02 / 04") so the start of the next tool is obvious. */
.tool-problem-head {
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
}

.tool-problem-head .eyebrow {
  margin: 0;
}

.tool-index {
  color: #838e97;

  font-size: 0.78rem;
  font-weight: 700;

  font-variant-numeric: tabular-nums;

  letter-spacing: 0.08em;
}

.tool-problem-text {
  margin: 0 0 30px;

  font-size: clamp(
    1.45rem,
    2.3vw,
    2rem
  );

  font-weight: 750;

  line-height: 1.15;

  letter-spacing: -0.035em;
}

/* "The tool" mirrors "The problem", so each row reads as question and answer. */
.tool-intro {
  grid-area: intro;

  padding-top: 26px;

  border-top: 1px solid var(--border);
}

.tool-intro .tool-meta {
  align-items: center;
}

.tool-intro .eyebrow {
  margin: 0;
}

.tool-title {
  display: flex;
  align-items: center;

  gap: 12px;
}

.tool-title h3 {
  margin: 0;

  font-size: 1.5rem;

  letter-spacing: -0.03em;
}

.tool-tagline {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 0.95rem;
}

.tool-solution {
  grid-area: solution;

  padding-top: 10px;
}

.tool-solution p.tool-description {
  margin: 0 0 26px;

  color: #838e97;

  font-size: 0.88rem;
}

.tool-solution .button {
  gap: 8px;
}

.tool-visual {
  grid-area: visual;

  align-self: center;

  margin: 0;
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      #11161a,
      #171e23
    );

  box-shadow:
    0 30px 70px rgba(0,0,0,0.3);
}

.tool-visual img {
  width: 100%;
  height: auto;

  border: 1px solid var(--border);
  border-radius: 12px;
}

.window-dots {
  display: flex;

  gap: 7px;

  padding: 2px 4px 12px;
}

.window-dots span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #3b444c;
}

.tool-meta {
  margin-bottom: 12px;

  display: flex;
  justify-content: space-between;

  gap: 15px;
}

.tool-status {
  padding: 3px 9px;

  border: 1px solid rgba(142, 240, 181, 0.45);
  border-radius: 999px;

  background: rgba(142, 240, 181, 0.08);

  color: var(--accent);

  font-size: 0.62rem;
  font-weight: 800;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}

.tool-category {
  /* Lightened from #78838c to keep >= 4.5:1 on the card surface. */
  color: #838e97;

  font-size: 0.7rem;
}

.tool-link {
  margin-top: auto;

  text-decoration: none;

  font-size: 0.88rem;
  font-weight: 750;
}

.tool-link span {
  color: var(--accent);
}

/* MANIFESTO */

#about {
  background: #0e1215;
}

.manifesto-grid {
  display: grid;

  grid-template-columns:
    0.65fr
    1.35fr;

  gap: 70px;
}

.manifesto-label {
  color: var(--accent);

  font-size: 0.75rem;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.about-photo {
  width: 96px;
  height: 96px;

  margin-bottom: 20px;

  border-radius: 50%;

  border: 1px solid var(--border);

  object-fit: cover;
}

.about-name {
  margin: 14px 0 8px;

  color: var(--text);

  font-size: 1rem;
  font-weight: 750;

  letter-spacing: -0.01em;

  text-transform: none;
}

.about-badge {
  display: inline-block;

  margin: 0;
  padding: 5px 11px;

  border: 1px solid rgba(142, 240, 181, 0.45);
  border-radius: 999px;

  background: rgba(142, 240, 181, 0.08);

  color: var(--accent);

  font-size: 0.66rem;
  font-weight: 800;

  letter-spacing: 0.09em;
}

.manifesto-text h2 {
  font-size: clamp(
    2.5rem,
    5vw,
    5rem
  );
}

.manifesto-text p {
  max-width: 760px;

  margin: 0;

  color: var(--muted);

  font-size: 1.08rem;
}

.about-text p + p {
  margin-top: 18px;
}

.manifesto-text .tool-link {
  display: inline-block;

  margin-top: 20px;
}

.final-cta.hire-cta {
  background: var(--text);
}

.final-cta.follow-cta {
  background: transparent;

  border: 1px solid var(--border);

  color: var(--text);
}

.final-cta.follow-cta p {
  color: var(--muted);
}

.final-cta.follow-cta .button {
  background: var(--accent);

  color: #0b0d0f;
}

/* FINAL CTA */

.final-section {
  padding: 85px 0 100px;
}

.cta-stack {
  display: grid;

  gap: 24px;
}

.final-cta {
  padding: 54px;

  display: grid;

  grid-template-columns:
    1fr
    auto;

  gap: 40px;

  align-items: center;

  border-radius: 30px;

  background: var(--accent);

  color: #0b0d0f;
}

.final-cta h2 {
  margin-bottom: 14px;
}

.final-cta p {
  max-width: 700px;

  margin: 0;

  color: #31513d;
}

.cta-list {
  max-width: 700px;

  margin: 4px 0 22px;
  padding: 0;

  display: grid;

  gap: 12px;

  list-style: none;

  color: #31513d;
}

.cta-list li {
  display: grid;

  grid-template-columns:
    64px
    1fr;

  gap: 12px;

  align-items: baseline;
}

.cta-list strong {
  color: #0b0d0f;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.final-cta .button {
  background: #0b0d0f;

  color: white;
}

/* FOOTER */

footer {
  padding: 34px 0;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: 0.82rem;
}

.footer-content {
  display: flex;

  justify-content: space-between;

  gap: 30px;
}

.footer-content strong {
  color: var(--text);
}

.footer-brand {
  display: grid;

  gap: 4px;
}

.footer-legal-entity {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;

  gap: 8px 22px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.footer-links a {
  color: var(--muted);

  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--text);

  text-decoration: underline;
  text-underline-offset: 3px;
}

/* LEGAL PAGES */

.legal-page {
  padding: 80px 0 95px;
}

.legal-article {
  max-width: 760px;
}

.legal-article h1 {
  font-size: clamp(
    2.6rem,
    6vw,
    4.2rem
  );

  line-height: 1;
}

.legal-updated {
  margin: 0 0 40px;

  color: var(--muted);

  font-size: 0.9rem;
}

.legal-article h2 {
  margin: 44px 0 14px;

  font-size: 1.5rem;

  line-height: 1.2;

  letter-spacing: -0.02em;
}

.legal-article h3 {
  margin: 28px 0 10px;

  font-size: 1.1rem;
}

.legal-article p,
.legal-article li {
  color: #c3cad0;
}

.legal-article ul {
  padding-left: 1.2em;
}

.legal-article li + li {
  margin-top: 6px;
}

.legal-article a {
  color: var(--accent);

  text-underline-offset: 3px;
}

.legal-article code {
  font-size: 0.9em;
}

.legal-article table {
  width: 100%;

  border-collapse: collapse;

  font-size: 0.9rem;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-article th,
.legal-article td {
  padding: 10px 12px;

  border: 1px solid var(--border);

  text-align: left;

  vertical-align: top;
}

/* Shown on every legal page until legal.approved is true in content/site.json. */
.legal-article .legal-draft {
  margin: -16px 0 40px;
  padding: 14px 18px;

  border: 1px solid #e0b44c;
  border-radius: 12px;

  background: rgba(224, 180, 76, 0.12);

  color: #f2d48a;

  font-size: 0.95rem;
}

/* Visible marker for text the site owner still has to provide. */
.owner-input {
  padding: 1px 6px;

  border: 1px dashed #e0b44c;
  border-radius: 6px;

  background: rgba(224, 180, 76, 0.12);

  color: #f2d48a;
}

/* ACCESSIBILITY */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;

  z-index: 200;

  padding: 10px 16px;

  border-radius: 999px;

  background: var(--accent);
  color: #0b0d0f;

  font-weight: 750;

  text-decoration: none;

  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

/* Dark outline on the light/accent CTA panels where the accent would vanish. */
.final-cta:not(.follow-cta) :focus-visible,
.skip-link:focus-visible {
  outline-color: #0b0d0f;
}

main:focus {
  outline: none;
}

.tool-row:focus-within {
  border-color: #3b454d;
}

/* LOADING */

.loading {
  padding: 50px;

  text-align: center;

  color: var(--muted);
}

/* MOBILE */

@media (max-width: 900px) {

  .tool-row,
  .tool-row:nth-child(even) {
    padding: 32px;

    grid-template-columns: minmax(0, 1fr);

    grid-template-areas:
      "problem"
      "intro"
      "visual"
      "solution";

    grid-template-rows: auto;
  }

  .tool-visual {
    margin: 24px 0 22px;
  }

  .tool-solution {
    padding-top: 0;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

}

@media (max-width: 650px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--max-width)
      );
  }

  .nav {
    height: 66px;
  }

  .nav {
    gap: 8px;
  }

  .nav-cta {
    padding: 9px 13px;

    font-size: 0.85rem;
  }

  /* Section links become a drop-down panel, opened by #menu (see header.html). */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 4px 14px 12px;

    border-bottom: 1px solid var(--border);

    background: var(--bg);
  }

  /* Opening the panel must not scroll: it already sits right under the header. */
  #menu:target {
    display: flex;

    scroll-margin-top: 66px;
  }

  .nav-links a,
  .nav-links a.nav-menu-only {
    display: block;

    padding: 14px 4px;

    color: var(--text);

    font-size: 1.05rem;
  }

  .nav-links a + a {
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    position: relative;

    width: 40px;
    height: 40px;

    flex: none;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    width: 16px;
    height: 2px;

    display: block;

    border-radius: 2px;

    background: var(--text);
  }

  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";

    position: relative;
  }

  .nav-open span::before {
    top: -5px;
  }

  .nav-open span::after {
    top: 3px;
  }

  .nav-close,
  header:has(#menu:target) .nav-open {
    display: none;
  }

  header:has(#menu:target) .nav-close {
    display: flex;
  }

  .nav-close span {
    background: transparent;
  }

  .nav-close span::before {
    transform: rotate(45deg);
  }

  .nav-close span::after {
    top: -2px;

    transform: rotate(-45deg);
  }

  .hero {
    padding: 64px 0 56px;
  }

  h1 {
    font-size: 3.25rem;
  }

  .hero-description {
    margin-bottom: 28px;

    font-size: 1rem;
  }

  .buttons .button {
    flex: 1 1 auto;
  }

  section.content-section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  /* Wide gaps and a lighter edge keep consecutive tools from running together. */
  .tool-rows {
    gap: 48px;
  }

  .tool-row,
  .tool-row:nth-child(even) {
    padding: 24px 18px;

    border-color: #333c44;
    border-radius: 24px;
  }

  .tool-problem-text {
    margin-bottom: 22px;

    font-size: 1.3rem;
  }

  .tool-intro {
    padding-top: 22px;
  }

  /* Drop the window frame so the screenshot gets the full card width. */
  .tool-visual {
    margin: 18px 0;
    padding: 0;

    border: 0;

    background: none;

    box-shadow: none;
  }

  .window-dots {
    display: none;
  }

  .tool-solution .button,
  .final-cta .button {
    width: 100%;
  }

  .manifesto-grid {
    gap: 20px;
  }

  .manifesto-text h2 {
    font-size: 2.4rem;
  }

  .manifesto-text .tool-link {
    padding: 10px 0;
  }

  .final-section {
    padding: 56px 0 64px;
  }

  .cta-stack {
    gap: 16px;
  }

  .cta-list li {
    grid-template-columns: 1fr;

    gap: 2px;
  }

  .final-cta {
    padding: 30px 22px;

    grid-template-columns: 1fr;

    gap: 24px;

    border-radius: 24px;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;

    gap: 16px;
  }

  /* Bigger tap targets for the legal links. */
  .footer-links {
    gap: 0 22px;
  }

  .footer-links a {
    display: inline-block;

    padding: 12px 0;
  }

  .legal-page {
    padding: 56px 0 70px;
  }

}

/* Very narrow phones: keep the logo mark, keep the wordmark for screen readers only. */
@media (max-width: 359px) {

  .logo-text {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
  }

}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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

  .button-primary:hover {
    transform: none;
  }

}
