/* === Reset base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-dark: #0e1116;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #2b5cff;
  --accent-dark: #1e46d1;
  --border: #e4e6ea;
  --warn-bg: #fff8e6;
  --warn-border: #f0d48a;
  --warn-text: #7a5a00;
  --radius: 12px;
  --max-width: 1080px;
  --max-read: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

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

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.nav a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }

/* === Hero === */
.hero {
  padding: 104px 0;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(43, 92, 255, 0.10), transparent 70%),
    var(--bg-alt);
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 860px;
  margin-inline: auto;
}
.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, transform 0.05s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: #fff; border-color: var(--muted); }

/* === Sections === */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: var(--max-read); margin: 0 auto 40px; text-align: center; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

/* === Cards / features === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(43, 92, 255, 0.10);
  color: var(--accent);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* === Integrations / connected accounts section === */
.integrations {
  background: var(--bg-dark);
  color: #eef1f6;
}
.integrations .eyebrow { color: #7fd7ff; }
.integrations h2 { color: #fff; }
.integrations .section-head p { color: #b4bcca; }
.scopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 10px;
}
.scope {
  border: 1px solid #26303d;
  background: #151b23;
  border-radius: var(--radius);
  padding: 22px;
}
.scope code {
  display: inline-block;
  background: #0b2a3a;
  color: #7fd7ff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.scope p { color: #b4bcca; font-size: 0.95rem; }
.integrations .note { color: #8b93a3; font-size: 0.9rem; margin-top: 26px; text-align: center; }

/* === Legal / long-form pages === */
.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.page-head .updated { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }

.legal { padding: 48px 0 72px; }
.legal .container { max-width: var(--max-read); }
.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #33373d; }
.legal p { margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; }
.legal .toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal .toc h2 { margin: 0 0 10px; font-size: 1rem; }
.legal .toc ol { margin-bottom: 0; }

/* === Placeholder to confirm === */
.placeholder {
  background: var(--warn-bg);
  border: 1px dashed var(--warn-border);
  color: var(--warn-text);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
}
.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 20px;
}
.footer-links a:hover { color: var(--text); }
.footer-links a:first-child { margin-left: 0; }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links a { margin: 0 10px; }
}
