:root {
  --bg: #fafafa;
  --text: #232323;
  --muted: #6b6b6b;
  --accent: #3d4dc4;
  --accent-dark: #2c39a0;
  --accent-2: #5b6ee8;
  --accent-soft: #eef0ff;
  --card-bg: #ffffff;
  --border: #e7e7e7;
  --max-width: 780px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

header {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 10px rgba(194, 24, 91, 0.28);
}
.logo-badge svg { width: 20px; height: 20px; }

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo-accent { color: var(--accent); }

nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.2s ease;
}
nav a:hover { color: var(--text); }
nav a:hover::after { right: 0; }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.4em;
  margin-bottom: 0.7em;
  padding-top: 0.9em;
  border-top: 1px solid var(--border);
  position: relative;
}
h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 46px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
}

p { margin: 0 0 1em; }

.lede {
  font-size: 1.15rem;
  color: var(--muted);
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
  box-shadow: 0 6px 16px rgba(194, 24, 91, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cta:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-dark));
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(194, 24, 91, 0.34);
}

.cta-secondary {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(194, 24, 91, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta-secondary:hover {
  background: #fbd7e6;
  transform: translateY(-1px);
}

.cta-row {
  margin: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-inline-wrap {
  margin: 1.6em 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.cta-inline {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 24, 91, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cta-inline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
.badge-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 14px;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}
.badge-card .badge-icon {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 6px;
}
.badge-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 4px;
}
.badge-card span {
  color: var(--muted);
  font-size: 0.88rem;
}
.badge-card:nth-child(2) { border-top-color: var(--accent-2); }
.badge-card:nth-child(3) { border-top-color: #8a5cf6; }

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

.article-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5em;
}
.article-list li {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--card-bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.article-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  border-left-color: var(--accent-2);
}
.article-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.article-list a:hover { color: var(--accent); }
.article-list .excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--card-bg);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}
.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-inner a:hover { color: var(--accent); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.2em;
}
.breadcrumb a { color: var(--muted); }

.updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2em;
}
