/* CSS Variables */
:root {
  --primary: #dc2626;      /* Ruby Red */
  --primary-hover: #b91c1c;
  --secondary: #2563eb;    /* Trust Blue */
  --bg: #f8fafc;           /* Light Gray-Blue */
  --surface: #ffffff;      /* White */
  --text-main: #0f172a;    /* Slate 900 */
  --text-muted: #64748b;   /* Slate 500 */
  --border: #e2e8f0;       /* Slate 200 */
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 12px;
  --max-w: 1200px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 72px; /* For fixed nav */
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; height: auto; }

/* Utilities */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 1rem; } .mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; } .mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.25rem; font-weight: 700; color: var(--text-main);
}
.brand svg { width: 32px; height: 32px; color: var(--primary); }
.nav-links {
  display: flex; gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-main); background-color: var(--bg); }
.nav-links a.active {
  color: var(--primary); background-color: rgba(220, 38, 38, 0.1);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 1rem; font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }
.btn-primary { background-color: var(--primary); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background-color: white; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { border-color: var(--text-muted); background-color: var(--bg); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Hero Section (Horizon Cloud Theme) */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #f0f9ff 100%);
  padding: 80px 0;
}
.hero::before {
  content: ""; position: absolute; top: -50%; left: -10%; width: 60%; height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: white; border-radius: 20px;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; line-height: 1.1; }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Feature Grid */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feat-card {
  background: white; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary);
}
.feat-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: rgba(220, 38, 38, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.feat-icon svg { width: 28px; height: 28px; }
.feat-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.feat-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Platform Grid */
.plat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.plat-icon {
  width: 64px; height: 64px; margin-bottom: 16px; color: var(--text-main);
}
.plat-name { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.plat-info { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.review-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.review-stars { color: #fbbf24; display: flex; gap: 4px; margin-bottom: 16px; }
.review-stars svg { width: 20px; height: 20px; fill: currentColor; }
.review-text { font-size: 1rem; color: var(--text-main); font-style: italic; margin-bottom: 24px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--text-muted); }
.review-name { font-weight: 600; font-size: 0.95rem; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.faq-q {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1.05rem; cursor: pointer; user-select: none;
}
.faq-icon { width: 20px; height: 20px; color: var(--text-muted); transition: transform 0.3s; }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-muted); line-height: 1.7;
}
.faq-item.active { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item.active .faq-q { color: var(--primary); }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-item.active .faq-a { padding: 0 24px 20px; max-height: 300px; }

/* Download Hero */
.dl-hero {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; text-align: center; box-shadow: var(--shadow-md); margin-bottom: 40px;
}
.dl-icon { width: 80px; height: 80px; color: var(--primary); margin: 0 auto 24px; animation: float 6s ease-in-out infinite; }
.dl-meta { display: flex; justify-content: center; gap: 24px; color: var(--text-muted); font-size: 0.9rem; margin: 24px 0; }
.dl-meta span { display: flex; align-items: center; gap: 6px; }

/* Article Layout */
.article-layout { display: flex; gap: 40px; align-items: flex-start; }
.article-main { flex: 1; background: white; border-radius: var(--radius); padding: 48px; border: 1px solid var(--border); }
.article-sidebar { width: 320px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.article-content h1 { font-size: 2.25rem; margin-bottom: 24px; line-height: 1.3; }
.article-content h2 { font-size: 1.5rem; margin: 40px 0 20px; color: var(--primary); border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.article-content h3 { font-size: 1.25rem; margin: 24px 0 16px; }
.article-content p { margin-bottom: 16px; color: var(--text-muted); font-size: 1.05rem; }
.article-content ul { margin-bottom: 24px; padding-left: 24px; color: var(--text-muted); font-size: 1.05rem; }
.article-content li { margin-bottom: 8px; }

/* Sidebar Widgets */
.widget { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.widget-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.widget-title svg { width: 20px; height: 20px; color: var(--primary); }
.widget-links { display: flex; flex-direction: column; gap: 12px; }
.widget-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text-main); font-weight: 600; transition: all 0.2s;
}
.widget-btn:hover { border-color: var(--primary); color: var(--primary); background: white; }
.widget-btn svg { width: 24px; height: 24px; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
  color: white; border-radius: var(--radius); padding: 48px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: 2rem; margin-bottom: 16px; color: white !important; border-bottom: none; padding-bottom: 0; }
.cta-box p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; color: white !important; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: white; padding: 40px 0; margin-top: 60px; text-align: center; }
.footer-security {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(34, 197, 94, 0.1); color: #166534;
  border-radius: 20px; font-weight: 600; font-size: 0.95rem; margin-bottom: 24px;
}
.footer-text { color: var(--text-muted); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 992px) {
  .article-layout { flex-direction: column; }
  .article-sidebar { width: 100%; position: static; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-desc { font-size: 1.1rem; }
  .nav-links a { padding: 6px 12px; font-size: 0.9rem; }
  .article-main { padding: 24px; }
  .dl-hero { padding: 24px; }
}
