:root {
  --bg: #f4f1e8;
  --bg-soft: #ebe5d8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-dark: #0c0d12;
  --text: #0f1014;
  --text-soft: #5f5f68;
  --line: rgba(17, 18, 24, 0.12);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #f24ba8;
  --accent-soft: rgba(242, 75, 168, 0.14);
  --hero-text: #f6f2ea;
  --radius: 1.5rem;
  --shadow: 0 24px 80px rgba(11, 12, 17, 0.22);
  --max-width: 1380px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(242, 75, 168, 0.1), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, var(--bg) 26%, #f1ecdf 100%);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 16, 20, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 16, 20, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}

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

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 30;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
}

.skip-link:focus-visible {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  transition:
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(244, 241, 232, 0.72);
  border-bottom: 1px solid rgba(17, 18, 24, 0.08);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-lockup__mark {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0.12rem, transparent 0.16rem),
    linear-gradient(135deg, var(--accent), #ff91ca);
  box-shadow: 0 0 0 0.3rem rgba(242, 75, 168, 0.12);
}

.site-nav {
  display: inline-flex;
  justify-self: center;
  gap: 1.5rem;
  color: rgba(15, 16, 20, 0.82);
}

.site-nav a,
.header-cta,
.nav-toggle {
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.95rem;
}

.nav-toggle__bars {
  display: grid;
  gap: 0.35rem;
}

.nav-toggle__bars span {
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.button:focus-visible,
.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.text-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 75, 168, 0.2);
}

.button--primary {
  background: var(--accent);
  color: #120b11;
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  background: #ff63b6;
}

.button--secondary,
.button--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
}

.site-header .button--ghost {
  border-color: rgba(15, 16, 20, 0.14);
  background: rgba(255, 255, 255, 0.52);
}

.button--secondary:hover,
.button--secondary:focus-visible,
.button--ghost:hover,
.button--ghost:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 75, 168, 0.4);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  background:
    linear-gradient(180deg, #0b0c11 0%, #0e1016 52%, #151720 100%);
  color: var(--hero-text);
}

.hero__grid,
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
  opacity: 0.18;
}

.hero__glow--one {
  background: radial-gradient(circle at 78% 26%, rgba(242, 75, 168, 0.34), transparent 26%);
}

.hero__glow--two {
  background: radial-gradient(circle at 18% 82%, rgba(242, 75, 168, 0.12), transparent 34%);
}

.hero__inner,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero__inner {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
  padding: clamp(6.25rem, 8vw, 8rem) 0 3rem;
}

.hero__content {
  max-width: 34rem;
}

.hero__brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 17vw, 12rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.workflow-intro h2,
.plan h3,
.final-cta h2 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 11ch;
  margin-top: 1.2rem;
  font-size: clamp(2.2rem, 4.8vw, 4.9rem);
}

.hero__copy,
.section-head p,
.control-copy p,
.workflow-intro p,
.plan__detail,
.final-cta p {
  color: rgba(246, 242, 234, 0.78);
  font-size: 1.08rem;
}

.hero__copy {
  max-width: 34rem;
  margin: 1.4rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__microproof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__microproof li {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 242, 234, 0.8);
  font-size: 0.93rem;
}

.hero__stage {
  position: relative;
  perspective: 1400px;
}

.stage-shell {
  position: relative;
  max-width: 720px;
  margin-left: auto;
  transform:
    rotate(-8deg)
    translate3d(calc(var(--pointer-x, 0) * 18px), calc(var(--pointer-y, 0) * 18px), 0);
  transform-origin: center;
  transition: transform 220ms ease-out;
}

.stage-shell__graphic {
  filter: drop-shadow(0 40px 90px rgba(0, 0, 0, 0.42));
}

.stage-label,
.stage-note {
  position: absolute;
  max-width: 14rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 13, 18, 0.84);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.stage-label span,
.stage-note {
  color: rgba(246, 242, 234, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-label strong {
  display: block;
  margin-top: 0.45rem;
  color: var(--hero-text);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}

.stage-label--intake {
  top: 8%;
  left: 0;
}

.stage-label--policy {
  top: 40%;
  right: -3%;
}

.stage-label--ship {
  bottom: 10%;
  left: 8%;
}

.stage-note {
  right: 8%;
  bottom: -0.5rem;
  max-width: 17rem;
  line-height: 1.4;
}

.section {
  padding: clamp(5rem, 7vw, 7rem) 0;
}

.section--light {
  color: var(--text);
}

.section--light .eyebrow {
  color: rgba(15, 16, 20, 0.5);
}

.section--light p {
  color: var(--text-soft);
}

.section--dark {
  width: 100%;
  background: #0f1117;
  color: var(--hero-text);
}

.section--dark .control-grid {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section--dark .eyebrow {
  color: rgba(246, 242, 234, 0.56);
}

.section-head {
  max-width: 42rem;
}

.section-head h2,
.control-copy h2,
.workflow-intro h2,
.final-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.section-head p:last-child,
.control-copy p:last-child,
.workflow-intro p:last-child,
.final-cta p {
  margin-top: 1.2rem;
  max-width: 38rem;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.2rem;
}

.capability {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.capability__index {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(15, 16, 20, 0.42);
}

.capability h3,
.workflow-steps h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.capability p:last-child,
.workflow-steps p,
.plan ul,
.comparison__row span {
  margin-top: 0.9rem;
  font-size: 1rem;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
  padding: clamp(5rem, 7vw, 7rem) 0;
}

.comparison {
  border-top: 1px solid var(--line-strong);
}

.comparison__head,
.comparison__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  padding: 1.2rem 0;
}

.comparison__head {
  color: rgba(246, 242, 234, 0.52);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.comparison__row {
  border-top: 1px solid var(--line-strong);
}

.comparison__row span:last-child {
  color: var(--hero-text);
}

.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.workflow-steps li > span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: rgba(15, 16, 20, 0.42);
}

.pricing-section {
  padding-top: 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.plan {
  padding: 1.35rem 0 0;
  border-top: 2px solid rgba(15, 16, 20, 0.12);
}

.plan--featured {
  border-top-color: var(--accent);
}

.plan__name {
  margin: 0;
  color: rgba(15, 16, 20, 0.46);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan h3 {
  margin-top: 0.8rem;
  font-size: 1.8rem;
}

.plan ul {
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  margin-top: 1.4rem;
  font-weight: 600;
}

.final-cta {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at top, rgba(242, 75, 168, 0.18), transparent 30%),
    linear-gradient(180deg, #151720 0%, #0c0d12 100%);
  color: var(--hero-text);
}

.final-cta__inner {
  width: min(calc(100% - 2rem), 60rem);
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 1.5rem 0 2.2rem;
  color: rgba(15, 16, 20, 0.56);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    position: fixed;
    inset: 5.5rem 1rem auto;
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(15, 16, 20, 0.08);
    border-radius: 1.25rem;
    background: rgba(248, 245, 238, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .hero__inner,
  .control-grid,
  .workflow-layout,
  .pricing-grid,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    gap: 2.5rem;
    padding-top: 7.5rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .stage-shell {
    max-width: 640px;
    margin: 0 auto;
  }

  .section-head,
  .control-copy,
  .workflow-intro {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .hero__inner,
  .section,
  .site-footer {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .hero__brand {
    font-size: clamp(4rem, 24vw, 6.4rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero__microproof {
    flex-direction: column;
  }

  .stage-shell {
    transform: none;
  }

  .stage-label {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }

  .stage-note {
    position: static;
    max-width: none;
    margin-top: 0.8rem;
  }

  .comparison__head,
  .comparison__row {
    grid-template-columns: 1fr;
  }

  .workflow-steps li {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .site-footer {
    padding-bottom: 1.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .stage-shell {
    transform: none;
  }
}
