:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0e1729;
  --body: #43516a;
  --muted: #6a7a92;
  --line: #e2e8f2;
  --brand: #3157f6;
  --brand-dark: #2244d8;
  --brand-2: #7c5cff;
  --brand-soft: #eef2ff;
  --max: 1160px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 14px 40px rgba(20, 36, 80, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: clamp(1.5rem, 5vw, 3.5rem);
  padding-right: clamp(1.5rem, 5vw, 3.5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.78); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 87, 246, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 242, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 80px;
}

.brand { display: inline-flex; text-decoration: none; }
.brand img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
}

.site-nav { display: flex; gap: 1.9rem; margin-left: auto; }
.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--ink); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 87, 246, 0.28);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(49, 87, 246, 0.32);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: #c9d4e6; background: #fbfcff; }

.btn-light { background: #fff; color: var(--brand); box-shadow: 0 10px 30px rgba(6, 12, 40, 0.22); }
.btn-light:hover { background: #f2f5ff; transform: translateY(-1px); }

.btn-small { padding: 0.58rem 1.05rem; font-size: 0.84rem; }
.btn-large { padding: 0.95rem 1.75rem; font-size: 0.98rem; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(10px);
}
.hero::before {
  width: 620px;
  height: 620px;
  top: -300px;
  left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(49, 87, 246, 0.16), transparent 65%);
}
.hero::after {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.14), transparent 65%);
}

.hero-inner {
  position: relative;
  max-width: 900px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid #d8e1f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--body);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.8rem, 6.6vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not (background-clip: text) {
  .grad { color: var(--brand); }
}

.lede {
  margin: 0 auto 2.25rem;
  max-width: 62ch;
  font-size: 1.1rem;
  color: var(--body);
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-points span { color: #16a34a; font-weight: 700; margin-right: 0.25rem; }

/* Name card */

.name-wrap { position: relative; }

.name-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding: 1.6rem 2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.name-part { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.name-part p { margin: 0; font-size: 0.8rem; color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.chip--outline { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chip--brand {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(49, 87, 246, 0.25);
}

.name-op { font-size: 1.2rem; color: #b6c2d6; }

/* Sections */

.section { padding: clamp(4rem, 9vw, 7rem) 0; }

.section--tint {
  background: linear-gradient(180deg, #fff, #eef3fb);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

.section-lede { margin: 1rem 0 0; font-size: 1.02rem; color: var(--body); }

.body { color: var(--body); max-width: 52ch; }
.note { font-size: 0.82rem; color: var(--muted); max-width: 50ch; }

/* Features */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.feature {
  padding: clamp(1.6rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  border-color: #d2dcf0;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  border-radius: 13px;
  background: linear-gradient(160deg, #eef2ff, #e6ecff);
  color: var(--brand);
}
.icon svg { width: 23px; height: 23px; }

.feature h3 { margin: 0 0 0.5rem; font-size: 1.12rem; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--body); }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.08rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--body); }

/* API split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.code {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1.1rem;
  background: #f8faff;
  border-bottom: 1px solid var(--line);
}
.code-dot { width: 9px; height: 9px; border-radius: 50%; background: #dbe3f1; }
.code-title {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.code pre {
  margin: 0;
  padding: 1.5rem 1.35rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 2;
  color: #22304a;
}
.code .c { color: #8a99b3; }
.code .s { color: var(--brand); }

/* Signup */

.signup-section { padding-top: clamp(2rem, 4vw, 3rem); }

.signup-card {
  position: relative;
  padding: clamp(2.25rem, 6vw, 4.25rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(255, 255, 255, 0.14), transparent 46%),
    linear-gradient(118deg, #2445d8 0%, #3157f6 45%, #7c5cff 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(37, 64, 190, 0.28);
}
.signup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.signup-card > * { position: relative; }
.signup-card h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.signup-card p:not(.eyebrow):not(.signup-fine) {
  margin: 1.15rem auto 2rem;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.86);
}
.signup-fine { margin: 1.25rem 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.72); }

/* FAQ */

.faq {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 1.4rem;
  max-width: 66ch;
  font-size: 0.96rem;
  color: var(--body);
}

/* Footer */

.site-footer {
  padding: 3.25rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--brand);
}
.footer-note { margin: 0; font-size: 0.85rem; color: var(--muted); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-meta a { color: var(--ink); text-decoration: none; }
.footer-meta a:hover { color: var(--brand); }

.footer-legal {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.footer-legal p { margin: 0; font-size: 0.72rem; color: #8a99b3; }

/* Responsive */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .btn-small { margin-left: auto; }
}

@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .name-card { gap: 1rem 1.5rem; padding: 1.5rem; }
  .name-op { display: none; }
}

@media (max-width: 520px) {
  .brand img { height: 38px; }
  .actions .btn { width: 100%; }
  .hero-points { flex-direction: column; align-items: center; gap: 0.4rem; }
  .name-part p { display: none; }
  .name-card { gap: 1rem; padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
