:root {
  --bg: #f3efe6;
  --bg-accent: #efe7d9;
  --surface: rgba(255, 250, 240, 0.82);
  --surface-strong: #fff9ef;
  --text: #1f221c;
  --muted: #5d6457;
  --border: rgba(31, 34, 28, 0.12);
  --border-strong: rgba(31, 34, 28, 0.2);
  --shadow: 0 20px 60px rgba(66, 50, 24, 0.08);
  --accent: #c96f3b;
  --accent-soft: rgba(201, 111, 59, 0.12);
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Space Grotesk", "Avenir Next", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--display);
  background:
    radial-gradient(circle at top left, rgba(201, 111, 59, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(114, 137, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #f9f3e8 0%, var(--bg) 45%, #efe8da 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(31, 34, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 34, 28, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer,
.hero,
.directory-section,
.seo-section,
.faq-section {
  backdrop-filter: blur(14px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.72);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark,
.brand-name,
.submit-link {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-mark {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.82rem;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 500;
}

.submit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 12px 16px;
  border: 1px solid rgba(31, 34, 28, 0.18);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.submit-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 34, 28, 0.34);
  background: rgba(255, 255, 255, 0.65);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.lang-switcher__button {
  padding: 9px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switcher__button.is-active {
  background: var(--text);
  color: #fff7ea;
}

.hero,
.directory-section,
.seo-section,
.faq-section,
.site-footer {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 28px 32px;
  border-radius: 34px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero::after {
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(201, 111, 59, 0.18), transparent 62%);
}

.eyebrow,
.section-kicker,
.hero-meta,
.site-card__meta,
.empty-state__note {
  font-family: var(--mono);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-qr img {
  display: block;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(31, 34, 28, 0.05);
}

.hero-qr p {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.directory-section,
.seo-section,
.faq-section {
  margin-top: 18px;
  padding: 28px;
  border-radius: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.site-card,
.empty-state {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.94));
  box-shadow: 0 16px 40px rgba(43, 35, 20, 0.05);
}

.site-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 34, 28, 0.24);
  box-shadow: 0 22px 44px rgba(43, 35, 20, 0.09);
}

.site-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.site-card__name {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.03em;
}

.site-card__badge {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-card__desc {
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.72;
}

.site-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.site-card__tags span {
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.84rem;
}

.site-card__meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
}

.empty-state h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.empty-state p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.empty-state__note {
  margin-top: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.86;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.72);
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: 24px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-layout,
  .site-grid,
  .seo-copy,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-qr {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .site-header,
  .directory-section,
  .seo-section,
  .faq-section,
  .site-footer {
    border-radius: 22px;
  }

  .hero {
    padding: 34px 20px 24px;
    border-radius: 28px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .directory-section,
  .seo-section,
  .faq-section {
    padding: 22px 18px;
  }

  .site-grid,
  .seo-copy,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .hero-qr {
    width: 100%;
  }

  .site-card,
  .empty-state {
    min-height: auto;
  }
}
