:root {
  --paper: #f2f1ee;
  --ivory: #faf9f7;
  --ink: #151515;
  --graphite: #232323;
  --graphite-soft: #2d3136;
  --graphite-deep: #111111;
  --muted: #6b7077;
  --stone: #e1dfdb;
  --signal: #ff9800;
  --card-text: #f6f5f2;
  --card-muted: rgba(246, 245, 242, 0.82);
  --border-soft: rgba(158, 164, 171, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body.site-body {
  background:
    radial-gradient(circle at top left, rgba(188, 194, 201, 0.22), transparent 30%),
    linear-gradient(180deg, #f7f5f1 0%, var(--paper) 100%);
}

.shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.shell-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, var(--graphite) 0%, var(--graphite-soft) 46%, #191311 100%);
  color: var(--card-text);
  box-shadow: var(--shadow);
  width: min(760px, 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.18), transparent 66%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-brand-centered {
  justify-content: center;
}

.brand-wordmark {
  width: min(360px, 58vw);
  max-width: 100%;
  height: auto;
}

.brand-wordmark-header {
  width: min(380px, 62vw);
}

.site-header {
  display: flex;
  justify-content: center;
  width: 100%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--card-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 6px rgba(255, 152, 0, 0.14);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-top: 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--card-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  margin: 20px 0 0;
  max-width: 650px;
  color: var(--card-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

code {
  padding: 0.14rem 0.38rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-family:
    "SFMono-Regular",
    ui-monospace,
    monospace;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: center;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.primary-link {
  background: var(--ivory);
  color: var(--ink);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--card-text);
  background: rgba(255, 255, 255, 0.04);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.tools-body .hero-card {
  min-height: 340px;
}

.tools-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.tool-tile {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-tile h2 {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.tool-tile p {
  margin: 12px 0 0;
  color: var(--card-muted);
  line-height: 1.65;
}

.tool-tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.site-footer {
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 24px, 1080px);
    padding: 22px 0 44px;
  }

  .shell-centered {
    min-height: 100vh;
    justify-content: center;
  }

  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-brand-centered {
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }
}
