:root {
  --bg: #f7f2e8;
  --surface: rgba(255, 250, 242, 0.82);
  --surface-strong: #fffaf2;
  --text: #1f1c17;
  --muted: #6c6156;
  --line: rgba(31, 28, 23, 0.12);
  --accent: #cb5b2f;
  --accent-dark: #8e3819;
  --shadow: 0 18px 40px rgba(68, 40, 18, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(203, 91, 47, 0.2), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(219, 172, 98, 0.16), transparent 22%),
    linear-gradient(180deg, #fcf8f1 0%, var(--bg) 42%, #f4ecdf 100%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header, .stats-strip, .featured-section, .directory-section, .about-section, .site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
}

.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #e7a144); color: #fff; font-weight: 800; box-shadow: var(--shadow);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.eyebrow { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand-name { font-size: 1.1rem; font-weight: 800; }
.site-nav { display: flex; gap: 20px; color: var(--muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }

.hero {
  min-height: calc(100svh - 96px);
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 48px 16px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}
.hero-copy { padding: 40px 0 40px min(6vw, 56px); }
.hero h1 {
  margin: 0; max-width: 10ch; font-size: clamp(3rem, 8vw, 6.2rem); line-height: 0.95; letter-spacing: -0.05em;
}
.hero-text { max-width: 34rem; font-size: 1.08rem; line-height: 1.7; color: var(--muted); margin: 22px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--text); color: #fff; }
.button-secondary { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.56); }

.hero-panel {
  position: relative; min-height: 560px; border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.94), rgba(243, 226, 204, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow); overflow: hidden;
}
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(203, 91, 47, 0.22); animation: float 8s ease-in-out infinite; }
.hero-orbit-a { inset: 42px 80px auto auto; width: 280px; height: 280px; }
.hero-orbit-b { inset: auto auto 38px 36px; width: 190px; height: 190px; animation-delay: -3s; }

.hero-card, .hero-snippet {
  position: absolute; backdrop-filter: blur(12px); background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 14px 30px rgba(107, 67, 30, 0.1);
}
.hero-card { top: 72px; left: 56px; max-width: 260px; padding: 20px; border-radius: 20px; }
.hero-card span, .hero-snippet p { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.hero-card strong { font-size: 1.55rem; line-height: 1.15; }
.hero-snippet { right: 40px; bottom: 48px; width: min(320px, calc(100% - 80px)); padding: 22px; border-radius: 22px; }
.hero-snippet ul { margin: 0; padding-left: 18px; }
.hero-snippet li + li { margin-top: 8px; }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0 64px; }
.stats-strip article { padding: 22px 24px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.55); }
.stats-strip span { display: block; font-size: 2rem; font-weight: 800; }
.stats-strip p { margin: 6px 0 0; color: var(--muted); }

section { padding-bottom: 72px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 0; max-width: 16ch; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.05em; }

.featured-grid, .tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.feature-block, .tool-card {
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.feature-block {
  min-height: 240px; padding: 28px; background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(249,233,214,0.96));
}
.tool-card { min-height: 220px; padding: 24px; background: rgba(255, 251, 245, 0.78); }
.feature-block:hover, .feature-block:focus-visible, .tool-card:hover, .tool-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-kicker, .tool-tag {
  display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(203, 91, 47, 0.1); color: var(--accent-dark); font-size: 0.78rem; font-weight: 700;
}
.feature-block h3, .tool-card h3 { margin: 20px 0 10px; font-size: 1.35rem; }
.feature-block p, .tool-card p, .about-copy p, .empty-state { margin: 0; color: var(--muted); line-height: 1.7; }

.directory-controls { display: grid; gap: 18px; margin-bottom: 24px; }
.search-field { display: grid; gap: 10px; max-width: 520px; }
.search-field span { font-weight: 700; }
.search-field input {
  width: 100%; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.62);
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer;
}
.chip.is-active { background: var(--text); color: #fff; border-color: var(--text); }
.tool-card.is-hidden { display: none; }

.about-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 0 0 28px; color: var(--muted); }
.site-footer p { margin: 0; font-weight: 800; color: var(--text); }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 960px) {
  .site-header { gap: 16px; flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { padding: 0; }
  .hero-panel { min-height: 420px; }
  .featured-grid, .tool-grid, .about-copy, .stats-strip { grid-template-columns: 1fr; }
  .section-heading h2 { max-width: 100%; }
}

@media (max-width: 640px) {
  .site-header, .stats-strip, .featured-section, .directory-section, .about-section, .site-footer { width: min(calc(100% - 24px), var(--max)); }
  .site-nav { flex-wrap: wrap; gap: 12px 18px; }
  .hero { width: min(calc(100% - 12px), 1400px); padding-inline: 6px; }
  .hero h1 { font-size: clamp(2.4rem, 14vw, 4rem); }
  .hero-panel { min-height: 360px; }
  .hero-card { top: 28px; left: 20px; right: 20px; max-width: none; }
  .hero-snippet { left: 20px; right: 20px; bottom: 20px; width: auto; }
  .button { width: 100%; }
  .search-field { max-width: none; }
  .site-footer { flex-direction: column; }
}
