:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --card: #1a1e26;
  --line: #2a2f3a;
  --text: #eef1f6;
  --muted: #9aa3b2;
  --accent-a: #1fa2ff;
  --accent-b: #2fe6a7;
  --on-accent: #06221b;
  --win: #22262f;
  --win-side: #1b1e25;
  --win-group: #2a2f39;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --bg-soft: #eef0f4;
    --card: #ffffff;
    --line: #dfe3ea;
    --text: #14171d;
    --muted: #5d6675;
    --on-accent: #06221b;
    --win: #f4f5f7;
    --win-side: #e9ebef;
    --win-group: #ffffff;
    --shadow: 0 30px 70px rgba(20, 30, 50, 0.18);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.nav, main, footer {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}

.nav nav { display: flex; align-items: center; gap: 24px; }

.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}

.nav nav a:hover { color: var(--text); }

a.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px;
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
}

a.lang:hover { color: var(--text); border-color: var(--muted); }

section { padding: 56px 0; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }

h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 700; letter-spacing: -0.025em; }

h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 28px; }

h3 { font-size: 18px; margin-bottom: 8px; }

p { margin: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
  padding-top: 40px;
}

.hero-icon { display: block; margin: 0 0 12px -14px; }

.sub { color: var(--muted); font-size: 20px; margin: 20px 0 32px; max-width: 30em; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: var(--on-accent);
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 30px rgba(47, 230, 167, 0.22);
}

.button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(47, 230, 167, 0.32); }

.meta { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---- mock settings window ---- */

.window {
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }

.titlebar span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.window-body { display: grid; grid-template-columns: 38% 1fr; min-height: 330px; }

.sidebar { background: var(--win-side); border-right: 1px solid var(--line); padding: 10px 8px; }

.scene {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
}

.scene.active { background: rgba(31, 162, 255, 0.22); }

.scene strong { display: block; font-weight: 600; }

.scene small { color: var(--muted); font-size: 11.5px; }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: transparent;
}

.dot.on { background: #2fd27a; }

.detail { padding: 14px 16px 18px; }

.detail h4 { font-size: 12px; color: var(--muted); font-weight: 600; margin: 12px 4px 6px; }

.detail h4:first-child { margin-top: 0; }

.group { background: var(--win-group); border-radius: 9px; border: 1px solid var(--line); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.row + .row { border-top: 1px solid var(--line); }

.row > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }

.row em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

.row .value, .row.add { color: var(--muted); }

.check { color: var(--muted); white-space: nowrap; }

.check::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--accent-a);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* ---- sections ---- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}

.card p, .steps p, .triggers dd, .faq p, .lede { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 760px; }

.steps li { display: flex; gap: 18px; align-items: flex-start; }

.num {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: var(--on-accent);
  font-weight: 700;
  font-size: 15px;
}

.lede { margin: -16px 0 24px; }

.triggers { margin: 0; border-top: 1px solid var(--line); }

.triggers > div {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.triggers dt { font-weight: 600; }

.triggers dd { margin: 0; }

.faq { max-width: 760px; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }

.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1.2; }

.faq details[open] summary::after { content: "−"; }

.faq p { margin-top: 10px; }

code {
  font: 0.88em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-all;
}

.closing { text-align: center; padding: 72px 0 88px; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

:focus-visible { outline: 2px solid var(--accent-a); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .cards { grid-template-columns: 1fr; }
  .triggers > div { grid-template-columns: 1fr; gap: 4px; }
  .nav nav { gap: 16px; }
}

@media (max-width: 480px) {
  .nav nav a:not(.lang) { display: none; }
  .window-body { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
