:root {
  --ink: #12100e;
  --ink-soft: #1a1714;
  --fog: #b7a99a;
  --paper: #f3ebe2;
  --heat: #e8a04a;
  --heat-deep: #c47a28;
  --line: rgba(243, 235, 226, 0.12);
  --display: "Fraunces", "Times New Roman", serif;
  --body: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", ui-monospace, monospace;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1000px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--paper);
  font-family: var(--body);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.demo-bar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 235, 226, 0.62);
  background: #0c0a09;
  border-bottom: 1px solid var(--line);
}

.demo-bar a {
  color: var(--heat);
  text-decoration: none;
}

.demo-bar a:hover {
  text-decoration: underline;
}

.top {
  position: fixed;
  inset: 2.1rem 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem var(--pad);
  background: linear-gradient(
    180deg,
    rgba(18, 16, 14, 0.92) 0%,
    rgba(18, 16, 14, 0.35) 70%,
    transparent 100%
  );
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: rgba(243, 235, 226, 0.7);
}

.nav a:hover,
.nav-cta {
  color: var(--heat) !important;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(6.5rem + env(safe-area-inset-top)) var(--pad)
    clamp(2.25rem, 6vw, 4.25rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a1510;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: drift 20s ease-in-out infinite alternate;
  filter: saturate(0.92) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 16, 14, 0.45) 0%,
      rgba(18, 16, 14, 0.55) 40%,
      rgba(18, 16, 14, 0.88) 78%,
      var(--ink) 100%
    ),
    linear-gradient(
      90deg,
      rgba(18, 16, 14, 0.82) 0%,
      rgba(18, 16, 14, 0.3) 55%,
      rgba(18, 16, 14, 0.5) 100%
    );
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.15rem, 8.5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 0.85rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: rgba(243, 235, 226, 0.92);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.lede {
  margin: 0 0 1.4rem;
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--fog);
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--heat);
  color: #1a1208;
  font-weight: 500;
}

.btn-primary:hover {
  background: #f0b15c;
}

.btn-ghost {
  border-color: rgba(243, 235, 226, 0.28);
  color: var(--paper);
  background: rgba(18, 16, 14, 0.4);
}

.btn-ghost:hover {
  border-color: var(--heat);
  color: var(--heat);
}

.section {
  padding: clamp(3.5rem, 10vw, 6.5rem) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  scroll-margin-top: 5rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--heat);
}

.title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2.25rem;
  max-width: 40ch;
  color: var(--fog);
  line-height: 1.65;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.steps strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps span {
  color: var(--fog);
  line-height: 1.55;
}

.close .btn {
  margin-top: 0.15rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 2rem var(--pad) 2.5rem;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(183, 169, 154, 0.75);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.09) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 720px) {
  .steps li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}
