:root {
  color-scheme: dark;
  font-family: Geist, Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e8eff9;
  background: #02040a;
  --muted: #a7b4c6;
  --ice: #7fe6ff;
  --line: rgba(190, 220, 255, 0.16);
}

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

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse 760px 410px at 65% 0%, #102333 0%, transparent 100%);
}

h1, h2, h3, h4, p {
  margin: 0;
}

.shell {
  width: min(960px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.section-link {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus-visible,
.section-link span {
  color: var(--ice);
}

.section-link span {
  margin-inline-start: 4px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 760;
  letter-spacing: -0.065em;
}

.wordmark::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--ice);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(127, 230, 255, 0.28);
}

.intro {
  padding-block: clamp(60px, 8.5vw, 112px) clamp(34px, 5.6vw, 72px);
}

.intro h1 {
  font-size: clamp(2rem, 5.6vw, 4.25rem);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.13;
  text-wrap: balance;
}

.intro h1 span {
  color: #b4efff;
}

.intro p {
  max-width: 34rem;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.65;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(44px, 6vw, 76px);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(222, 237, 255, 0.065), rgba(127, 230, 255, 0.018));
}

.plan h2,
.workflow-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2.1875rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.plan-tier {
  margin-block: 14px 24px;
  color: var(--ice);
  font-size: 0.875rem;
  line-height: 1.5;
}

.plan-description {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.workflows {
  padding-block: clamp(32px, 5vw, 56px) clamp(48px, 8vw, 100px);
  border-top: 1px solid var(--line);
}

.workflow-intro {
  max-width: 40rem;
  margin-bottom: 28px;
}

.workflow-intro p,
.workflow-feature p,
.workflow-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.workflow-intro p,
.workflow-feature h3 + p {
  margin-top: 12px;
}

.workflow-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0a121d;
}

.workflow-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #060c16;
}

.workflow-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workflow-media figcaption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #070d17;
  color: var(--muted);
  font-size: 0.75rem;
}

.workflow-feature-copy {
  align-self: center;
  padding: clamp(24px, 4vw, 42px);
}

.workflow-feature h3 {
  font-size: clamp(1.375rem, 2.8vw, 1.9375rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.workflow-output {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.workflow-output strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ice);
  font-size: 0.8125rem;
  font-weight: 600;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.workflow-card {
  padding: clamp(20px, 3vw, 27px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(222, 237, 255, 0.055), rgba(127, 230, 255, 0.014));
}

.workflow-card h3 {
  margin-bottom: 7px;
  font-size: 1.125rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.workflow-process {
  margin-top: clamp(36px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.workflow-process h3 {
  font-size: clamp(1.375rem, 2.8vw, 1.9375rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
  padding-inline-start: 1.375rem;
  list-style-type: decimal-leading-zero;
}

.workflow-steps li::marker {
  color: var(--ice);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.workflow-steps h4 {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.4;
}

.workflow-steps p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.site-footer {
  padding-block: 18px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .workflow-feature.is-visible .workflow-media::after {
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    background: linear-gradient(to bottom, transparent 86%, rgba(127, 230, 255, 0.14) 99%, var(--ice));
    content: "";
    pointer-events: none;
    animation: neighbourhood-scan 2.8s ease-out both;
  }

  .workflow-feature.is-visible .workflow-feature-copy,
  .workflow-grid.is-visible .workflow-card,
  .workflow-process.is-visible .workflow-steps > li {
    animation: workflow-enter 480ms ease-out both;
  }

  .workflow-grid.is-visible .workflow-card:nth-child(2),
  .workflow-process.is-visible .workflow-steps > li:nth-child(2) {
    animation-delay: 70ms;
  }

  .workflow-grid.is-visible .workflow-card:nth-child(3),
  .workflow-process.is-visible .workflow-steps > li:nth-child(3) {
    animation-delay: 140ms;
  }

  .workflow-grid.is-visible .workflow-card:nth-child(4) {
    animation-delay: 210ms;
  }

  @keyframes neighbourhood-scan {
    0% { opacity: 0; transform: translateY(-100%); }
    20% { opacity: 0.85; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(0); }
  }

  @keyframes workflow-enter {
    from { opacity: 0.45; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 64px;
  }

  .intro h1 {
    font-size: clamp(2.25rem, 8.5vw, 3rem);
  }

  .intro p {
    margin-top: 16px;
  }

  .plans {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-feature,
  .workflow-grid,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
