:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #16202b;
  --muted: #5a6876;
  --line: #dde3ea;
  --accent: #0f7b6c;
  --accent-soft: rgba(15, 123, 108, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1419;
    --surface: #151d24;
    --text: #e6edf3;
    --muted: #93a1af;
    --line: #26323d;
    --accent: #3cc9b0;
    --accent-soft: rgba(60, 201, 176, 0.14);
  }
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fade the grid towards the edges so it stays a quiet texture. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, var(--bg) 70%);
  pointer-events: none;
}

.site-header,
main,
.footer-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark circle {
  fill: var(--accent);
  stroke: none;
}

main {
  flex: 1;
}

.hero {
  padding: 64px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 auto 20px;
  max-width: 20ch;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.trace {
  display: block;
  width: min(100%, 520px);
  height: 48px;
  margin: 48px auto 0;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.4s ease-out 0.3s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trace {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px 0 8px;
}

.area {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.area h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.area h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: middle;
}

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

/* Classic full-width bottom bar; content aligns with the page column. */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}

.footer-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .site-header,
  main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
