/* Demo site styles. Not part of the plugin. */
:root {
  --bg: #0b0d10;
  --panel: #14181d;
  --panel-2: #1b2027;
  --line: #262d36;
  --text: #e9ecf0;
  --muted: #9aa4b1;
  --accent: #ffb27a;
  --accent-ink: #2a1608;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }

.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff7a59);
  position: relative; flex: none;
}

.brand .mark::after {
  content: ""; position: absolute; inset: 6px 12px; background: #0b0d10; border-radius: 2px;
}

nav.site { display: flex; gap: 18px; font-size: 14px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover { color: var(--text); }

.hero { padding: 64px 0 32px; }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 20ch;
}
.hero p.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 58ch; margin: 0 0 26px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--panel);
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn:hover { filter: brightness(1.06); }

.splitview { border-radius: var(--radius); }

.hero-shot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 34px 0 10px;
}
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

section { padding: 54px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 26px; max-width: 60ch; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .splitview { border-radius: 0; }
.card .cap { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.card .cap strong { color: var(--text); font-weight: 600; }

.builder { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .builder { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel h3 { margin: 0 0 14px; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field select, .field input[type="text"], .field input[type="range"] {
  width: 100%; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 14px;
}
.field input[type="range"] { padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.code {
  position: relative; background: #0e1116; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-top: 14px;
}
.code pre { margin: 0; overflow-x: auto; font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cfd6de; }
.code button {
  position: absolute; top: 10px; right: 10px; padding: 6px 11px; font-size: 12px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer;
}
.code button:hover { border-color: var(--accent); color: var(--accent); }

footer.site { padding: 34px 0 60px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
