:root {
  --bg: #111111;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --red: #cc0000;
  --red-light: #e53935;
  --ok: #4caf50;
  --warn: #ff9800;
  --text: #ffffff;
  --text-2: #9e9e9e;
  --text-3: #616161;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site {
  padding: 20px 0;
  border-bottom: 1px solid var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 13px;
}
.lang-switch a {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-weight: 600;
}
.lang-switch a.active {
  color: var(--text);
  background: var(--surface);
}

/* Hero */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}
.hero .icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.hero .accent-rule {
  width: 64px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.hero p.sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-2);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.play-badge { display: inline-block; line-height: 0; }
.play-badge img { height: 54px; width: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-2);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Sections */
section { padding: 48px 0; }
section h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
section p.lead {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Parameter grid, styled like the app's own dashboard cards */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}
.screen { text-align: center; }
.screen img {
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}
.screen p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.card {
  background: var(--surface);
  border-radius: 14px;
  padding: 20px;
}
.card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step { text-align: center; }
.step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; }
.step p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.compat {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.compat h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.compat p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.compat strong { color: var(--text); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.compat a.mail {
  display: inline-block;
  margin-top: 14px;
  color: var(--red-light);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  word-break: break-all;
}
.compat a.mail:hover { text-decoration: underline; }

.cta {
  text-align: center;
  padding: 56px 0 64px;
}
.cta p { color: var(--text-2); margin: 0 0 24px; }

footer.site {
  border-top: 1px solid var(--surface);
  padding: 28px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
}
footer.site a { color: var(--text-2); text-decoration: none; }
footer.site .foot-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Legal pages (privacy policy) */
.legal { padding: 40px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 30px; margin: 0 0 6px; }
.legal .updated { color: var(--text-3); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; margin: 32px 0 10px; text-align: left; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--red-light); }
