/* SMS8 MCP — dark theme, marketing-site component vocabulary.
 * Visually unified with sms8.io: same logo, same favicon, same typography.
 * Header is transparent on top (merges into the hero) then becomes a blurred
 * dark bar once the user scrolls (.is-scrolled state).
 */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter','Inter Fallback',-apple-system,BlinkMacSystemFont,sans-serif;
  background: #06060d;
  color: #e8e8f0;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #ddd6fe; }
img, svg { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Sticky header — merged on top, blurred dark when scrolled ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(6,6,13,0.78);
  border-bottom-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px -16px rgba(0,0,0,0.6);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  max-width: 1200px; margin: 0 auto;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none;
}
.site-logo img {
  height: 26px; width: auto;
  /* Logo is already the white variant from sms8.io WordPress */
}
.brand-suffix {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(168,85,247,0.18);
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(168,85,247,0.3);
}

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: #b8b8c8;
  font-size: 14px; font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: #c4b5fd; }

.header-actions { display: flex; gap: 10px; }

.btn-cta, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-cta {
  background: #fff; color: #06060d;
  box-shadow: 0 4px 14px rgba(255,255,255,0.18);
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.25);
  color: #06060d;
}
.btn-ghost {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.20);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.36);
  color: #fff;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  background: transparent; border: 0;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block; height: 2px; width: 22px;
  background: #fff; border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: 64px; left: 0; right: 0;
  background: #06060d;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px;
  display: none;
  z-index: 49;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #c8c8d8;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav-actions {
  margin-top: 14px;
  display: flex; gap: 10px;
}

@media (max-width: 880px) {
  .site-nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
}

main { padding-top: 64px; /* offset for fixed header */ }

/* ── Hero ── */
.page-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(124,58,237,0.22) 0%, transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(236,72,153,0.13) 0%, transparent 55%),
    radial-gradient(circle at 50% 0%,  rgba(34,211,238,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.page-hero-sm    { padding: 60px 0 40px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ddd6fe;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,0.25);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
}

/* Gradient text with brush-stroke SVG underline (matches sms8.io) */
.gradient-text {
  position: relative; display: inline-block; isolation: isolate;
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 50%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.gradient-text::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  bottom: 0.02em;
  height: 0.30em;
  background: rgba(168, 85, 247, 0.55);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 24" preserveAspectRatio="none"><path d="M3 14 C 40 6, 90 18, 140 11 C 195 4, 245 17, 297 9 L 296 19 C 245 25, 190 13, 138 20 C 88 26, 42 15, 4 22 Z" fill="black"/></svg>') no-repeat center / 100% 100%;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 24" preserveAspectRatio="none"><path d="M3 14 C 40 6, 90 18, 140 11 C 195 4, 245 17, 297 9 L 296 19 C 245 25, 190 13, 138 20 C 88 26, 42 15, 4 22 Z" fill="black"/></svg>') no-repeat center / 100% 100%;
  z-index: -1;
}

.page-hero p.lede {
  font-size: 1.18rem; color: #b8b8c8;
  max-width: 720px; margin: 0 auto 36px;
}

.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: #8a8aa0;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { color: #10b981; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Sections ── */
.section { padding: 72px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.04) 50%, transparent);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.18;
  color: #fff; margin-bottom: 12px;
}
.section h2::after {
  content: "";
  display: block; width: 64px; height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  border-radius: 2px;
}
.section-lead { font-size: 1.02rem; color: #9999ad; }

/* ── Step cards ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.step-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-2px);
}
.step-num {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: #c4b5fd;
  background: rgba(168,85,247,0.15);
  padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px;
}
.step-card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #fff; margin-bottom: 8px;
}
.step-card h3 code {
  background: rgba(168,85,247,0.15);
  color: #c4b5fd;
  padding: 2px 8px; border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}
.step-card p {
  font-size: 14px; color: #9999ad;
}
.step-card p code {
  background: rgba(168,85,247,0.15);
  color: #c4b5fd;
  padding: 1px 6px; border-radius: 3px;
  font-size: 12px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ── Split row ── */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 880px) {
  .split-row { grid-template-columns: 1fr; gap: 32px; }
}
.split-text h2 { margin-bottom: 16px; }
.split-text h2::after { margin-left: 0; }
.split-text p { color: #b8b8c8; font-size: 15px; margin-bottom: 16px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: #cfcfde; font-size: 14.5px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  background: rgba(16,185,129,0.15); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #10b981; border-bottom: 2px solid #10b981;
  transform: rotate(-45deg);
}

/* ── Visual card ── */
.visual-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(124,58,237,0.4);
  position: relative;
}
.visual-card-header {
  font-size: 12px; font-weight: 600;
  color: #8a8aa0; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.visual-card pre {
  margin: 0;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 13px; line-height: 1.65;
  color: #d8d8e8;
  white-space: pre-wrap;
}
.visual-card pre .k { color: #a78bfa; }
.visual-card pre .s { color: #6ee7b7; }
.visual-card pre .c { color: #7c7c8e; }

/* ── Code blocks ── */
.code-block, pre.code-block {
  background: #0a0a14;
  border: 1px solid rgba(255,255,255,0.08);
  color: #d8d8e8;
  border-radius: 10px;
  padding: 16px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}
.code-block .k, pre .k { color: #a78bfa; }
.code-block .s, pre .s { color: #6ee7b7; }
.code-block .c, pre .c { color: #7c7c8e; }

/* ── Comparison table ── */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th, table.compare td {
  padding: 13px 18px; text-align: left;
  border-top: 1px solid rgba(255,255,255,0.06);
}
table.compare thead th {
  border-top: none; font-weight: 600;
  color: #b8b8c8;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}
table.compare thead th:nth-child(2) { color: #c4b5fd; }
table.compare td:first-child { color: #cfcfde; }
table.compare td.ok  { color: #6ee7b7; font-weight: 600; }
table.compare td.bad { color: #fca5a5; }

/* ── FAQ ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.02);
}
.faq summary {
  font-weight: 600; cursor: pointer; color: #fff;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: #a78bfa; font-size: 20px; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  color: #b8b8c8;
  font-size: 14.5px; line-height: 1.65;
}
.faq details p code {
  background: rgba(168,85,247,0.15);
  color: #c4b5fd;
  padding: 1px 6px; border-radius: 3px;
  font-size: 13px;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
}

/* ── CTA banner ── */
.cta-banner { margin: 40px 0; }
.cta-banner-inner {
  background:
    radial-gradient(circle at 20% 50%, rgba(168,85,247,0.22), transparent 60%),
    linear-gradient(135deg, rgba(124,58,237,0.18), rgba(236,72,153,0.10));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 18px;
  padding: 48px 36px;
  text-align: center;
}
.cta-banner-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; color: #fff; }
.cta-banner-inner h2::after { display: none; }
.cta-banner-inner p { color: #cfcfde; font-size: 16px; margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
  margin-top: 60px;
  font-size: 13px;
  color: #7c7c8e;
}
.footer-row {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
footer a { color: #b8b8c8; }
footer a:hover { color: #fff; }
