@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/roboto-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/roboto-medium.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --background: #060706;
  --surface: #0c0d0c;
  --text: #f2f2f0;
  --muted: #a3a39f;
  --border: #292a28;
  --accent: #e8794a;
  --accent-hover: #f08a60;
  --accent-text: #101010;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: #4a4b48 var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.shell {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--text);
  color: var(--accent-text);
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand img {
  display: block;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.hero {
  padding-top: 84px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  margin-top: 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-action {
  padding-bottom: 4px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button svg {
  flex: 0 0 auto;
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  animation: product-reveal 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.product-shot figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 100px;
  padding-top: 120px;
  padding-bottom: 120px;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.workflow-intro p {
  max-width: 410px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
}

.steps li {
  position: relative;
  padding: 28px 0 28px 52px;
  border-top: 1px solid var(--border);
  counter-increment: workflow;
}

.steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.steps li::before {
  content: counter(workflow, decimal-leading-zero);
  position: absolute;
  top: 30px;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 500;
}

.steps p {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.closing {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 88px;
  border-top: 1px solid var(--border);
}

.closing h2 {
  max-width: 720px;
  margin-bottom: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner .text-link {
  font-size: 12px;
}

@keyframes product-reveal {
  from {
    clip-path: inset(0 0 10% 0 round 14px);
    opacity: 0.94;
    transform: translateY(18px);
  }
  to {
    clip-path: inset(0 0 0 0 round 14px);
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-copy {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .hero-action {
    padding-bottom: 0;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .workflow-intro p {
    max-width: 590px;
  }

  .closing {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 72px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-copy {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(43px, 13vw, 62px);
    line-height: 1.01;
  }

  .lede {
    margin-top: 22px;
    font-size: 17px;
  }

  .button {
    white-space: normal;
  }

  .product-shot figcaption {
    padding: 11px 13px;
    font-size: 11px;
  }

  .workflow {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .steps li {
    padding-left: 42px;
  }

  .closing {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
}

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

  .product-shot {
    animation: none;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
