:root {
  --bg: #000000;
  --bg-soft: #050505;
  --panel: #080808;
  --panel-2: #0d0d0e;
  --panel-3: #111112;
  --line: rgba(211, 208, 220, 0.13);
  --line-strong: rgba(151, 111, 255, 0.42);
  --text: #f7f7f8;
  --muted: #9e9da6;
  --muted-2: #6f6e76;
  --violet: #8f6cff;
  --violet-2: #b79bff;
  --silver: #e7e5eb;
  --green: #b9ffdc;
  --danger: #ff8fbf;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 28px 90px rgba(0,0,0,.56);
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(820px 380px at 50% -10%, rgba(118, 72, 255, .19), transparent 68%),
    radial-gradient(740px 420px at 100% 42%, rgba(111, 85, 178, .08), transparent 72%),
    #000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 82%);
}

::selection { background: rgba(155, 118, 255, .34); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #030303; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), #57525f); border-radius: 999px; }

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

.wrap { position: relative; z-index: 1; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 15px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(0,0,0,.84);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 780;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  position: relative;
  background: linear-gradient(135deg, #7447ff 0%, #b994ff 54%, #eceaf0 100%);
  box-shadow: 0 0 30px rgba(133, 87, 255, .38), inset 0 0 0 1px rgba(255,255,255,.26);
}
.logo::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 8px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 11px;
  color: #8f8e95;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, transform .18s ease;
  border-radius: 10px;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.045);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), #d7d4dc);
  box-shadow: 0 0 18px rgba(143,108,255,.55);
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: .9rem;
  font-weight: 760;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7851ff 0%, #a58cff 48%, #d9d6de 100%);
  box-shadow: 0 10px 32px rgba(122,79,255,.25), inset 0 0 0 1px rgba(255,255,255,.2);
}
.btn-primary:hover {
  box-shadow: 0 15px 38px rgba(122,79,255,.35), inset 0 0 0 1px rgba(255,255,255,.32);
}
.btn-ghost {
  color: #eee;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.11);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(157,122,255,.52);
  background: linear-gradient(180deg, rgba(148,110,255,.1), rgba(255,255,255,.025));
}

.hero, .section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 560px;
}
.hero {
  min-height: 760px;
  padding-top: 110px;
  padding-bottom: 60px;
  content-visibility: visible;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 700px;
  height: 420px;
  right: -140px;
  top: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,83,255,.18), transparent 67%);
  filter: blur(18px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 36px;
  right: -40px;
  width: 560px;
  height: 560px;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(145deg, rgba(255,255,255,.04), transparent 52%), linear-gradient(135deg, rgba(126,89,255,.08), rgba(255,255,255,.01));
  transform: rotate(8deg);
  mask-image: linear-gradient(90deg, transparent, black 35%, black 82%, transparent);
}

.kicker {
  color: #c2b8da;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  vertical-align: middle;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--violet), #aaa8ae);
}

h1, h2, h3 { line-height: 1.08; }
h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  max-width: 12ch;
  margin: 16px 0 22px;
  letter-spacing: -.062em;
  font-weight: 840;
}
h1 span, h1 { color: #fff; }
h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 16px;
  letter-spacing: -.045em;
  font-weight: 800;
}
h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -.02em; }
.lead { max-width: 66ch; color: #98979f; font-size: 1.04rem; }
.hero .lead { max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 58px;
}
.stat, .card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid transparent;
  border-radius: var(--radius);
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.stat::before, .card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.11), rgba(143,108,255,.23), rgba(255,255,255,.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.stat {
  min-height: 128px;
  padding: 20px;
  text-align: left;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.stat:hover, .card:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(143,108,255,.095), rgba(255,255,255,.015));
  box-shadow: 0 18px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(143,108,255,.12);
}
.stat b {
  display: block;
  font-size: 1.28rem;
  margin-bottom: 7px;
  color: #f4f2f8;
  letter-spacing: -.03em;
}
.stat { color: #7f7e87; font-size: .89rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  padding: 24px;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.card p { color: #89878f; }
.card h3 { color: #f1f0f4; }
.card a, .section a:not(.btn) { color: #c4b2ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card a:hover, .section a:not(.btn):hover { color: #fff; }

.marquee { display: none; }

ol.steps, ul.clean {
  display: grid;
  gap: 11px;
  padding-left: 0;
  list-style: none;
  color: #929098;
  max-width: 880px;
  counter-reset: step;
}
ol.steps li, ul.clean li {
  position: relative;
  padding: 18px 20px 18px 58px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 15px;
}
ol.steps { counter-reset: step; }
ol.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 17px;
  color: #b99eff;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); }
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: .93rem;
  background: rgba(255,255,255,.015);
}
th, td { text-align: left; padding: 15px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
th { color: #d3c2ff; font-weight: 750; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(143,108,255,.045); }

.faq details {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 17px 19px;
  margin: 11px 0;
  transition: border-color .2s ease, background .2s ease;
}
.faq details:hover, .faq details[open] { border-color: rgba(143,108,255,.32); background: linear-gradient(180deg, rgba(143,108,255,.08), rgba(255,255,255,.014)); }
.faq summary { cursor: pointer; font-weight: 700; color: #f1f0f4; }
.faq p { color: #929098; margin-top: 10px; max-width: 78ch; }

.timeline { border-left: 1px solid rgba(143,108,255,.33); margin-left: 8px; padding-left: 28px; }
.timeline article { margin: 0 0 32px; position: relative; }
.timeline article::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--silver));
  box-shadow: 0 0 18px rgba(143,108,255,.55);
}

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 143, 191, .23);
  background: linear-gradient(180deg, rgba(255,143,191,.07), rgba(255,255,255,.012));
  color: #d8b7c6;
}

.crumbs { color: #707078; font-size: .86rem; margin-bottom: 14px; }
.crumbs a { color: #b9a4ea; text-decoration: none; }
.crumbs a:hover { color: #fff; }

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 78px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #75747c;
  font-size: .88rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.foot-grid strong { color: #f1eff4 !important; }
.foot-grid a { display: block; color: #797880; text-decoration: none; margin: 8px 0; transition: color .18s ease; }
.foot-grid a:hover { color: #fff; }

/* Page-level visual hierarchy for pages that use the existing markup. */
.section + .section { border-top: 1px solid rgba(255,255,255,.045); }
.section > h2 + .lead { margin-bottom: 22px; }
.section > .grid { margin-top: 26px !important; }
.section > .hero-actions { margin-top: 24px; }

@media (max-width: 980px) {
  .nav { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-links.is-open {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0,1fr));
    padding-top: 6px;
  }
  .nav-links a { padding: 11px 12px; text-align: center; }
  .nav::after { content: ""; display: block; }
  .nav-toggle { display: inline-flex; }
  .hero::after { right: -190px; opacity: .42; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 981px) {
  .nav-toggle { display: none !important; }
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: #eee;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 680px) {
  .nav { padding: 13px 18px; }
  .nav > .btn-primary { display: none; }
  .hero, .section { width: min(var(--max), calc(100% - 36px)); padding: 66px 0; }
  .hero { min-height: auto; padding-top: 78px; }
  .hero::after { width: 420px; height: 420px; right: -210px; top: 100px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); max-width: 11ch; }
  h2 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .lead { font-size: 1rem; }
  .stats, .grid { grid-template-columns: 1fr; }
  .stat { min-height: auto; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links.is-open { grid-template-columns: 1fr; }
}

.hero { position: relative; }
.hero-preview {
  position: absolute;
  right: 12px;
  top: 154px;
  width: 490px;
  height: 330px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(145deg, #09090b, #030304 65%, #0b0712);
  box-shadow: 0 35px 90px rgba(0,0,0,.72), 0 0 60px rgba(112,75,255,.15), inset 0 0 0 1px rgba(255,255,255,.025);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
}
.hero-preview::before {
  content: "";
  position: absolute;
  inset: -25% -10% auto auto;
  width: 280px;
  height: 200px;
  background: radial-gradient(circle, rgba(129,82,255,.25), transparent 70%);
  filter: blur(20px);
}
.preview-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #84828b;
  font-size: 9px;
}
.preview-top > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55535a;
}
.preview-top b { margin-left: 8px; color: #d9d6df; font-size: 10px; }
.preview-top em { margin-left: auto; font-style: normal; color: #6e6c74; }
.preview-body { display: grid; grid-template-columns: 48px 1fr 126px; height: calc(100% - 44px); }
.preview-sidebar { padding: 16px 10px; border-right: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.012); }
.preview-sidebar i { display:block; height: 7px; width: 24px; margin: 0 auto 16px; border-radius: 5px; background: linear-gradient(90deg, #27242d, #5c4d81); }
.preview-editor { min-width: 0; background: linear-gradient(180deg, rgba(125,85,255,.045), transparent 35%); }
.preview-tabs { height: 36px; display:flex; align-items:center; gap:6px; padding: 0 9px; border-bottom:1px solid rgba(255,255,255,.06); }
.preview-tabs span { padding: 6px 8px; border-radius: 7px; font-size: 8px; color: #7c7982; background: rgba(255,255,255,.02); }
.preview-tabs span:first-child { color: #e7e4eb; background: linear-gradient(135deg, rgba(140,105,255,.16), rgba(255,255,255,.03)); }
.code-lines { padding: 18px 16px; display:grid; gap: 10px; }
.code-lines i { display:block; height: 5px; border-radius: 4px; background: linear-gradient(90deg, rgba(183,152,255,.5), rgba(255,255,255,.04)); }
.code-lines i:nth-child(1){width:68%}.code-lines i:nth-child(2){width:84%}.code-lines i:nth-child(3){width:55%}.code-lines i:nth-child(4){width:77%}.code-lines i:nth-child(5){width:48%}.code-lines i:nth-child(6){width:72%}.code-lines i:nth-child(7){width:60%}
.preview-panel { border-left: 1px solid rgba(255,255,255,.06); padding: 16px 12px; display:flex; flex-direction:column; gap: 10px; background: rgba(255,255,255,.018); }
.preview-panel strong { color:#e7e4eb; font-size:9px; margin-bottom:4px; }
.preview-panel small { color:#6f6d75; font-size:8px; padding-left:8px; }
.preview-glow { position:absolute; width: 180px; height:180px; right:-90px; bottom:-90px; border-radius:50%; background: radial-gradient(circle, rgba(143,108,255,.32), transparent 70%); filter:blur(4px); }

@media (max-width: 1100px) {
  .hero-preview { width: 410px; right: 0; opacity: .84; }
}
@media (max-width: 980px) {
  .hero { padding-bottom: 520px; }
  .hero-preview { top: auto; bottom: 72px; left: 50%; right: auto; transform: translateX(-50%) perspective(1000px) rotateY(-6deg); opacity: .92; }
}
@media (max-width: 680px) {
  .hero { padding-bottom: 390px; }
  .hero-preview { width: 100%; max-width: 460px; height: 270px; bottom: 38px; transform: translateX(-50%); }
  .preview-body { grid-template-columns: 36px 1fr 92px; }
}

.sitemap-hero { min-height: 420px; }
.sitemap-section { padding-top: 40px; padding-bottom: 40px; }
.sitemap-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; }
.sitemap-card span { color: #706e77; font-size: .82rem; transition: color .18s ease; }
.sitemap-card:hover span { color: #c4b2ff; }
code { color: #d6c8ff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
