@font-face {
  font-family: "Mozilla Headline";
  src: url("fonts/MozillaHeadline-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mozilla Text";
  src: url("fonts/MozillaText-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #161616;
  --text: #161616;
  --muted: #6b6b76;
  --line: #e6e6e6;
  --bg: #ffffff;
  --hero: #f7f7f7;
  --grey: #e6e6e6;
  --dark: #161616;
  --silver: #c0c0c0;

  --purple: #5855ff;
  --tint-1: #e9e7ff;
  --tint-2: #f4f3ff;
  --tint-3: #eeecff;
  --tint-4: #f8f7ff;

  --head: "Mozilla Headline", Arial, sans-serif;
  --body: "Mozilla Text", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: 2.5rem;
  --maxw: 85rem;
  --nav: 4.75rem;
}

:root {
  --font-from-1: 12;
  --font-to-1: 16;
  --vw-from-1: calc(767 / 100);
  --vw-to-1: calc(991 / 100);
  --coefficient-1: calc((var(--font-to-1) - var(--font-from-1)) / (var(--vw-to-1) - var(--vw-from-1)));
  --base-1: calc((var(--font-from-1) - var(--vw-from-1) * var(--coefficient-1)) / 16);

  --font-from-2: 11;
  --font-to-2: 16;
  --vw-from-2: calc(991 / 100);
  --vw-to-2: calc(1440 / 100);
  --coefficient-2: calc((var(--font-to-2) - var(--font-from-2)) / (var(--vw-to-2) - var(--vw-from-2)));
  --base-2: calc((var(--font-from-2) - var(--vw-from-2) * var(--coefficient-2)) / 16);
}
html { font-size: 1rem; }
@media screen and (max-width: 1440px) {
  html { font-size: calc(var(--base-2) * 1rem + var(--coefficient-2) * 1vw); }
}
@media screen and (max-width: 991px) {
  html { font-size: calc(var(--base-1) * 1rem + var(--coefficient-1) * 1vw); }
}
@media screen and (max-width: 767px) {
  html { font-size: 1rem; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Monochrome icons drawn from assets/icons via mask, so they keep inheriting
   `color` (and its hover transitions) the way inline SVG did. */
.ico {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.ico-github { --ico: url("assets/icons/github.svg"); }
.ico-linkedin { --ico: url("assets/icons/linkedin.svg"); }
.ico-x { --ico: url("assets/icons/x.svg"); }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: 4.375rem; }
h2 { font-size: 3.4375rem; }
h3 { font-size: 2.625rem; }
h4 { font-size: 1.75rem; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.frame { position: relative; overflow-x: hidden; }
.rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.rules i { border-left: 1px solid var(--line); }
.rules i:last-child { border-right: 1px solid var(--line); }

.hero, .band, .fcards, .cta, .foot { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 247, 0.86);
  backdrop-filter: blur(25px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.brand img { width: 1.75rem; height: 1.75rem; }
.nav-links { display: flex; align-items: center; gap: 3.5rem; }
.nav-links a {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--purple); }

.hero {
  background: var(--hero);
  min-height: calc(100svh - var(--nav));
  display: flex;
  align-items: center;
  padding: 9.5rem 0 10rem;
}
.hero > .wrap { width: 100%; }

.hero-rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-rules i { border-left: 1px solid var(--line); }
.hero-rules i:last-child { border-right: 1px solid var(--line); }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-head { grid-column: 1 / 3; padding-right: 1rem; }
.hero-head h1 { letter-spacing: -0.02em; }
.hero-side {
  grid-column: 3 / 5;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero-mark { width: 4rem; height: 4rem; }
.lead {
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--text);
  padding-right: 3.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.625rem;
  flex-wrap: wrap;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.ghlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}
.ghlink .ico { width: 1rem; height: 1rem; }
.ghlink:hover { color: var(--purple); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.375;
  border: 1px solid transparent;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn .arw { font-size: 0.9375rem; line-height: 1; }
.btn-fill { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-fill:hover { background: var(--ink); border-color: var(--ink); }
.btn-out { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-out:hover { background: var(--ink); color: #fff; }

.band { padding: 8rem 0 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.why-h { grid-column: 1 / 3; padding-right: 1rem; }
.why-p {
  grid-column: 3 / 5;
  color: var(--text);
}
.why-lede {
  grid-column: 1 / 3;
  margin-top: 4rem;
  font-family: var(--head);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  padding-right: 1rem;
}

.stack {
  list-style: none;
  margin-top: 4.5rem;
  display: flex;
  align-items: flex-end;
}
.tile {
  flex: 1 1 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fafafa;
  border: 1px solid var(--ink);
  margin-left: -1px;
  transition: transform 0.3s ease;
}
.tile img { width: 46%; height: 46%; }
.tile:hover { transform: translateY(-0.5rem); }
.tile.is-more {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-family: var(--head);
  font-size: 1.375rem;
  line-height: 1.25;
  text-align: center;
}

.stack > :nth-child(1) { margin-bottom: 2.75rem; }
.stack > :nth-child(3) { margin-bottom: 2.75rem; }
.stack > :nth-child(5) { margin-bottom: 2.75rem; }
.stack > :nth-child(6) { margin-bottom: 6.5rem; }
.stack > :nth-child(7) { margin-bottom: 12.5rem; }
.src-note {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--muted);
}

.fcards { padding: 8rem 0 20rem; }
.fcards-inner { display: flex; flex-direction: column; }
.fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  padding: 3rem 2.5rem 2.5rem;
  background: var(--tint-1);
}
.fcard:nth-child(even) { margin-left: auto; }

.fcard:nth-child(4n + 2) { background: var(--tint-2); }
.fcard:nth-child(4n + 3) { background: var(--tint-3); }
.fcard:nth-child(4n + 4) { background: var(--tint-4); }
.fcard-title { max-width: 74%; min-height: 9.5rem; text-wrap: balance; }
.fcard-desc { width: 50%; margin-left: auto; }
.fcard p { color: var(--text); }
.fcard-ill {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 50%;
  aspect-ratio: 1;
  margin-top: -25%;
  object-fit: contain;
}

.fcard::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 0;
  width: 50%;
  aspect-ratio: 1;
  background: url("assets/pixel-dissolve.svg") no-repeat left top / 100% 100%;
}

.cta {
  background: var(--grey);
  padding: 5rem 0;
}

.cta-rules {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cta-rules i { border-left: 1px solid #fff; }
.cta-rules i:last-child { border-right: 1px solid #fff; }

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  row-gap: 1.125rem;
}
.cta-h {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
  padding-right: 5.75rem;
}
.cta-p {
  grid-column: 3 / 5;
  grid-row: 1;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cta-b1 { grid-column: 3; grid-row: 2; }
.cta-b2 { grid-column: 4; grid-row: 3; }
.cta .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  letter-spacing: 0.02em;
}

.foot {
  background: var(--dark);
  color: #fff;
  padding: 3.5rem 0 2.75rem;
  overflow: clip;
}
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.875rem; }
.fcol { display: flex; flex-direction: column; gap: 1rem; }
.fcol h4 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}
.fcol a {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--silver);
  transition: color 0.3s ease;
}
.fcol a:hover { color: #fff; }
.fsocial { display: flex; }
.fsocial a {
  width: 2.8125rem;
  height: 2.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.6px solid #fafafa;
  margin-left: -0.6px;
  color: var(--silver);
  transition: background 0.3s ease, color 0.3s ease;
}
.fsocial a:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.fsocial .ico { width: 1.1875rem; height: 1.1875rem; }
.foot-legal {
  margin-top: 4rem;
  font-size: 0.625rem;
  line-height: 2;
  color: var(--silver);
}

.foot-legal p { max-width: 90ch; }
.foot-mark {
  margin-top: 2.125rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: min(16vw, 13.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-align: right;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.26);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

[data-split] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
}
[data-split].in .w {
  animation: word 0.55s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
  animation-delay: calc(var(--wi) * 45ms);
}
@keyframes word { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-split] .w { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 991px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.85rem; }
  h3 { font-size: 2.25rem; }
  h4 { font-size: 1.625rem; }
  .lead, .cta-p { font-size: 1.25rem; }
  .why-lede { font-size: 1.375rem; }

  .hero { padding: 5rem 0 6rem; }
  .hero-head, .hero-side, .why-h, .why-p, .why-lede,
  .cta-h { grid-column: 1 / 5; padding: 0; }
  .hero-side { margin-top: 2.75rem; }
  .why-p { margin-top: 1.375rem; }
  .rules i:nth-child(n + 3),
  .cta-rules i:nth-child(n + 3),
  .hero-rules i:nth-child(n + 3) { display: none; }
  .rules, .cta-rules, .hero-rules { grid-template-columns: repeat(2, 1fr); }
  .fcard::after { display: none; }
  .fcards { padding: 4.75rem 0; }
  .fcard, .fcard:nth-child(even) { width: 100%; margin-left: 0; }
  .fcard-title { min-height: 0; max-width: 100%; padding-bottom: 2rem; }
  .fcard-desc { width: 100%; margin-left: 0; }

  .fcard-ill {
    position: relative;
    width: 40%;
    margin: 0 0 1.5rem auto;
  }
  .tile.is-more { font-size: 1.125rem; }
}

@media (max-width: 767px) {
  :root { --pad: 1.25rem; }
  body { font-size: 1rem; }
  h1 { font-size: 2.8125rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.875rem; }
  h4 { font-size: 1.5rem; }
  .lead, .cta-p { font-size: 1.125rem; }
  .why-lede { font-size: 1.25rem; }

  .hide-sm { display: none; }
  .lead { padding-right: 0; }
  .band { padding-top: 4.75rem; }
  .fcard { padding: 2.5rem 1.5rem; }
  .fcard-ill { width: 62%; }

  .stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .stack > :nth-child(n) { margin-bottom: 0; }
  .tile { margin: 0 -1px -1px 0; }
  .tile.is-more { display: none; }
  .cta-h, .cta-p, .cta-b1, .cta-b2 { grid-column: 1 / 5; }
  .cta-h { grid-row: 1; padding-right: 0; }
  .cta-p { grid-row: 2; padding-left: 0; }
  .cta-b1 { grid-row: 3; }
  .cta-b2 { grid-row: 4; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 2.125rem 1.25rem; }
  .rules, .cta-rules, .hero-rules { display: none; }
}
