:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #fff;
  --accent: #10b981;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 8px 24px rgba(15, 23, 42, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 20px; }
h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark);
  text-decoration: none;
}
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--gray); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.nav a:hover { color: var(--primary); }
.nav a.nav-cta { color: var(--white); background: var(--primary); padding: 8px 18px; border-radius: 8px; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--primary-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: rgba(37, 99, 235, 0.08); transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge-soon { background: #fef3c7; color: #92400e; }
.badge-popular { background: #dbeafe; color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(16, 185, 129, 0.25), transparent 60%),
    radial-gradient(ellipse at 80% 110%, rgba(37, 99, 235, 0.25), transparent 55%);
}
.hero .container { position: relative; }
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; max-width: 820px; margin: 0 auto 20px; }
.hero p.sub { font-size: 1.2rem; color: #cbd5e1; max-width: 680px; margin: 0 auto 28px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; padding: 8px 18px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Features ---------- */
.features { background: var(--light); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--primary); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  background: var(--light);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.92rem; }

/* ---------- Download ---------- */
.download { background: var(--light); }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cws-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.cws-row .btn { flex: 1; text-align: center; }
.manual h3 { font-size: 1.05rem; margin-bottom: 14px; }
.manual ol { padding-left: 20px; }
.manual ol li { margin-bottom: 8px; }
.manual code { background: #eef2ff; padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.req { margin-top: 20px; color: var(--gray); font-size: 0.9rem; }
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.screenshot-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.screenshot-gallery img:hover {
  transform: translateY(-4px);
}
@media (max-width: 900px) {
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */
.price-card {
  display: flex;
  flex-direction: column;
}
.price-card.popular { border: 2px solid var(--primary); position: relative; }
.price-card .badge-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.price span { font-size: 0.95rem; font-weight: 400; color: var(--gray); }
.price-card ul { list-style: none; margin: 20px 0 28px; flex: 1; }
.price-card ul li { padding: 6px 0 6px 26px; position: relative; font-size: 0.93rem; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { width: 100%; text-align: center; }
.toggle-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 36px; color: var(--gray); font-size: 0.95rem; }
.toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: var(--white);
}
.toggle span { padding: 6px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--gray); }
.toggle span.active { background: var(--primary); color: var(--white); }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary { padding: 16px 44px 16px 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.3rem; font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; color: var(--gray); font-size: 0.95rem; }
.contact-card {
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  padding: 32px;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 20px; }
.contact-card p { margin-bottom: 14px; color: #cbd5e1; font-size: 0.95rem; }
.contact-card strong { color: var(--white); display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-card a { color: #93c5fd; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 50px 20px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer p { font-size: 0.9rem; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #94a3b8; text-decoration: none; font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer ul a.disabled { opacity: 0.5; cursor: not-allowed; }
.footer .legal { font-size: 0.85rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-3, .steps, .download-grid, .support-grid { grid-template-columns: 1fr; }
  .nav { gap: 14px; font-size: 0.9rem; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.sub { font-size: 1.05rem; }
  section { padding: 44px 16px; }
  h2 { font-size: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Landing v2: new sections ---------- */
.btn-nav-cta { padding: 8px 18px; font-size: 0.95rem; margin-left: 8px; }
@media (max-width: 768px) {
  .btn-nav-cta { display: none; }
}
.soon { background: var(--white); }
.soon-card { border: 1px solid var(--border); }
.feature-icon--muted { color: var(--gray); }
.badge-soon-gray { background: #e2e8f0; color: var(--gray); }
.soon-card h3 { margin-top: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.pricing-enterprise {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding: 28px 32px;
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  flex-wrap: wrap;
}
.pricing-enterprise h3 { font-size: 1.15rem; margin-bottom: 4px; }
.pricing-enterprise p { color: #cbd5e1; font-size: 0.95rem; }
.btn-enterprise { border-color: rgba(255, 255, 255, 0.5); color: var(--white); background: transparent; }
.btn-enterprise:hover { background: rgba(255, 255, 255, 0.1); }
.pricing-note { margin-top: 20px; font-size: 0.85rem; color: var(--gray); text-align: center; }

/* ---------- Contact buttons ---------- */
.contact-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-email {
  background: #ffffff;
  color: #0066FF;
  border: 2px solid #0066FF;
}
.btn-email:hover {
  background: #0066FF;
  color: #ffffff;
}
.btn-telegram {
  background: #0066FF;
  color: #ffffff;
  border: 2px solid #0066FF;
}
.btn-telegram:hover {
  background: #0052cc;
  border-color: #0052cc;
}
.btn-contact .icon {
  font-size: 18px;
}
