:root {
  --bg: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.20);
  --text: #f0f0f5;
  --text-muted: #a0a0b8;
  --accent: #e040a0;
  --accent-hover: #e854ae;
  --gradient: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #e040a0 70%, #ff6b35 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--gradient);
  opacity: 0.15;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

header .logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--text);
}

header .lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

header .lang-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Mobile nav */
@media (max-width: 768px) {
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  header nav.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  header .lang-btn span {
    display: none;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224, 64, 160, 0.35);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Section spacing */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  section {
    padding: 48px 0;
  }
  .section-title {
    font-size: 1.75rem;
  }
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero .btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .security-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero .security-badge span {
  background: var(--bg-card);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.hero-img {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-img img {
  max-width: 320px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 48px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Premium features icons */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.premium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: default;
  text-align: center;
}

.premium-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.premium-item .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
}

.premium-item:hover .icon-circle {
  background: var(--bg-card-hover);
}

.premium-item span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Download section */
.download-section {
  text-align: center;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  max-width: 700px;
  margin: 0 auto;
  backdrop-filter: blur(12px);
}

.download-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.download-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-card .version-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Content sections */
.content-section {
  padding: 80px 0;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.content-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.content-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-card ul, .content-card ol {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}

.content-card li {
  margin-bottom: 8px;
}

.content-card strong {
  color: var(--text);
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pros-cons .pros {
  background: rgba(0, 200, 120, 0.08);
  border: 1px solid rgba(0, 200, 120, 0.2);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.pros-cons .cons {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.pros-cons h3 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.pros-cons .pros h3 {
  color: #00c878;
}

.pros-cons .cons h3 {
  color: #ff5050;
}

@media (max-width: 768px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

/* Steps list */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding: 16px 20px 16px 56px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  color: var(--text-muted);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: var(--bg-card-hover);
  outline: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* Version table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.version-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  min-width: 600px;
}

.version-table th,
.version-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.version-table th {
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
}

.version-table td {
  color: var(--text-muted);
}

.version-table tr:hover td {
  background: var(--bg-card-hover);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .body {
  padding: 24px;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.blog-card .read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 80px;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

footer .links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer .links a:hover {
  color: var(--text);
}

footer .copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Back to top */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(224, 64, 160, 0.3);
  transition: all 0.3s;
}

#back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* Content section layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col-rev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col-rev > :first-child {
  order: 2;
}

.two-col-rev > :last-child {
  order: 1;
}

@media (max-width: 768px) {
  .two-col, .two-col-rev {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .two-col-rev > :first-child {
    order: 1;
  }
  .two-col-rev > :last-child {
    order: 2;
  }
}

/* Contact page */
.contact-card {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-card .email {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin: 24px 0;
}

/* Page header */
.page-header {
  padding: 120px 0 48px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 32px;
  }
  .page-header h1 {
    font-size: 1.75rem;
  }
  .content-card {
    padding: 28px 20px;
  }
  .download-card {
    padding: 32px 20px;
  }
}

/* Form */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.mb-4 { margin-bottom: 16px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }