:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #10213a;
  --muted: #4b5d79;
  --accent: #0d6efd;
  --accent-2: #00a87e;
  --border: #dce5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #e8f2ff 0, var(--bg) 42%);
  line-height: 1.5;
}

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

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

header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  min-height: 66px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-text {
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 10px;
  line-height: 1.2;
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--text);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-cta {
  background: #0d6efd;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  flex: 0 0 auto;
  max-width: 100%;
}

.nav-cta:hover {
  background: #0d6efd;
  background: var(--accent);
  color: #fff;
  opacity: 0.95;
}

.hero {
  padding: 52px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 2.8vw, 2.8rem);
  line-height: 1.08;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 66ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  padding: 18px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 16px;
}

.cta.secondary {
  background: var(--accent-2);
}

.cta-spaced {
  margin-left: 10px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-cta .cta {
  flex: 0 0 auto;
}

.mt-14 {
  margin-top: 14px;
}

.section {
  padding: 16px 0 30px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

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

ul.clean {
  margin: 10px 0 0;
  padding-left: 18px;
}

pre {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  overflow: auto;
  white-space: pre;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  font-size: 0.92rem;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 24px 0 36px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.small {
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-cta {
    order: 1;
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  .site-nav-wrap {
    order: 2;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    gap: 4px;
    padding: 0 22px;
  }

  .site-nav-wrap::before,
  .site-nav-wrap::after {
    pointer-events: none;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--muted);
    opacity: 0.75;
  }

  .site-nav-wrap:not(.nav-can-scroll)::before,
  .site-nav-wrap:not(.nav-can-scroll)::after {
    opacity: 0;
  }

  .site-nav-wrap.nav-can-scroll:not(.nav-can-left)::before {
    opacity: 0;
  }

  .site-nav-wrap.nav-can-scroll:not(.nav-can-right)::after {
    opacity: 0;
  }

  .site-nav-wrap::before {
    content: "‹";
    left: 0;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  }

  .site-nav-wrap::after {
    content: "›";
    right: 0;
    background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  }

  .hero-cta .cta {
    flex: 1 1 220px;
    text-align: center;
  }

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