:root {
  --bg: #070b14;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --accent: #00e5ff;
  --text: #e6edf3;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 70% -10%, rgba(0, 229, 255, 0.13), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(148, 163, 184, 0.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 100% 3px;
  opacity: .28;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1020;
  color: #06111c;
  box-shadow: 0 0 36px rgba(0, 229, 255, .22);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.mobile-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); border-color: rgba(0,229,255,.38); background: rgba(255,255,255,.07); }
.button.primary { background: var(--accent); color: #06111c; border-color: transparent; font-weight: 800; }

.hero { padding: 92px 0 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr); gap: 42px; align-items: center; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.04em; margin: 0; }
h1 { margin-top: 18px; font-size: clamp(48px, 8vw, 86px); }
h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 22px; }
.lead { margin: 24px 0 0; color: var(--muted); font-size: 19px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-card, .panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.hero-card { padding: 12px; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.hero-card img { border-radius: 22px; border: 1px solid rgba(255,255,255,.08); }

.section { padding: 74px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 660px; color: var(--muted); margin: 12px 0 0; }

.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.035);
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,.35); background: rgba(255,255,255,.055); }
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(0,229,255,.1);
  color: var(--accent);
  margin-bottom: 16px;
}
.card p, .muted { color: var(--muted); margin: 10px 0 0; }

.gallery { grid-template-columns: 1.25fr .75fr; align-items: stretch; }
.gallery .panel { padding: 12px; }
.gallery img { border-radius: 20px; border: 1px solid var(--line); height: 100%; object-fit: cover; }
.stack { display: grid; gap: 16px; }

.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.flow-step { text-align: center; padding: 18px 12px; }
.flow-step strong { display: block; margin-top: 10px; font-size: 14px; }
.flow-step span { color: var(--muted); font-size: 13px; }

.stack-grid { grid-template-columns: repeat(4, 1fr); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; color: var(--muted); }
.checklist li::before { content: "OK"; position: absolute; left: 0; color: var(--accent); font-size: 11px; font-weight: 900; }

.code-block {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #050914;
  padding: 18px;
  overflow: auto;
}
.code-block pre { margin: 0; color: #dbeafe; font-size: 14px; }
.copy-button { position: absolute; right: 12px; top: 12px; min-height: 32px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 34px; padding: 34px 0 80px; }
.docs-sidebar { position: sticky; top: 96px; align-self: start; }
.docs-sidebar nav { display: grid; gap: 6px; }
.docs-sidebar a { padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: 14px; }
.docs-sidebar a:hover, .docs-sidebar a.active { color: var(--text); background: rgba(255,255,255,.055); }
.doc-article { max-width: 880px; }
.doc-article h1 { font-size: clamp(38px, 6vw, 60px); }
.doc-article h2 { margin-top: 48px; font-size: 30px; }
.doc-article h3 { margin-top: 28px; font-size: 22px; }
.doc-article p, .doc-article li { color: var(--muted); }
.doc-article a { color: var(--accent); }
.doc-article table { width: 100%; border-collapse: collapse; margin-top: 18px; overflow: hidden; border-radius: 18px; }
.doc-article th, .doc-article td { border: 1px solid var(--line); padding: 12px; text-align: left; color: var(--muted); }
.doc-article th { color: var(--text); background: rgba(255,255,255,.04); }

.footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .gallery, .docs-layout { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { transform: none; }
  .docs-sidebar { position: static; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 74px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-strong); }
  .nav-links.open { display: grid; }
  .mobile-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 58px; }
  .features, .flow, .stack-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .hero-actions .button { width: 100%; }
}
