/* ForemanAI marketing + docs stylesheet */
    :root {
      --bg: #020617;
      --bg-alt: #050816;
      --card-bg: #0b1220;
      --accent: #2563eb; /* enterprise blue */
      --accent-soft: rgba(37, 99, 235, 0.12);
      --accent-strong: #1d4ed8;
      --accent-warm: #f97316; /* construction orange */
  --cta-blue: #4f8bff;
  --cta-blue-strong: #2563eb;
      --text-main: #f9fafb;
      --text-muted: #9ca3af;
      --border-subtle: rgba(148, 163, 184, 0.28);
      --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
      --radius-lg: 18px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
      background:
            radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.25), transparent 58%),
            radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.18), transparent 62%),
            radial-gradient(circle at 85% 78%, rgba(2, 6, 23, 0.85), transparent 55%),
            linear-gradient(180deg, #020617 0%, #040a19 55%, #030712 100%);
      color: var(--text-main);
      line-height: 1.6;
    }

    main {
      max-width: 1200px;
      margin: 0 auto;
      padding: 32px 20px 96px;
    }

    section {
      margin-bottom: 80px;
    }

    h1, h2, h3 {
      font-weight: 700;
      margin: 0 0 12px;
    }

    h1 {
      font-size: clamp(2.6rem, 4vw, 3.4rem);
      letter-spacing: -0.04em;
    }

    h2 {
      font-size: 2rem;
      letter-spacing: -0.02em;
    }

    h3 {
      font-size: 1.2rem;
    }

    p {
      margin: 0 0 10px;
      color: var(--text-muted);
      font-size: 0.98rem;
    }

    a {
      color: var(--accent);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }

    .pill {
      align-items: center;
      gap: 8px;
      padding: 4px 10px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
      gap: 40px;
      align-items: center;
      margin-bottom: 72px;
    }

    .hero-copy {
      max-width: 640px;
    }

    .hero-subheadline {
      font-size: 1.05rem;
      color: var(--text-muted);
      margin-bottom: 18px;
    }

    .hero-highlight {
      color: var(--accent-warm);
      font-weight: 600;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 16px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .hero-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .hero-meta-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    .hero-ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 26px;
      margin-bottom: 8px;
    }

    .btn-primary, .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 20px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.18s ease-out;
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #f9fafb;
      box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6);
      opacity: 0.96;
    }

    .btn-secondary {
      background: rgba(15, 23, 42, 0.96);
      color: var(--text-muted);
      border-color: rgba(148, 163, 184, 0.7);
    }

    .btn-secondary:hover {
      background: rgba(15, 23, 42, 1);
      color: var(--text-main);
    }

    .btn-pill-caption {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 6px;
    }

    .hero-panel {
      background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), transparent 60%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), transparent 55%),
        #020617;
      border-radius: var(--radius-lg);
      padding: 20px 20px 18px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: var(--shadow-soft);
      position: relative;
      overflow: hidden;
    }

    .hero-panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      font-size: 0.82rem;
      color: var(--text-muted);
    }

    .hero-panel-badge {
      padding: 4px 9px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.9);
      font-size: 0.75rem;
    }

    .hero-panel-body {
      background: rgba(10, 16, 30, 0.96);
      border-radius: 12px;
      border: 1px solid rgba(15, 23, 42, 0.95);
      padding: 14px 14px 10px;
      font-size: 0.8rem;
    }

    .hero-panel-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 6px 0;
      border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
    }

    .hero-panel-row:last-child {
      border-bottom: none;
    }

    .hero-panel-label {
      color: var(--text-muted);
    }

    .hero-panel-value {
      font-weight: 500;
    }

    .hero-panel-tagline {
      margin-top: 12px;
      font-size: 0.78rem;
      color: var(--text-muted);
    }

    .hero-panel-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 12px;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    .hero-panel-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
      margin-right: 6px;
    }

    .section-label {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.18em;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

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

    .feature-card {
      background: var(--card-bg);
      border-radius: 14px;
      border: 1px solid var(--border-subtle);
      padding: 18px 18px 16px;
    }

    .feature-kicker {
      font-size: 0.75rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent-warm);
      margin-bottom: 4px;
    }

    .eyebrow {
      font-size: 0.85rem;
      color: var(--text-muted);
      max-width: 640px;
      margin-top: 6px;
    }

    .two-col {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 32px;
      align-items: flex-start;
      margin-top: 24px;
    }

    .callout {
      background: rgba(11, 18, 32, 0.96);
      border-radius: 14px;
      border: 1px solid var(--border-subtle);
      padding: 18px 18px 16px;
      font-size: 0.88rem;
    }

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

    .badge {
      font-size: 0.78rem;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.45);
      background: rgba(15, 23, 42, 0.98);
      color: var(--text-muted);
    }

    .comparison-table {
      margin-top: 18px;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border-subtle);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.86rem;
    }

    th, td {
      padding: 10px 12px;
      border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    }

    th {
      background: #020617;
      text-align: left;
      font-weight: 600;
    }

    tr:nth-child(even) td {
      background: rgba(15, 23, 42, 0.85);
    }

    .check {
      color: #22c55e;
      font-weight: 600;
    }

    .cross {
      color: #f97373;
      font-weight: 600;
    }

    .api-strip {
      margin-top: 20px;
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 22px;
      align-items: stretch;
    }


    .code-snippet code {
      white-space: pre;
    }

    .final-cta {
      text-align: center;
      padding: 32px 22px 28px;
      border-radius: 18px;
      background: radial-gradient(circle at top, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.98));
      border: 1px solid rgba(37, 99, 235, 0.55);
      box-shadow: var(--shadow-soft);
    }

    .final-cta h2 {
      color: #ffffff;
      text-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    }

    .final-cta p {
      max-width: 600px;
      margin: 0 auto 16px;
      font-size: 0.98rem;
    }

    .final-cta .hero-ctas {
      justify-content: center;
      margin-top: 20px;
    }

    .final-cta .hero-meta {
      justify-content: center;
      margin-top: 10px;
    }

    footer {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 26px;
      font-size: 0.8rem;
      color: var(--text-muted);
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      border-top: 1px solid rgba(15, 23, 42, 0.95);
      padding-top: 16px;
    }

    /* Responsive */

    @media (max-width: 960px) {
      .hero {
        grid-template-columns: minmax(0, 1fr);
      }

      .hero-panel {
        max-width: 480px;
        margin: 0 auto;
      }

      .two-col,
      .api-strip {
        grid-template-columns: minmax(0, 1fr);
      }

      .final-cta {
        margin-top: 40px;
      }
    }

    @media (max-width: 640px) {
      main {
        padding: 24px 16px 64px;
      }

      h1 {
        font-size: 2.2rem;
      }

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

      .hero-meta {
        flex-direction: column;
      }
      }
/* --- ForemanAI marketing + docs revamp --- */

.marketing-page {
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.28), transparent 58%),
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(2, 6, 23, 0.85), transparent 45%),
    linear-gradient(180deg, #030617 0%, #050b1d 68%, #020512 100%);
  color: var(--text-main);
  min-height: 100vh;
}

.marketing-page .app-main {
  padding: 0;
}

.marketing-page .app-header {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.marketing-page .app-header .container {
  background: transparent;
}

.marketing-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.docs-shell {
  padding-top: 48px;
}

.marketing-header-actions {
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.marketing-header-actions .app-nav {
  margin-left: 0;
  justify-content: center;
}

.contact-cta,
.marketing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.4rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-cta:hover,
.contact-cta:focus-visible,
.marketing-cta:hover,
.marketing-cta:focus-visible {
  color: #f9fafb;
  border-bottom-color: rgba(96, 165, 250, 0.9);
  outline: none;
}

.marketing-nav {
  display: flex;
  gap: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marketing-nav .app-nav-link {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.marketing-nav .app-nav-link:hover,
.marketing-nav .app-nav-link:focus-visible {
  color: var(--text-main);
}

.marketing-cta {
  color: rgba(191, 219, 254, 0.92);
}

.marketing-shell h1 {
  letter-spacing: -0.02em;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
  margin-bottom: 5rem;
      background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 55%),
        radial-gradient(circle at bottom left, rgba(2, 6, 23, 0.9), transparent 50%),
        #050b1d;
      color: var(--text-main);
      border-radius: 32px;
      border: 1px solid rgba(37, 99, 235, 0.28);
      padding: clamp(2rem, 4vw, 3.5rem);
      box-shadow: 0 32px 80px rgba(2, 6, 23, 0.65);
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

.landing-hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
      color: var(--text-main);
}

.landing-hero-copy .hero-subheadline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
}

.landing-hero .hero-trust {
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(125deg, var(--cta-blue), var(--cta-blue-strong));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(2, 6, 23, 0.85);
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.hero-trust {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}


.landing-hero .btn-secondary {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.45);
    color: var(--text-muted);
}

.landing-hero .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.75);
    color: var(--text-main);
}

.landing-section-api .btn-secondary {
  background: linear-gradient(120deg, #facc15, #fbbf24);
  border-color: transparent;
  color: #1e1b4b;
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.35);
}

.landing-section-api .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(250, 204, 21, 0.5);
  color: #0f172a;
}

.landing-hero-card {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 32px;
    padding: clamp(1.8rem, 3vw, 2.8rem);
    background:
      linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.88));
    box-shadow: 0 36px 90px rgba(2, 6, 23, 0.78);
    color: #f8fafc;
    overflow: hidden;
}

.landing-hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.2), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.landing-hero-card > * {
  position: relative;
  z-index: 1;
}

.landing-hero-card p {
  color: rgba(226, 232, 240, 0.88);
}

.leaderboard-item p {
  color: rgba(248, 250, 252, 0.82);
}

.landing-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.leaderboard-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(186, 230, 253, 0.82);
  margin: 0;
}

.leaderboard-items {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.leaderboard-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.92));
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.35);
  color: #f8fafc;
}

.leaderboard-rank {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.08em;
  align-self: flex-start;
}

.leaderboard-copy {
  flex: 1;
}

.leaderboard-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.72);
}

.leaderboard-value {
  margin: 4px 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #f8fafc;
}

.no-js .leaderboard-value[data-count-target] {
  display: none;
}

.leaderboard-value--static {
  margin: 4px 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #f8fafc;
}

@keyframes leaderboardTickPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(250, 204, 21, 0);
    color: #f8fafc;
  }
  45% {
    transform: scale(1.05);
    text-shadow: 0 6px 18px rgba(250, 204, 21, 0.35);
    color: #fde047;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(250, 204, 21, 0);
    color: #f8fafc;
  }
}

.leaderboard-value.leaderboard-value--tick {
  animation: leaderboardTickPulse 0.5s ease-out;
  will-change: transform, color, text-shadow;
  transform-origin: left center;
}

.leaderboard-detail {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(207, 217, 232, 0.85);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

.landing-section {
  margin-bottom: 5.5rem;
}

.section-heading {
  max-width: 720px;
}

.landing-section-features {
  position: relative;
  border-radius: 42px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: clamp(2.5rem, 4vw, 3.75rem);
  background:
    linear-gradient(140deg, rgba(2, 6, 23, 0.92), rgba(10, 12, 24, 0.85)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.35), transparent 55%);
  box-shadow: 0 45px 120px rgba(2, 6, 23, 0.75);
  overflow: hidden;
}

.landing-section-features::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 85% 20%, rgba(14, 165, 233, 0.2), transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(59, 130, 246, 0.18), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.landing-section-features > * {
  position: relative;
  z-index: 1;
}

.landing-section-features .section-heading h2 {
  color: #ffffff;
}

.landing-section-features .section-label {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(15, 23, 42, 0.65);
  margin-bottom: 1rem;
}

.landing-section-features .section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.landing-section-features .section-intro {
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.05rem;
}

.landing-section-risk .section-heading h2 {
  color: #ffffff;
}

.landing-section-api .section-heading h2 {
  color: #ffffff;
}

.landing-section-api p,
.landing-section-api .api-example {
  color: #f8fafc;
}

.landing-section-api .api-highlight {
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.05rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
  counter-reset: feature;
}

.feature-grid.eight-up article {
  min-height: 200px;
}

.feature-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(11, 18, 32, 0.82));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.6);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card::before {
  counter-increment: feature;
  content: "0" counter(feature);
  position: absolute;
  top: 1.2rem;
  right: 1.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.55);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.28), transparent 55%),
              linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.55);
  box-shadow: 0 28px 65px rgba(2, 6, 23, 0.75);
}

.feature-card:hover::after {
  opacity: 0.9;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: #bfdbfe;
}

.feature-card p {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.55;
}

.benefit-card {
  background: rgba(11, 18, 32, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 1.35rem;
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #facc15;
}

.benefit-card p {
  font-size: 0.9rem;
  color: #f8fafc;
}

.section-cta {
  margin-top: 2rem;
}

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

.api-teaser {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 1.75rem;
  background: rgba(3, 7, 18, 0.75);
}

.api-benefits-intro {
  margin-top: 1.25rem;
}

.api-benefits {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.api-benefits li {
  position: relative;
  padding-left: 1.5rem;
  color: #f8fafc;
  font-size: 0.92rem;
}

.api-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.api-example {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.final-cta {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 2.5rem;
  text-align: left;
}

.docs-hero,
.doc-section {
  margin-bottom: 3.5rem;
}

.docs-hero .hero-ctas {
  margin-top: 1rem;
}

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

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

.sample-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sample-block pre,
.code-card pre {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  font-size: 0.8rem;
  overflow: visible;
}

.code-container {
  margin-top: 0.9rem;
  background: rgba(4, 8, 24, 0.92);
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 1rem;
  box-shadow: inset 0 0 25px rgba(15, 23, 42, 0.55);
  overflow-x: auto;
}

.code-container code {
  display: block;
  white-space: pre;
}

.code-container--flat {
  background: rgba(4, 8, 24, 0.6);
  border: none;
  box-shadow: none;
  padding: 0.75rem 0.5rem;
}
.code-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.api-capabilities ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.api-capabilities li {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(6, 11, 24, 0.9);
}

.blueprints-shell {
  gap: 2rem;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.insight-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(11, 18, 32, 0.9), rgba(2, 6, 23, 0.85));
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.insight-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.85);
}

.insight-value {
  margin: 0.4rem 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #f8fafc;
}

.insight-detail {
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
}

.landing-section-faq {
  margin-top: 4rem;
}

.landing-section-faq .section-heading h2 {
  color: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  background: rgba(8, 12, 24, 0.92);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.55);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.faq-item.is-open {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 25px 60px rgba(31, 41, 55, 0.7);
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1.4rem 1.5rem 1.2rem;
}

.faq-question span:first-child {
  flex: 1;
}

.faq-question:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.8);
  outline-offset: 4px;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.95rem;
}

.faq-answer p {
  margin: 0;
}

.faq-cta {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.faq-cta p {
  margin: 0;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.95);
}

.landing-footer {
  margin-top: 3.5rem;
  padding: 2.5rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.95), rgba(4, 12, 30, 0.98));
  box-shadow: 0 30px 70px rgba(3, 7, 18, 0.7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  align-items: flex-start;
}

.landing-footer-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(191, 219, 254, 0.75);
  margin-bottom: 0.6rem;
}

.landing-footer-brand h3 {
  margin: 0 0 0.5rem;
  color: #fff;
}

.landing-footer-brand p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
}

.landing-footer-nav {
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.landing-footer-nav a {
  color: rgba(226, 232, 240, 0.86);
  text-decoration: none;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

.landing-footer-nav a:hover,
.landing-footer-nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.landing-footer-cta p {
  margin: 0 0 0.8rem;
  color: rgba(226, 232, 240, 0.92);
}

.landing-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .landing-footer {
    padding: 2rem;
  }
}

.workflow-steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: workflow;
}

.workflow-steps li {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 20px;
  padding: 1.5rem;
  background: rgba(11, 18, 32, 0.92);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.6);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.85);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
}

.workflow-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #f8fafc;
}

.workflow-steps p {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
}

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

.deliverable-card {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(5, 11, 29, 0.9);
}

.deliverable-card h3 {
  margin-top: 0;
  color: #facc15;
}

.deliverable-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.88);
}

.deliverable-card li {
  position: relative;
  padding-left: 1.4rem;
}

.deliverable-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.api-shell {
  padding-top: 32px;
}

.api-surface {
  background:
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.25), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.25), transparent 65%),
    rgba(4, 10, 26, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 36px;
  padding: clamp(1.75rem, 2.8vw, 2.75rem);
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.7);
  position: relative;
  overflow: hidden;
}

.api-surface::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 28px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  pointer-events: none;
}

.api-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.api-sidebar {
  position: sticky;
  top: 110px;
  align-self: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.25rem;
  background: rgba(5, 10, 24, 0.9);
}

.sidebar-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: rgba(191, 219, 254, 0.8);
  margin-bottom: 1rem;
}

.sidebar-link {
  display: block;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-decoration: none;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: #f8fafc;
}

.api-content {
  width: 100%;
}

.api-section {
  margin-bottom: 3.5rem;
}

.api-section .section-heading h2 {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
}

.api-section .section-label {
  color: rgba(226, 232, 240, 0.86);
  letter-spacing: 0.25em;
}

#api-quickstart .section-heading h2 {
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}

.api-hero h1 {
  color: #fff;
}

.api-hero .lead {
  color: rgba(226, 232, 240, 0.95);
  max-width: 720px;
}

.api-hero .hero-ctas {
  margin-top: 1.25rem;
}

.api-meta {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(191, 219, 254, 0.75);
}

.meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
}

.api-card {
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 22px;
  padding: 1.75rem;
  background: linear-gradient(140deg, rgba(19, 27, 52, 0.95), rgba(9, 14, 30, 0.88));
  box-shadow: 0 30px 70px rgba(3, 6, 23, 0.55);
  backdrop-filter: blur(18px);
}

.api-card pre {
  margin-top: 1rem;
  background: rgba(4, 8, 24, 0.92);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-size: 0.8rem;
  overflow-x: auto;
}

.code-card h3,
.code-card h2 {
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.code-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.code-card-heading h3,
.code-card-heading h2 {
  margin-bottom: 0;
}

.code-copy-btn {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-copy-btn:hover,
.code-copy-btn:focus-visible {
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.7);
  outline: none;
}

.code-copy-btn[data-state="copied"] {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.55);
  color: #bbf7d0;
}

.code-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.pattern-card {
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(24, 32, 60, 0.95), rgba(12, 17, 33, 0.88));
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  backdrop-filter: blur(14px);
}

.pattern-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.pattern-card p {
  color: rgba(226, 232, 240, 0.92);
}

.pattern-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.pattern-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(94, 234, 212, 0.9);
}

.quickstart-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: quickstep;
}

.quickstart-list li {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 1.65rem;
  background: linear-gradient(135deg, #ffffff, #f2f5fb);
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.12);
  position: relative;
}

.quickstart-list li::before {
  counter-increment: quickstep;
  content: counter(quickstep);
  position: absolute;
  top: 1.3rem;
  right: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #05070f;
  letter-spacing: 0.15em;
}

.quickstart-list h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #0f172a;
}

.quickstart-list p {
  margin: 0;
  color: #1f2937;
}

.api-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.api-list li {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
}

.api-tip {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(191, 219, 254, 0.85);
}

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

body.legal-page {
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.12), rgba(3, 7, 18, 0.95)), #030814;
  color: #f8fafc;
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  color: #f8fafc;
}

.legal-hero {
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.legal-hero .lead,
.legal-hero p {
  color: rgba(248, 250, 252, 0.9);
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: rgba(248, 250, 252, 0.9);
  display: grid;
  gap: 0.4rem;
}

.legal-section p,
.legal-section li {
  color: rgba(248, 250, 252, 0.9);
  line-height: 1.6;
}

.legal-section strong {
  color: #ffffff;
}

.legal-contact {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 600;
  color: #ffffff;
}

.legal-contact a {
  color: #cbd5f5;
  text-decoration: underline;
}

.endpoint-card {
  border: 1px solid rgba(99, 102, 241, 0.32);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(23, 31, 58, 0.94), rgba(10, 15, 32, 0.9));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.48);
  backdrop-filter: blur(12px);
}

.endpoint-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.endpoint-card p {
  color: rgba(226, 232, 240, 0.92);
}

.endpoint-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.endpoint-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(94, 234, 212, 0.9);
}

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

.webhook-card {
  border: 1px solid rgba(129, 140, 248, 0.38);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(150deg, rgba(27, 38, 70, 0.94), rgba(11, 16, 32, 0.9));
  box-shadow: 0 26px 60px rgba(3, 7, 18, 0.5);
  backdrop-filter: blur(16px);
}

.webhook-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

.webhook-card p {
  color: rgba(226, 232, 240, 0.92);
}

.webhook-card ul {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.api-table th,
.api-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  text-align: left;
}

.api-table th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.85);
}

.api-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 960px) {
  .api-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .api-sidebar {
    position: static;
    order: 2;
  }
}

@media (max-width: 768px) {
  .marketing-shell {
    padding: 56px 18px 96px;
  }

  .marketing-header-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .landing-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;

  }
}
