:root {
  color-scheme: light;
  --background: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --container: 1180px;
  --green: #20c96b;
  --dark: #101411;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-weight: 600;
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
}

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

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 14px;
}

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

.home-main {
  flex: 1;
  overflow: hidden;
}

.hero {
  padding: 92px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.eyebrow {
  margin: 0 0 18px;
  color: #16894b;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 6.7rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-copy h1 span {
  color: #16894b;
}

.hero-description {
  max-width: 560px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.text-button {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.text-button::after {
  content: " ↓";
  color: #16894b;
}

.hero-visual {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 201, 107, 0.24), rgba(0, 191, 255, 0.09) 50%, transparent 72%);
  filter: blur(10px);
}

.hero-screen {
  position: absolute;
  width: min(285px, 44%);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(21, 28, 24, 0.24);
}

.hero-screen-center {
  z-index: 3;
  transform: translateY(-4px);
}

.hero-screen-left {
  z-index: 1;
  transform: translate(-55%, 28px) rotate(-8deg) scale(0.9);
  filter: saturate(0.9);
}

.hero-screen-right {
  z-index: 2;
  transform: translate(55%, 28px) rotate(8deg) scale(0.9);
  filter: saturate(0.9);
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
}

.button-primary {
  background: var(--dark);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 20, 17, 0.16);
  transition: transform 160ms ease, background 160ms ease;
}

.button-primary:hover {
  background: #242b26;
  transform: translateY(-2px);
}

.showcase {
  padding: 116px 0 128px;
  background: var(--dark);
  color: #ffffff;
}

.showcase-heading {
  max-width: 760px;
  text-align: center;
}

.showcase-heading .eyebrow {
  color: #65e69b;
}

.showcase-heading h2,
.closing-card h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.showcase-heading > p:last-child {
  max-width: 620px;
  margin: 24px auto 0;
  color: #aeb7b0;
  font-size: 19px;
}

.screenshot-scroll {
  width: 100%;
  margin-top: 64px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2)) 34px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #465048 transparent;
}

.screenshot-card {
  width: clamp(245px, 23vw, 320px);
  min-width: clamp(245px, 23vw, 320px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: #242925;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  scroll-snap-align: center;
  transition: transform 200ms ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.closing-cta {
  padding: 96px 0;
}

.closing-card {
  padding: clamp(48px, 8vw, 92px) 32px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.62), transparent 32%),
    linear-gradient(135deg, #d9ffe7, #adf4e4 52%, #b7eaff);
  text-align: center;
}

.closing-card h2 {
  max-width: 760px;
  margin-inline: auto;
}

.closing-card .button {
  margin-top: 34px;
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #a1a1a6;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-main {
  flex: 1;
  padding: 72px 0 96px;
}

.legal-document {
  max-width: 760px;
}

.legal-heading {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 7vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.legal-heading > p:not(.legal-date) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-date {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-document section + section {
  margin-top: 36px;
}

.legal-document h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-document section p,
.legal-document li {
  margin: 0;
  color: #424245;
}

.legal-document section p + p,
.legal-document section p + ul,
.legal-document section ul + p {
  margin-top: 16px;
}

.legal-document ul {
  margin-bottom: 0;
  padding-left: 24px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-document code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e8e8ed;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
}

.legal-document .legal-emphasis {
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.external-button {
  margin-top: 24px;
}

.text-link {
  color: var(--accent);
}

.text-link:hover {
  text-decoration: underline;
}

.back-link {
  margin-top: 48px;
  display: inline-block;
}

a:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav-shell {
    min-height: 60px;
  }

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

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

  .site-header nav a {
    font-size: 13px;
  }

  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: 18px;
  }

  .hero-visual {
    min-height: 490px;
  }

  .hero-screen {
    width: min(220px, 54vw);
    border-radius: 22px;
  }

  .hero-glow {
    width: 430px;
    height: 430px;
  }

  .showcase {
    padding: 80px 0 88px;
  }

  .screenshot-scroll {
    margin-top: 42px;
  }

  .closing-cta {
    padding: 56px 0;
  }

  .closing-card {
    border-radius: 26px;
  }

  .footer-content {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-main {
    padding: 48px 0 72px;
  }
}

@media (min-width: 601px) and (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

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

  .button-primary,
  .screenshot-card {
    transition: none;
  }
}
