:root {
  color-scheme: light dark;
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #172b4d;
  --muted: #5e6c84;
  --primary: #0c66e4;
  --primary-dark: #0747a6;
  --border: #dfe1e6;
  --warning: #ffab00;
  --shadow: 0 18px 50px rgba(9, 30, 66, 0.12);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --surface: rgba(29, 33, 37, 0.92);
    --surface-strong: #1d2125;
    --text: #f1f2f4;
    --muted: #b6c2cf;
    --primary: #579dff;
    --primary-dark: #85b8ff;
    --border: #3c3f43;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(12,102,228,.14), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: var(--primary); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.hero {
  padding: 92px 0 62px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 {
  margin: 18px 0 20px;
  font-size: clamp(46px, 7vw, 76px);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-logo {
  width: min(100%, 340px);
  justify-self: end;
  border-radius: 30%;
  box-shadow: var(--shadow);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 750;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-strong);
}

.button.primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.button.primary:hover { background: var(--primary-dark); }

.section { padding: 50px 0; }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  margin: 0 0 28px;
}

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.app-card img {
  width: 96px;
  height: 96px;
  border-radius: 24px;
}

.app-card h3 {
  margin: 2px 0 10px;
  font-size: 28px;
}

.app-card p {
  color: var(--muted);
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.feature strong {
  display: block;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.app-hero {
  padding: 72px 0 38px;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: center;
}

.app-hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.app-icon-large {
  width: 170px;
  height: 170px;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 98px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.docs-nav strong {
  display: block;
  margin-bottom: 12px;
}

.docs-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.docs-nav a:hover { color: var(--text); }

.docs-section {
  scroll-margin-top: 100px;
  margin-bottom: 22px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-section h2 { margin-top: 0; }

.docs-section h3 { margin-top: 28px; }

.docs-section p,
.docs-section li {
  color: var(--muted);
}

.step-list {
  counter-reset: steps;
  list-style: none;
  padding: 0;
}

.step-list li {
  position: relative;
  padding: 0 0 18px 44px;
  color: var(--muted);
}

.step-list li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--muted);
}

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

.feature-grid .feature { height: 100%; }

.document {
  max-width: 820px;
  margin: 54px auto;
  padding: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document h1 {
  margin-top: 0;
  font-size: clamp(38px, 6vw, 58px);
}

.document h2 {
  margin-top: 36px;
  font-size: 25px;
}

.document p, .document li { color: var(--muted); }

.meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 34px;
}

.contact-box {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

.resources {
  max-width: 820px;
  margin: 54px auto;
}

.resources-header {
  margin-bottom: 36px;
}

.resources-header h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 58px);
}

.resources-intro {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.post-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.post-list .post-title {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.post-list .post-title:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-list .post-meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.post-list .post-description {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
}

.post-hero-link {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-hero {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.blog-content :is(p, li) {
  color: var(--muted);
}

.blog-content h2 {
  margin-top: 36px;
  font-size: 25px;
}

.blog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.blog-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-strong);
}

.blog-content thead {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface-strong));
}

.blog-content th,
.blog-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.blog-content th {
  color: var(--text);
  font-weight: 750;
}

.blog-content th:not(:last-child),
.blog-content td:not(:last-child) {
  border-right: 1px solid var(--border);
}

.blog-content tbody tr:last-child th,
.blog-content tbody tr:last-child td {
  border-bottom: none;
}

.blog-content tbody tr:hover td {
  background: color-mix(in srgb, var(--primary) 5%, transparent);
}

.blog-post .meta a {
  color: var(--muted);
  text-decoration: none;
}

.blog-post .meta a:hover {
  color: var(--primary);
}

.related-articles {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.related-articles h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-articles ul {
  margin: 0;
  padding-left: 20px;
}

.related-articles li {
  margin: 8px 0;
  color: var(--muted);
}

.related-articles a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 650;
}

.related-articles a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    gap: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 58px;
    gap: 38px;
  }

  .hero-logo {
    justify-self: start;
    width: 190px;
  }

  .app-hero-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .app-icon-large {
    width: 120px;
    height: 120px;
  }

  .docs-nav { position: static; }

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

  .app-card { grid-template-columns: 1fr; }

  .document {
    margin: 28px auto;
    padding: 26px;
  }

  .resources {
    margin: 28px auto;
  }

  .post-list li {
    padding: 22px 0;
  }

  .blog-content {
    overflow-x: auto;
  }

  .blog-content table {
    min-width: 520px;
  }
}