:root {
  --ink: #0f1c1a;
  --ink-soft: #2a3d39;
  --muted: #5c6f6a;
  --paper: #f3f7f5;
  --paper-2: #e7efeb;
  --line: rgba(15, 28, 26, 0.12);
  --accent: #0d7a66;
  --accent-deep: #075749;
  --accent-soft: #d7efe8;
  --warn: #9a5b12;
  --shadow: 0 18px 50px rgba(15, 28, 26, 0.08);
  --radius: 18px;
  --max: 1080px;
  --font-display: 'Sora', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(13, 122, 102, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(154, 91, 18, 0.1), transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 40%, #eef4f1 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

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

img {
  max-width: 100%;
  display: block;
}

.shell {
  position: relative;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(243, 247, 245, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--accent-deep);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

.lede {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

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

.button-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--accent-deep);
  border-color: rgba(13, 122, 102, 0.35);
}

.hero-panel {
  position: relative;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(215, 239, 232, 0.55)),
    #fff;
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.scan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.scan-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.score {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, transparent 45%),
    conic-gradient(var(--accent) 0 78%, var(--paper-2) 78% 100%);
  box-shadow: inset 0 0 0 6px #fff;
}

.issue-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-error {
  color: #7a1f1f;
  background: #f8dede;
}

.badge-warn {
  color: var(--warn);
  background: #f7ead7;
}

.badge-info {
  color: #1d4d74;
  background: #dceaf5;
}

.section {
  padding: 1.25rem 0 3.5rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.feature-grid,
.steps,
.content-stack {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature,
.step,
.panel {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.feature p,
.step p,
.panel p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero p {
  margin: 0.9rem 0 0;
  max-width: 42rem;
  color: var(--ink-soft);
}

.prose {
  display: grid;
  gap: 1rem;
  padding-bottom: 3.5rem;
}

.prose .panel h2,
.prose .panel h3 {
  margin-bottom: 0.35rem;
}

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.prose li + li {
  margin-top: 0.4rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  margin-top: 1rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .lede,
.hero .actions {
  animation: rise 650ms ease both;
}

.hero .lede {
  animation-delay: 80ms;
}

.hero .actions {
  animation-delay: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
