:root {
  --ink: #0b1320;
  --ink-soft: #2c3e53;
  --sky: #0a3f7a;
  --teal: #0f766e;
  --paper: #f7fbff;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(10, 63, 122, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(15, 118, 110, 0.24), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(10, 63, 122, 0.24), transparent 32%),
    linear-gradient(150deg, #eaf3ff 0%, #f6fbff 40%, #edf7ff 100%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 31px, rgba(11, 19, 32, 0.045) 32px),
    linear-gradient(90deg, transparent 31px, rgba(11, 19, 32, 0.045) 32px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 78%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.brand {
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.95rem;
  color: var(--sky);
  text-decoration: none;
  font-weight: 500;
}

.site-header nav {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.site-header nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

main {
  padding: 1rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 22px;
  padding: clamp(1rem, 2.8vw, 2rem);
  box-shadow: 0 18px 38px rgba(11, 19, 32, 0.1);
  backdrop-filter: blur(8px);
}

.eyebrow,
.section-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--teal);
}

.hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.05;
  max-width: 15ch;
}

.lead {
  margin-top: 1rem;
  max-width: 66ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero-note {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.credibility-row {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.credibility-row span {
  border: 1px solid rgba(10, 63, 122, 0.2);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.74rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--sky), #165da8);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(10, 63, 122, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(10, 63, 122, 0.36);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--sky);
  background: #ffffff;
}

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

.metrics article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 63, 122, 0.16);
  border-radius: 14px;
  padding: 0.85rem;
}

.metrics h2 {
  margin: 0;
  font-size: 1rem;
}

.metrics p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}

.panel h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

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

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

.card {
  border: 1px solid rgba(10, 63, 122, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem;
}

.card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.card p {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.step-card {
  position: relative;
}

.step-number {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 63, 122, 0.12);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
}

.message-block {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: rgba(10, 63, 122, 0.05);
  border: 1px solid rgba(10, 63, 122, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
}

.workflow-list {
  margin: 0.95rem 0 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.workflow-list li {
  margin: 0.32rem 0;
}

.demo-shell {
  margin-top: 1rem;
}

.demo-track {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-step {
  border: 1px solid rgba(10, 63, 122, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.8rem;
  opacity: 0.6;
  transition: opacity 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.demo-step span {
  display: inline-flex;
  width: 1.4rem;
  height: 1.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 63, 122, 0.12);
  color: var(--sky);
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-step h3 {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
}

.demo-step p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.demo-step.is-active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 63, 122, 0.15);
  border-color: rgba(10, 63, 122, 0.32);
}

.demo-panels {
  margin-top: 0.8rem;
  position: relative;
  min-height: 210px;
}

.demo-output {
  display: none;
}

.demo-output.is-active {
  display: block;
}

.demo-note {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.pilot-note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.package {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.package .tier {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 800;
}

.package .price {
  margin: 0.35rem 0 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--sky);
}

.package ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.package.featured {
  border: 1px solid rgba(10, 63, 122, 0.36);
  box-shadow: 0 10px 20px rgba(10, 63, 122, 0.14);
}

.pricing-note {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.package-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.package-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 63, 122, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.package-table th,
.package-table td {
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(10, 63, 122, 0.1);
  font-size: 0.92rem;
}

.package-table thead th {
  background: rgba(10, 63, 122, 0.08);
  color: var(--ink);
}

.package-table tbody tr:last-child td {
  border-bottom: none;
}

.checklist {
  margin: 0.95rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.contact p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 1.6rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  animation: rise 550ms ease forwards;
}

.panel.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.panel.reveal:nth-of-type(3) {
  animation-delay: 180ms;
}

.panel.reveal:nth-of-type(4) {
  animation-delay: 240ms;
}

.panel.reveal:nth-of-type(5) {
  animation-delay: 300ms;
}

.panel.reveal:nth-of-type(6) {
  animation-delay: 340ms;
}

.panel.reveal:nth-of-type(7) {
  animation-delay: 380ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .grid.two-col {
    grid-template-columns: 1fr;
  }

  .grid.three-col {
    grid-template-columns: 1fr;
  }

  .demo-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    gap: 0.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
