:root {
  color-scheme: light;
  font-family: "Aptos", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #fbfefd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 74% 160px, rgba(20, 184, 166, 0.14), transparent 310px),
    radial-gradient(circle at 16% 500px, rgba(15, 118, 110, 0.07), transparent 300px),
    linear-gradient(180deg, #f8fcfb 0, #ffffff 560px),
    #ffffff;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #13201f;
  font-weight: 720;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.12);
  object-fit: cover;
}

nav {
  gap: 6px;
  color: #65716f;
  font-size: 0.94rem;
}

nav a {
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
}

nav a:hover {
  background: #edf8f5;
  color: #0f766e;
}

nav a:focus-visible,
input:focus-visible,
.copy-button:focus-visible,
.source-link:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 58px;
  align-items: center;
  padding: 78px 0 104px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 0 11px;
  border: 1px solid #d5ebe6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 740;
  text-transform: uppercase;
}

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

h1 {
  max-width: 690px;
  font-size: clamp(2.8rem, 5.7vw, 4.9rem);
  font-weight: 780;
  line-height: 1;
}

h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 760;
  line-height: 1.08;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  color: #65716f;
  font-size: 1rem;
  line-height: 1.7;
}

.lead {
  max-width: 650px;
  margin-top: 20px;
  font-size: 1.12rem;
}

.redirect-form {
  display: grid;
  gap: 12px;
  max-width: 650px;
  margin-top: 32px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 76px rgba(17, 24, 39, 0.1);
  backdrop-filter: blur(18px);
}

label {
  color: #13201f;
  font-size: 0.9rem;
  font-weight: 760;
}

.input-row,
.result-row {
  display: grid;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5e6e2;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.result-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.copy-button,
.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #0f766e;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  padding: 0 18px;
  text-decoration: none;
}

.copy-button:hover,
.source-link:hover {
  background: #0c5f59;
}

.hero-asset,
.step,
.use-case-list article {
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-asset {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-asset::before {
  position: absolute;
  inset: 10% 4% 8% 9%;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 246, 0.72));
  box-shadow: 0 36px 96px rgba(17, 24, 39, 0.12);
  content: "";
}

.hero-asset picture {
  display: block;
}

.hero-asset img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 747;
  object-fit: cover;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
}

code {
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #eef7f5;
  color: #0f3f3a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.12em 0.35em;
}

.result-row code,
.step code {
  display: block;
  border: 1px solid #d7ebe7;
  padding: 13px;
}

.result-row code {
  min-height: 44px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid #e5eeec;
}

@supports (content-visibility: auto) {
  .section,
  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
  }
}

.section-heading {
  max-width: 780px;
}

.section-heading p {
  margin-top: 16px;
}

.steps,
.use-case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.step,
.use-case-list article {
  padding: 20px;
}

.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e1f5f0;
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 800;
}

.step p,
.use-case-list p {
  margin: 10px 0 16px;
}

.examples {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.split {
  display: block;
}

.open-source {
  padding-bottom: 94px;
}

.source-link {
  margin-top: 24px;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid #e5eeec;
}

.site-footer p {
  font-size: 0.95rem;
}

.redirect-status .hero {
  min-height: 64vh;
}

@media (max-width: 900px) {
  .site-header,
  nav {
    align-items: flex-start;
  }

  .site-header,
  .hero,
  .examples,
  .split {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  nav {
    flex-wrap: wrap;
    margin-left: -10px;
  }

  .hero {
    gap: 28px;
    padding: 46px 0 66px;
  }

  .steps,
  .use-case-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 2.45rem;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

  .copy-button,
  .source-link {
    width: 100%;
  }
}
