:root {
  color-scheme: light dark;
  --ink: #0b2438;
  --ink-soft: #506a7d;
  --surface: #ffffff;
  --surface-alt: #f1f8ff;
  --surface-tint: #e4f7ff;
  --line: #cddfec;
  --teal: #007fc6;
  --teal-dark: #005aab;
  --mint: #05bfae;
  --amber: #00a9d6;
  --blue: #006fbd;
  --blue-deep: #013c9a;
  --brand-gradient: linear-gradient(135deg, #08c7b7 0%, #008fcb 45%, #0147a8 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgb(8 199 183 / 18%) 0%, rgb(0 143 203 / 14%) 48%, rgb(1 71 168 / 10%) 100%);
  --danger: #b54343;
  --shadow: 0 18px 52px rgb(1 71 168 / 12%);
  --radius: 8px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef9ff;
    --ink-soft: #aac4d8;
    --surface: #081724;
    --surface-alt: #0c2133;
    --surface-tint: #0c3046;
    --line: rgb(255 255 255 / 14%);
    --teal: #3cc9f2;
    --teal-dark: #8fe8ff;
    --mint: #4ee1d1;
    --amber: #6ad7ff;
    --blue: #7eb8ff;
    --blue-deep: #a7d0ff;
    --brand-gradient-soft: linear-gradient(135deg, rgb(8 199 183 / 20%) 0%, rgb(0 143 203 / 18%) 48%, rgb(1 71 168 / 22%) 100%);
    --danger: #ff9c9c;
    --shadow: 0 18px 52px rgb(0 0 0 / 36%);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--teal-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgb(1 71 168 / 18%);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.hero {
  background:
    var(--brand-gradient-soft),
    linear-gradient(180deg, #f5fbff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      var(--brand-gradient-soft),
      linear-gradient(180deg, #081724 0%, #0c2133 78%);
  }
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 86px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

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

h3 {
  font-size: 1.16rem;
}

.lead,
.page-hero p,
.section-head p,
.section-intro {
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.lead {
  max-width: 650px;
  margin: 1.55rem 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary,
.button.dark {
  background: var(--brand-gradient);
  border-color: color-mix(in srgb, var(--blue) 78%, #ffffff);
  color: #ffffff;
  box-shadow: 0 12px 28px rgb(1 71 168 / 18%);
}

.button.secondary {
  background: transparent;
  color: var(--teal-dark);
}

.sync-card {
  position: relative;
  min-height: 420px;
  padding: clamp(1.15rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-tint) 38%, transparent), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.sync-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.sync-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-gradient);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--mint) 18%, transparent);
}

.sync-line {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
}

.sync-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-tint) 82%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  color: var(--teal-dark);
  font-weight: 900;
}

.sync-line h3 {
  margin-top: 0.15rem;
}

.sync-line p {
  margin: 0.38rem 0 0;
  color: var(--ink-soft);
}

.section {
  padding: 78px 0;
}

.section.alt,
.page-hero {
  background: var(--surface-alt);
  border-block: 1px solid var(--line);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 2.4rem;
}

.section-head p {
  margin: 1rem 0 0;
}

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

.feature,
.resource,
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 34px rgb(20 36 43 / 6%);
}

.feature,
.resource {
  padding: 1.35rem;
}

.feature p,
.resource p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.fact-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding-left: 1.45rem;
  position: relative;
  color: var(--ink-soft);
}

.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.callout {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background:
    var(--brand-gradient-soft),
    var(--surface);
}

.page-main {
  min-height: 58vh;
}

.page-hero {
  padding: 66px 0 58px;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.page-hero p {
  max-width: 780px;
  margin: 1.2rem 0 0;
}

.content {
  max-width: 860px;
}

.content-block + .content-block,
.faq + .faq {
  margin-top: 2.25rem;
}

.content-block h2,
.content h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.content-block h3,
.content h3 {
  margin: 1.2rem 0 0.45rem;
}

.content-block p,
.content p,
.content-block li,
.content li {
  color: var(--ink-soft);
}

.content-block ul,
.content ul,
.content-block ol,
.content ol {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 46px;
  color: var(--ink-soft);
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: start;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.footer-group h2 {
  color: var(--ink);
  font-size: 0.86rem;
  margin: 0 0 0.2rem;
  text-transform: uppercase;
}

.footer-group a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.4rem;
}

.footer-legal p {
  margin: 0.32rem 0;
}

@media (max-width: 880px) {
  .nav-wrap {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding-top: 60px;
  }

  .sync-card {
    min-height: auto;
  }

  .feature-grid,
  .resource-grid,
  .footer-groups {
    grid-template-columns: 1fr 1fr;
  }

}

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

  .wrap,
  .nav-wrap,
  .hero-content,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: clamp(2.8rem, 18vw, 4.2rem);
  }

  .feature-grid,
  .resource-grid,
  .footer-groups {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .section {
    padding-block: 52px;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
