/* ==========================================================
   MAGPY home — landing page for the tool family
   Same editorial cartography theme as Atlas / Crate / Folio.
   ========================================================== */
:root {
  --atlas-bg: #1c1815;
  --atlas-surface: #211d1a;
  --atlas-elevated: #28231f;
  --atlas-elevated-2: #322d28;
  --atlas-border: #322d27;
  --atlas-border-strong: #56504a;
  --atlas-text: #f0eadd;
  --atlas-text-2: #d4cebf;
  --atlas-muted: #a09a8c;
  --atlas-dim: #6e685e;
  --atlas-active: #ece6d8;
  --atlas-emerald: #8aab8e;
  --atlas-amber: #c4a575;
  --atlas-paper: #ffffff;
  --font-display: "Geist", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  background: var(--atlas-bg);
  color: var(--atlas-text);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Subtle warm vignette so the bg has presence rather than flat */
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(196, 165, 117, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(138, 171, 142, 0.04) 0%, transparent 50%);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  min-height: 100vh;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--atlas-muted);
  letter-spacing: 0.32em;
  text-transform: lowercase;
}

.hero-wordmark {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  line-height: 0.92;
  font-weight: 400;
}
.hero-emblem {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.hero-name {
  font-family: "Righteous", "Geist", sans-serif;
  font-size: 84px;
  letter-spacing: 0.012em;
  color: var(--atlas-text);
}

.hero-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--atlas-dim);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================================
   Tool tiles
   ========================================================== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tile {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-border);
  border-radius: 10px;
  padding: 26px 24px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
  min-height: 280px;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--atlas-border-strong);
  background: var(--atlas-elevated);
}

.tile-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
}

.tile-text { flex: 1; }
.tile-name {
  margin: 0 0 4px;
  font-family: "Righteous", "Geist", sans-serif;
  font-size: 32px;
  letter-spacing: 0.012em;
  color: var(--atlas-text);
  font-weight: 400;
  line-height: 1;
}
.tile-tagline {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--atlas-amber);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.tile-desc {
  margin: 0;
  font-size: 13px;
  color: var(--atlas-text-2);
  line-height: 1.5;
}

.tile-go {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--atlas-muted);
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.12s, gap 0.12s;
}
.tile:hover .tile-go {
  color: var(--atlas-text);
  gap: 10px;
}
.tile-go .arrow {
  font-style: normal;
  font-size: 16px;
  transition: transform 0.12s;
}
.tile:hover .tile-go .arrow {
  transform: translateX(2px);
}

/* ==========================================================
   Footer
   ========================================================== */
.hero-foot {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--atlas-border);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--atlas-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .hero { padding: 56px 22px 28px; gap: 48px; }
  .tiles { grid-template-columns: 1fr; gap: 16px; }
  .hero-name { font-size: 64px; }
  .hero-emblem { width: 60px; height: 60px; }
  .tile { min-height: 0; padding: 22px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 16px 24px; gap: 36px; }
  .hero-name { font-size: 52px; }
  .hero-emblem { width: 50px; height: 50px; }
  .hero-wordmark { gap: 12px; }
}
