:root {
  color-scheme: dark;
  --page: #07090d;
  --surface: rgba(22, 26, 34, 0.76);
  --surface-solid: #151922;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #f5f7fb;
  --muted: #aeb6c7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #278cff;
  --accent-soft: rgba(39, 140, 255, 0.16);
  --success: #5ce0a0;
  --danger: #ff7f8b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --max: 1200px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -8%, rgba(39, 140, 255, 0.19), transparent 31rem),
    radial-gradient(circle at 90% 14%, rgba(124, 89, 255, 0.1), transparent 27rem),
    var(--page);
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(77, 164, 255, 0.72); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  color: #06080c;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 14px 18px;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(22px) saturate(145%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100%, var(--max));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-mark svg { width: 23px; }
.brand-copy small { display: block; color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 13px; color: var(--muted); border-radius: 999px; text-decoration: none; font-size: .92rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-soft); }
.site-nav a.accent { color: white; background: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 14px; color: white; background: var(--surface); }

.shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.hero { padding: clamp(68px, 10vw, 128px) 0 52px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(30px, 7vw, 90px); align-items: center; }
.eyebrow { color: #78b8ff; font-weight: 760; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.026em; }
h1 { max-width: 780px; margin: 16px 0 20px; font-size: clamp(2.8rem, 7vw, 6.4rem); }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(1.04rem, 1.8vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border: 1px solid var(--line); border-radius: 999px; color: white; background: var(--surface); text-decoration: none; font-weight: 720; }
.button.primary { border-color: transparent; background: var(--accent); box-shadow: 0 14px 34px rgba(39, 140, 255, .25); }
.hero-panel, .card, .docs-sidebar, .docs-article, .form-panel {
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(20px) saturate(130%);
}
.hero-panel { padding: 28px; border-radius: 30px; transform: rotate(1.5deg); }
.window-dots { display: flex; gap: 7px; margin-bottom: 30px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.23); }
.window-dots i:first-child { background: var(--accent); }
.panel-title { margin: 0 0 8px; font-size: 1.5rem; }
.panel-list { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.panel-list li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.18); }
.panel-list span { color: var(--success); }

.section { padding: 52px 0; }
.section-heading { max-width: 680px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0; font-size: clamp(2rem, 4vw, 3.3rem); }
.section-heading p { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { min-height: 190px; padding: 24px; border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(70, 158, 255, .5); }
.card-icon { display: grid; width: 42px; height: 42px; margin-bottom: 30px; place-items: center; border-radius: 13px; color: #95c8ff; background: var(--accent-soft); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 42px 0 78px; align-items: start; }
.docs-sidebar { position: sticky; top: 96px; padding: 12px; border-radius: 20px; }
.docs-sidebar strong { display: block; padding: 12px 14px; }
.docs-sidebar a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.docs-sidebar a:hover, .docs-sidebar a[aria-current="page"] { color: white; background: var(--surface-soft); }
.docs-article { min-width: 0; padding: clamp(24px, 5vw, 64px); border-radius: 28px; }
.docs-article h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); }
.docs-article h2 { margin-top: 2.1em; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.docs-article h3 { margin-top: 1.8em; font-size: 1.25rem; }
.docs-article p, .docs-article li { color: #c9cfdb; }
.docs-article a { color: #83bdff; }
.docs-article code { padding: .15em .38em; border-radius: 6px; background: rgba(255,255,255,.08); overflow-wrap: anywhere; word-break: break-word; }
.docs-article pre { overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #090c12; }
.docs-article pre code { padding: 0; background: none; }
.docs-article hr { margin: 42px 0; border: 0; border-top: 1px solid var(--line); }

.support-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr); gap: clamp(28px, 6vw, 74px); padding: 70px 0 90px; align-items: start; }
.support-copy { position: sticky; top: 110px; }
.support-copy h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.support-copy p { color: var(--muted); }
.support-points { display: grid; gap: 12px; margin-top: 28px; }
.support-point { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.support-point strong { display: block; }
.support-point span { color: var(--muted); font-size: .9rem; }
.form-panel { padding: clamp(22px, 4vw, 42px); border-radius: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; }
.field small { color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: white;
  background: rgba(3, 5, 9, .6);
  padding: 13px 14px;
}
.field textarea { min-height: 165px; resize: vertical; }
.field input::file-selector-button { margin-right: 12px; border: 0; border-radius: 9px; padding: 7px 10px; color: white; background: rgba(255,255,255,.1); }
.honeypot { position: absolute; left: -10000px; }
.form-submit { width: 100%; min-height: 52px; margin-top: 22px; border: 0; border-radius: 999px; color: white; background: var(--accent); font-weight: 760; cursor: pointer; }
.form-submit[disabled] { opacity: .55; cursor: wait; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 14px; }
.form-status.show { display: block; }
.form-status.success { color: #bcffdb; background: rgba(22, 147, 88, .18); border: 1px solid rgba(92,224,160,.3); }
.form-status.error { color: #ffd2d6; background: rgba(168, 40, 55, .18); border: 1px solid rgba(255,127,139,.3); }
.legal-note { margin-top: 16px; color: var(--muted); font-size: .82rem; }

.site-footer { padding: 28px 18px 42px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(100%, var(--max)); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a { text-decoration: none; }

@media (max-width: 880px) {
  .menu-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: 76px; right: 18px; left: 18px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,16,22,.97); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .hero-grid, .support-layout { grid-template-columns: 1fr; }
  .hero-panel { max-width: 580px; transform: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; display: flex; overflow-x: auto; }
  .docs-sidebar strong { min-width: max-content; }
  .docs-sidebar a { min-width: max-content; }
  .support-copy { position: static; }
}

@media (max-width: 590px) {
  .site-header { padding-inline: 14px; }
  .brand-copy small { display: none; }
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 50px; }
  .card-grid, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .docs-article { border-radius: 22px; }
  .footer-inner { display: grid; }
  .footer-inner nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
