:root {
  --ink: #12151c;
  --ink-soft: #1a1f2a;
  --paper: #f2ebe0;
  --paper-dim: rgba(242, 235, 224, 0.72);
  --paper-faint: rgba(242, 235, 224, 0.45);
  --copper: #d4894a;
  --copper-bright: #e8a56a;
  --line: rgba(242, 235, 224, 0.14);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 12% 18%, #2a3344 0%, transparent 55%),
    radial-gradient(90% 70% at 88% 78%, #3a2818 0%, transparent 50%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 48%, #0e1016 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(212, 137, 74, 0.45), transparent 70%);
}

.orb-b {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  right: -12%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(90, 120, 150, 0.35), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  max-width: 44rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.55rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}

.headline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.headline em {
  font-style: italic;
  color: var(--copper-bright);
  font-weight: 650;
}

.lede {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--paper-dim);
  max-width: 36ch;
  font-weight: 400;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.35rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-primary {
  color: var(--ink);
  background: var(--copper);
  box-shadow: 0 10px 28px rgba(212, 137, 74, 0.22);
}

.btn-primary:hover {
  background: var(--copper-bright);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.cta-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--paper-faint);
  letter-spacing: 0.01em;
}

.privacy {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--paper-faint);
  max-width: 38ch;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -18px, 0) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .brand,
  .headline,
  .lede,
  .cta,
  .privacy {
    animation: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .headline {
    max-width: none;
  }
}
