:root {
  --c-base: #f8fafc;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-text-mut: #64748b;
  --c-primary: #8b5cf6; /* Purple */
  --c-primary-hover: #7c3aed;
  --c-sec: #14b8a6; /* Teal */
  --c-sec-hover: #0d9488;
  --c-accent: #f59e0b; /* Amber */
  --border: #e2e8f0;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px -5px rgba(139,92,246,0.15);
  --max-w: 1200px;
}

* { 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;
  background-color: var(--c-base);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background elements */
body::before {
  content: '';
  position: absolute;
  top: -10vw; left: -10vw;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: absolute;
  top: 20vw; right: -10vw;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(20,184,166,0.1) 0%, transparent 60%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

a { text-decoration: none; color: inherit; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
  gap: 12px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-mut);
  transition: all 0.2s;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--c-primary); background: rgba(139,92,246,0.05); }
.nav-link.active {
  color: var(--c-primary);
  background: rgba(139,92,246,0.1);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-sec));
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(139,92,246,0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(139,92,246,0.6);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid rgba(139,92,246,0.3);
}
.btn-outline:hover {
  border-color: var(--c-primary);
  background: rgba(139,92,246,0.05);
}
.btn-white {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn-lg { padding: 18px 36px; font-size: 18px; }

/* Spin Animation */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Hero Section */
.hero { padding: 100px 0; text-align: center; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(20,184,166,0.1);
  color: var(--c-sec-hover);
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid rgba(20,184,166,0.2);
}
.hero-title { font-size: 56px; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; line-height: 1.1; }
.hero-title span {
  background: linear-gradient(to right, var(--c-primary), var(--c-sec));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc { font-size: 20px; color: var(--c-text-mut); max-width: 700px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

/* Global Section Styles */
.sec { padding: 80px 0; }
.sec-alt { background: var(--c-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-dark { background: var(--c-text); color: #fff; }
.sec-title { font-size: 40px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.sec-desc { font-size: 18px; color: var(--c-text-mut); text-align: center; max-width: 700px; margin: 0 auto 60px; }
.sec-dark .sec-title { color: #fff; }
.sec-dark .sec-desc { color: #94a3b8; }

/* Grid Layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }

/* Features */
.feat-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139,92,246,0.3);
}
.feat-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(20,184,166,0.1));
  color: var(--c-primary);
}
.feat-card h3 { font-size: 22px; margin-bottom: 12px; }
.feat-card p { color: var(--c-text-mut); }

/* Stats Bar */
.stats-bar { display: flex; justify-content: space-around; padding: 40px; background: var(--c-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-top: 60px; }
.stat-item { text-align: center; }
.stat-num { font-size: 48px; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 16px; color: var(--c-text-mut); font-weight: 500; }

/* Platforms */
.plat-card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.plat-card:hover { box-shadow: var(--shadow-md); }
.plat-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--c-text); }
.plat-card h3 { font-size: 24px; margin-bottom: 12px; }
.plat-card p { color: var(--c-text-mut); margin-bottom: 24px; font-size: 14px; }
.plat-card .btn { width: 100%; }

/* Deep dive */
.deep-row { display: flex; align-items: center; gap: 60px; margin-bottom: 100px; }
.deep-row.rev { flex-direction: row-reverse; }
.deep-info { flex: 1; }
.deep-info h2 { font-size: 36px; margin-bottom: 20px; line-height: 1.2; }
.deep-info p { font-size: 18px; color: var(--c-text-mut); margin-bottom: 24px; }
.deep-list { list-style: none; }
.deep-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 16px; }
.deep-list svg { width: 24px; height: 24px; color: var(--c-sec); flex-shrink: 0; }
.deep-visual { flex: 1; background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(20,184,166,0.05)); border-radius: var(--radius-lg); padding: 40px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--border); }
.deep-visual svg { max-width: 100%; height: auto; }

/* Reviews */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev-card { background: var(--c-surface); padding: 32px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.rev-stars { color: var(--c-accent); display: flex; gap: 4px; margin-bottom: 16px; }
.rev-stars svg { width: 20px; height: 20px; }
.rev-text { font-size: 16px; color: var(--c-text-mut); margin-bottom: 24px; font-style: italic; }
.rev-user { display: flex; align-items: center; gap: 12px; }
.rev-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #fff; font-size: 20px; }
.av-1 { background: var(--c-primary); } .av-2 { background: var(--c-sec); } .av-3 { background: var(--c-accent); }
.av-4 { background: #ec4899; } .av-5 { background: #3b82f6; } .av-6 { background: #64748b; }
.rev-info h4 { font-size: 16px; }
.rev-info p { font-size: 14px; color: var(--c-text-mut); margin: 0; }

/* Comparison Table */
.cmp-box { background: var(--c-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { padding: 20px 24px; text-align: center; border-bottom: 1px solid var(--border); }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; }
.cmp-table th { background: rgba(248,250,252,0.8); font-weight: 700; font-size: 18px; }
.cmp-hl { background: rgba(139,92,246,0.03); color: var(--c-primary); font-weight: bold; border-left: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary); }
.cmp-table th.cmp-hl { background: rgba(139,92,246,0.1); border-top: 2px solid var(--c-primary); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:last-child td.cmp-hl { border-bottom: 2px solid var(--c-primary); }
.icon-yes { color: var(--c-sec); width: 24px; height: 24px; }
.icon-no { color: #ef4444; width: 24px; height: 24px; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { padding: 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 18px; font-weight: 600; user-select: none; transition: background 0.2s; }
.faq-q:hover { background: rgba(248,250,252,0.8); }
.faq-chevron { width: 24px; height: 24px; color: var(--c-text-mut); transition: transform 0.3s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-a-inner { padding: 0 24px 24px; color: var(--c-text-mut); font-size: 16px; border-top: 1px solid transparent; }
.faq-item.open .faq-q { background: rgba(139,92,246,0.02); color: var(--c-primary); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--c-primary); }
.faq-item.open .faq-a { max-height: 500px; border-top-color: var(--border); }

/* Download Page Specific */
.dl-hero { padding: 80px 0; background: linear-gradient(135deg, var(--c-primary), #4f46e5); color: #fff; text-align: center; border-radius: 0 0 40px 40px; margin-bottom: -40px; padding-bottom: 120px; }
.dl-hero-title { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
.dl-hero-sub { font-size: 20px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.dl-main-card { background: var(--c-surface); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-lg); text-align: center; max-width: 800px; margin: 0 auto 60px; position: relative; border: 1px solid var(--border); }
.dl-main-icon { width: 96px; height: 96px; color: var(--c-primary); margin: 0 auto 24px; }
.dl-main-name { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.dl-specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; padding: 24px; background: var(--c-base); border-radius: var(--radius-md); }
.dl-spec { text-align: center; }
.dl-spec-lbl { font-size: 14px; color: var(--c-text-mut); margin-bottom: 8px; }
.dl-spec-val { font-size: 18px; font-weight: 700; color: var(--c-text); }
.dl-sec-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-sec-hover); background: rgba(20,184,166,0.1); padding: 8px 16px; border-radius: 20px; margin-top: 24px; }

/* Guide & Logs */
.guide-card { background: var(--c-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; height: 100%; box-shadow: var(--shadow-sm); }
.guide-card h3 { font-size: 24px; margin-bottom: 32px; display: flex; align-items: center; gap: 12px; }
.gstep { display: flex; gap: 16px; margin-bottom: 24px; }
.gstep-num { width: 32px; height: 32px; flex-shrink: 0; background: var(--c-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px; }
.gstep-info h4 { font-size: 18px; margin-bottom: 4px; }
.gstep-info p { color: var(--c-text-mut); font-size: 15px; }

.ver-list { border-left: 2px solid var(--border); margin-left: 20px; padding-left: 30px; }
.ver-item { position: relative; margin-bottom: 40px; }
.ver-dot { position: absolute; left: -39px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--c-primary); border: 4px solid var(--c-surface); }
.ver-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ver-num { font-size: 20px; font-weight: 700; }
.ver-date { color: var(--c-text-mut); font-size: 14px; }
.ver-desc { color: var(--c-text-mut); font-size: 15px; }

.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.req-card { background: var(--c-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.req-card svg { width: 40px; height: 40px; color: var(--c-text-mut); margin-bottom: 16px; }
.req-card h4 { font-size: 18px; margin-bottom: 8px; }
.req-card p { color: var(--c-text-mut); font-size: 14px; }

/* SEO Article Page Specific */
.art-hero { padding: 80px 0 60px; text-align: center; background: var(--c-surface); border-bottom: 1px solid var(--border); }
.art-title { font-size: 48px; font-weight: 800; margin-bottom: 24px; max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.2; }
.kw-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 800px; margin: 0 auto; }
.kw-tag { padding: 6px 16px; background: rgba(139,92,246,0.05); border: 1px solid rgba(139,92,246,0.2); border-radius: 20px; font-size: 13px; color: var(--c-primary); font-weight: 500; }

.art-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 60px 0; }
.art-body { background: var(--c-surface); border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 17px; line-height: 1.8; color: #334155; }
.art-body h2 { font-size: 28px; font-weight: 700; color: var(--c-text); margin: 48px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.art-body h2:first-child { margin-top: 0; }
.art-body h3 { font-size: 22px; font-weight: 600; color: var(--c-text); margin: 32px 0 16px; }
.art-body p { margin-bottom: 20px; }
.art-body ul { margin-bottom: 24px; padding-left: 24px; }
.art-body li { margin-bottom: 8px; }

.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.sbox { background: var(--c-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.sbox-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.sbox-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--c-base); border-radius: var(--radius-sm); margin-bottom: 12px; font-weight: 600; transition: all 0.2s; border: 1px solid transparent; }
.sbox-btn:hover { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }
.sbox-btn svg { width: 24px; height: 24px; }

.inline-cta { background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(20,184,166,0.1)); border-radius: var(--radius-md); padding: 32px; text-align: center; margin: 40px 0; border: 1px dashed rgba(139,92,246,0.3); }

/* Footer */
.site-footer { background: var(--c-text); color: var(--c-text-mut); padding: 60px 0 40px; text-align: center; margin-top: 60px; }
.footer-security { display: inline-flex; align-items: center; gap: 12px; background: rgba(20,184,166,0.1); color: var(--c-sec); padding: 12px 24px; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; margin-bottom: 32px; border: 1px solid rgba(20,184,166,0.2); }
.footer-note { font-size: 14px; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* Responsive */
@media (max-width: 992px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .grid-2, .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .deep-row, .deep-row.rev { flex-direction: column; text-align: center; gap: 32px; }
  .deep-list li { justify-content: center; }
  .stats-bar { flex-direction: column; gap: 32px; }
  .dl-specs-grid { grid-template-columns: 1fr; }
}
