:root {
  --bg: #070a0b;
  --surface: #0c1213;
  --panel: #0a0f10;
  --line: #172022;
  --line-strong: #243033;
  --line-hover: #3a4a4d;
  --text: #eef4f4;
  --text-soft: #c4d2d3;
  --muted: #93a3a5;
  --faint: #6b7b7d;
  --ghost: #3e4b4d;
  --accent: #00cccc;
  --accent-hover: #33d6d6;
  --on-accent: #041012;
  --glow: rgba(0, 204, 204, 0.24);
  --gutter: clamp(20px, 4.44vw, 64px);
  --section-space: clamp(64px, 6.67vw, 96px);
  --header-height: 72px;
  --sans: "Geist", "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;

  @media (max-width: 899px) {
    --header-height: 64px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote,
pre {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

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

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);

  img {
    display: block;
    width: 28px;
    height: 25px;
  }

  .wordmark {
    font-family: var(--display);
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.3px;
  }

  .slogan {
    font-family: var(--display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1;
    color: var(--faint);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(7, 10, 11, 0.8);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;

  &:hover {
    border-color: var(--line-hover);
    color: #fff;
  }

  &.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;

    &:hover {
      border-color: var(--accent-hover);
      background: var(--accent-hover);
    }
  }

  &.large {
    padding: 15px 26px;
    border-radius: 10px;
    font-size: 16px;
  }

  &.mono {
    font-family: var(--mono);
  }

  svg {
    width: 16px;
    height: 16px;
  }
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;

  a {
    padding: 10px 12px;
    color: var(--faint);

    &:hover,
    &[aria-current] {
      color: var(--text);
    }

    & + a {
      border-left: 1px solid var(--line-strong);
    }
  }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);

  @media (max-width: 899px) {
    font-size: 12px;
  }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;

  h2 {
    font-weight: 600;
    font-size: clamp(34px, 3.61vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.038em;

    .dim {
      color: var(--faint);
    }
  }

  p {
    font-size: 17px;
    color: var(--muted);
  }

  &.split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;

    & > div {
      display: flex;
      flex-direction: column;
      gap: 16px;
      max-width: 720px;
    }

    p {
      max-width: 420px;
    }

    @media (max-width: 899px) {
      flex-direction: column;
      align-items: flex-start;
      gap: 16px;
    }
  }

  @media (max-width: 899px) {
    gap: 12px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);

  & > .wrap {
    display: flex;
    align-items: center;
    gap: 48px;
    height: var(--header-height);
  }

  nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    ul {
      display: flex;
      gap: 32px;
      font-size: 15px;
    }

    ul a {
      color: var(--muted);

      &:hover {
        color: var(--text);
      }
    }
  }

  .actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .menu-button {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;

    svg {
      width: 20px;
      height: 20px;
    }

    .close {
      display: none;
    }

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

  @media (max-width: 899px) {
    & > .wrap {
      justify-content: space-between;
    }

    .brand {
      gap: 9px;

      img {
        width: 24px;
        height: 21px;
      }

      .wordmark {
        font-size: 24px;
      }
    }

    .menu-button {
      display: grid;
    }

    nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 24px;
      padding: 8px var(--gutter) 24px;
      border-bottom: 1px solid var(--line);
      background: var(--bg);

      ul {
        flex-direction: column;
        gap: 0;
        font-size: 17px;
      }

      ul a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
      }
    }

    .actions {
      justify-content: space-between;
    }

    &.is-open {
      nav {
        display: flex;
      }

      .menu-button {
        .open {
          display: none;
        }

        .close {
          display: inline;
        }
      }
    }
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(880px, 61.11vw);
  border-bottom: 1px solid var(--line);

  .hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding-top: clamp(64px, 8.9vw, 128px);
    padding-bottom: 64px;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(12, 18, 19, 0.8);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-soft);

    &::before {
      content: "";
      width: 8px;
      height: 8px;
      background: var(--accent);
      transform: skewX(-30deg);
    }
  }

  h1 {
    max-width: min(700px, 50vw);
    font-weight: 600;
    font-size: clamp(44px, 5.56vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.0425em;

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

  .lead {
    max-width: min(560px, 44vw);
    font-size: clamp(17px, 1.39vw, 20px);
    color: var(--muted);
  }

  .hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
  }

  .hero-scene {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    width: min(1440px, 100%);
    aspect-ratio: 1440 / 880;

    &::before {
      content: "";
      position: absolute;
      left: 44.44%;
      top: 2.27%;
      width: 59.72%;
      height: 79.55%;
      background: radial-gradient(closest-side, var(--glow), transparent);
    }

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg, rgba(7, 10, 11, 0.92) 0%, rgba(7, 10, 11, 0.6) 38%, rgba(7, 10, 11, 0) 58%);
    }

    picture,
    img {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
    }

    /* The floor lines stop at the artwork's 1440px edge; the right fade stays short to spare the cube's tip. */
    @media (min-width: 1441px) {
      mask-image: linear-gradient(90deg, transparent, #000 240px, #000 calc(100% - 100px), transparent);
    }
  }

  @media (max-width: 899px) {
    min-height: 0;

    /* The mobile design's faint triangle lattice, faded out from the headline. */
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='110.851'%3E%3Cpath d='M0 0H64M0 55.4256H64M0 0L64 110.851M64 0L0 110.851' stroke='rgba(255,255,255,0.06)' fill='none'/%3E%3C/svg%3E") 0 0 / 64px 110.851px;
      mask-image: radial-gradient(ellipse 90% 50% at 30% 10%, #000 0%, transparent 75%);
    }

    .hero-copy {
      gap: 22px;
      padding-top: 56px;
      padding-bottom: 0;
    }

    .pill {
      gap: 8px;
      padding: 6px 12px;
      font-size: 12px;

      &::before {
        width: 7px;
        height: 7px;
      }
    }

    h1 {
      max-width: none;
      font-size: clamp(40px, 11.3vw, 56px);
      line-height: 1.05;
    }

    .lead {
      max-width: 560px;
      font-size: 17px;
    }

    .hero-actions {
      flex-direction: column;
      align-self: stretch;
      gap: 10px;
      margin-top: 0;
    }

    .hero-scene {
      position: relative;
      left: auto;
      translate: none;
      max-width: 560px;
      margin: 30px auto 0;
      aspect-ratio: 390 / 420;

      &::before {
        left: -2.56%;
        top: 0;
        width: 105.13%;
        height: 90.48%;
      }

      &::after {
        content: none;
      }

      @media (min-width: 561px) {
        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
      }
    }
  }
}

.client-band {
  padding: 64px 0 80px;

  .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .label {
    font-size: 14px;
    color: var(--faint);
  }

  ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 72px;
    font-weight: 600;
    font-size: 20px;
    color: var(--ghost);
  }

  @media (max-width: 1099px) {
    ul {
      gap: 16px 48px;
    }
  }

  @media (max-width: 899px) {
    padding: 48px 0;

    .wrap {
      gap: 20px;
    }

    .label {
      font-size: 13px;
    }

    ul {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
      width: 100%;
      text-align: center;
      font-size: 15px;
      line-height: 1.3;
    }
  }
}

.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);

  & > .wrap {
    display: flex;
    flex-direction: column;
    gap: 56px;

    @media (max-width: 899px) {
      gap: 32px;
    }
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);

  li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 36px;
    background: var(--bg);
  }

  h3 {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
  }

  p {
    color: var(--muted);
  }

  @media (max-width: 1099px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (max-width: 599px) {
    grid-template-columns: minmax(0, 1fr);

    li {
      padding: 24px;
    }

    h3 {
      font-size: 18px;
    }

    p {
      font-size: 15px;
    }
  }
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);

  svg {
    width: 20px;
    height: 20px;
  }

  &.brand-icon::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--accent);
    mask: var(--mask) center / contain no-repeat;
  }

  &.javascript {
    --mask: url("../img/icon/dark/javascript.svg");
  }

  &.react {
    --mask: url("../img/icon/dark/react.svg");
  }

  &.php {
    --mask: url("../img/icon/dark/php.svg");
  }

  &.ruby {
    --mask: url("../img/icon/dark/ruby.svg");
  }

  &.cloud {
    --mask: url("../img/icon/dark/cloud.svg");
  }

  &.template {
    --mask: url("../img/icon/dark/template.svg");
  }
}

.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);

  .window-bar {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);

    span {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--line-strong);
    }
  }

  & > img {
    display: block;
    width: 100%;
    height: auto;
  }
}

.terminal {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;

  pre {
    overflow-x: auto;
    padding: 28px 32px 32px;
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-soft);
  }

  .user {
    color: var(--muted);
  }

  .arrow,
  .assistant,
  .response {
    color: var(--accent);
  }

  @media (max-width: 599px) {
    pre {
      padding: 20px;
      font-size: 12px;
    }
  }
}

.about > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 5.56vw, 80px);

  @media (max-width: 899px) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.steps {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-reset: step;

  li {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 28px 32px;
    counter-increment: step;

    &::before {
      content: counter(step, decimal-leading-zero);
      font-family: var(--mono);
      font-size: 14px;
      color: var(--accent);
    }

    & + li {
      border-top: 1px solid var(--line);
    }
  }

  div {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
  }

  p {
    color: var(--muted);
  }

  @media (max-width: 899px) {
    li {
      gap: 16px;
      padding: 20px;
    }

    h3 {
      font-size: 17px;
    }

    p {
      font-size: 15px;
    }
  }
}

.stats {
  padding-bottom: var(--section-space);
}

.figures {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  border-block: 1px solid var(--line);

  li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 40px 0;

    & + li {
      padding-left: 40px;
      border-left: 1px solid var(--line);
    }
  }

  strong {
    font-size: clamp(36px, 3.89vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.036em;
  }

  span {
    color: var(--muted);
  }

  @media (max-width: 899px) {
    grid-auto-flow: row;
    border-bottom: 0;

    li,
    li + li {
      flex-direction: row;
      justify-content: space-between;
      align-items: baseline;
      gap: 16px;
      padding: 24px 0;
      border-left: 0;
      border-bottom: 1px solid var(--line);
    }

    span {
      font-size: 14px;
      text-align: right;
    }
  }
}

.quote {
  padding: 40px 0 112px;

  .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }

  figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  blockquote {
    max-width: 920px;
    font-size: clamp(24px, 2.36vw, 34px);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.024em;
  }

  figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
  }

  .avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--line);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--accent);
  }

  .wrap > p {
    max-width: 560px;
    font-size: 17px;
    color: var(--muted);
  }

  @media (max-width: 899px) {
    padding: 24px 0 64px;

    .wrap,
    figure {
      align-items: flex-start;
      gap: 24px;
      text-align: left;
    }

    figcaption {
      gap: 12px;
    }

    .avatar {
      width: 40px;
      height: 40px;
    }

    .wrap > p {
      font-size: 15px;
    }
  }
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);

  li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px 24px;
    background: var(--bg);
  }

  strong {
    font-weight: 600;
  }

  span {
    font-size: 14px;
    color: var(--muted);
  }

  @media (max-width: 1099px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  @media (max-width: 719px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    li {
      padding: 16px;
    }

    strong {
      font-size: 15px;
    }

    span {
      font-size: 13px;
    }
  }
}

.contact {
  padding-bottom: 112px;

  .cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 480px;
    padding: 48px 32px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: var(--panel);
    text-align: center;

    &::after {
      content: "";
      position: absolute;
      top: -160px;
      left: 50%;
      translate: -50% 0;
      width: min(700px, 120%);
      height: 380px;
      background: radial-gradient(closest-side, var(--glow), transparent);
    }

    & > :not(.cta-scene) {
      position: relative;
      z-index: 1;
    }
  }

  .cta-scene {
    position: absolute;
    inset: 0;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center bottom;
    }
  }

  h2 {
    font-weight: 600;
    font-size: clamp(36px, 4.17vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.042em;
  }

  p {
    max-width: 560px;
    font-size: 19px;
    color: var(--muted);
  }

  .cta-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
  }

  @media (max-width: 719px) {
    padding-bottom: 64px;

    .cta {
      align-items: stretch;
      justify-content: flex-start;
      gap: 18px;
      min-height: 420px;
      padding: 44px 24px;
      border-radius: 18px;
      text-align: left;
    }

    h2 {
      letter-spacing: -0.039em;
    }

    p {
      font-size: 16px;
    }

    .cta-actions {
      flex-direction: column;
      margin-top: 0;

      .mono {
        display: none;
      }
    }
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;

  .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "brand links"
      "legal links";
    gap: 14px 48px;
  }

  .brand {
    grid-area: brand;

    img {
      width: 24px;
      height: 21px;
    }

    .wordmark {
      font-size: 24px;
    }
  }

  .legal {
    grid-area: legal;
    font-size: 14px;
    color: var(--faint);
  }

  nav {
    grid-area: links;
    display: flex;
    gap: 96px;
    font-size: 14px;

    div {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    span {
      font-weight: 500;
    }

    a {
      color: var(--muted);

      &:hover {
        color: var(--text);
      }
    }
  }

  @media (max-width: 719px) {
    padding: 40px 0;

    .wrap {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: none;
      grid-template-areas:
        "brand"
        "links"
        "legal";
      gap: 20px;
    }

    .brand {
      gap: 9px;

      img {
        width: 20px;
        height: 18px;
      }

      .wordmark {
        font-size: 22px;
      }

      .slogan {
        font-size: 20px;
      }
    }

    .legal {
      font-size: 13px;
    }

    nav {
      .company,
      span {
        display: none;
      }

      .social {
        flex-direction: row;
        gap: 24px;
      }
    }
  }
}
