:root {
  --background: #ffffff;
  --ink: #000000;
  --muted: #6f6f6f;
  --hairline: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; background: var(--background); }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-display { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.italic-display { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; color: var(--muted); }

.wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
@media (max-width: 640px) { .wrap { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* Top bar */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand .wordmark { font-size: 1.7rem; letter-spacing: -0.01em; line-height: 1; }
.brand sup { font-size: 0.55em; vertical-align: super; margin-left: 0.1em; }

/* Hero */
.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem 5rem;
}
.eyebrow {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin: 0 0 1.5rem;
}
.headline {
  margin: 0;
  max-width: 60rem;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.subtext {
  margin: 2rem auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* CTA */
.cta-row { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 1.1rem 2.6rem;
  font-size: 1rem; text-decoration: none;
  background: var(--ink); color: #fff;
  transition: transform 200ms ease, background-color 200ms ease;
}
.cta:hover { transform: scale(1.03); }
.cta .arrow { transition: transform 200ms ease; }
.cta:hover .arrow { transform: translateX(3px); }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 1.1rem 2rem;
  font-size: 1rem; text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.2); color: var(--muted);
  transition: color 200ms ease, border-color 200ms ease;
}
.cta-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Footer */
.foot { border-top: 1px solid var(--hairline); }
.foot .inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: 0.78rem; color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; transition: color 200ms ease; }
.foot a:hover { color: var(--ink); }

/* Entrance animation */
@keyframes fadeRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-rise   { opacity: 0; animation: fadeRise 0.8s ease-out forwards; }
.fade-rise-1 { opacity: 0; animation: fadeRise 0.8s ease-out 0.15s forwards; }
.fade-rise-2 { opacity: 0; animation: fadeRise 0.8s ease-out 0.3s forwards; }
@media (prefers-reduced-motion: reduce) { .fade-rise, .fade-rise-1, .fade-rise-2 { animation: none; opacity: 1; } }
