/* ── styles/base.css ── ShareAnyData marketing + app shell base ──────────── */
:root {
  --bg: #0b0c14;
  --bg-soft: #12131f;
  --card: #171826;
  --border: #262838;
  --text: #e7e8ef;
  --muted: #9aa0b4;
  --brand: #4f46e5;
  --brand-2: #7c6cf6;
  --accent: #22d3a6;
  --radius: 14px;
  --maxw: 1080px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, rgba(79,70,229,0.18), transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  font-family: var(--mono); background: var(--brand); color: #fff;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
}
.brand-name { font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  /* Legible default so a bare `.btn` is never transparent/white-on-white. */
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: var(--brand); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-danger:hover { background: #e04434; border-color: #e04434; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }

/* hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 40px; text-align: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 14px 0 18px; }
.lede { color: var(--muted); font-size: clamp(16px, 2.4vw, 20px); max-width: 720px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-code {
  text-align: left; max-width: 720px; margin: 44px auto 0; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
  font-family: var(--mono); font-size: 13.5px; overflow-x: auto; color: #cdd2e4;
}
.hero-code code { white-space: pre; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* sections */
section { scroll-margin-top: 80px; }
.features, .pricing, .sdks { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.features h2, .pricing h2, .sdks h2 { font-size: clamp(26px, 4vw, 38px); text-align: center; margin: 0 0 12px; }
.pricing-sub { text-align: center; color: var(--muted); margin: 0 0 36px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.price-card--featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px -20px rgba(79,70,229,.5); }
.price-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-name { color: var(--muted); font-weight: 600; }
.price-amount { font-size: 40px; font-weight: 800; margin: 6px 0; }
.price-amount span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-configs { color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.price-card li { padding: 6px 0; border-top: 1px solid var(--border); }
.price-card .btn { margin-top: auto; }

/* sdks */
.sdk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.sdk-code { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; font-family: var(--mono); font-size: 13px; color: #cdd2e4; overflow-x: auto; }
.sdk-lang { display: block; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* footer */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 60px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .footer { flex-direction: column; gap: 14px; }
}
