:root {
  --codi-black: #101211;
  --codi-ivory: #f5f2ea;
  --codi-wine: #641f2a;
  --deep-forest: #173f35;
  --sage-grey: #8d9b90;
  --bg-soft: rgba(245, 242, 234, 0.04);
  --panel-soft: rgba(245, 242, 234, 0.06);
  --border-soft: rgba(245, 242, 234, 0.18);
  --shadow-soft: rgba(16, 18, 17, 0.35);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--codi-black);
  color: var(--codi-ivory);
  font-family: "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: -0.03em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 2vw, 2.5rem) 3.5rem;
  isolation: isolate;
}

.background-grid,
.background-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background-grid {
  background-image:
    linear-gradient(rgba(245, 242, 234, 0.025), rgba(245, 242, 234, 0.025)),
    linear-gradient(90deg, rgba(245, 242, 234, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(245, 242, 234, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
  opacity: 0.38;
}

.background-orb {
  filter: blur(70px);
  opacity: 0.12;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-one {
  width: 28rem;
  height: 28rem;
  background: var(--codi-wine);
  top: 8%;
  left: 8%;
}

.orb-two {
  width: 32rem;
  height: 32rem;
  background: var(--deep-forest);
  right: 8%;
  bottom: 8%;
  animation-delay: 1.4s;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1.25rem;
}

.brand {
  width: clamp(8rem, 14vw, 11rem);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 2rem);
  color: rgba(245, 242, 234, 0.76);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 234, 0.58);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 44rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 0 2rem;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.52rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(245, 242, 234, 0.02);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.74);
  backdrop-filter: blur(8px);
}

.hero-logo-wrap {
  width: min(70vw, 760px);
  margin: 1.5rem auto 0;
}

.hero-logo {
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(245, 242, 234, 0.08));
}

.hero-title {
  margin: 1rem 0 0;
  font-size: clamp(2.35rem, 6vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.word-rotator {
  display: inline-block;
  min-width: 4.3ch;
  color: var(--codi-ivory);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.word-rotator.is-changing {
  opacity: 0.15;
  transform: translateY(-4px);
}

.hero-copy {
  width: min(100%, 760px);
  margin: 1.4rem auto 0;
  color: rgba(245, 242, 234, 0.78);
  font-size: clamp(1rem, 1.65vw, 1.38rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 2rem;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: 999px;
  background: rgba(245, 242, 234, 0.04);
  color: var(--codi-ivory);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-cta:hover,
.primary-cta:focus-visible {
  transform: translateY(-1px);
  background: rgba(245, 242, 234, 0.08);
  border-color: rgba(245, 242, 234, 0.36);
}

.info-panel,
.made-for,
.steps,
.future {
  position: relative;
  padding: 3.5rem 0;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
}

.section-heading {
  margin-bottom: 1.5rem;
}

.lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.06em;
  color: rgba(245, 242, 234, 0.92);
}

.made-for-stack {
  position: relative;
  min-height: 9.25rem;
  display: grid;
  place-items: center;
}

.made-for-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 18px));
  opacity: 0;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.made-for-line.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.steps-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(245, 242, 234, 0.08);
}

.step-number {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--sage-grey);
  letter-spacing: -0.06em;
}

.steps-list p {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.future {
  padding-bottom: 2rem;
}

.future-text {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(245, 242, 234, 0.9);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(245, 242, 234, 0.12);
}

.footer-brand-wrap {
  width: min(52vw, 200px);
}

.footer-brand-logo {
  width: 100%;
}

.footer-tagline {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: rgba(245, 242, 234, 0.7);
  letter-spacing: -0.02em;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.3rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.72);
}

.social-links a {
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.social-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: rgba(245, 242, 234, 0.5);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.social-links a:hover::after,
.social-links a:focus-visible::after {
  transform: scaleX(1);
}

.copyright {
  margin: 0;
  color: rgba(245, 242, 234, 0.62);
  letter-spacing: 0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(28px, -18px, 0) scale(1.08);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 1.3rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .hero {
    min-height: 32rem;
    padding-top: 2rem;
  }

  .hero-logo-wrap {
    width: min(82vw, 540px);
  }

  .hero-copy {
    max-width: 28rem;
  }

  .made-for-stack {
    min-height: 7rem;
  }

  .steps-list li {
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.9rem;
  }

  .steps-list p {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
