:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: #151924;
  --border: #232838;
  --text: #e7eaf0;
  --muted: #9aa3b2;
  --brand: #6d5efc;
  --brand-2: #22d3ee;
  --accent: #ff5c8a;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  font-weight: 800; color: #fff; font-size: 15px;
}
.brand .logo-img {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: block;
}
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(109,94,252,0.25), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
h1 .grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109,94,252,0.25), rgba(34,211,238,0.25));
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* Steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-weight: 700; color: var(--brand-2);
}
.step h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

/* Integrations */
.logos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.logo-chip {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(109,94,252,0.15), rgba(34,211,238,0.12));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 24px;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.cta p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: left; }
.legal .updated { color: var(--muted); margin-bottom: 40px; font-size: 0.95rem; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #c7cdd8; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--brand-2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--muted); }

@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}
