:root {
  --bg-primary: #09090b;
  --bg-surface: #111113;
  --bg-card: #16161a;
  --border-subtle: #27272a;
  --border-active: #3f3f46;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #00d26a;
  --accent-hover: #00b85c;
  --accent-glow: rgba(0, 210, 106, 0.25);
  --font-heading: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --spacing-section: clamp(4rem, 10vh, 6rem);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-stretch: condensed;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; max-width: 68ch; }
strong { color: var(--text-primary); font-weight: 600; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--accent-hover); }
hr { border: none; border-top: 1px solid var(--border-subtle); margin: 3rem 0; }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
section { padding: var(--spacing-section) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.flex-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
.flex-col { display: flex; flex-direction: column; gap: 1.5rem; }

/* Header & Navigation */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-wrapper {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-text { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em; color: var(--text-primary); }
nav ul { display: flex; gap: 1.5rem; list-style: none; }
nav a {
  font-size: 0.95rem; color: var(--text-secondary);
  padding: 0.4rem 0; position: relative; transition: color var(--transition-base);
}
nav a:hover, nav a[aria-current="page"] { color: var(--text-primary); }
nav a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent); transition: width var(--transition-base);
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* Footer */
footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 1rem; letter-spacing: 0.02em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* Components: Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all var(--transition-base);
}
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-secondary {
  background: transparent; border: 1px solid var(--border-active); color: var(--text-primary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 210, 106, 0.05); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Components: Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 1.5rem; transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}
.card:hover { border-color: var(--border-active); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.card-icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 1rem; flex-shrink: 0; }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.card-body { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }

/* Components: Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 0.95rem; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-surface); color: var(--text-primary); font-weight: 600; }
td { color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* Components: FAQ */
details { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; }
details[open] { border-color: var(--border-active); }
summary {
  cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none;
  display: flex; align-items: center; justify-content: space-between; padding: 1rem;
  transition: background var(--transition-base);
}
summary:hover { background: rgba(255,255,255,0.02); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.1rem; color: var(--text-muted); font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
details > div { padding: 0 1rem 1rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; border-top: 1px solid var(--border-subtle); margin-top: 0; }

/* Icons */
.icon-svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { margin: 0 auto; max-width: 60ch; }
.tag {
  display: inline-block; padding: 0.25rem 0.7rem; background: rgba(0, 210, 106, 0.1);
  color: var(--accent); font-size: 0.75rem; font-weight: 600; border-radius: 100px;
  margin-bottom: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--accent); color: #000;
  font-weight: 700; font-size: 0.85rem; border-radius: 50%; margin-right: 0.75rem; flex-shrink: 0;
}

/* SVG Animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.draw-line { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 3.5s ease-in-out forwards; }
@keyframes drawPath { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.float-node { animation: floatNode 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floatNode { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Responsive */
@media (max-width: 768px) {
  .nav-wrapper nav { display: none; }
  .mobile-menu-btn { display: block; }
  .flex-row { flex-direction: column; align-items: flex-start; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
