:root {
  --bg: #0b0d12;
  --panel: #12151d;
  --panel-2: #171b25;
  --line: #262b38;
  --text: #e6e8ee;
  --muted: #9aa3b5;
  --accent: #6366f1;
  --accent-2: #a5b4fc;
  --good: #22c55e;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 20px; font-size: 14px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { padding: 56px 0 40px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto; height: 420px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 0, rgba(99,102,241,.28), transparent 70%);
}
h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; letter-spacing: -1px; margin: 0 0 16px; }
h1 em { font-style: normal; color: var(--accent-2); }
.lead { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: 18px; }
.cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600;
  background: var(--accent); color: #fff; border: 1px solid transparent;
}
.btn:hover { background: #4f46e5; text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--panel); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* demo */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; margin: 24px 0 72px; text-align: left; }
.pane { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.stage { padding: 34px 22px 26px; background: #f3f4f6; height: calc(100% - 41px); display: flex; align-items: center; justify-content: center; }
.pick { position: relative; outline: 2px solid var(--good); outline-offset: 3px; border-radius: 12px; }
.pick::before {
  content: "div.card  340×185"; position: absolute; left: -5px; top: -29px;
  font: 600 11px/1 var(--mono); color: #fff; background: #16a34a; padding: 4px 6px; border-radius: 4px; white-space: nowrap;
}
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 22px; max-width: 340px;
  box-shadow: 0 1px 3px rgba(0,0,0,.1); color: #1f2937; font-family: Arial, sans-serif; }
.card h3 { margin: 0 0 8px; font-size: 20px; line-height: 28px; color: #111827; }
.card p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #6b7280; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card .price { font-size: 24px; font-weight: 700; color: #4f46e5; }
.card .price small { font-size: 13px; font-weight: 400; color: #9ca3af; }
.card .buy { background: #4f46e5; color: #fff; border-radius: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; }
.tabs { display: flex; gap: 2px; padding: 10px 14px 0; font-size: 13px; }
.tabs span { padding: 6px 10px; border-radius: 6px 6px 0 0; color: var(--muted); }
.tabs .on { background: var(--panel-2); color: #fff; }
pre.code { margin: 0 14px 14px; padding: 12px; background: var(--panel-2); border-radius: 0 8px 8px 8px;
  font: 12px/1.6 var(--mono); color: #cdd3df; overflow: auto; max-height: 300px; white-space: pre; }
pre.code b { color: var(--accent-2); font-weight: 400; }
pre.code i { color: #86efac; font-style: normal; }

/* sections */
section { padding: 8px 0 64px; }
h2 { font-size: 28px; letter-spacing: -.4px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.tile h3 { margin: 0 0 6px; font-size: 16px; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.steps { counter-reset: s; }
.steps .tile::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(99,102,241,.2); color: var(--accent-2);
  font-weight: 700; font-size: 13px; margin-bottom: 10px; }
kbd { font: 12px var(--mono); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.plan.pro { border-color: var(--accent); }
.plan h3 { margin: 0; font-size: 16px; color: var(--muted); font-weight: 600; }
.plan .amount { font-size: 36px; font-weight: 700; margin: 6px 0 2px; }
.plan .amount small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; }
.plan li { padding: 4px 0 4px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); }

.faq { max-width: 720px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* text pages */
.doc { max-width: 720px; padding: 24px 0 64px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 20px; margin-top: 32px; }
.doc p, .doc li { color: #c3c9d6; }
.doc .updated { color: var(--muted); font-size: 14px; }

/* studio home */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; text-align: left; }
.product { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; color: var(--text); }
.product:hover { border-color: var(--accent); text-decoration: none; }
.product img { width: 44px; height: 44px; border-radius: 10px; }
.product h3 { margin: 12px 0 4px; }
.product p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* studio home: DS3C's own look (terminal prompt, lime accent); product pages keep indigo */
.home { --lime: #bef264; }
.home .hero::before { background: radial-gradient(600px 300px at 50% 0, rgba(190,242,100,.10), transparent 70%); }
.prompt { font-family: var(--mono); font-weight: 700; letter-spacing: -1.5px; }
.prompt .caret, .brand .caret { color: var(--lime); }
.brand.mono { font-family: var(--mono); gap: 6px; font-size: 18px; }
.cursor { display: inline-block; width: .5em; height: .9em; margin-left: .12em; vertical-align: -.08em;
  background: var(--lime); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.home .btn { background: var(--lime); color: #0b0d12; }
.home .btn:hover { background: #d9f99d; }
.showcase { display: grid; gap: 20px; }
.item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.item:nth-child(even) .cover { order: 2; }
.item .cover { display: block; background: #000; }
.item .cover img { display: block; width: 100%; height: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.item .body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.item .title { display: flex; align-items: center; gap: 14px; }
.item .title img { width: 52px; height: 52px; border-radius: 12px; }
.item h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.tag { font: 12px var(--mono); color: var(--muted); }
.item p { margin: 0; color: var(--muted); font-size: 15px; }
.item .btn { align-self: flex-start; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 800px) {
  .demo, .grid3, .plans { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; }
  .top nav { gap: 14px; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item:nth-child(even) .cover { order: 0; }
  .item .body { padding: 20px; }
}
