:root {
  --bg: #14110f;
  --bg-2: #1c1815;
  --sand: #e8dfd2;
  --sand-dim: #b9aea0;
  --teal: #2a9d8f;
  --teal-bright: #3dbeb0;
  --ink: #0c0a09;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--sand);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #2a2420 0%, transparent 55%),
    linear-gradient(165deg, var(--bg) 0%, #0f0d0c 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: min(70vw, 34rem);
  height: min(70vw, 34rem);
  left: -12%;
  top: 8%;
  background: color-mix(in srgb, var(--teal) 42%, transparent);
}

.orb-b {
  width: min(55vw, 28rem);
  height: min(55vw, 28rem);
  right: -8%;
  bottom: 12%;
  background: color-mix(in srgb, #c4a574 28%, transparent);
  animation-delay: -6s;
}

.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");
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(3%, -4%, 0) scale(1.06); }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
}

.mark {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.top-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sand-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.top-link:hover {
  color: var(--sand);
  border-color: color-mix(in srgb, var(--sand) 35%, transparent);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vh, 5rem) var(--pad) 4rem;
  max-width: 48rem;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.4rem, 16vw, 7.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--sand);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--sand);
  max-width: 22ch;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  color: var(--sand-dim);
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--teal);
  color: #041412;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--teal) 35%, transparent);
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--teal) 45%, transparent);
}

.hint {
  font-size: 0.88rem;
  color: var(--sand-dim);
}

.how {
  padding: 1rem var(--pad) 4.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
}

.how h2 {
  margin: 2.5rem 0 1.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  max-width: 28rem;
}

.steps .n {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-bright);
  margin-bottom: 0.4rem;
}

.steps strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--sand-dim);
  font-size: 0.98rem;
}

.steps code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  color: var(--sand);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad) calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--sand) 10%, transparent);
  color: var(--sand-dim);
  font-size: 0.92rem;
}

.foot strong {
  color: var(--sand);
  font-family: Fraunces, Georgia, serif;
}

.foot a {
  font-weight: 600;
  color: var(--teal-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.24s; }
.reveal.delay-3 { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .hero {
    max-width: 56rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps li {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
