:root {
  --bg: #0f0f17;
  --bg-2: #151522;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.10);
  --border-strong: rgba(255,255,255,.16);
  --text: #f7f5ff;
  --muted: #aaa6bb;
  --dim: #77748a;
  --purple: #7c3aed;
  --pink: #ec4899;
  --blue: #3b82f6;
  --shadow: 0 24px 80px rgba(0,0,0,.45);
  --radius: 22px;
  --radius-sm: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(124,58,237,.11), transparent 32rem),
    radial-gradient(circle at 95% 35%, rgba(236,72,153,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }

.ambient {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
  opacity: .16;
}
.ambient-one { background: var(--purple); top: -16rem; left: -10rem; }
.ambient-two { background: var(--pink); right: -18rem; top: 28rem; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15,15,23,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,.24);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 20px rgba(0,0,0,.28);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 11px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}
.nav a:hover, .nav a.active { color: #fff; background: var(--surface-strong); }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 70px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #c4b5fd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 6.7rem);
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 span {
  background: linear-gradient(105deg, #c4b5fd 4%, #a78bfa 35%, #f0abfc 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 750;
  font-size: .94rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 34px rgba(124,58,237,.32);
}
.button.secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.button.secondary:hover { border-color: rgba(196,181,253,.45); }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 6%;
  background: linear-gradient(135deg, rgba(124,58,237,.28), rgba(236,72,153,.16));
  filter: blur(70px);
  z-index: -1;
}
.mock-window {
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31,29,51,.94), rgba(15,15,23,.97));
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--border);
}
.mock-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 0 14px rgba(124,58,237,.65);
}
.mock-close { color: var(--dim); font-size: 1.2rem; }
.mock-body { padding: 20px; }
.mock-section {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}
.mock-label { color: var(--muted); font-size: .69rem; letter-spacing: .1em; font-weight: 800; margin-bottom: 9px; }
.mock-input {
  padding: 11px 12px;
  border-radius: 9px;
  background: rgba(0,0,0,.28);
  border: 1px solid var(--border);
  color: #d9d5e8;
  font-size: .88rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.mock-chips span { padding: 6px 10px; border-radius: 999px; background: rgba(124,58,237,.12); border: 1px solid rgba(124,58,237,.24); color: #d8ccff; font-size: .75rem; }
.mock-button { text-align: center; padding: 11px; border-radius: 11px; background: linear-gradient(135deg, var(--purple), var(--pink)); font-weight: 800; }

.section { padding: 74px 0; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading h2, .split-card h2, .cta-card h2, .support-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}
.section-heading > p:last-child, .split-card > div > p:last-child, .cta-card p, .support-card p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
.feature-card:hover { border-color: rgba(196,181,253,.26); transform: translateY(-2px); transition: .2s ease; }
.feature-icon {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(124,58,237,.13); border: 1px solid rgba(124,58,237,.2); font-size: 1.1rem;
}
.feature-card h3 { margin: 22px 0 8px; font-size: 1.13rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.split-card, .cta-card, .support-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  box-shadow: var(--shadow);
}
.split-card { padding: 38px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: rgba(0,0,0,.12); }
.steps li > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(124,58,237,.16); color: #d8ccff; font-weight: 800; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.cta-card { padding: 28px 30px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.cta-icon { width: 66px; height: 66px; border-radius: 17px; object-fit: cover; box-shadow: 0 12px 28px rgba(0,0,0,.26); }
.cta-card h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
.cta-card p { margin: 6px 0 0; }

.page-main { padding: 72px 0 90px; }
.page-hero { max-width: 820px; padding: 42px 0 56px; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.7rem); }
.page-hero > p:last-child { color: var(--muted); font-size: 1.05rem; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; align-items: start; }
.docs-nav {
  position: sticky; top: 104px;
  display: grid; gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(255,255,255,.025);
}
.docs-nav a { padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .9rem; }
.docs-nav a:hover { color: #fff; background: var(--surface-strong); }
.docs-content { display: grid; gap: 16px; }
.doc-section, .policy-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
}
.doc-section h2, .policy-card h2 { margin: 0 0 10px; font-size: 1.55rem; letter-spacing: -.025em; }
.doc-section h3 { margin-top: 26px; font-size: 1.02rem; }
.doc-section p, .doc-section li, .policy-card p { color: var(--muted); }
.doc-section ul, .doc-section ol { padding-left: 1.2rem; }
.tip, .note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.22);
  color: #d9d1f5;
}
.note { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.2); }
.example-grid, .mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.example-grid > div, .mini-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: rgba(0,0,0,.12); }
.example-grid code { display: block; font-size: 1.05rem; color: #ddd5ff; margin-bottom: 4px; }
.example-grid span { color: var(--muted); font-size: .86rem; }
.mini-grid { grid-template-columns: repeat(2, 1fr); }
.mini-grid p { margin: 5px 0 0; font-size: .9rem; }
.support-card { padding: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.support-card h2 { font-size: 1.8rem; }
.support-card p { margin: 8px 0 0; }
.narrow-page { max-width: 900px; }
.policy-card { display: grid; gap: 8px; }
.policy-card section { padding: 8px 0 18px; border-bottom: 1px solid var(--border); }
.policy-card section:last-child { border-bottom: 0; padding-bottom: 0; }
.policy-card p { margin-bottom: 0; }
.policy-card a { color: #c4b5fd; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.site-footer {
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.footer-icon { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 44px; padding-top: 72px; }
  .hero-visual { max-width: 620px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-card { grid-template-columns: 1fr; gap: 30px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .cta-card { grid-template-columns: auto 1fr; }
  .cta-card .button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell, .site-header { width: min(100% - 24px, 1160px); }
  .site-header { top: 8px; padding: 10px; }
  .brand span { display: none; }
  .nav a { padding: 7px 8px; font-size: .84rem; }
  .hero { padding-top: 58px; }
  .hero h1, .page-hero h1 { letter-spacing: -.05em; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .feature-grid, .example-grid, .mini-grid, .docs-nav { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .section { padding: 52px 0; }
  .split-card, .doc-section, .policy-card { padding: 22px; }
  .cta-card { grid-template-columns: 1fr; text-align: left; }
  .support-card { align-items: stretch; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .mock-window { transform: none; }
}
