/* ── CSS Custom Properties ── */
:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: rgba(255,255,255,0.04);
  --accent: #FF4D00;
  --accent-2: #FF8C00;
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0B0;
  --border: rgba(255,255,255,0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-glow: 0 0 40px rgba(255,77,0,0.15);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ── Animated Canvas Background ── */
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.4;
}

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo img { height: 40px; width: 40px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
}
.nav-menu {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-menu a {
  color: var(--text-secondary);
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--accent-2) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-family: var(--font-head); font-size: 18px; font-weight: 700;
  padding: 18px 40px; border-radius: var(--radius-md);
  transition: var(--transition); border: none; cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,77,0,0.35);
  text-transform: none; letter-spacing: 0;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255,77,0,0.45);
  color: #fff;
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font-head); font-size: 16px; font-weight: 600;
  padding: 14px 32px; border-radius: var(--radius-md);
  transition: var(--transition); cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(255,77,0,0.08);
}
.btn-download-footer {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-size: 15px; transition: var(--transition); margin-bottom: 12px;
}
.btn-download-footer:hover { background: var(--accent-2); color: #fff; }

/* ── Cards (Glassmorphism) ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.card:hover {
  border-color: rgba(255,77,0,0.25);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ── Section Base ── */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-sm { padding: 60px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 60px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Accent text ── */
.accent { color: var(--accent); }
.accent-2 { color: var(--accent-2); }

/* ── Badge ── */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255,77,0,0.15); color: var(--accent);
  border: 1px solid rgba(255,77,0,0.3); letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-secure {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(0,200,100,0.1); color: #00C864;
  border: 1px solid rgba(0,200,100,0.25); margin-right: 6px;
}

/* ── Tables ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
th {
  background: rgba(255,77,0,0.12); color: var(--text-primary);
  font-family: var(--font-head); font-weight: 600;
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
td {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
tr:hover td { background: rgba(255,255,255,0.02); color: var(--text-primary); }

/* ── Quick Answer Box ── */
.quick-answer {
  background: rgba(255,77,0,0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px; margin: 40px 0;
}
.quick-answer .label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px;
}
.quick-answer p { color: var(--text-primary); font-size: 16px; line-height: 1.7; }

/* ── Key Takeaways ── */
.key-takeaways {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; margin: 40px 0;
}
.key-takeaways h3 {
  font-size: 18px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.key-takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.key-takeaways li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--text-primary);
}
.key-takeaways li::before {
  content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ── TOC ── */
.toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px; margin: 40px 0;
}
.toc h3 { font-size: 16px; margin-bottom: 16px; }
.toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--text-secondary); font-size: 15px; }
.toc a:hover { color: var(--accent); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0;
}
.faq-q {
  font-family: var(--font-head); font-size: 17px; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; color: var(--text-primary); user-select: none;
}
.faq-q::after {
  content: '+'; font-size: 22px; color: var(--accent); transition: var(--transition);
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  font-size: 15px; color: var(--text-secondary); line-height: 1.8;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; padding-top: 14px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: var(--text-secondary); margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-secondary); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 80px 0 40px; position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p { font-size: 14px; color: var(--text-secondary); margin: 16px 0 20px; line-height: 1.7; }
.footer-col h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-meta { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--text-secondary); }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a { font-size: 13px; color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; z-index: 1;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
}
.hero-badge { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 20px; line-height: 1.1;
}
.hero-desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-num { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.hero-img {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
.hero-img img { width: 100%; border-radius: var(--radius-lg); }
.hero-img::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent);
  border-radius: var(--radius-lg); z-index: -1; opacity: 0.4;
}

/* ── Features Grid ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.feature-card { position: relative; }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(255,77,0,0.12); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--accent); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

/* ── Version Box ── */
.version-box {
  background: rgba(255,77,0,0.08); border: 1px solid rgba(255,77,0,0.2);
  border-radius: var(--radius-md); padding: 20px 24px;
  display: flex; align-items: center; gap: 20px; margin-bottom: 16px;
}
.version-num { font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--accent); }
.version-meta { font-size: 13px; color: var(--text-secondary); }

/* ── Comparison Table ── */
.comparison-table th:first-child { background: transparent; }
.comparison-table .check { color: #00C864; font-size: 18px; }
.comparison-table .cross { color: #FF4444; font-size: 18px; }
.comparison-table .highlight { background: rgba(255,77,0,0.06); }
.comparison-table td:first-child { font-weight: 500; color: var(--text-primary); }

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 8px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; transition: var(--transition);
}
.step:hover { border-color: rgba(255,77,0,0.25); }
.step-num {
  min-width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: #fff; flex-shrink: 0;
}
.step-content h3 { font-size: 17px; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); }

/* ── Infographic SVG Wrapper ── */
.infographic {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; margin: 40px 0;
}

/* ── Download Page ── */
.download-hero {
  text-align: center; padding: 140px 0 80px;
  position: relative; z-index: 1;
}
.download-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
  max-width: 640px; margin: 0 auto; text-align: center;
  backdrop-filter: blur(10px);
}
.version-pill {
  font-family: var(--font-mono); font-size: 13px;
  background: rgba(255,77,0,0.12); color: var(--accent);
  border: 1px solid rgba(255,77,0,0.25); border-radius: 999px;
  padding: 6px 16px; display: inline-block; margin-bottom: 24px;
}
.download-meta {
  display: flex; justify-content: center; gap: 32px; margin-top: 24px;
  font-size: 13px; color: var(--text-secondary);
}
.download-meta span { display: flex; align-items: center; gap: 6px; }

/* ── Blog ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { overflow: hidden; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transition: var(--transition); }
.blog-card:hover img { transform: scale(1.04); }
.blog-card-body { padding: 24px 28px 28px; }
.blog-card-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.blog-card-title { font-size: 18px; margin-bottom: 10px; }
.blog-card-title a { color: var(--text-primary); }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ── Article Layout ── */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; align-items: start; }
.article-content { min-width: 0; }
.article-sidebar { position: sticky; top: 90px; }
.article-content h2 { font-size: 28px; margin: 52px 0 20px; }
.article-content h3 { font-size: 20px; margin: 32px 0 14px; }
.article-content p { font-size: 16px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { font-size: 16px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }
.article-content strong { color: var(--text-primary); font-weight: 600; }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 32px auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.article-content figcaption { font-size: 13px; color: var(--text-secondary); text-align: center; margin-top: -20px; margin-bottom: 32px; }

/* Sidebar widget */
.sidebar-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px;
}
.sidebar-widget h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.sidebar-links a:hover { color: var(--accent); }

/* ── Notice / Tip boxes ── */
.tip-box {
  background: rgba(0,200,100,0.06); border-left: 3px solid #00C864;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 24px 0; font-size: 15px;
  color: var(--text-primary);
}
.warning-box {
  background: rgba(255,200,0,0.06); border-left: 3px solid #FFC800;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 24px 0; font-size: 15px;
  color: var(--text-primary);
}

/* ── Author Box ── */
.author-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; gap: 24px; align-items: flex-start; margin-top: 60px;
}
.author-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box > div { flex: 1; min-width: 0; }
.author-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.author-title { font-size: 13px; color: var(--accent); margin-bottom: 12px; }
.author-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.author-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.author-socials a { font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; transition: var(--transition); }
.author-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0; transition: width 0.1s linear;
}

/* ── Back to Top ── */
.back-top {
  position: fixed; bottom: 30px; right: 30px; z-index: 500;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,77,0,0.4);
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { transform: translateY(-4px); background: var(--accent-2); }

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 120px 0 60px;
  position: relative; z-index: 1;
}
.page-header h1 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 16px;
}
.page-header .section-sub {
  margin-bottom: 0;
}

/* ── Content Sections ── */
.content-section {
  padding: 40px 0;
  position: relative; z-index: 1;
}
.content-section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 20px;
  margin-top: 40px;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 {
  font-size: 20px;
  margin-bottom: 14px;
  margin-top: 32px;
}
.content-section p {
  font-size: 16px; color: var(--text-secondary);
  margin-bottom: 20px; line-height: 1.8;
}
.content-section ul, .content-section ol {
  padding-left: 24px; margin-bottom: 20px;
}
.content-section li {
  font-size: 16px; color: var(--text-secondary);
  margin-bottom: 8px; line-height: 1.7;
}
.content-section strong { color: var(--text-primary); }
.content-section img {
  border-radius: var(--radius-md);
  margin: 32px auto;
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* ── Footer Brand Logo ── */
.footer-brand .logo {
  margin-bottom: 12px;
}

/* ── Inline SVG Infographic ── */
.svg-infographic {
  width: 100%;
  margin: 40px 0;
}
.svg-infographic svg {
  width: 100%;
  height: auto;
}

/* ── Related Posts ── */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.related-posts h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* ── Contact Form ── */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,0,0.1);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ── Version Timeline ── */
.version-timeline {
  position: relative;
  padding-left: 30px;
}
.version-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.version-entry {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}
.version-entry::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
}
.version-entry.latest::before {
  width: 16px;
  height: 16px;
  left: -36px;
  top: 6px;
  box-shadow: 0 0 12px rgba(255,77,0,0.5);
}
