:root {
  --bg: #0b0e15;
  --bg2: #0e1117;
  --panel: #161b26;
  --border: #283044;
  --text: #e7ecf5;
  --muted: #95a0b8;
  --accent: #5b7cff;
  --accent2: #9b7bff;
  --ok: #36c08a;
  --header-bg: rgba(11, 14, 21, 0.7);
  --maxw: 1080px;
}
:root[data-theme="light"] {
  --bg: #f5f7fc;
  --bg2: #ffffff;
  --panel: #ffffff;
  --border: #dde4f1;
  --text: #1a2333;
  --muted: #57637e;
  --header-bg: rgba(255, 255, 255, 0.82);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(91, 124, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(155, 123, 255, 0.12), transparent 55%), var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.2px; }
.brand svg { display: block; }
nav.top { display: flex; align-items: center; }
nav.top a { color: var(--muted); margin-left: 22px; font-weight: 600; font-size: 14.5px; }
nav.top a:hover { color: var(--text); text-decoration: none; }
.theme-toggle {
  margin-left: 20px; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  font-size: 15px; cursor: pointer; display: inline-grid; place-items: center; line-height: 1;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 72px 0 48px; }
.hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.byline { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.byline a { font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: linear-gradient(120deg, var(--accent), var(--accent2)); border: none; color: #fff; }
.shot { justify-self: center; }
.device { border: 1px solid var(--border); border-radius: 18px; padding: 10px; background: linear-gradient(180deg, #11151f, #0c0f17); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.device img { display: block; width: 100%; max-width: 100%; border-radius: 8px; }

/* sections */
section { padding: 40px 0; }
h2.sec { font-size: 26px; margin: 0 0 24px; letter-spacing: -0.3px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 12px; background: rgba(91, 124, 255, 0.14); font-size: 18px; }

/* links list */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.linkrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.linkrow:hover { border-color: var(--accent); text-decoration: none; }
.linkrow .t { font-weight: 700; }
.linkrow .d { color: var(--muted); font-size: 13.5px; }
.linkrow .arr { color: var(--accent); font-weight: 800; }

/* legal pages */
.legal { max-width: 820px; padding: 48px 0 80px; }
.legal h1 { font-size: 34px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.back { color: var(--muted); font-weight: 600; }

/* footer */
footer.site { border-top: 1px solid var(--border); margin-top: 40px; }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 26px 24px; flex-wrap: wrap; gap: 12px; }
footer.site .links2 a { color: var(--muted); margin-left: 18px; font-size: 14px; }
footer.site .links2 a:hover { color: var(--text); text-decoration: none; }
footer.site .cp { color: var(--muted); font-size: 14px; }

/* tablets / iPad */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 24px; }
  .hero h1 { font-size: 38px; }
  .shot { justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
/* phones */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 31px; }
  .hero p.lede { font-size: 17px; }
  .grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  nav.top a { margin-left: 14px; }
  .theme-toggle { margin-left: 12px; }
  footer.site .links2 a { margin-left: 12px; }
}
