:root {
  --ink: #102126;
  --ink-soft: #37535b;
  --navy: #082835;
  --navy-deep: #041820;
  --teal: #00a7a0;
  --teal-dark: #087a76;
  --mint: #d9f7ef;
  --sky: #dff2ff;
  --paper: #ffffff;
  --panel: #f5f8f8;
  --line: #d8e3e3;
  --gold: #d89d24;
  --green: #188553;
  --shadow: 0 24px 70px rgba(6, 32, 42, 0.16);
  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
}

.landing-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(217, 247, 239, 0.28), rgba(255, 255, 255, 0) 30rem),
    var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 227, 227, 0.85);
  backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.hero-actions,
.btn,
.eyebrow,
.endpoint-row,
.response-header,
.pricing-section {
  display: flex;
  align-items: center;
}

.brand {
  flex: none;
  gap: 0.65rem;
  min-width: max-content;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.site-nav {
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a,
.header-signin {
  text-decoration: none;
}

.site-nav a:hover,
.header-signin:hover {
  color: var(--teal-dark);
}

.header-signin {
  flex: none;
  min-height: 2.5rem;
  padding: 0.66rem 1.05rem;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.94rem;
  font-weight: 700;
  background: var(--paper);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.78fr);
  gap: clamp(2rem, 5vw, 4.75rem);
  align-items: center;
  min-height: clamp(36rem, calc(100vh - 72px), 48rem);
  padding: clamp(4.5rem, 8vw, 7rem) 5vw clamp(3.5rem, 6vw, 5.5rem);
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(4, 24, 32, 0.94) 0%, rgba(8, 40, 53, 0.97) 52%, rgba(10, 67, 70, 0.94) 100%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.84) 52%, transparent 100%);
}

.market-line {
  position: absolute;
  right: -4vw;
  width: min(52vw, 44rem);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 247, 239, 0.76), transparent);
  transform-origin: right center;
}

.market-line::after {
  content: "";
  position: absolute;
  right: 28%;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 167, 160, 0.8);
}

.market-line-one {
  top: 23%;
  transform: rotate(-10deg);
}

.market-line-two {
  top: 49%;
  transform: rotate(8deg);
}

.market-line-three {
  top: 74%;
  transform: rotate(-4deg);
}

.hero-content,
.api-preview {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 48rem;
}

.eyebrow {
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--teal-dark);
}

.hero-content h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(2.65rem, 5.8vw, 5.35rem);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 800;
}

.cutout {
  position: relative;
  display: inline-block;
}

.cutout-swoosh {
  position: absolute;
  left: -5%;
  top: 34%;
  width: 110%;
  height: 38%;
  overflow: visible;
  pointer-events: none;
}

.cutout-swoosh path {
  fill: none;
  stroke: #e0464b;
  stroke-width: 4;
  stroke-linecap: round;
}

.cutout-overlay {
  position: absolute;
  right: -0.4em;
  bottom: -0.6em;
  transform: rotate(-6deg);
  padding: 0.05em 0.5em;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 0.55em;
  line-height: 1.1;
  color: var(--mint);
  white-space: nowrap;
  background: rgba(4, 24, 32, 0.82);
  border: 1px solid rgba(217, 247, 239, 0.35);
  border-radius: 999px;
  pointer-events: none;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.45rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.btn {
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.83rem 1.2rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--navy-deep);
  background: var(--mint);
  border-color: var(--mint);
}

.btn-primary:hover {
  background: #c6f0e6;
  border-color: #c6f0e6;
}

.btn-secondary {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.api-preview {
  width: min(100%, 35rem);
  justify-self: end;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.1rem;
  padding: 0 1rem;
  background: #f1f6f6;
  border-bottom: 1px solid var(--line);
}

.preview-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #c8d7d7;
}

.preview-dot:first-child {
  background: #ff6868;
}

.preview-dot:nth-child(2) {
  background: #ffc65a;
}

.preview-dot:nth-child(3) {
  background: #49c47b;
}

.preview-title {
  margin-left: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.endpoint-row {
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.endpoint-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-pill,
.status-pill {
  flex: none;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.method-pill {
  padding: 0.3rem 0.5rem;
  color: #005b54;
  background: var(--mint);
}

.preview-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.response-card {
  overflow: hidden;
  border: 1px solid #132e35;
  border-radius: 8px;
  background: #071f27;
}

.response-header {
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.8rem;
  padding: 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  padding: 0.24rem 0.52rem;
  color: #bcf7d7;
  background: rgba(24, 133, 83, 0.18);
}

.response-card pre {
  min-height: 12.4rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  color: #dcf7f1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.coverage-panel {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.coverage-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage-panel strong {
  display: block;
  margin-top: 0.15rem;
  color: var(--navy);
  font-size: 1.45rem;
}

.coverage-bars {
  display: grid;
  gap: 0.52rem;
}

.coverage-bars span {
  display: block;
  width: var(--bar-size);
  height: 0.55rem;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: min(90vw, 72rem);
  margin: -2.2rem auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stats-strip div {
  min-height: 8.2rem;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1.4rem;
  background: var(--paper);
  text-align: center;
}

.stats-strip strong {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stats-strip span {
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.products-section {
  padding: clamp(4.5rem, 8vw, 7rem) 5vw;
}

.section-heading {
  max-width: 45rem;
}

.section-heading h2,
.pricing-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product-card {
  min-height: 16rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(16, 33, 38, 0.08);
}

.product-icon {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 8px;
  font-size: 1.25rem;
}

.product-card h3 {
  margin: 1.35rem 0 0.7rem;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pricing-section {
  justify-content: space-between;
  gap: 2rem;
  margin: 0 5vw clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.2rem);
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(8, 40, 53, 0.98), rgba(8, 122, 118, 0.9)),
    var(--navy);
  border-radius: 8px;
}

.pricing-section .eyebrow {
  color: var(--mint);
}

.pricing-section h2 {
  max-width: 46rem;
  color: var(--paper);
}

.pricing-section .btn {
  flex: none;
}

.flow-section {
  padding: clamp(3rem, 6vw, 5rem) 5vw;
  color: var(--paper);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
}

.section-heading-center {
  margin: 0 auto;
  text-align: center;
}

.flow-section h2 {
  color: var(--paper);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.flow-diagram {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  max-width: 50rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) auto 0;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.flow-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.flow-node {
  opacity: 0.9;
}

.flow-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 24rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-column-right {
  align-items: flex-end;
}

.flow-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.48rem 0.85rem;
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.flow-pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 999px;
}

.flow-column-left .flow-pill:nth-child(1) .flow-pill-dot { background: var(--teal); }
.flow-column-left .flow-pill:nth-child(2) .flow-pill-dot { background: var(--gold); }
.flow-column-left .flow-pill:nth-child(3) .flow-pill-dot { background: var(--mint); }
.flow-column-left .flow-pill:nth-child(4) .flow-pill-dot { background: var(--green); }
.flow-column-left .flow-pill:nth-child(5) .flow-pill-dot { background: var(--sky); }

.flow-column-right .flow-pill:nth-child(1) .flow-pill-dot { background: var(--sky); }
.flow-column-right .flow-pill:nth-child(2) .flow-pill-dot { background: var(--mint); }
.flow-column-right .flow-pill:nth-child(3) .flow-pill-dot { background: var(--gold); }
.flow-column-right .flow-pill:nth-child(4) .flow-pill-dot { background: var(--teal); }
.flow-column-right .flow-pill:nth-child(5) .flow-pill-dot { background: var(--green); }

.flow-hub {
  position: relative;
  z-index: 1;
  width: 9.5rem;
  height: 9.5rem;
  display: grid;
  place-items: center;
  justify-self: center;
}

.flow-hub-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  animation: hub-pulse 3.6s ease-in-out infinite;
}

.flow-hub-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 7.2rem;
  height: 7.2rem;
  text-align: center;
  background: linear-gradient(160deg, var(--teal), var(--navy) 78%);
  border: 2px solid rgba(0, 167, 160, 0.4);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(6, 32, 42, 0.5);
}

.flow-hub-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--paper);
  border-radius: 7px;
}

.flow-hub-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper);
}

@keyframes hub-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.85; }
}

@media (max-width: 1100px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .api-preview {
    justify-self: start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-diagram {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 1.25rem;
  }

  .flow-lines {
    display: none;
  }

  .flow-column {
    height: auto;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 1.25rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.86rem;
  }

  .hero-section,
  .products-section,
  .flow-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-actions,
  .pricing-section {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .pricing-section .btn {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    max-width: calc(100% - 2.5rem);
    margin-top: 1.25rem;
  }

  .stats-strip div {
    min-height: 6.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 13rem;
  }

  .coverage-panel {
    grid-template-columns: 1fr;
  }

  .pricing-section {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.2rem;
  }

  .site-nav a {
    flex: none;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .endpoint-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .endpoint-row code {
    width: 100%;
  }

  .response-card pre {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .flow-hub-ring {
    animation: none !important;
  }

  .flow-dot-anim {
    display: none;
  }
}
