:root {
  --ink: #071018;
  --ink-2: #0d1a24;
  --fog: #d7e0e8;
  --mist: #8fa3b3;
  --paper: #f4f7f9;
  --teal: #1fc8a0;
  --teal-deep: #0f8f72;
  --signal: #e8ff6a;
  --line: rgba(215, 224, 232, 0.12);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
}

.site-nav--solid {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(10px);
}

.site-nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  opacity: 0.85;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fog);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--paper);
  border-color: var(--teal);
}

.site-footer a {
  color: var(--fog);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-footer a:hover {
  color: var(--paper);
  border-color: var(--teal);
}

/* —— Hero: one composition —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050b11;
}

.hero__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(5, 11, 17, 0.97) 0%, rgba(5, 11, 17, 0.82) 38%, rgba(5, 11, 17, 0.2) 68%, rgba(5, 11, 17, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 11, 17, 0.45) 0%, transparent 30%, rgba(5, 11, 17, 0.88) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  padding: clamp(7rem, 16vh, 9rem) clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 9vh, 5.5rem);
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--paper);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--fog);
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 34ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: var(--mist);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--teal);
  color: #04221a;
}

.btn--primary:hover {
  background: #34dfb4;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(215, 224, 232, 0.28);
  color: var(--paper);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stream {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-node {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.hero__brand,
.hero__headline,
.hero__lede,
.hero__actions {
  opacity: 0;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__brand {
  animation-delay: 80ms;
}

.hero__headline {
  animation-delay: 200ms;
}

.hero__lede {
  animation-delay: 320ms;
}

.hero__actions {
  animation-delay: 440ms;
}

.stream-path {
  stroke-dasharray: 8 10;
  animation: stream 4.5s linear infinite;
}

.node-pulse {
  animation: pulse-node 2.8s ease-in-out infinite;
}

.node-pulse--late {
  animation-delay: 0.9s;
}

@keyframes plate-shift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(6px);
  }
}

.plate-row {
  transform-box: fill-box;
  transform-origin: center;
  animation: plate-shift 5.5s ease-in-out infinite alternate;
}

.plate-row--b {
  animation-delay: 0.6s;
}

.plate-row--c {
  animation-delay: 1.2s;
}

.plate-row--d {
  animation-delay: 1.8s;
}

.plate-row--e {
  animation-delay: 2.2s;
  animation-duration: 7s;
}

/* —— Sections —— */
.section {
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section--tight {
  padding-block: clamp(3.5rem, 8vh, 5.5rem);
}

.section__inner {
  width: min(68rem, 100%);
  margin-inline: auto;
}

.section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section__copy {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
}

.section--promise {
  background:
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-top: 1px solid var(--line);
}

.promise-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .promise-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.promise-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--signal);
}

.promise-stat span {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--mist);
}

.section--steps {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal);
  padding-top: 0.15rem;
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.steps p {
  margin: 0;
  color: var(--mist);
  line-height: 1.55;
  max-width: 38rem;
}

.section--cta {
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(31, 200, 160, 0.2), transparent 55%),
    var(--ink);
  border-top: 1px solid var(--line);
  text-align: center;
}

.section--cta .section__copy {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.section--cta .hero__actions {
  justify-content: center;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--mist);
  font-size: 0.8125rem;
}

.site-footer strong {
  color: var(--fog);
  font-weight: 600;
}

/* —— Pricing —— */
.price-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 5vh, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 70% at 85% 0%, rgba(31, 200, 160, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 100%, rgba(232, 255, 106, 0.06), transparent 50%),
    var(--ink);
}

.price-hero__glow {
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 60%;
  background: radial-gradient(circle, rgba(31, 200, 160, 0.12), transparent 65%);
  pointer-events: none;
}

.price-hero__inner {
  position: relative;
  width: min(42rem, 100%);
}

.price-hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.price-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--fog);
}

.price-hero__lede {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--mist);
}

.billing-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(13, 26, 36, 0.8);
}

.billing-toggle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 0.28rem;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.billing-toggle__btn span {
  margin-left: 0.35rem;
  font-weight: 600;
  color: var(--signal);
  opacity: 0.85;
}

.billing-toggle__btn.is-active {
  background: rgba(31, 200, 160, 0.16);
  color: var(--paper);
}

.section--plans {
  background: var(--ink-2);
}

.plan-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(7, 16, 24, 0.55);
  transition: border-color 180ms ease, transform 180ms ease;
}

.plan:hover {
  border-color: rgba(31, 200, 160, 0.45);
}

.plan--featured {
  border-color: rgba(31, 200, 160, 0.55);
  background:
    linear-gradient(180deg, rgba(31, 200, 160, 0.1), transparent 40%),
    rgba(7, 16, 24, 0.7);
}

.plan__tag {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.plan__blurb {
  margin: 0;
  color: var(--mist);
  line-height: 1.45;
  min-height: 2.9em;
}

.plan__price {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan__period {
  color: var(--mist);
  font-size: 0.9375rem;
}

.plan__meta {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--teal);
}

.plan__features {
  list-style: none;
  margin: 0.5rem 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}

.plan__features li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--fog);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: var(--teal);
}

.plan__cta {
  width: 100%;
  margin-top: auto;
}

.plans-note {
  margin: 1.75rem 0 0;
  max-width: 48rem;
  color: var(--mist);
  font-size: 0.875rem;
  line-height: 1.55;
}

.section--included {
  background: var(--ink);
  border-top: 1px solid var(--line);
}

.included-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.included-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .included-list li {
    grid-template-columns: 16rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.included-list strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.included-list span {
  color: var(--mist);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .hero__content {
    width: 100%;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7, 16, 24, 0.55) 0%, rgba(7, 16, 24, 0.88) 55%, rgba(7, 16, 24, 0.96) 100%);
  }

  .plan__blurb {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  .stream-path,
  .node-pulse,
  .node-pulse--late,
  .plate-row {
    animation: none;
    opacity: 1;
  }

  .btn:hover {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
