:root {
  color-scheme: light;
  --brand-red: #e6382e;
  --brand-blush: #fff1ed;
  --brand-ink: #15111f;
  --paper: #fffaf7;
  --white: #ffffff;
  --muted: #696273;
  --line: rgba(21, 17, 31, 0.12);
  --shadow: 0 34px 90px rgba(67, 41, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brand-ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(21, 17, 31, 0.08);
  background: rgba(255, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 11px;
  font-size: 19px;
  font-weight: 950;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

nav {
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(21, 17, 31, 0.06);
}

nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

nav a:hover {
  color: var(--brand-ink);
  background: var(--brand-blush);
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.language-toggle,
.header-link,
.button {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 950;
}

.language-toggle {
  padding: 0 17px;
  border: 1px solid var(--line);
  color: var(--brand-ink);
  background: var(--white);
  cursor: pointer;
}

.header-link {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--white);
  background: var(--brand-ink);
}

main {
  overflow: hidden;
}

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fffaf7 0%, #fff1ed 100%);
}

.hero-band::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-inner,
.showcase-band,
.split-band,
.download-band,
.feature-band,
.license-band,
.github-band,
footer {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  justify-items: center;
  min-height: 58vh;
  padding: 92px 0 82px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid rgba(230, 56, 46, 0.2);
  border-radius: 999px;
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  font-size: clamp(72px, 13vw, 160px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 4.1vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 23px;
  line-height: 1.18;
}

.lede {
  max-width: 780px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 720;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  text-align: center;
  line-height: 1.2;
}

.button.light,
.button.dark {
  color: var(--white);
  background: var(--brand-red);
  box-shadow: 0 14px 30px rgba(230, 56, 46, 0.26);
}

.button.ghost,
.button.outline {
  color: var(--brand-ink);
  border-color: var(--line);
  background: var(--white);
}

.small-note {
  margin-top: 17px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.showcase-band {
  padding: 0 0 98px;
}

.product-shot {
  max-width: 1120px;
  margin: -34px auto 0;
  padding: 14px;
  border: 1px solid rgba(21, 17, 31, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.product-shot img,
.demo-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.split-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0;
}

.split-band.cream {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));
  background: var(--white);
}

.split-copy {
  max-width: 560px;
}

.split-copy p:not(.eyebrow),
.download-band p,
.feature-band p,
.license-copy p,
footer p {
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.65;
}

.split-copy p:not(.eyebrow) {
  margin-top: 22px;
}

.demo-figure {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--brand-blush);
  box-shadow: 0 24px 60px rgba(67, 41, 34, 0.11);
}

.download-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 82px 0;
}

.download-band article,
.features article,
.license-band,
.github-band {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.download-band article {
  padding: 34px;
  box-shadow: 0 18px 48px rgba(21, 17, 31, 0.06);
}

.card-label,
.features span {
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-band h2 {
  margin-top: 12px;
  max-width: 11em;
}

.download-band p {
  min-height: 92px;
  margin-top: 18px;
}

.feature-band {
  padding: 104px 0;
  background: var(--brand-blush);
}

.feature-inner {
  width: min(1180px, calc(100vw - 72px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  justify-items: center;
  margin-bottom: 54px;
  text-align: center;
}

.section-heading h2 {
  max-width: 880px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.features article {
  min-height: 270px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(21, 17, 31, 0.05);
}

.features h3 {
  margin-top: 58px;
}

.features p {
  margin-top: 16px;
}

.license-band,
.github-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  padding: 42px;
  margin-top: 28px;
  margin-bottom: 22px;
}

.github-band h2 {
  max-width: 900px;
}

.license-copy {
  display: grid;
  gap: 18px;
}

.license-copy p {
  padding-left: 18px;
  border-left: 4px solid var(--brand-red);
}

.github-band {
  align-items: center;
  margin-top: 22px;
  background: var(--brand-ink);
  color: var(--white);
}

.github-band .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.github-band .button.dark {
  color: var(--brand-red);
  background: var(--white);
  box-shadow: none;
}

.github-band .button.outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

footer {
  padding: 34px 0 58px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 16px;
  }

  nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-toggle,
  .header-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-inner,
  .showcase-band,
  .download-band,
  .feature-band,
  .license-band,
  .github-band,
  footer {
    width: min(100vw - 32px, 1240px);
  }

  .hero-inner {
    min-height: auto;
    padding: 62px 0 64px;
  }

  h1 {
    font-size: clamp(60px, 18vw, 96px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.12;
  }

  .product-shot {
    margin-top: 18px;
    padding: 8px;
    border-radius: 14px;
  }

  .product-shot img,
  .demo-figure img {
    border-radius: 9px;
  }

  .split-band,
  .download-band,
  .section-heading,
  .license-band,
  .github-band {
    grid-template-columns: 1fr;
  }

  .split-band.cream {
    padding: 58px 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature-inner {
    width: min(100vw - 32px, 680px);
  }

  .feature-band {
    padding: 68px 0;
  }

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

  .section-heading h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .features article {
    min-height: auto;
    padding: 24px;
  }

  .features h3 {
    margin-top: 34px;
  }

  .download-band p {
    min-height: auto;
  }

  .download-band h2 {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 48px);
  }

  .github-band .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .download-band h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .split-copy,
  .license-band,
  .github-band,
  .download-band article,
  .features article {
    text-align: left;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    overflow-wrap: anywhere;
  }
}
