/* rexmius.com — no external fonts, scripts or trackers. */
:root {
  --bg: #0b0d11;
  --bg-2: #0f1218;
  --panel: #13161d;
  --panel-2: #181c25;
  --border: #232836;
  --border-strong: #2f3647;
  --text: #e7eaf1;
  --muted: #9aa1b2;
  --faint: #687087;
  --accent: #3ddc97;
  --accent-2: #7ef0bf;
  --accent-ink: #052a1a;
  --accent-soft: rgba(61, 220, 151, 0.12);
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  white-space: nowrap;
}
kbd { border-bottom-width: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1192px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.wrap.narrow { max-width: 820px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 24px -8px rgba(61, 220, 151, 0.55); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--panel-2); border-color: #3b4357; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-soon, .btn.is-pending {
  background: var(--panel-2);
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
  cursor: default;
  transform: none;
}
.btn.is-pending:hover { background: var(--panel-2); }
.btn-icon { display: inline-flex; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(35, 40, 54, 0.7);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.brand.small { font-size: 15px; gap: 8px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; padding: 6px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav .btn { margin-left: auto; }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* soft glow behind the headline */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -260px;
  width: 1100px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(61, 220, 151, 0.16), rgba(61, 220, 151, 0) 70%);
}
.hero::after {
  /* faint grid */
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 0 30% 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(19, 22, 29, 0.8);
  color: var(--muted);
  font-size: 13.5px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
h1 {
  margin: 0;
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #b9c0cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 2.1vw, 19.5px); line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.fine { margin: 16px 0 0; color: var(--faint); font-size: 13.5px; }
.hero-shot { margin: 56px auto 0; max-width: 1160px; }
@media (max-width: 520px) {
  .hero { padding-top: 44px; }
  .cta-row { width: 100%; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Window frame around screenshots ---------- */
.window {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0e1014;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 80px -20px rgba(0, 0, 0, 0.75),
    0 0 120px -40px rgba(61, 220, 151, 0.25);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  background: #151820;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3242; }
.window-bar span { position: absolute; left: 50%; transform: translateX(-50%); color: var(--faint); font-size: 12.5px; font-weight: 600; }
@media (max-width: 520px) {
  .window { border-radius: 10px; }
  .window-bar { height: 24px; padding: 0 10px; gap: 5px; }
  .window-bar i { width: 8px; height: 8px; }
  .window-bar span { font-size: 11px; }
}

/* Close-up of a dialog, floating on a soft glow */
.shot-card {
  position: relative;
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 640px;
  isolation: isolate;
}
.shot-card.narrow-shot { max-width: 560px; }
.shot-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(61, 220, 151, 0.22), rgba(61, 220, 151, 0));
  filter: blur(30px);
}
.shot-card img {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}

/* ---------- Platforms strip ---------- */
.platforms { padding: 56px 0 8px; }
.platform-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 820px) { .platform-row { grid-template-columns: repeat(4, 1fr); } }
.platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}
.platform b { display: block; font-size: 15.5px; }
.platform small { display: block; font-size: 13px; color: var(--faint); }
.platform small.ok { color: var(--accent); }
.platform.soon { background: transparent; border-style: dashed; }
@media (max-width: 440px) {
  .platform { padding: 14px 12px; gap: 10px; }
  .platform .p-icon { width: 34px; height: 34px; }
}
.p-icon, .f-icon, .dl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.platform.soon .p-icon, .dl-card.soon .dl-icon { background: var(--panel-2); color: var(--muted); }
.p-icon svg, .f-icon svg, .dl-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-icon svg .fill { fill: currentColor; stroke: none; }

/* ---------- Sections ---------- */
.section { padding: 112px 0 0; }
@media (max-width: 640px) { .section { padding-top: 80px; } }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker { margin: 0 0 12px; color: var(--accent); font: 600 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; letter-spacing: -0.028em; font-weight: 750; }
.sub { margin: 18px 0 0; color: var(--muted); font-size: 17.5px; }
h3 { margin: 0; font-size: 17.5px; letter-spacing: -0.01em; }

/* Features */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 26px 24px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(19, 22, 29, 0.55) 100%);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feature .f-icon { margin-bottom: 18px; }
.feature p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 11px/1.5 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Split sections */
.split-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 980px) {
  .split-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .split.reverse .split-text { order: 2; }
}
.split .kicker, .split h2 { text-align: left; }
.split-text .sub { margin-top: 16px; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); font-size: 15.5px; }
.checks li b { color: var(--text); font-weight: 650; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233ddc97' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Theme switcher */
.theme-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 28px; }
.theme-switch button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font: 500 14px/1 var(--font);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-switch button:hover { color: var(--text); border-color: var(--border-strong); }
.theme-switch button[aria-selected="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.sw-dark { background: #0e1014; }
.sw-tokyo { background: #1a1b26; }
.sw-dracula { background: #282a36; }
.sw-light { background: #f8f9fb; }
.theme-shot { max-width: 1160px; margin: 0 auto; }
.theme-shot img { transition: opacity 0.18s; }
.theme-shot img.swapping { opacity: 0.35; }

/* Tour */
.tour-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }
.tour-card {
  display: block;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.tour-card:hover { text-decoration: none; border-color: var(--border-strong); transform: translateY(-2px); }
.tour-card img { border-bottom: 1px solid var(--border); }
.tour-card span { display: block; padding: 14px 18px 18px; font-size: 14.5px; }
.tour-card b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 2px; }

/* Download */
.download .section-head { margin-bottom: 40px; }
.dl-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .dl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .dl-grid { grid-template-columns: repeat(5, 1fr); } }
.dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.dl-card.suggested { border-color: rgba(61, 220, 151, 0.55); box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.2), 0 18px 50px -24px rgba(61, 220, 151, 0.45); }
.dl-card.soon { background: transparent; border-style: dashed; }
.dl-card .dl-icon { margin-bottom: 16px; }
.dl-card h3 { font-size: 16.5px; }
.dl-card p { margin: 4px 0 18px; color: var(--muted); font-size: 14px; }
.dl-card .btn { width: 100%; margin-top: auto; }
.dl-meta { display: block; margin-top: 10px; color: var(--faint); font-size: 12.5px; min-height: 1.4em; }
.dl-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; }
.faq details b { color: var(--text); }

/* Footer */
.footer { margin-top: 120px; border-top: 1px solid var(--border); padding: 32px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--muted); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); }
.copy { margin: 0 0 0 auto; color: var(--faint); font-size: 13.5px; }
@media (max-width: 640px) { .copy { margin-left: 0; width: 100%; } }

/* Lightbox */
.lightbox {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0e1014;
  max-width: min(1400px, 94vw);
  max-height: 92vh;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 6, 9, 0.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(19, 22, 29, 0.9);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Plain text pages (privacy) ---------- */
.doc { padding: 72px 0 0; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); text-align: left; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 12px 0 40px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; }
.doc li { margin: 6px 0; }
.doc b { color: var(--text); }
