:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --bg-elevated: #111827;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --accent-strong: #22c55e;
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.55);
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Generic layout helpers */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0.25rem auto 0;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.8);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.14);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

.btn-nav {
  font-size: 0.9rem;
  padding-inline: 1rem;
}

.full-width {
  width: 100%;
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.78),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.9rem;
  background: conic-gradient(
    from 210deg,
    #22c55e,
    #3b82f6,
    #22c55e,
    #6366f1,
    #22c55e
  );
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b1020;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.6);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.3rem 0.25rem;
  border-radius: 999px;
  transition: color 0.14s ease, background 0.14s ease;
}

.nav-links a:hover {
  color: #e5e7eb;
  background: rgba(148, 163, 184, 0.16);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 4px 0;
}

/* Mobile nav */
@media (max-width: 800px) {
  .header-inner {
    gap: 0.75rem;
  }

  .nav-links {
    position: absolute;
    top: 58px;
    right: 16px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.96);
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .btn-nav {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.hero-subtext {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 70%);
  border-radius: 1.4rem;
  padding: 1.4rem 1.3rem 1.25rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.hero-card-title {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-live {
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-pill {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.55);
}

.hero-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.75rem 0.7rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.flow-node {
  flex: 1;
  border-radius: 0.9rem;
  padding: 0.55rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.flow-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.flow-desc {
  display: block;
  font-size: 0.83rem;
}

.flow-connector {
  font-size: 1.1rem;
  opacity: 0.7;
}

.hero-metrics {
  margin-top: 1.1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.metric {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.9rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.1rem;
}

.hero-pill {
  position: absolute;
  right: 1.2rem;
  top: -0.8rem;
  transform: translateY(-100%);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-pill .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e 0, #15803d 80%);
}

.hero-pill-bottom {
  position: absolute;
  bottom: -0.8rem;
  left: 0.6rem;
  top: auto;
  transform: translateY(100%);
}

/* Responsive hero */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .hero-pill,
  .hero-pill-bottom {
    position: static;
    transform: none;
    margin-top: 0.7rem;
  }
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, #111827 0, #020617 65%);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.feature-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.feature-card li + li {
  margin-top: 0.2rem;
}

/* Integrations */

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.integration-pill {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.9);
}

.integrations-footnote {
  margin-top: 1.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Steps */

.steps-grid .step-card {
  position: relative;
  padding-top: 2.2rem;
}

.step-number {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.step-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Pricing */

.pricing-grid {
  align-items: stretch;
}

.pricing-card h3 {
  margin-top: 0;
}

.price {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0.1rem 0;
}

.price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.price-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.3rem 0 0.9rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-card li + li {
  margin-top: 0.25rem;
}

.pricing-card-featured {
  position: relative;
  background: radial-gradient(
    circle at top left,
    rgba(59, 130, 246, 0.26) 0,
    #020617 60%
  );
  border-color: rgba(59, 130, 246, 0.75);
}

.pricing-card-featured .badge-pill {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
}

/* Docs */

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.75rem;
}

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

.docs-card pre {
  background: #020617;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  font-size: 0.8rem;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.docs-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.docs-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Support */

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1.75rem;
}

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

.support-card h3 {
  margin-top: 0;
}

.support-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.support-contact {
  font-size: 0.9rem;
}

.support-contact a {
  color: #bfdbfe;
  text-decoration: none;
}

.support-contact a:hover {
  text-decoration: underline;
}

.support-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 2rem 0 2.2rem;
  background: radial-gradient(circle at top, #020617 0, #000 60%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-main .footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 24rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  transition: background 0.14s ease, color 0.14s ease;
}

.footer-links a:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #e5e7eb;
}

.footer-meta {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

  .footer-links {
    justify-content: flex-start;
  }
}
