:root {
  --bg-deep: #141816;
  --bg-mid: #1c2420;
  --ink: #e8ebe6;
  --ink-muted: #9aa39a;
  --accent: #c4a35a;
  --accent-soft: rgba(196, 163, 90, 0.18);
  --line: rgba(232, 235, 230, 0.12);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -10%, #2a3a32 0%, transparent 55%),
    radial-gradient(900px 600px at 95% 10%, #3a3224 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 55%, #121614 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  animation: rise 0.9s ease-out both;
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  animation: fade 1.1s ease-out both;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 2rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-muted);
  animation: fade 1.2s 0.1s ease-out both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  animation: fade 1.2s 0.2s ease-out both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1610;
  cursor: default;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--accent-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

footer {
  position: relative;
  z-index: 1;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

footer a:hover {
  color: var(--accent);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .brand,
  .lede,
  .cta {
    animation: none;
  }
}
