:root {
  --site-bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #52657a;
  --brand: #174ea6;
  --brand-dark: #0f3470;
  --border: #dbe4f0;
  --soft: #edf3fb;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

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

a:hover {
  color: var(--brand-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--brand-dark);
  color: #fff;
  border-radius: 6px;
}

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

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

.site-nav {
  min-height: 68px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-dark);
  font-weight: 800;
}

.site-brand span {
  font-size: 1.18rem;
}

.navbar .nav-link {
  color: #243447;
  font-weight: 650;
  padding: 0.65rem 0.85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand);
}

.site-main {
  padding: 2rem 0 3rem;
}

.hero {
  padding: 3rem 0 1.5rem;
}

.hero h1 {
  max-width: 760px;
  margin: 0 auto 1rem;
  color: #111827;
  font-size: clamp(2rem, 5vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}

.hero p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  text-align: center;
}

.hero-actions,
.tool-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.section-block {
  margin: 1.5rem 0;
}

.content-card,
.signature-card,
.name-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 52, 112, 0.06);
}

.content-card {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.content-card h2,
.content-card h1 {
  margin-top: 0;
  color: #132238;
}

.section-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.create-form .input-group {
  gap: 0.65rem;
}

.create-form .form-control,
.create-form .btn {
  min-height: 48px;
  border-radius: 6px !important;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.ad-slot {
  width: 100%;
  min-height: 280px;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px dashed #b8c7da;
  border-radius: 8px;
  color: #68788c;
  text-align: center;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.signature-card {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  text-align: center;
}

.signature-grid-ad,
.signature-grid-more {
  grid-column: 1 / -1;
}

.signature-grid-more {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

.signature-card h2,
.signature-card h3 {
  margin: 0.6rem 0 0.35rem;
  color: #132238;
  font-size: 1.18rem;
}

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

.sing {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.9rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.signature-download {
  text-align: center;
  margin: 0 0 1rem;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.name-card {
  padding: 1rem;
}

.name-card h2,
.name-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.name-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.name-list a {
  display: block;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  background: var(--soft);
  border-radius: 6px;
  color: #17365d;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.name-list a:hover,
.name-list a:focus {
  background: #dce9f8;
}

.faq-wrap .accordion-button {
  color: #132238;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #243447;
  font-weight: 650;
  text-decoration: none;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  z-index: 1020;
}

.back-to-top.is-visible {
  display: flex;
}

@media (min-width: 768px) {
  .signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-main {
    padding-top: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .ad-slot {
    min-height: 250px;
  }

  .create-form .input-group {
    display: grid;
  }

  .create-form .input-group > * {
    width: 100% !important;
  }
}
