:root {
  --bg-color: #f9fbff;
  --text-color: #0b1224;
  --muted-text: #475569;
  --accent-color: #2f76f3;
  --accent-strong: #1f5ac4;
  --accent-soft: #e7efff;
  --card-color: #ffffff;
  --border-color: #e4e8f5;
  --shadow: 0 12px 36px rgba(11, 18, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

section {
  scroll-margin-top: 80px;
}

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

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text-color);
  text-decoration: none;
  user-select: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px rgba(47, 118, 243, 0.18);
}

.logo-mark svg {
  width: 28px;
  height: 28px;
}

.logo-text {
  display: inline-block;
  transition: color 0.2s ease;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted-text);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text-color);
  background: var(--accent-soft);
}

.site-nav a.active {
  color: var(--accent-color);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-color);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 96px 0 80px;
  background: radial-gradient(900px at 12% 20%, rgba(47, 118, 243, 0.18), transparent),
    radial-gradient(600px at 85% 10%, rgba(56, 189, 248, 0.16), transparent),
    linear-gradient(145deg, #fdfdff 0%, #f4f8ff 100%);
}

.hero-content {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 28px;
}

.hero-visual {
  display: grid;
  gap: 14px;
  margin-top: clamp(12px, 2vw, 22px);
}

.visual-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(47, 118, 243, 0.18);
}

.code-label {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.code-block {
  background: #0b1224;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.code-line {
  padding: 3px 0;
}

.visual-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
  width: 100%;
}

.visual-flow > * {
  flex: 0 0 auto;
}

.flow-node {
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(47, 118, 243, 0.08);
  color: var(--text-color);
  font-weight: 700;
  border: 1px solid rgba(47, 118, 243, 0.12);
}

.flow-node.accent {
  background: rgba(47, 118, 243, 0.12);
  border-color: rgba(47, 118, 243, 0.35);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.flow-connector {
  height: 2px;
  width: 26px;
  background: var(--accent-color);
}

.flow-connector.dotted {
  background: repeating-linear-gradient(90deg, var(--accent-color), var(--accent-color) 4px, transparent 4px, transparent 8px);
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.visual-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 18, 36, 0.12);
}

.trust-logos {
  margin-top: 14px;
  color: var(--muted-text);
}

.logo-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 118, 243, 0.1);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-color);
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 6px 0 12px;
  line-height: 1.15;
}

.subhead {
  color: var(--muted-text);
  max-width: 650px;
  margin: 0 0 12px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0;
}

.social-proof {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.section {
  padding: 72px 0;
}

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

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.motion-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section.muted {
  position: relative;
  overflow: hidden;
  background: #f6f9ff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section.muted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("contact-bg.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
}

.section.muted .container {
  position: relative;
  z-index: 1;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted-text);
}

.spec-section {
  background: radial-gradient(900px at 12% 18%, rgba(47, 118, 243, 0.14), transparent),
    linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.spec-card,
.spec-outcome {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.spec-code-block {
  margin-top: 10px;
  margin-bottom: 10px;
}

.spec-code-block pre {
  margin: 0;
  white-space: pre;
  line-height: 1.5;
  font-size: 0.92rem;
  overflow-x: auto;
}

.spec-note {
  margin: 6px 0 0;
  color: var(--muted-text);
}

.spec-outcome {
  background: linear-gradient(135deg, #f8fbff 0%, #eef3ff 100%);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit);
  gap: 12px;
}

.outcome-card {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(11, 18, 36, 0.05);
  display: grid;
  gap: 6px;
}

.motion-ready .outcome-card {
  animation: softLift 14s ease-in-out infinite alternate;
}

.outcome-card h4 {
  margin: 0 0 6px;
}

.outcome-card p {
  margin: 0;
  color: var(--muted-text);
}

.outcome-card-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.outcome-chip {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f7f9ff;
  border: 1px solid var(--border-color);
  display: grid;
  place-items: center;
  padding: 8px;
}

.outcome-chip.chip-cluster {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
  padding: 8px;
}

.outcome-chip.chip-cluster span {
  border: 2px solid var(--accent-color);
  border-radius: 6px;
  width: 100%;
  height: 100%;
}

.outcome-chip.chip-table {
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
  padding: 10px 8px;
}

.outcome-chip.chip-table span {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--accent-color);
}

.outcome-chip.chip-schedule {
  position: relative;
}

.outcome-chip.chip-schedule span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-color);
  display: block;
  position: relative;
  background: #fff;
}

.outcome-chip.chip-schedule span::before,
.outcome-chip.chip-schedule span::after {
  content: "";
  position: absolute;
  background: var(--accent-color);
  border-radius: 2px;
}

.outcome-chip.chip-schedule span::before {
  width: 2px;
  height: 7px;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.outcome-chip.chip-schedule span::after {
  width: 7px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
}

.outcome-chip.chip-pipeline {
  position: relative;
}

.outcome-chip.chip-pipeline span {
  width: 26px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--accent-color);
  position: relative;
}

.outcome-diagram {
  display: grid;
  grid-template-columns: repeat(7, max-content);
  align-items: center;
  gap: 8px;
}

.outcome-node {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-weight: 700;
  color: var(--text-color);
}

.outcome-node.accent {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.outcome-connector {
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
}

.features-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 30px;
}

.card {
  background: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature h3 {
  margin: 0;
}

.feature p {
  margin: 0;
  color: var(--muted-text);
}

.feature-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.diagram-card {
  background: #0b1224;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(11, 18, 36, 0.4);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px 0;
}

.motion-ready .visual-card,
.motion-ready .diagram-card {
  animation: gentleFloat 12s ease-in-out infinite alternate;
}

.diagram-header {
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.diagram-body {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.diagram-body > * {
  flex: 0 0 auto;
}

.diagram-node {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.diagram-node.accent {
  background: rgba(47, 118, 243, 0.2);
  border-color: rgba(47, 118, 243, 0.4);
  color: #e7efff;
}

.diagram-connector {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.diagram-connector.dotted {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.5) 4px,
    transparent 4px,
    transparent 8px
  );
}

.diagram-note {
  margin: 12px 0 0;
  color: #cbd5e1;
}

.feature-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 18, 36, 0.12);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 14px;
  background: var(--card-color);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 28px rgba(11, 18, 36, 0.06);
}

.motion-ready .step {
  animation: gentleFloat 16s ease-in-out infinite alternate;
}

.step-number {
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-color);
  font-weight: 700;
  flex-shrink: 0;
}

.step-code-block,
.plan-block {
  margin-top: 10px;
  padding: 12px;
  font-size: 0.9rem;
}

.step-code-block pre {
  margin: 0;
  white-space: pre;
}

.plan-block {
  display: grid;
  gap: 6px;
}

.plan-line {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: #e2e8f0;
  line-height: 1.5;
}

.plan-line.added {
  color: #22c55e;
}

.plan-line.changed {
  color: #fbbf24;
}

.outcome-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.outcome-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #e2e8f0;
}

.outcome-icon p {
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.85);
}

.db-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(47, 118, 243, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  padding: 8px;
}

.db-icon-cluster {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
}

.db-icon-cluster span {
  background: #8fb8ff;
  border-radius: 4px;
}

.db-icon-table {
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  align-content: center;
}

.db-icon-table span {
  background: #e7efff;
  border-radius: 3px;
  height: 6px;
  width: 100%;
}

.db-icon-policy {
  position: relative;
}

.db-icon-policy span {
  width: 20px;
  height: 26px;
  background: linear-gradient(180deg, #8fb8ff, #2f76f3);
  border-radius: 8px 8px 6px 6px;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  clip-path: polygon(50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%, 0 18%);
}

.flow-illustration {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.flow-lane {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.lane-label {
  font-weight: 700;
  color: var(--muted-text);
}

.lane-box {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

.lane-box.muted {
  background: var(--accent-soft);
  color: var(--accent-color);
}

.lane-box.accent {
  background: var(--accent-soft);
  color: var(--text-color);
  border-color: var(--accent-color);
}

.flow-arrow {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-strong));
  position: relative;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -5px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--accent-strong);
}

.pricing-card h3 {
  margin: 0 0 8px;
}

.pricing-card .price {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
}

.pricing-card ul {
  padding-left: 18px;
  color: var(--muted-text);
  margin: 0 0 16px;
}

.pricing-card li {
  margin-bottom: 6px;
}

.pricing-card.highlight {
  border: 2px solid var(--accent-color);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

#contact {
  background: var(--bg-color);
}

#contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#contact .section-heading {
  text-align: center;
}

#contact .contact-actions {
  justify-content: center;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 118, 243, 0.25);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--accent-strong);
}

.btn.secondary,
.btn.ghost {
  background: #fff;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn.secondary:hover,
.btn.secondary:focus-visible,
.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--accent-color);
  color: var(--accent-strong);
}

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

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(180deg, #fdfdff 0%, #f4f7ff 100%);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-text);
}

.footer a {
  color: inherit;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--accent-color);
}

@keyframes gentleFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes softLift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .motion-ready .reveal,
  .motion-ready .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 820px) {
  .nav-bar {
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    right: 4%;
    top: 64px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 12px;
    gap: 6px;
  }

  .site-nav a {
    display: block;
  }

  .site-nav.open {
    display: block;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .flow-illustration {
    grid-template-columns: 1fr;
    justify-items: center;
  }

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

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .outcome-diagram {
    grid-template-columns: repeat(5, max-content);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .hero-visual {
    margin-top: 0;
  }

  .spec-card,
  .spec-outcome {
    padding: 14px;
  }

  .spec-code-block pre {
    font-size: 0.85rem;
  }

  .flow-illustration {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .outcome-diagram {
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
  }
}
