:root {
  --primary-color: #2b5cff;
  --secondary-color: #1a43cc;
  --accent-color: #00d4ff;
  --bg-dark: #0a0e17;
  --bg-panel: #111827;
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  --border-color: #1e293b;
  --success: #10b981;
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Animations */
@keyframes spin { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); } 
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
}

.brand-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gray);
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent-color);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.2);
}

.nav-actions .btn {
  padding: 8px 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 12px rgba(43, 92, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 92, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-accent {
  background: var(--accent-color);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.4);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Common Layout */
.section {
  padding: 100px 24px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.sec-header {
  text-align: center;
  margin-bottom: 64px;
}

.sec-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section (Index) */
.hero {
  padding: 160px 24px 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: radial-gradient(circle at center 30%, rgba(43, 92, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  animation: pulse-glow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(43, 92, 255, 0.1);
  border: 1px solid rgba(43, 92, 255, 0.3);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary-color);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

/* Visual Dashboard */
.hero-visual {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.dashboard-mockup {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-item {
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
}

.dash-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-header {
  height: 60px;
  background: rgba(43, 92, 255, 0.1);
  border-radius: 8px;
}

.dash-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  height: 120px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}

/* Stats */
.stats-banner {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 24, 39, 0.5);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-lbl {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Features Grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity 0.3s;
}

.feat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 56px;
  height: 56px;
  background: rgba(43, 92, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.feat-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feat-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Platforms Section */
.platforms {
  background: rgba(17, 24, 39, 0.5);
}

.plat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plat-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

.plat-card.featured {
  border-color: var(--primary-color);
  background: linear-gradient(180deg, rgba(43, 92, 255, 0.05) 0%, var(--bg-panel) 100%);
  position: relative;
}

.plat-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--text-light);
}

.plat-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.plat-ver {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rev-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
}

.rev-stars {
  color: #fbbf24;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}

.rev-text {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-gray);
}

.rev-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rev-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.rev-name {
  font-weight: 600;
}

.rev-role {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

.faq-icon {
  transition: transform 0.3s;
  color: var(--primary-color);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-gray);
}

.faq-item.open .faq-a {
  padding: 0 24px 24px;
  max-height: 500px;
}

/* CTA Block */
.cta-block {
  background: linear-gradient(135deg, var(--bg-panel), rgba(43, 92, 255, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 60px 24px 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 40px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: 30px;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-note {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Download Page Specific */
.dl-hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(43, 92, 255, 0.15) 0%, transparent 60%);
}

.dl-main-card {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--primary-color);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.dl-main-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 20px var(--accent-color);
}

.dl-icon {
  width: 80px;
  height: 80px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.dl-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.dl-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  color: var(--text-gray);
}

.dl-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.spec-item {
  text-align: left;
}

.spec-lbl {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.spec-val {
  font-weight: 600;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.guide-col {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.step-item {
  display: flex;
  gap: 16px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(43, 92, 255, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.step-content p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.req-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.req-icon {
  color: var(--primary-color);
  margin-bottom: 16px;
}

/* Article Page Specific */
.article-hero {
  padding: 160px 24px 80px;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.tag {
  padding: 6px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 60px 0;
}

.article-main {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.article-main h2 {
  font-size: 2rem;
  color: var(--text-light);
  margin: 48px 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.article-main h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 32px 0 16px;
}

.article-main p {
  margin-bottom: 24px;
}

.article-main ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-main li {
  margin-bottom: 12px;
  position: relative;
}

.article-main li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: -20px;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-link {
  color: var(--text-gray);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.toc-link:hover {
  color: var(--primary-color);
}

.dl-widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-widget-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s;
  color: var(--text-light);
  cursor: pointer;
}

.dl-widget-btn:hover {
  background: rgba(43, 92, 255, 0.1);
  border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .dashboard-mockup { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dl-specs { grid-template-columns: 1fr; gap: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .plat-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
  .dash-content { grid-template-columns: 1fr; }
}
