:root {
  color-scheme: light dark;
  --page: #f4f7fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #172033;
  --muted: #647087;
  --line: rgba(23, 32, 51, 0.11);
  --accent: #1768e5;
  --accent-strong: #0c4eb8;
  --accent-soft: #e2edff;
  --shadow: 0 24px 70px rgba(47, 72, 117, 0.12);
  --radius-large: 2rem;
  --radius-medium: 1.25rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 4%, rgba(68, 142, 255, 0.2), transparent 27rem),
    var(--page);
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  color: white;
  background: var(--accent-strong);
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 0.8rem;
  box-shadow: 0 5px 14px rgba(38, 91, 176, 0.2);
}

nav {
  display: flex;
  gap: 1.4rem;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  min-height: min(45rem, calc(100vh - 5rem));
  padding-block: clamp(4rem, 11vw, 9rem);
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.4rem;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

p {
  margin-block: 0 1rem;
}

.intro {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(23, 104, 229, 0.24);
}

.button.primary:hover {
  color: white;
  background: var(--accent-strong);
}

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

.app-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.app-mark img {
  display: block;
  width: min(100%, 13.75rem);
  height: auto;
  border-radius: 26%;
  box-shadow: var(--shadow);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-card,
.support-card,
.privacy-callout,
.contact-card,
.document-content {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feature-card,
.support-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: var(--radius-medium);
}

.feature-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card p,
.support-card p,
.privacy-callout > p,
.contact-card > div:last-child,
.document-content p {
  color: var(--muted);
}

.privacy-callout,
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
  margin-block: clamp(4rem, 9vw, 8rem);
  padding: clamp(1.6rem, 5vw, 4rem);
  border-radius: var(--radius-large);
}

.privacy-callout p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.document-page {
  max-width: 64rem;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.document-header {
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
}

.document-header h1 {
  max-width: 18ch;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.document-content {
  padding: clamp(1.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-large);
}

.document-content section + section {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.document-content h2,
.support-card h2,
.contact-card h2 {
  letter-spacing: -0.02em;
}

.document-content a,
.support-card a,
.contact-card a {
  font-weight: 650;
}

.support-header .button {
  margin-top: 1rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.support-card h2 {
  font-size: 1.25rem;
}

code {
  padding: 0.12em 0.3em;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  background: var(--accent-soft);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: start;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

footer a {
  color: var(--muted);
}

@media (max-width: 48rem) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .app-mark {
    grid-row: 1;
    justify-content: start;
    width: 8rem;
  }

  .feature-grid,
  .support-grid,
  .privacy-callout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

@media (max-width: 32rem) {
  .site-header {
    align-items: flex-start;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

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

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

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0a1020;
    --surface: rgba(22, 31, 51, 0.8);
    --surface-solid: #161f33;
    --ink: #f5f8ff;
    --muted: #adb8cc;
    --line: rgba(219, 229, 255, 0.13);
    --accent: #70a9ff;
    --accent-strong: #9fc5ff;
    --accent-soft: #182d51;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  }

  body {
    background:
      radial-gradient(circle at 82% 4%, rgba(29, 92, 188, 0.25), transparent 27rem),
      var(--page);
  }

  .button.primary {
    color: #081126;
  }

  .button.primary:hover {
    color: #081126;
  }

}
