:root {
  color-scheme: light;
  --background: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #ecece7;
  --text: #171714;
  --text-muted: #66665f;
  --line: #dcdcd5;
  --accent: #315cff;
  --accent-hover: #1f49e8;
  --accent-soft: #eef1ff;
  --code-background: #22231f;
  --code-text: #f3f3ed;
  --shadow: 0 28px 80px rgb(23 23 20 / 12%);
  --radius-medium: 22px;
  --radius-large: 34px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

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

.site-header,
.hero,
.feature-intro,
.feature-row,
.themes,
.download,
.site-footer {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 16px;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgb(220 220 213 / 80%);
  border-radius: 18px;
  background: rgb(247 247 244 / 86%);
  box-shadow: 0 8px 32px rgb(23 23 20 / 5%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-muted);
}

.site-nav a:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.site-nav .nav-download {
  background: var(--text);
  color: var(--surface);
}

.site-nav .nav-download:hover {
  background: var(--accent);
  color: #fff;
}

.hero {
  display: grid;
  min-height: calc(100vh - 96px);
  grid-template-columns: minmax(0, 0.85fr) minmax(500px, 1.15fr);
  align-items: center;
  gap: 0;
  padding-block: clamp(80px, 10vw, 148px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(48px, 4vw, 68px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 3vw, 54px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

a.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

a.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
}

a.button-secondary:hover {
  border-color: #c5c5bd;
  background: #fbfbf9;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 14px;
  list-style: none;
}

.trust-line li::before {
  margin-right: 8px;
  color: var(--accent);
  content: "✓";
  font-weight: 800;
}

.hero-media {
  min-width: 0;
  transform: perspective(1600px) rotateY(-5deg) rotateX(1deg);
  transform-origin: center right;
}

.product-shot {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-shot-main {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-shot-image {
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shot-placeholder {
  display: grid;
  min-height: inherit;
  place-content: center;
  background:
    linear-gradient(135deg, rgb(49 92 255 / 9%), transparent 45%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 14px,
      rgb(23 23 20 / 2.5%) 14px,
      rgb(23 23 20 / 2.5%) 28px
    );
  color: var(--text-muted);
  text-align: center;
}

.product-image {
  width: 100%;
  height: auto;
}

.shot-placeholder strong {
  font-size: 18px;
}

.shot-placeholder span {
  margin-top: 6px;
  font-size: 13px;
}

.feature-intro {
  max-width: 780px;
  padding-block: 110px 60px;
  text-align: center;
}

.feature-intro p:last-child,
.themes-copy p:last-child,
.download > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 19px;
}

.feature-row {
  display: grid;
  min-height: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding-block: 90px;
  border-top: 1px solid var(--line);
}

.feature-row-reverse {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-row-reverse .feature-copy {
  order: 2;
  justify-self: start;
  padding-right: 0;
  padding-left: clamp(28px, 4vw, 64px);
  transform: none;
}

.feature-row-reverse .feature-media {
  order: 1;
}

.feature-copy {
  width: min(100%, 500px);
  justify-self: end;
  padding-right: clamp(28px, 4vw, 64px);
  transform: translateX(clamp(12px, 1.5vw, 24px));
}

.feature-number {
  margin-bottom: 28px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
}

.feature-copy > p:not(.feature-number) {
  max-width: 500px;
  color: var(--text-muted);
  font-size: 19px;
}

.feature-copy code {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--code-background);
  color: var(--code-text);
  font-size: 15px;
}

.themes {
  padding-block: 130px;
  border-top: 1px solid var(--line);
}

.themes-copy {
  max-width: 720px;
  margin-bottom: 54px;
}

.product-shot-themes {
  min-height: 0;
}

.download {
  display: flex;
  max-width: 800px;
  min-height: 580px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 100px;
  padding: clamp(48px, 8vw, 100px);
  border: 3px solid #e2e2ca;
  border-radius: var(--radius-large);
  background: rgb(255 255 255 / 56%);
  backdrop-filter: blur(22px);
  color: var(--text);
  text-align: center;
}

.download img {
  margin-bottom: 30px;
  padding: 4px;
  border: 2px solid #e2e2ca;
  border-radius: 18px;
  background: var(--surface);
}

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

.download h2 {
  max-width: 680px;
}

.download > p:not(.eyebrow) {
  max-width: 540px;
  color: var(--text-muted);
}

.download .button {
  margin-block: 20px;
}

.button-large {
  min-height: 58px;
  padding-inline: 28px;
}

.download small {
  max-width: 520px;
  color: var(--text-muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 5px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.brand-small {
  color: var(--text);
  font-size: 16px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 50px;
    padding-top: 110px;
  }

  .hero-copy {
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-actions,
  .trust-line {
    justify-content: center;
  }

  .hero-media {
    transform: none;
  }

}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .feature-intro,
  .feature-row,
  .themes,
  .download,
  .site-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    top: 8px;
    min-height: 58px;
    margin-top: 8px;
    border-radius: 15px;
  }

  .site-nav > a:not(.nav-download) {
    display: none;
  }

  .hero {
    gap: 50px 0;
    padding-block: 88px 72px;
  }

  .hero-copy {
    margin-inline: 0;
    text-align: left;
  }

  .hero-actions,
  .trust-line {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: row;
  }

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

  .product-shot,
  .product-shot-themes {
    min-height: 310px;
  }

  .product-shot-main {
    min-height: 0;
  }

  .feature-intro {
    padding-block: 82px 42px;
    text-align: left;
  }

  .feature-row,
  .feature-row-reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 72px;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-media {
    order: initial;
  }

  .feature-copy {
    order: 1;
    width: 100%;
    justify-self: stretch;
    padding: 0;
    transform: none;
  }

  .feature-row-reverse .feature-copy {
    justify-self: stretch;
    padding: 0;
  }

  .feature-media {
    order: 2;
  }

  .themes {
    padding-block: 84px;
  }

  .download {
    min-height: 520px;
    margin-bottom: 60px;
    border-radius: 24px;
  }

}

@media (max-width: 425px) {
  .download {
    min-height: 0;
    padding: 48px 24px;
  }

  .download .eyebrow {
    font-size: 12px;
  }

  .download h2 {
    font-size: 29px;
  }

  .download > p:not(.eyebrow) {
    font-size: 15px;
  }

  .download .button {
    min-height: 48px;
    padding-inline: 20px;
    font-size: 13px;
  }

  .download small {
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 16px;
  }

  .brand span {
    font-size: 17px;
  }

  .site-nav .nav-download {
    padding-inline: 11px;
    font-size: 14px;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}

/*
  A dark theme can be added later without restructuring the page:

  :root[data-theme="dark"] {
    color-scheme: dark;
    --background: #181918;
    --surface: #222320;
    --text: #f5f5ef;
    --text-muted: #b6b6ae;
    --line: #363732;
  }
*/
