:root {
  --bg: #0f1218;
  --bg2: #161b24;
  --panel: #1c2230;
  --line: #2a3242;
  --text: #e6e9ef;
  --muted: #9aa4b5;
  --accent: #35d07f;
  --accent2: #4cc3ff;
  --warn: #ffb347;
  --radius: 14px;
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 18, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: 0.2px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2)); position: relative; }
.brand .logo::after { content: ""; position: absolute; inset: 9px; border: 2px solid #0f1218; border-radius: 3px; border-right: none; border-bottom: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a:hover, nav a.active { color: var(--text); text-decoration: none; }

.hero { padding: 70px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.12; margin: 0 0 16px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.hero video { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.cta { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; margin-right: 10px; margin-bottom: 10px; }
.cta.primary { background: var(--accent); color: #062b18; }
.cta.primary:hover { background: #4ee392; text-decoration: none; }
.cta.secondary { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.cta.secondary:hover { border-color: var(--accent2); text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; }

section { padding: 50px 0; }
section h2 { font-size: 30px; margin: 0 0 8px; }
section p.sub { color: var(--muted); margin: 0 0 28px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); margin-bottom: 14px; display: grid; place-items: center; color: var(--accent); font-weight: 700; }

.card.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text); }
.card.product:hover { text-decoration: none; border-color: var(--accent2); }
.card.product video, .card.product .art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); }
.card.product .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card.product .body p { flex: 1; }
.card.product .more { color: var(--accent2); font-size: 14px; font-weight: 600; }
.card.product.soon { opacity: 0.85; }
.tag { align-self: flex-start; font-size: 12px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tag.live { color: #062b18; background: var(--accent); border-color: var(--accent); }
.art { position: relative; }
.art::after { content: ""; position: absolute; inset: 0; background-repeat: repeat; opacity: 0.9; }
.art-env::after { background: linear-gradient(160deg, #1f3a2e, #10251c 60%, #3b6b4c); }
.art-anim::after { background: linear-gradient(160deg, #2b2340, #191330 60%, #6b4c9a); }
.art-vfx::after { background: radial-gradient(circle at 60% 40%, #ff9a3c 0, #c2401f 25%, #2a1410 60%, #14100f 100%); }
.art-tools::after { background: linear-gradient(160deg, #1f2a3a, #10161f 60%, #3a5f8a); }
.art-mail::after { background: linear-gradient(160deg, #233637, #111c1c 60%, #2f8a7d); }

.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.videos figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.videos video { width: 100%; }
.videos figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }
.videos figcaption b { color: var(--text); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 15px; color: var(--muted); }
.steps div::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #062b18; font-weight: 700; margin-bottom: 10px; }
.steps code { color: var(--text); }

pre, code { font-family: Consolas, "Cascadia Code", Menlo, monospace; font-size: 13.5px; }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
code { background: var(--bg2); padding: 1px 5px; border-radius: 4px; }
pre code { background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg2); }
.table-wrap { overflow-x: auto; }

.prose { max-width: 860px; }
.prose h1 { font-size: 36px; margin: 30px 0 10px; }
.prose h2 { font-size: 26px; margin: 42px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: #cfd6e2; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.toc a { display: block; color: var(--muted); padding: 4px 0; }
.toc a.l3 { padding-left: 14px; font-size: 13px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: 10px; padding: 14px 18px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero h1 { font-size: 34px; }
  .grid, .videos, .steps { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  nav a { margin-left: 14px; font-size: 14px; }
}
