:root {
  --bg-primary: #0a0b0f;
  --bg-secondary: #13141a;
  --bg-tertiary: #1c1d25;
  --border-subtle: #282933;
  --border-accent: #363744;
  --text-primary: #eef0f6;
  --text-secondary: #a0a3ae;
  --text-muted: #6b6e7a;
  --accent: #25D366;
  --accent-hover: #1da851;
  --accent-glow: rgba(37, 211, 102, 0.15);
  --focus-ring: rgba(37, 211, 102, 0.35);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);
  --font-sans: system-ui, -apple-system, "PingFang SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --container-max: 1140px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography & Fluid Sizing */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.6rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; max-width: 72ch; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
  position: relative;
}
.grid-auto {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }

/* Header & Navigation */
.site-header {
  height: var(--header-height);
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.1rem;
}
.brand-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
}
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #051a11;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Cards & Components */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }

/* Tables */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; background: var(--bg-secondary); font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-tertiary); font-weight: 600; color: var(--text-primary); }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }

/* FAQ / Details */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--accent); }
summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; margin-bottom: 0; font-size: 0.95rem; color: var(--text-secondary); }
details:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* SVG Animation Utilities */
.svg-animate { transition: opacity 0.3s; }
.orbit-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: orbit-breathe 12s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: center;
}
.draw-line {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-path 6s ease forwards;
}
@keyframes orbit-breathe {
  0% { transform: scale(0.94) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.06) rotate(18deg); opacity: 0.85; }
}
@keyframes draw-path {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-auto { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .section { padding: 60px 0; }
}
