:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --divider: #d7dde5;
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #eef2f7 0%, #f7f9fc 25%, var(--bg) 100%);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(140deg, #ffffff 0%, #edf3fb 100%);
  border-bottom: 1px solid var(--divider);
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.lead {
  margin: 1rem 0 0;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions a {
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.link-with-icon,
.inline-link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.link-with-icon svg,
.inline-link-with-icon svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hero-actions a:hover {
  background: #eaf2fb;
  color: var(--primary-dark);
}

.badges {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badges img {
  display: block;
  height: 22px;
}

.sections {
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1.2rem;
}

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

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

h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

p {
  margin: 0.6rem 0;
  color: var(--text-secondary);
}

code,
pre {
  font-family: "Roboto Mono", "Consolas", monospace;
}

pre {
  margin: 0.6rem 0 0;
  background: var(--surface-alt);
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 0.8rem;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.45;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  min-width: 700px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

th:first-child,
td:first-child {
  border-left: 1px solid var(--divider);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

th:last-child,
td:last-child {
  border-right: 1px solid var(--divider);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

th {
  background: #eef4fb;
  font-weight: 700;
}

td {
  background: #fff;
}

.example-line + .example-line {
  margin-top: 0.35rem;
}

.footer {
  border-top: 1px solid var(--divider);
  background: #f2f6fb;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0 1.6rem;
}

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

@media (max-width: 900px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .card {
    padding: 1rem;
  }
}
