:root {
  color-scheme: dark;
  --background: #100b0d;
  --surface: #1b1216;
  --surface-raised: #24171d;
  --border: rgba(255, 255, 255, 0.1);
  --text: #fff8f5;
  --muted: #c9b9b5;
  --accent: #ec3f43;
  --accent-bright: #ff6461;
  --accent-soft: rgba(236, 63, 67, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 83% 7%, rgba(145, 28, 39, 0.26), transparent 29rem),
    radial-gradient(circle at 12% 42%, rgba(87, 24, 35, 0.17), transparent 32rem),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #160b0e;
  background: #ffffff;
  border-radius: 10px;
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  background: rgba(15, 9, 11, 0.86);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 100vmax rgba(15, 9, 11, 0.86);
  clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand,
.footer-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.site-header nav,
footer nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-header nav a,
footer nav a,
.text-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 620;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.75fr);
  gap: 80px;
  align-items: center;
  min-height: 680px;
  padding-block: 90px;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  font-weight: 830;
}

h1 span {
  color: var(--accent-bright);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  font-weight: 790;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 720;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 710;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-bright), #ca2935);
  box-shadow: 0 16px 34px rgba(202, 41, 53, 0.25);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.compatibility {
  margin: 16px 0 0;
  color: #9e8e8a;
  font-size: 0.88rem;
}

.hero-icon {
  position: relative;
  justify-self: end;
}

.hero-icon img {
  position: relative;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.52));
}

.icon-glow {
  position: absolute;
  inset: 18%;
  background: rgba(255, 53, 65, 0.44);
  border-radius: 50%;
  filter: blur(75px);
}

.showcase,
.features,
.story,
.install {
  padding-block: 110px;
  border-top: 1px solid var(--border);
}

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

.section-heading.compact {
  max-width: 720px;
}

.section-heading > p:last-child,
.story-copy,
.install-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.app-window {
  overflow: hidden;
  margin: 0;
  background: #160f12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.window-bar {
  position: relative;
  height: 42px;
  background: #21171b;
  border-bottom: 1px solid var(--border);
}

.window-bar::before {
  position: absolute;
  top: 15px;
  left: 16px;
  width: 11px;
  height: 11px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 19px 0 #febc2e, 38px 0 #28c840;
  content: "";
}

.app-window figcaption {
  padding: 14px 18px 16px;
  color: #998985;
  font-size: 0.82rem;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article {
  min-height: 220px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--border);
  border-radius: 18px;
}

.feature-grid article:hover {
  border-color: rgba(255, 100, 97, 0.28);
}

.feature-grid article p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 36px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-radius: 11px;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 780;
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.install {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  padding-inline: 52px;
  background:
    linear-gradient(120deg, rgba(236, 63, 67, 0.15), transparent 55%),
    var(--surface);
  border: 1px solid rgba(255, 100, 97, 0.24);
  border-radius: 26px;
}

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

.install-copy > p {
  max-width: 700px;
}

.text-link {
  padding: 10px 4px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 5px;
}

.install-note {
  padding: 24px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 0.94rem;
}

.install-note strong {
  color: var(--text);
}

.install-note p {
  margin: 10px 0 0;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 30px;
  align-items: center;
  padding-block: 34px 44px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

footer p {
  grid-row: 2;
  margin: 0;
  font-size: 0.86rem;
}

footer nav {
  grid-row: 1 / 3;
  grid-column: 2;
}

.error-page {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
}

.error-page > img {
  margin-bottom: 36px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.error-page h1 {
  margin-bottom: 18px;
}

.error-page > p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.1rem;
}

:focus-visible {
  outline: 3px solid #ffaaa7;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding-block: 84px;
  }

  .hero-icon {
    display: none;
  }

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

  .story,
  .install {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

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

  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header {
    min-height: 70px;
  }

  .brand span {
    display: none;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 70px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .showcase,
  .features,
  .story,
  .install {
    padding-block: 78px;
  }

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

  .feature-grid article {
    min-height: 0;
  }

  .install {
    margin-bottom: 64px;
    padding-inline: 24px;
  }

  .hero-actions,
  .install-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .text-link {
    text-align: center;
  }

  footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  footer nav {
    gap: 18px;
  }
}

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

  .button {
    transition: none;
  }
}
