:root {
  --bg: #080811;
  --bg-soft: #0e0d1c;
  --surface: rgba(255, 255, 255, .055);
  --surface-strong: #151329;
  --border: rgba(255, 255, 255, .11);
  --text: #f7f5ff;
  --muted: #b5b0c9;
  --dim: #8d88a3;
  --indigo: #8170ff;
  --violet: #ae63ff;
  --blue: #57c9ff;
  --gradient: linear-gradient(135deg, var(--blue), var(--indigo) 48%, var(--violet));
  --radius: 18px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(75, 91, 255, .14), transparent 30rem),
    radial-gradient(circle at 90% 15%, rgba(170, 75, 255, .1), transparent 27rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 10px 16px; background: #fff; color: #080811; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 10; min-height: var(--nav-height); border-bottom: 1px solid var(--border); background: rgba(8, 8, 17, .88); backdrop-filter: blur(18px); }
.nav { min-height: var(--nav-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--gradient); color: #080811; box-shadow: 0 8px 28px rgba(102, 104, 255, .35); }
.brand-mark[src] { object-fit: contain; background: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .91rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); flex-shrink: 0; }
.language-switcher button { min-width: 34px; padding: 5px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 700 .72rem Inter, sans-serif; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { background: var(--gradient); color: #080811; }
.language-switcher button:hover:not([aria-pressed="true"]) { color: var(--text); }

.hero { padding: clamp(88px, 13vw, 150px) 0 90px; text-align: center; }
.eyebrow { color: #b5adff; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; letter-spacing: -.025em; }
h1 { max-width: 900px; margin: 18px auto 24px; font-size: clamp(2.5rem, 7vw, 5rem); }
.gradient-text { background: var(--gradient); color: transparent; background-clip: text; -webkit-background-clip: text; }
.lead { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.button-primary { border-color: transparent; background: var(--gradient); color: #080811; }
.button-muted { color: var(--muted); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: .72; }
.button[aria-disabled="true"]:hover { transform: none; }

.benefits { padding: 0 0 110px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { padding: 25px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 11px; color: #c9c2ff; background: rgba(129,112,255,.14); font-size: 1.15rem; }
.card h2, .card h3 { margin: 0 0 9px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }

.showcase { padding: 0 0 120px; overflow: hidden; }
.showcase-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 30px; }
.showcase-heading h2 { margin: 8px 0 0; font-size: clamp(1.8rem, 4vw, 3rem); }
.showcase-heading > p { max-width: 470px; margin: 0; color: var(--muted); }
.carousel { width: min(1120px, calc(100% - 40px)); margin-inline: auto; overflow: hidden; }
.carousel-track { display: flex; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.showcase-slide { min-width: 100%; padding: 2px; }
.visual-placeholder { min-height: clamp(330px, 55vw, 620px); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 26px; background: radial-gradient(circle at 30% 25%, rgba(87,201,255,.25), transparent 35%), radial-gradient(circle at 70% 70%, rgba(174,99,255,.28), transparent 40%), #100f20; box-shadow: inset 0 0 80px rgba(129,112,255,.08); }
.visual-placeholder-alt { background: radial-gradient(circle at 65% 25%, rgba(174,99,255,.3), transparent 38%), radial-gradient(circle at 25% 75%, rgba(129,112,255,.22), transparent 38%), #100f20; }
.visual-placeholder-blue { background: radial-gradient(circle at 50% 20%, rgba(87,201,255,.25), transparent 40%), #0b1220; }
.visual-placeholder span { color: #aaa2da; font: 700 .78rem "Space Grotesk", sans-serif; letter-spacing: .14em; }
.visual-placeholder strong { margin-top: 10px; font: 700 clamp(1.5rem, 4vw, 3rem) "Space Grotesk", sans-serif; }
.visual-placeholder small { margin-top: 7px; color: var(--dim); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 22px; }
.carousel-controls > button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.15rem; cursor: pointer; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #49455f; cursor: pointer; transition: width .25s, background .25s; }
.carousel-dots button[aria-current="true"] { width: 25px; background: var(--indigo); }

.page-hero { padding: 75px 0 42px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 12px 0 16px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero .lead { margin: 0; max-width: 760px; }
.updated { margin: 22px 0 0; color: var(--dim); font-size: .9rem; }
.document-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 64px; justify-content: center; padding: 58px 0 100px; }
.toc { align-self: start; position: sticky; top: calc(var(--nav-height) + 28px); }
.toc strong { display: block; margin-bottom: 12px; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.toc a:hover { color: var(--text); }
.document section + section { margin-top: 48px; }
.document h2 { margin: 0 0 15px; font-size: 1.55rem; }
.document h3 { margin: 26px 0 8px; font-size: 1.04rem; }
.document p, .document li { color: var(--muted); }
.document p { margin: 0 0 15px; }
.document ul { margin: 0; padding-left: 22px; }
.document li + li { margin-top: 11px; }
.document a { color: #a9cfff; text-underline-offset: 3px; }
.notice { padding: 22px; border: 1px solid rgba(129,112,255,.28); border-radius: 14px; background: rgba(129,112,255,.08); }
.contact-box { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-strong); }
.contact-box p:last-child { margin-bottom: 0; }
.placeholder { display: inline-block; padding: 2px 8px; border-radius: 6px; background: rgba(255,190,75,.12); color: #ffdb9c; font-weight: 650; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.faq-list summary { cursor: pointer; padding: 19px 52px 19px 20px; font-family: "Space Grotesk", Inter, sans-serif; font-weight: 650; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; color: #aea4ff; font-size: 1.35rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 20px 20px; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; color: var(--dim); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .document-layout { grid-template-columns: 1fr; gap: 38px; }
  .toc { position: static; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); columns: 2; }
  .toc strong { column-span: all; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { position: static; }
  .nav { padding: 14px 0; align-items: flex-start; }
  .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
  .nav-links a { font-size: .82rem; }
  .brand span:last-child { display: none; }
  .hero { padding-top: 70px; }
  .grid { grid-template-columns: 1fr; }
  .showcase-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .carousel { width: calc(100% - 28px); }
  .page-hero { padding-top: 54px; }
  .toc { columns: 1; }
  .document-layout { padding-top: 36px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
