:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1a1a3e;
  --ink-soft: #4a4a66;
  --muted: #6b6b80;
  --gold: #c89b4a;
  --gold-deep: #a87f33;
  --indigo: #2d2960;
  --indigo-deep: #1a1a3e;
  --line: #e9e3d6;
  --shadow: 0 6px 24px rgba(26, 26, 62, .08);
  --radius: 14px;
  --container: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--gold-deep); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at 70% 0%, #2d2960 0%, #1a1a3e 60%, #14132e 100%);
  color: #f3eed8;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 30%, rgba(255,255,255,.6), transparent 40%),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,.5), transparent 40%),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,.4), transparent 40%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.5), transparent 40%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,.5), transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero .lead {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 19px;
  color: #d8d3c0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--indigo-deep);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.hero-cta:hover {
  background: #d8ad5e;
  transform: translateY(-1px);
  color: var(--indigo-deep);
}

.hero-meta {
  margin-top: 18px;
  font-size: 14px;
  color: #b9b3a0;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section .section-lead {
  max-width: 680px;
  color: var(--ink-soft);
  margin: 0 0 36px;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Screenshots ---------- */
.screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
}

.screenshot {
  border-radius: 24px;
  overflow: hidden;
  background: #14132e;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Download ---------- */
.download-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d2960, #1a1a3e);
  color: #f3eed8;
  border-radius: var(--radius);
  padding: 40px;
  text-align: left;
}

.download-text { flex: 1 1 280px; }

.download-text h2 { color: #fff; margin-top: 0; }
.download-text p { color: #d8d3c0; margin: 0 0 20px; }

.rustore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--indigo-deep);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}
.rustore-btn:hover {
  background: #d8ad5e;
  color: var(--indigo-deep);
}

.qr {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  flex: 0 0 auto;
}
.qr img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Contacts ---------- */
.contacts {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contacts dt {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.contacts dd {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--ink);
}

@media (max-width: 640px) {
  .contacts { grid-template-columns: 1fr; padding: 20px; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--ink-soft);
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

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

.legal h2 {
  font-size: 21px;
  margin: 36px 0 12px;
  color: var(--ink);
}

.legal p, .legal li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.legal ul, .legal ol {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a { color: var(--gold-deep); text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}
.back-link:hover { color: var(--ink); }
