:root {
  --bg: #141416;
  --card-border: rgba(255, 255, 255, 0.2);
  --card-border-strong: rgba(255, 255, 255, 0.4);
  --text: #ffffff;
  --muted: #9a9a9a;
  --btn-bg: #f4f2f2;
  --btn-bg-hover: #ffffff;
  --btn-text: #141416;
  --accent: #7c6bf0;
  --accent-2: #2dd8c4;
  --accent-soft: rgba(124, 107, 240, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, system-ui, sans-serif;
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 12% -8%, rgba(124, 107, 240, 0.24), transparent 60%),
    radial-gradient(ellipse 800px 700px at 105% 8%, rgba(45, 216, 196, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 550px at 50% 100%, rgba(124, 107, 240, 0.12), transparent 60%),
    var(--bg);
  background-attachment: fixed, fixed, fixed;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); transition: text-decoration-color 0.2s ease, color 0.2s ease; }
a:hover { text-decoration-color: var(--accent-2); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(20, 20, 22, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}
header.scrolled {
  background: rgba(20, 20, 22, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; min-width: 0; flex-shrink: 1; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; color: var(--text); }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a.navlink {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 0.2rem;
}
nav a.navlink::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: right 0.2s ease;
}
nav a.navlink:hover, nav button.navlink:hover { color: var(--text); }
nav a.navlink:hover::after, nav button.navlink:hover::after { right: 0; }
nav .navlink.active { color: var(--text); }
nav .navlink.active::after { right: 0; }

/* Products/Solutions dropdowns - hover or click on desktop (min-width
   query below), click-only on mobile (no hover there, and the mobile nav
   is already a full-width stacked list, not a floating panel - the menu
   renders as an inline accordion instead, see the mobile override below). */
.nav-dropdown { position: relative; }
button.nav-dropdown-trigger {
  /* A <button> doesn't pick up nav a.navlink's color/font-size/weight the
     way an <a> does (that rule is scoped to the "a" tag, and browsers
     don't inherit color into buttons the way they do most text
     properties) - found live: this rendered as invisible default-black
     button text on the dark header. Match .navlink's values explicitly
     instead of relying on inheritance. */
  background: none; border: none; padding-bottom: 0.2rem;
  font-family: inherit; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer;
}
.nav-dropdown-trigger .caret { font-size: 0.6rem; color: var(--muted); transition: transform 0.2s ease; }
.nav-dropdown-trigger[aria-expanded="true"] .caret,
.nav-dropdown.nav-dropdown-open .nav-dropdown-trigger .caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  /* top: 100% flush against the trigger - no real position gap above it.
     Found live: a real gap (top: calc(100% + Xrem), or margin-top, which
     has the identical problem - margin shifts the box the same way a
     position offset does) is a dead zone with neither element under the
     cursor, so moving the mouse from the button toward the menu drops
     :hover instantly and the menu vanishes before a click can land inside
     it. padding-top is different: it's still inside this element's own
     box, so the cursor stays "in" the dropdown while crossing it - the
     card's background/border just starts flush under the trigger with a
     bit of empty space above the first item, rather than floating with a
     gap. That's the actual fix, not a cosmetic difference. */
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 0.9rem 0.5rem 0.5rem;
  background: rgba(20, 20, 22, 0.97);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
}
.nav-dropdown.nav-dropdown-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a, .nav-dropdown-item {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-dropdown-item.disabled {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  color: var(--muted); cursor: default;
}
.nav-dropdown-item .soon-badge {
  flex: none; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted); background: rgba(255, 255, 255, 0.08); border-radius: 4px; padding: 0.15rem 0.4rem;
}
@media (min-width: 641px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { border-color: var(--accent-soft); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124, 107, 240, 0.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, rgba(20,20,22,0) 0%, rgba(20,20,22,0.12) 50%, rgba(20,20,22,0) 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.btn-block { display: block; width: 100%; text-align: center; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* Hero */
.hero { padding: 5rem 0 5.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.1rem;
}
.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}
.hero .actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Page header (subpages) */
.page-header { padding: 3.5rem 0 3rem; text-align: center; }
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.page-header p { color: var(--muted); font-size: 1.05rem; max-width: 42rem; margin: 0 auto; line-height: 1.55; }

/* Sections */
section { padding: 3.5rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
section h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.6rem; text-align: center; }
section > .wrap > p.section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
  line-height: 1.55;
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.service-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); background: rgba(124, 107, 240, 0.05); box-shadow: 0 10px 30px rgba(124, 107, 240, 0.12); }
.service-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.65rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; counter-reset: step; }
.step { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.6rem; transition: border-color 0.25s ease, transform 0.25s ease; }
.step:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.9rem; height: 1.9rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-2);
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.55; margin: 0; }

/* Billing interval toggle */
.billing-toggle-wrap { display: flex; justify-content: center; margin-bottom: 2rem; }
.billing-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
}
.toggle-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.toggle-option.active { color: var(--btn-text); background: var(--btn-bg); }

/* Pricing */
.pricing-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 250px;
  max-width: 300px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--accent-soft); box-shadow: 0 10px 30px rgba(124, 107, 240, 0.12); }
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 34px rgba(124, 107, 240, 0.18);
}
.plan.featured .tier-name { color: var(--accent-2); }
.plan .tier-name { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 0.5rem; }
.plan .price { font-size: 1.9rem; font-weight: 600; margin: 0 0 0.15rem; letter-spacing: -0.01em; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.plan .price-sub { display: none; font-size: 0.8rem; color: var(--muted); margin: 0 0 0.5rem; }
.plan .price-sub .price-sub-amount { color: var(--text); font-weight: 600; }
.plan .plan-note { color: var(--muted); font-size: 0.82rem; margin: 0 0 1.4rem; }
.plan ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex-grow: 1; }
.plan li {
  font-size: 0.88rem;
  color: #d8d8d8;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.plan li:last-child { border-bottom: none; }

/* Comparison + trust strip */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.75rem; }
.compare-col.compare-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
}
.compare-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 1rem; }
.compare-featured .compare-label { color: var(--accent-2); }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  font-size: 0.9rem;
  color: #d8d8d8;
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li::before { content: "✕"; position: absolute; left: 0; color: var(--muted); font-size: 0.78rem; top: 0.7rem; }
.compare-featured li::before { content: "✓"; color: var(--accent-2); }

.trust-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.trust-strip span { border: 1px solid var(--card-border); border-radius: 999px; padding: 0.45rem 1.05rem; font-size: 0.82rem; color: var(--muted); }

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

/* FAQ */
.faq-item { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.4rem 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.faq-item h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; color: var(--accent-2); }
.faq-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* Contact form */
.form-card { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.9rem; }
.form-card label { display: block; margin-top: 1.1rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.form-card label:first-child { margin-top: 0; }
.form-card input, .form-card textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  margin-top: 0.35rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease;
}
.form-card textarea { resize: vertical; font-family: inherit; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--accent); }
.form-card button { margin-top: 1.4rem; }

/* Footer */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .brand span { font-size: 1rem; }
footer .links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.85rem; }
footer .links-label { color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
footer .links-divider { width: 1px; height: 0.9rem; background: rgba(255, 255, 255, 0.15); }
footer .links a { color: var(--text); text-decoration: none; }
footer .links a:hover { color: var(--accent); }
footer .copyright { color: var(--muted); font-size: 0.8rem; width: 100%; margin-top: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }

  header { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.nav-open { max-height: min(400px, calc(100vh - 70px)); overflow-y: auto; }
  nav a.navlink {
    display: block;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  nav .btn { margin-top: 0.75rem; }
  nav .btn + .btn { margin-top: 0.5rem; }

  /* Inline accordion, not a floating panel - fits the full-width stacked
     mobile menu instead of overlaying it. */
  button.nav-dropdown-trigger {
    display: flex; width: 100%; justify-content: space-between;
    padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-dropdown-menu {
    display: none;
    position: static;
    transform: none;
    width: 100%;
    padding: 0 0 0.5rem 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav-dropdown.nav-dropdown-open .nav-dropdown-menu { display: flex; }
}


/* Jump links to the sections of a long page, as pills. Lifted verbatim from
   the two docs pages, which each carried their own copy - defined once here
   now that the pricing page wants the same control. Those local copies are
   identical and still win by order, so nothing about them changes. */
.toc { max-width: 42rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.toc a { border: 1px solid var(--card-border); border-radius: 999px; padding: 0.5rem 1.05rem; font-size: 0.82rem; color: var(--muted); text-decoration: none; }
.toc a:hover { border-color: var(--accent-soft); color: var(--text); }
