:root {
  --bg-1: #07090c;
  --bg-2: #0b0d12;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #e7e9f5;
  --muted: #aeb5c6;
  --accent-1: #664cf7;
  --accent-2: #7c5cff;
  --accent-3: #f59e0b;
  --positive: #22c55e;
  --danger: #ef4444;
  --link: #664cf7;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
a { color: var(--link); }
a:hover { color: color-mix(in srgb, var(--link) 80%, white 20%); }
body {
  margin: 0;
  font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: var(--bg-1);
  background-image:
    radial-gradient(1200px 800px at 20% -10%, #101524 0%, transparent 60%),
    radial-gradient(1100px 720px at 120% 110%, #0b1320 0%, transparent 62%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2)),
    url('./noise_64.png');
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, 220px 220px;
  background-attachment: fixed, fixed, fixed, fixed;
  min-height: 100%;
  overflow-x: hidden;
  line-height: 1.65;
}

.bg-sheen {
  position: fixed;
  inset: -20% -20% -20% -20%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(255,255,255,0.05), rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.05) 70%, rgba(255,255,255,0.0));
  filter: blur(80px);
  animation: rotate 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotate { to { transform: rotate(360deg); } }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,15,20,0.6);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.nav { max-width: 1140px; margin: 0 auto; padding: 14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; position: relative; z-index: 1; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.3px; }
.brand img { height: 30px; width:auto; }
.brand-logo { height: 28px; }
nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
nav a:hover { background: rgba(255,255,255,0.08); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 20px 18px 80px; position: relative; z-index: 1; }
.wrap.narrow { max-width: 900px; }
.wrap.medium { max-width: 980px; }
.page-main { padding: 18px 16px 64px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.mt-18 { margin-top: 18px; }
.list-compact { margin: 0 0 8px 18px; }
.inline-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.code-block { white-space:pre-wrap; background: var(--glass); border:1px solid var(--glass-border); padding:10px; border-radius:10px; }
.hero-title { margin: 10px 0 8px; font-size: clamp(28px, 4vw, 40px); }
.heading-tight { margin:4px 0 4px; }

.pill { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius: 12px; border:1px solid var(--glass-border); background: var(--glass); font-weight:700; text-decoration:none; color:var(--text); }
.pill:hover { background: rgba(255,255,255,0.09); }
.pill.spaced { margin-bottom: 10px; }
.gradient-text { background:linear-gradient(90deg,var(--accent-1),var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }

.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 18px; border-radius: 14px; border: 0;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  color: #0b0f14; font-weight: 800; text-decoration: none; letter-spacing: .2px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-1) 45%, black 55%);
  cursor: pointer;
}
.btn.secondary { background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid var(--glass-border); box-shadow:none; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

main { margin-top: 24px; display: grid; gap: 26px; }
.hero { display:grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.5vw, 46px); margin: 8px 0 10px; }
.hero p { margin: 0 0 14px; color: var(--muted); font-size: clamp(15px, 2.7vw, 18px); line-height: 1.6; }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.cardemial {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: clamp(10px, 3vw, 10px);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.logo { height: 48px; width: auto; display: inline-block; vertical-align: middle; }
.chips { display:flex; gap:10px; flex-wrap: wrap; margin: 10px 0 6px; }
.chip { display:inline-flex; align-items:center; gap:8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: var(--text); font-weight: 700; font-size: 14px; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--glass-border); background: var(--glass); border-radius: 16px; padding: 16px; box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.tile h3 { margin: 6px 0 6px; font-size: 18px; }
.tile p { margin: 0; color: var(--muted); line-height: 1.6; }
.section-title { margin: 0 0 8px; font-size: 22px; }
footer { text-align:center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
footer a { color: var(--text); text-decoration:none; }
footer a:hover { text-decoration: underline; }
.footer-meta { border-top: 1px solid var(--glass-border); margin-top: 40px; padding-top: 18px; color: var(--muted); font-size:.95rem; }

/* Download page */
.nav-row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.hero.download { grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 920px) { .hero.download { grid-template-columns: 1fr; } }
.gbr { background: linear-gradient(135deg, rgba(70, 70, 70, 0.8), rgba(180, 180, 180, 0.5)); padding: 1px; border-radius: 18px; box-shadow: var(--shadow); }
.card.tall { height: 100%; border-radius: 17px; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); padding: 20px; }
.actions { display:flex; gap:12px; flex-wrap: wrap; align-items: center; margin: 14px 0 10px; }
.meta { display:flex; gap:14px; flex-wrap: wrap; color: var(--muted); font-size:.95rem; }
.meta span { display:flex; align-items:center; gap:6px; }
.k { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:6px; background: rgba(255,255,255,.08); border:1px solid var(--glass-border); font-size:.75rem; }
.qrbox { display:flex; gap:18px; align-items:center; }
.qrbox img { width: 160px; height: 160px; border-radius: 12px; border: 1px solid var(--glass-border); background: #fff; }
.hint { color: var(--muted); font-size:.95rem; }
.lead { margin: 0 0 14px; color: var(--muted); font-size: 1.05rem; }
.details-box { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top:22px; }
@media (max-width: 920px) { .details-box { grid-template-columns: 1fr; } }
summary { cursor: pointer; font-weight: 700; }
summary::-webkit-details-marker { display:none; }
details { background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); border-radius: 12px; padding: 12px 14px; }
details + details { margin-top: 10px; }
.steps { margin: 10px 0 0 0; padding: 0 0 0 18px; }
.steps li { margin: 8px 0; }
.tag { display:inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); font-size:.85rem; }

/* Policy/help pages */
.page-header { text-align:center; padding:28px 16px 8px; }
.logo.large { display:block; margin:0 auto; width:160px; height:auto; }
.top-actions { display:flex; gap:10px; justify-content:center; margin:16px 0 24px; flex-wrap:wrap; }
.muted { color: var(--muted); }
.text-card { border-radius: 18px; padding: 28px; }
.note { background: rgba(147,197,253,.08); border:1px dashed var(--glass-border); padding:12px 14px; border-radius:12px; font-size:14px; }
.footer-note { margin-top:28px; font-size:14px; color:var(--muted); text-align:center; }

.searchbar { position:sticky; top:64px; z-index:5; backdrop-filter:saturate(1.2) blur(10px); background:rgba(11,15,20,0.7); border-bottom:1px solid var(--glass-border); padding:12px 0 14px; }
.search-inner { max-width:980px; margin:0 auto; padding:0 20px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.search { flex:1 1 420px; display:flex; align-items:center; gap:8px; background:var(--glass); border:1px solid var(--glass-border); border-radius:999px; padding:8px 12px; box-shadow:0 6px 18px rgba(0,0,0,.06); }
.search input { border:0; outline:0; background:transparent; width:100%; font:16px/1.4 inherit; color:inherit; }
.search input:focus { outline:2px solid rgba(147,197,253,.25); outline-offset:2px; border-radius:999px; }
.search .btn { border:1px solid var(--glass-border); background:rgba(255,255,255,0.06); padding:6px 10px; border-radius:999px; cursor:pointer; font:14px/1 inherit; color:var(--text); }
.search .btn:hover { background:rgba(255,255,255,.12); }
.controls { display:flex; gap:8px; flex-wrap:wrap; }

.details.faq { border:1px solid var(--glass-border); border-radius:14px; margin:12px 0; background:color-mix(in srgb, var(--glass) 96%, transparent); box-shadow:0 6px 18px rgba(0,0,0,.14); }
summary { list-style:none; padding:14px 16px; font-weight:600; display:flex; align-items:center; gap:10px; }
.chev { transition:transform .2s ease; }
details[open] .chev { transform:rotate(90deg); }
.faq-body { padding:0 16px 16px; }
.faq-body p, .faq-body ul { margin:10px 0; }
.faq-body ul { margin-left:18px; }
mark { padding:0 2px; border-radius:4px; background:color-mix(in srgb, var(--link) 30%, transparent); }
.no-results { display:none; padding:14px; border:1px dashed var(--glass-border); border-radius:12px; color:var(--muted); margin-top:12px; }

/* Reset page */
.form-card { border-radius: 24px; padding: clamp(22px, 4vw, 36px); }
.form-title { margin: 12px 0 6px; font-size: clamp(24px, 4vw, 32px); }
.form-text { margin: 0 0 8px; color: var(--muted); font-size: clamp(14px, 2.6vw, 16px); line-height: 1.5; }
form { margin-top: 14px; display: grid; gap: 12px; }
label { font-weight: 600; display: block; margin-bottom: 4px; }
input[type="password"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04); color: var(--text); font-size: 16px; }
input::placeholder { color: #cbd5e1; opacity: 0.8; }
button.primary { margin-top: 4px; padding: 12px 16px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #0b0f14; font-weight: 800; font-size: 16px; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-1) 45%, black 55%); }
button.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-2) 50%, black 50%); }
button.primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 6px color-mix(in srgb, var(--positive) 28%, transparent); }
.status { margin: 8px 0; color: var(--muted); }
.status strong { color: var(--text); }
.status.error { color: var(--danger); }
.status.success { color: var(--positive); }
.small-note { font-size: 13px; color: var(--muted); }

.page-header .section-heading { margin: 0 0 10px; }
.section-heading { font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 8px; }
.subheading { margin: 0 0 16px; color: var(--muted); font-size: clamp(15px, 2.6vw, 18px); line-height: 1.6; }
.step-list { margin: 10px 0 0 18px; color: var(--muted); padding: 0 0 0 4px; }
.step-list li { margin: 8px 0; }
.step-list-ss { margin: 10px 0 0 26px; color: var(--muted); padding: 0 0 0 10px; }
.step-list-ss li { margin: 8px 8px 8px 16px; }
.how-hero {
  
  grid-template-columns: 1.05fr 0.65fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  width: 100%;
}
.how-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.how-hero img { width: 100%; height: auto; border-radius: 16px; display: block; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 22px); }
.guide-card {
  background: color-mix(in srgb, var(--glass) 94%, transparent);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
  display: grid;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.inline-note { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.inline-note .number {
  width: 26px; height: 26px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  font-weight: 800;
}
.media-frame {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(10px, 1.8vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-frame img { width: 100%; max-width: 420px; height: auto; display: block; object-fit: contain; }


.media-frame-ss {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(10px, 1.8vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  float: left;
  margin: 0 28px 12px 0;
  max-width: min(320px, 45%);
}
.media-frame-ss img { width: 100%; max-width: 197px; height: auto; display: block; object-fit: contain; }

/* How to use page tweaks */
.how-page .wrap.medium { max-width: 100%; padding-left: 0; padding-right: 0; }
.how-page main.card.text-card { border-radius: 0; }
.how-page .page-header { padding-left: 18px; padding-right: 18px; }
.how-page .card.text-card { padding-left: 18px; padding-right: 18px; }

@media (max-width: 820px) {
  .how-hero { grid-template-columns: 1fr; text-align: center; }
  .how-hero ul { text-align: left; }
  .media-frame { max-width: 360px; margin: 0 auto; }
  .media-frame-ss { float: none; margin: 0 auto 12px; max-width: 360px; }
}

@media print {
  body { background:#fff; }
  .card { box-shadow:none; border-color:#ddd; }
  .top-actions, .searchbar { display:none; }
  a { color:#000; text-decoration:underline; }
}
