:root {
  --primary: #0066FF;
  --primary-dark: #0047B3;
  --primary-light: #3385FF;
  --primary-soft: #E8F1FF;
  --primary-border: #B3D1FF;
  --accent: #00C853;
  --text: #1A1A2E;
  --text-muted: #5A5A72;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --card: #FFFFFF;
  --success: #00A86B;
  --telegram: #0088cc;
  --danger: #E53935;
  --max: 1100px;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 102, 255, 0.12);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-soft);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.3; margin-top: 0; margin-bottom: 12px; }
h1 { font-size: clamp(26px, 5.5vw, 36px); color: var(--primary); }
h2 { font-size: clamp(22px, 4vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; color: var(--primary); }

p { font-size: 15px; color: var(--text-muted); margin-bottom: 14px; }
p strong { color: var(--text); font-weight: 700; }

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

hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-border), transparent);
  margin: 28px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; }
.logo:hover { color: var(--primary); text-decoration: none; }

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}
.desktop-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-cta {
  display: none;
  gap: 10px;
  align-items: center;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.menu-btn span {
  display: block;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .25s;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .25s;
  display: flex;
  justify-content: flex-end;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-modal {
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  padding: 24px 20px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  transform: translateX(20px);
  transition: transform .25s;
  overflow-y: auto;
}
.nav-overlay.open .nav-modal { transform: translateX(0); }
.nav-close {
  display: block;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--primary-soft);
  border-radius: 10px;
  font-size: 18px;
  color: var(--primary);
  cursor: pointer;
  margin-bottom: 18px;
}
.nav-modal a {
  display: block;
  padding: 14px 16px;
  margin-bottom: 6px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s;
}
.nav-modal a:hover,
.nav-modal a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}
.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}
.btn-telegram {
  background: var(--telegram);
  color: #fff;
}
.btn-telegram:hover { background: #0077b3; color: #fff; }
.btn-wallet {
  background: linear-gradient(135deg, #7C4DFF, #B388FF);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.35);
}
.btn-wallet:hover {
  background: linear-gradient(135deg, #651FFF, #7C4DFF);
  color: #fff;
  transform: translateY(-1px);
}
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  background: linear-gradient(165deg, #FFFFFF 0%, #F0F6FF 45%, #E8F1FF 100%);
  padding: 40px 20px 36px;
  margin: 0 0 8px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 102, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  object-fit: contain;
  margin: 0 auto 18px;
  border: 3px solid var(--primary);
  box-shadow: 0 10px 32px rgba(0, 102, 255, 0.28);
  position: relative;
  z-index: 1;
  background: #fff;
}
.hero-main-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.hero-sub-text {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 auto 24px;
  max-width: 560px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}

/* Cards & sections */
.section {
  padding: 36px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
  color: var(--text-muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 102, 255, 0.08);
  padding: 24px;
  margin-bottom: 20px;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--primary);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 600px) {
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .screenshot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.screenshot-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--primary-border);
}
.screenshot-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 420px;
  object-position: top;
}
.screenshot-card .caption {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--primary-border);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 36px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 28px 0;
}
.cta-strip h2 { color: #fff; margin-bottom: 10px; }
.cta-strip p { color: rgba(255, 255, 255, 0.9); margin-bottom: 20px; }
.cta-strip .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}
.cta-strip .btn-primary:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.cta-strip .btn-wallet {
  background: #fff;
  color: #7C4DFF;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer */
footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 40px 0 24px;
  margin-top: 40px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}
.footer-links a {
  color: #94A3B8;
  font-size: 14px;
  font-weight: 500;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #64748B;
  border-top: 1px solid #1E293B;
  padding-top: 18px;
}

/* Page content */
.page-hero {
  background: linear-gradient(165deg, #FFFFFF 0%, #F0F6FF 100%);
  padding: 32px 20px 28px;
  text-align: center;
  border-bottom: 1px solid var(--primary-border);
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { max-width: 600px; margin: 0 auto; }

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose ul, .prose ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}
.prose li { margin-bottom: 8px; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--primary-border);
  font-size: 14px;
}
th {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}

.notice {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #6D4C00;
  margin: 18px 0;
}
.notice strong { color: #5D4037; }

@media (min-width: 768px) {
  .desktop-nav { display: flex; }
  .header-cta { display: flex; }
  .menu-btn { display: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  z-index: 10000;
  border-radius: 8px;
}
