:root {
  color-scheme: light dark;
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-soft: #edf4f8;
  --text: #111827;
  --muted: #536174;
  --line: #dbe5ed;
  --accent: #b86f3d;
  --accent-strong: #8f4d25;
  --blue: #178fcb;
  --shadow: 0 24px 80px rgb(41 57 72 / 0.16);
  --radius: 18px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --surface: #172234;
    --surface-soft: #213047;
    --text: #f7fafc;
    --muted: #bfcbda;
    --line: #314158;
    --accent: #d9935d;
    --accent-strong: #f0b47c;
    --blue: #72cef7;
    --shadow: 0 24px 80px rgb(0 0 0 / 0.34);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 20%, rgb(23 143 203 / 0.18), transparent 30rem),
    radial-gradient(circle at 92% 4%, rgb(184 111 61 / 0.18), transparent 26rem),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(17 24 39 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 24 39 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image:
      linear-gradient(rgb(247 250 252 / 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgb(247 250 252 / 0.05) 1px, transparent 1px);
  }
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(219 229 237 / 0.78);
  background: rgb(247 250 252 / 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    border-bottom-color: rgb(49 65 88 / 0.8);
    background: rgb(17 24 39 / 0.82);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 20px rgb(17 24 39 / 0.14);
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 0.94rem;
}

nav a,
.header-link,
footer a {
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

nav a:hover,
.header-link:hover,
footer a:hover {
  color: var(--blue);
}

.header-link {
  color: var(--text);
  font-weight: 700;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-control::after {
  position: absolute;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.72;
}

.language-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-select {
  width: 108px;
  height: 32px;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 28px 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 34%, transparent);
  cursor: pointer;
  line-height: 1;
}

.language-select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 2px;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1360px;
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(18px, 4vw, 56px);
}

.hero-copy {
  display: grid;
  gap: 28px;
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: min(14ch, 100%);
  font-size: clamp(3.7rem, 8vw, 7.6rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #fff7ef;
  background: var(--accent-strong);
  box-shadow: 0 14px 34px rgb(143 77 37 / 0.28);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media::before {
  position: absolute;
  inset: 12% -4% -10% 18%;
  z-index: -1;
  border-radius: 36px;
  content: "";
  background: linear-gradient(135deg, rgb(184 111 61 / 0.2), rgb(23 143 203 / 0.2));
  transform: rotate(-4deg);
}

.hero-media img,
.screen-grid img {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.workflow,
.screens,
.install {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 4vw, 56px);
}

.section-copy {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 36px;
}

.section-copy.narrow {
  max-width: 650px;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p,
.privacy-band p,
.install p {
  color: var(--muted);
  font-size: 1.04rem;
}

.steps {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.steps article {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 45px rgb(41 57 72 / 0.08);
}

.steps article:nth-child(2) {
  margin-top: 48px;
  background: var(--surface-soft);
}

.steps article:nth-child(3) {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgb(23 143 203 / 0.14), transparent 70%),
    var(--surface);
}

.steps span {
  color: var(--accent-strong);
  font-weight: 800;
}

.steps h3 {
  max-width: 14rem;
  font-size: 1.7rem;
  line-height: 1.05;
}

.steps p {
  align-self: end;
  color: var(--muted);
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(44px, 8vw, 84px) clamp(18px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgb(184 111 61 / 0.14), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.privacy-band div {
  display: grid;
  gap: 16px;
}

.privacy-band ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-band li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

code {
  padding: 2px 6px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.screen-grid figure {
  display: grid;
  gap: 12px;
  margin: 0;
}

.screen-grid .wide {
  grid-column: 1 / -1;
}

figcaption {
  color: var(--muted);
  font-size: 0.96rem;
}

.install {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding-top: 32px;
}

.install img {
  border-radius: 22px;
  box-shadow: 0 16px 42px rgb(17 24 39 / 0.18);
}

.install div {
  display: grid;
  gap: 10px;
}

.install h2 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px) 44px;
  color: var(--muted);
  font-size: 0.96rem;
}

footer span {
  color: var(--text);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  nav {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  h1 {
    max-width: 14ch;
  }

  .steps,
  .privacy-band,
  .screen-grid,
  .install {
    grid-template-columns: 1fr;
  }

  .steps article,
  .steps article:nth-child(2),
  .steps article:nth-child(3) {
    min-height: auto;
    margin-top: 0;
  }

  .install {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 8px;
  }

  .language-select {
    width: 96px;
    height: 30px;
    padding-left: 10px;
    padding-right: 26px;
    font-size: 0.8rem;
  }

  .hero,
  .workflow,
  .screens,
  .install {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.2rem);
  }

  h2 {
    max-width: 14ch;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .privacy-band {
    margin-right: 16px;
    margin-left: 16px;
  }

  footer {
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}
