:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #ea580c;
  --accent-soft: #ffedd5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 16px 32px rgba(15, 23, 42, 0.09);
  --max: 1100px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: lowercase;
}

.brand-name {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(60rem 30rem at 70% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  max-width: 48ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.notfound {
  padding: 6rem 0 7rem;
  border-bottom: 0;
}

.notfound h1 {
  max-width: 18ch;
}

.notfound-action {
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.button:hover,
.button:focus-visible {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.directories {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2.25rem;
}

.section-head h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.card p {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  flex: 1;
}

.card-cta {
  margin-top: 1.25rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.about {
  padding: 4rem 0 5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.about-inner {
  max-width: 60ch;
}

.about h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.about p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

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

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

.footer-brand {
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.footer-copy {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .directories {
    padding: 3rem 0;
  }

  .nav {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
