:root {
  --bg: #0c0e12;
  --bg-deep: #08090c;
  --panel: #14171f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f0e8;
  --muted: #9b968b;
  --accent: #f5b942;
  --accent-2: #ff6b35;
  --font-ui: "Sora", system-ui, sans-serif;
  --font-display: "Bebas Neue", "Sora", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ui);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(8, 9, 12, 0.88), rgba(8, 9, 12, 0));
  pointer-events: none;
}

.top > * {
  pointer-events: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background:
    linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.28);
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 28% 22%;
  border: 2px solid rgba(12, 14, 18, 0.75);
  border-radius: 0.2rem;
  border-left-width: 3px;
  border-right-width: 3px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
}

.top-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: #1a1208;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.top-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.35);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.92) 0%, rgba(8, 9, 12, 0.72) 42%, rgba(8, 9, 12, 0.35) 70%, rgba(8, 9, 12, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.35) 0%, rgba(8, 9, 12, 0.15) 35%, rgba(8, 9, 12, 0.92) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(245, 185, 66, 0.16), transparent 50%);
}

.hero-copy {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto 0 clamp(1.25rem, 5vw, 4.5rem);
  padding: 7.5rem 0 4.5rem;
  animation: rise 0.9s var(--ease) both;
}

.brand-display {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff6e4 10%, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-display.sm {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 14ch;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary,
.btn-ghost {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-primary {
  color: #1a1208;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 36px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 53, 0.4);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost strong {
  margin-left: 0.35rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.copied {
  margin-left: 0.45rem;
  color: #5dce8f;
  font-size: 0.8rem;
  font-weight: 500;
}

.hint {
  margin: 1rem 0 0;
  color: rgba(155, 150, 139, 0.9);
  font-size: 0.85rem;
}

.flow,
.capabilities,
.closing {
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 4.5rem);
}

.flow {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(245, 185, 66, 0.08), transparent 45%),
    var(--bg-deep);
}

.capabilities {
  background:
    linear-gradient(180deg, rgba(20, 23, 31, 0.55), transparent),
    var(--bg);
}

.closing {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(255, 107, 53, 0.14), transparent 50%),
    var(--bg-deep);
}

.flow h2,
.capabilities h2,
.closing h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0 0 2.4rem;
  max-width: 38ch;
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: none;
}

.steps li {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
  animation: rise 0.8s var(--ease) both;
}

.steps li:nth-child(2) {
  animation-delay: 0.08s;
}

.steps li:nth-child(3) {
  animation-delay: 0.16s;
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.steps h3,
.cap-list h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
}

.steps p,
.cap-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cap-list li {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.closing-inner {
  max-width: 42rem;
}

.share-block {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d8d2c4;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem) 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (max-width: 900px) {
  .steps,
  .cap-list {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    margin-left: clamp(1.25rem, 5vw, 2rem);
    padding-bottom: 3.5rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(8, 9, 12, 0.45) 0%, rgba(8, 9, 12, 0.55) 40%, rgba(8, 9, 12, 0.96) 100%),
      radial-gradient(ellipse at 50% 100%, rgba(245, 185, 66, 0.14), transparent 55%);
  }

  .hero-media img {
    object-position: 65% top;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-copy,
  .steps li {
    animation: none;
  }
}
