/* Cardivate marketing site — single stylesheet */

:root {
  --bg:        #0b0d12;
  --bg-soft:   #131722;
  --bg-alt:    #f7f7fb;
  --ink:       #0e1117;
  --ink-soft:  #2d333d;
  --muted:     #5b6473;
  --muted-d:   #8b93a3;
  --line:      #e6e8ee;
  --line-d:    #232838;
  --accent:    #5a8dee;
  --accent-2:  #8b6cf6;
  --good:      #21c07a;
  --warn:      #f0a13a;
  --max:       1100px;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(20,30,50,0.06), 0 12px 32px rgba(20,30,50,0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════
   UNIFIED SITE CHROME
   This header + footer is mirrored byte-for-byte (minus framework
   wrappers) in cardivate_blog/src/styles/global.css so the blog
   and the marketing site share one identity.
   ════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.80);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px -8px rgba(20,30,50,0.12);
}
.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-size: 17px;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 9px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(90,141,238,0.30);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
  color: var(--accent);
  background: rgba(90,141,238,0.07);
  text-decoration: none;
}
.site-nav a.is-current { color: var(--accent); font-weight: 600; }
.site-nav .nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(90,141,238,0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.site-nav .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(90,141,238,0.36);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 9px;
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 800px) {
  .nav-burger { display: flex; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -12px rgba(20,30,50,0.18);
    margin-left: 0;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 14px; font-size: 15px; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; padding: 12px 18px; }
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--ink);
  transition: transform .08s ease, background .2s ease;
}
.btn:hover { background: #1c1f29; text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--bg-alt); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(60% 80% at 50% 0%, rgba(90,141,238,0.18), transparent 60%),
              linear-gradient(180deg, #0b0d12, #11142b);
  color: #fff;
  padding: 80px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero h1 {
  margin: 0 auto 18px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #8ab4ff, #c9a8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 18px;
  color: rgba(255,255,255,0.78);
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .small {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ── Sections ─────────────────────────────────────────────── */
section {
  padding: 80px 0;
}
section.alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section-head p {
  margin: 0 auto;
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(90,141,238,0.15), rgba(139,108,246,0.15));
  display: grid; place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.feature h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 28px;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(90,141,238,0.16), var(--shadow);
  position: relative;
}
.tier.featured::after {
  content: "Most popular";
  position: absolute;
  top: -10px; right: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.tier h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.tier .price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tier li {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 22px;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(33,192,122,0.15);
  background-image: radial-gradient(var(--good) 3px, transparent 3px);
}
.tier .cta { margin-top: auto; }

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #1a1f3a, #0e1117);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}
.cta-banner p { margin: 0 0 24px; color: rgba(255,255,255,0.72); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
}
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 280px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-col a { color: var(--muted); font-size: 13.5px; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted-d);
}
@media (max-width: 700px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 24px 28px;
  }
  .footer-cols { gap: 20px; }
}

/* Generic prose pages (privacy, terms, contact) */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}
.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
}
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.prose h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; }
.prose a { word-break: break-word; }

