:root {
  /* Master control for text-frame opacity. Raise toward 1 to hide nodes behind frames. */
  --frame-rgb: 8, 16, 30;
  --frame-opacity: 0.75;
  /* Additional uniform darkening layer for all text sections/cards. */
  --frame-overlay-opacity: 0.18;
  /* Hero-only overlay controls (independent from section/card opacity). */
  --hero-overlay-top-opacity: 0.2;
  --hero-overlay-bottom-opacity: 0.56;
  --hero-accent-a-opacity: 0.12;
  --hero-accent-b-opacity: 0.09;
  --bg-950: #030812;
  --bg-900: #061023;
  --bg-850: #0c1930;
  --surface: rgba(var(--frame-rgb), var(--frame-opacity));
  --surface-strong: rgba(var(--frame-rgb), var(--frame-opacity));
  --surface-soft: rgba(15, 30, 52, 0.9);
  --text: #edf4ff;
  --muted: #b1c2de;
  --primary: #3b9dff;
  --primary-strong: #1f78d8;
  --teal: #22baa7;
  --border: rgba(150, 185, 234, 0.22);
  --header-h: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', 'Sora', sans-serif;
  color: var(--text);
  line-height: 1.58;
  background:
    radial-gradient(circle at 18% 8%, #11244a 0%, #081125 36%, #040a14 72%, #02050c 100%);
}

a {
  color: inherit;
}

#network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
}

header {
  position: relative;
  z-index: auto;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 14, 26, 0.82);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tm {
  font-size: 0.58rem;
  vertical-align: super;
}

.company-name {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2.2rem) 1rem 2.2rem;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 20, var(--hero-overlay-top-opacity)),
      rgba(4, 8, 16, var(--hero-overlay-bottom-opacity))
    ),
    radial-gradient(
      circle at 82% 8%,
      rgba(34, 186, 167, var(--hero-accent-a-opacity)),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(53, 114, 211, var(--hero-accent-b-opacity)),
      transparent 42%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1020px, calc(100% - 1rem));
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94bbe8;
  margin-bottom: 0.7rem;
}

.hero .eyebrow {
  font-size: 1rem;
}

.hero-title {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5.3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-tagline {
  width: min(840px, 100%);
  margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero-highlights {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-highlights li {
  font-size: 0.84rem;
  color: #d9e7fa;
  border: 1px solid var(--border);
  background: rgba(8, 16, 30, 0.72);
  border-radius: 999px;
  padding: 0.44rem 0.74rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), #45b0ff);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, var(--primary-strong), #349af2);
  box-shadow: 0 12px 22px rgba(35, 118, 219, 0.34);
}

.btn:focus-visible {
  outline: 3px solid rgba(34, 186, 167, 0.45);
  outline-offset: 2px;
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(12, 24, 42, 0.78);
  color: #dcecff;
}

.btn-secondary:hover {
  background: rgba(15, 30, 52, 0.94);
  box-shadow: none;
}

main section {
  width: min(1180px, calc(100% - 1.8rem));
  margin: 1rem auto;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 2.7rem 2rem;
}

main section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(var(--frame-rgb), var(--frame-overlay-opacity));
}

main section > * {
  position: relative;
  z-index: 1;
}

h2 {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.1vw, 2.45rem);
  letter-spacing: -0.018em;
  margin-bottom: 0.9rem;
  text-align: center;
}

h3 {
  font-size: 1.18rem;
  color: #eff6ff;
  margin-bottom: 0.45rem;
}

p {
  color: var(--muted);
  margin-bottom: 0.92rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  background: transparent;
  border: none;
  padding: 0;
}

.proof-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    160deg,
    rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.02)),
    rgba(var(--frame-rgb), var(--frame-opacity))
  );
  padding: 1rem;
}

.proof-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

.stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface-strong);
  text-align: center;
}

.stat h3 {
  margin-bottom: 0.25rem;
}

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

.transformation-grid article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  padding: 1rem;
}

.transformation-grid ul,
.comparison-card ul {
  margin-left: 1rem;
  color: var(--muted);
}

.transformation-grid li,
.comparison-card li {
  margin-bottom: 0.5rem;
}

.features,
.industry-grid,
.resource-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.feature,
.industry,
.resource-card,
.comparison-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    170deg,
    rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.02)),
    rgba(var(--frame-rgb), var(--frame-opacity))
  );
  padding: 1.1rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover,
.industry:hover,
.resource-card:hover,
.comparison-card:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 150, 247, 0.58);
}

.feature img,
.industry img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.6rem;
}

.capability-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.roi-layout {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.9fr);
  gap: 1rem;
}

.roi-form,
.roi-results {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 1rem;
}

.result-card {
  border: 1px solid rgba(119, 166, 232, 0.34);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.65rem;
  background: rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.07));
}

.result-label {
  margin-bottom: 0.15rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ebde8;
}

.result-value {
  font-family: 'Sora', 'Space Grotesk', sans-serif;
  color: #eff7ff;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  margin: 0;
  font-weight: 700;
}

.result-note {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: #8fa6c9;
}

.roi-cta {
  width: 100%;
  margin-top: 0.35rem;
}

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

.comparison-card-highlight {
  border-color: rgba(57, 152, 255, 0.58);
  background: linear-gradient(
    160deg,
    rgba(22, 52, 84, calc(var(--frame-opacity) - 0.03)),
    rgba(var(--frame-rgb), var(--frame-opacity))
  );
}

.agentic-flow,
.diagram {
  margin-top: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.flow-step,
.diagram-node {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.08));
  color: #deebff;
  font-size: 0.9rem;
  font-weight: 600;
}

.diagram-node {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.diagram-node-primary {
  background: linear-gradient(120deg, rgba(45, 112, 192, 0.55), rgba(28, 78, 144, 0.55));
  border-color: rgba(90, 174, 255, 0.6);
}

.flow-arrow,
.diagram-arrow {
  color: #8fb7eb;
  font-weight: 700;
}

.diagram-note {
  margin-top: 0.8rem;
  text-align: center;
}

.text-link {
  text-decoration: none;
  font-weight: 700;
  color: #7fc4ff;
}

.text-link:hover,
.text-link:focus-visible {
  color: #a6d7ff;
}

.about-section h2,
.about-section .eyebrow {
  text-align: center;
}

.about-section p {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.demo-section,
.contact-section {
  background: var(--surface-strong);
}

.waitlist-form,
.contact-form {
  margin-top: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: #e4efff;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(136, 175, 230, 0.32);
  background: rgba(8, 15, 28, 0.9);
  color: #f6fbff;
  font-size: 1rem;
  padding: 0.72rem 0.85rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 118px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(68, 159, 255, 0.95);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 147, 255, 0.2);
}

.form-group button[disabled] {
  opacity: 0.72;
  cursor: progress;
}

.success-message {
  margin-top: 0.7rem;
  font-weight: 600;
  color: #8adbc9;
}

footer {
  width: min(1180px, calc(100% - 1.8rem));
  margin: 1.2rem auto 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 14, 27, 0.92);
  text-align: center;
  padding: 1rem;
  font-size: 0.84rem;
  color: #aabed9;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .company-name {
    display: none;
  }

  .nav-links {
    gap: 0.85rem;
  }
}

@media (max-width: 900px) {
  .proof-strip,
  .comparison-grid,
  .transformation-grid,
  .form-row,
  .roi-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .nav {
    padding: 0.62rem 1rem;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 14, 25, 0.97);
    transform: translateY(-145%);
    transition: transform 0.25s ease;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav .cta {
    display: none;
  }

  .hero-content {
    width: min(980px, calc(100% - 1rem));
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  main section {
    width: calc(100% - 1rem);
    padding: 2.1rem 1rem;
  }

  footer {
    width: calc(100% - 1rem);
  }
}

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

/* API service page extensions built on the edgemicropayments.com theme */

.logo-link {
  text-decoration: none;
}

main.page-main {
  position: relative;
  z-index: 2;
  padding-bottom: 0.6rem;
}

.page-hero {
  min-height: 52svh;
  padding-bottom: 1.2rem;
}

.page-hero .hero-content {
  width: min(980px, calc(100% - 1rem));
}

.page-hero .hero-tagline {
  width: min(820px, 100%);
}

.page-main section {
  width: min(980px, calc(100% - 1.8rem));
}

.page-shell {
  width: 100%;
  display: grid;
  gap: 1rem;
}

.page-shell-tight {
  width: min(760px, 100%);
  margin-inline: auto;
}

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

.flow-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    170deg,
    rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.02)),
    rgba(var(--frame-rgb), var(--frame-opacity))
  );
  padding: 1.1rem;
}

.flow-card h3 {
  margin-bottom: 0.4rem;
}

.flow-list {
  margin: 0.3rem 0 0 1.1rem;
  color: var(--muted);
}

.flow-list li {
  margin-bottom: 0.45rem;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 1.2rem;
}

.panel h3 {
  margin-bottom: 0.45rem;
}

.inline-note {
  font-size: 0.9rem;
  color: #9eb8da;
  margin-top: 0.55rem;
}

.inline-note strong {
  color: #dceeff;
}

.inline-form {
  margin-top: 0.8rem;
}

.inline-form .form-group {
  margin-bottom: 0.75rem;
}

.form-group button,
button.apibutton,
a.button,
a.button-link {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), #45b0ff);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.72rem 1.25rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-group button:hover,
button.apibutton:hover,
a.button:hover,
a.button-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, var(--primary-strong), #349af2);
  box-shadow: 0 12px 22px rgba(35, 118, 219, 0.34);
}

.form-group button:focus-visible,
button.apibutton:focus-visible,
a.button:focus-visible,
a.button-link:focus-visible {
  outline: 3px solid rgba(34, 186, 167, 0.45);
  outline-offset: 2px;
}

.status-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(
    170deg,
    rgba(var(--frame-rgb), calc(var(--frame-opacity) - 0.02)),
    rgba(var(--frame-rgb), var(--frame-opacity))
  );
  padding: 1.3rem;
  text-align: center;
}

.status-card h2,
.status-card h3 {
  margin-bottom: 0.55rem;
}

.status-card p {
  margin-bottom: 0.75rem;
}

.status-card .eyebrow {
  margin-bottom: 0.3rem;
}

.status-card .danger,
.status-card h2.danger,
.status-card h3.danger {
  color: #ff9ca5;
}

.warning {
  border: 1px solid rgba(255, 193, 100, 0.42);
  background: rgba(91, 60, 16, 0.42);
  color: #ffeac9;
  border-radius: 12px;
  padding: 0.8rem;
  margin: 0.7rem 0;
  text-align: left;
}

.apikey {
  border: 1px solid rgba(119, 166, 232, 0.38);
  border-radius: 12px;
  background: rgba(7, 15, 28, 0.9);
  color: #ecf5ff;
  padding: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  overflow-x: auto;
}

.key-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.error-list {
  text-align: left;
  margin: 0.6rem auto;
  width: min(640px, 100%);
  color: var(--muted);
  padding-left: 1.2rem;
}

.error-list li {
  margin-bottom: 0.45rem;
}

.return-home {
  margin-top: 0.6rem;
  text-align: center;
}

.return-home a {
  text-decoration: none;
  color: #85c8ff;
  font-weight: 700;
}

.return-home a:hover,
.return-home a:focus-visible {
  color: #b8dfff;
}

.sdk-link {
  color: #8ec8ff;
  font-weight: 700;
  text-decoration: none;
}

.sdk-link:hover,
.sdk-link:focus-visible {
  color: #bde3ff;
}

.form-group input[type="hidden"] {
  display: none;
}

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

@media (max-width: 768px) {
  .page-main section {
    width: calc(100% - 1rem);
  }

  .page-actions {
    align-items: stretch;
  }

  .page-actions .btn,
  .page-actions .button,
  .page-actions .button-link {
    width: 100%;
  }
}
