*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #15141b;
  --bg-elevated: #1c1b22;
  --bg-surface: #232229;
  --fg: #edecee;
  --fg-muted: #9e9ba5;
  --purple: #a277ff;
  --purple-dim: rgba(162, 119, 255, 0.12);
  --green: #61ffca;
  --green-dim: rgba(97, 255, 202, 0.10);
  --red: #ff6767;
  --yellow: #ffca85;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--fg); line-height: 1.6; overflow-x: hidden; }
::selection { background: var(--purple); color: var(--bg); }
a { color: var(--purple); text-decoration: none; transition: opacity 0.2s var(--ease); }
a:hover { opacity: 0.8; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; margin: 0 auto; }
section { padding: 80px 0; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px;
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(21, 20, 27, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease);
}
.nav-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.nav-prompt { color: var(--purple); font-family: var(--font-mono); font-size: 20px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--fg-muted); font-size: 14px; font-weight: 500; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--fg); opacity: 1; }
.nav-links a.active { color: var(--purple); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
  background: var(--purple); color: var(--bg) !important; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { opacity: 1; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(162, 119, 255, 0.35); }

.hero { padding-top: 140px; padding-bottom: 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; background: radial-gradient(ellipse at center, rgba(162, 119, 255, 0.08) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: var(--purple-dim); border: 1px solid rgba(162, 119, 255, 0.2); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--purple); margin-bottom: 32px; letter-spacing: 0.02em; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--purple) 0%, var(--green) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--fg-muted); line-height: 1.7; max-width: 600px; margin: 0 auto 40px; }

.install-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.install-box { display: flex; align-items: center; gap: 0; background: var(--bg-surface); border: 2px solid rgba(162, 119, 255, 0.3); border-radius: var(--radius); overflow: hidden; max-width: 100%; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.install-box:hover { border-color: rgba(162, 119, 255, 0.5); box-shadow: 0 0 24px rgba(162, 119, 255, 0.15); }
.install-box code { font-family: var(--font-mono); font-size: 15px; padding: 16px 24px; color: var(--fg); white-space: nowrap; user-select: all; }
.install-box code .prompt-char { color: var(--purple); user-select: none; }
.copy-btn { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: none; border-left: 1px solid rgba(255, 255, 255, 0.08); background: transparent; color: var(--fg-muted); cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease); flex-shrink: 0; }
.copy-btn:hover { color: var(--purple); background: rgba(162, 119, 255, 0.06); }
.copy-btn.copied { color: var(--green); }
.copy-btn .icon-copy { display: block; }
.copy-btn .icon-check { display: none; }
.copy-btn.copied .icon-copy { display: none; }
.copy-btn.copied .icon-check { display: block; }
.install-hint { font-size: 13px; color: var(--fg-muted); font-weight: 500; }
.install-hint .accent { color: var(--green); font-weight: 600; }

.article-body { padding: 0 24px; }
.article-body .narrow { padding: 0; }
.article-body h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 20px; margin-top: 64px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: clamp(18px, 3vw, 24px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; margin-top: 48px; }
.article-body p { font-size: 17px; color: var(--fg-muted); line-height: 1.75; margin-bottom: 20px; }
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body ul, .article-body ol { margin-bottom: 20px; padding-left: 24px; }
.article-body li { font-size: 17px; color: var(--fg-muted); line-height: 1.75; margin-bottom: 8px; }

.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.inline-code { font-family: var(--font-mono); font-size: 14px; background: var(--bg-surface); padding: 2px 8px; border-radius: 4px; color: var(--yellow); }

.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0 48px; }
.pain-card { background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color 0.3s var(--ease); }
.pain-card:hover { border-color: rgba(255, 103, 103, 0.2); }
.pain-card .pain-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 18px; background: rgba(255, 103, 103, 0.10); color: var(--red); }
.pain-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.pain-card p { font-size: 14px !important; color: var(--fg-muted); line-height: 1.6; margin-bottom: 0 !important; }

.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0 48px; }
.solution-card { background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color 0.3s var(--ease); position: relative; overflow: hidden; }
.solution-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--green), transparent); opacity: 0; transition: opacity 0.3s var(--ease); }
.solution-card:hover { border-color: rgba(97, 255, 202, 0.2); }
.solution-card:hover::before { opacity: 0.6; }
.solution-card .solution-icon { width: 40px; height: 40px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 18px; background: var(--green-dim); color: var(--green); }
.solution-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.solution-card p { font-size: 14px !important; color: var(--fg-muted); line-height: 1.6; margin-bottom: 0 !important; }

.comparison-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); margin: 32px 0 48px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 500px; font-size: 15px; }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
.comparison-table th { font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.comparison-table th:first-child, .comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--fg); }
.comparison-table th.arb-col { color: var(--purple); background: rgba(162, 119, 255, 0.06); }
.comparison-table td.arb-col { background: rgba(162, 119, 255, 0.06); }
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--green); font-size: 18px; font-weight: 700; }
.comparison-table .dash { color: var(--fg-muted); opacity: 0.4; font-size: 18px; }
.comparison-table .value { color: var(--fg); font-family: var(--font-mono); font-size: 13px; font-weight: 600; }
.comparison-table .value.best { color: var(--green); }

.faq-list { margin: 32px 0; }
.faq-item { background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s var(--ease); }
.faq-item:hover { border-color: rgba(162, 119, 255, 0.2); }
.faq-question { width: 100%; background: none; border: none; color: var(--fg); font-family: var(--font-sans); font-size: 16px; font-weight: 600; text-align: left; padding: 20px 24px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 0.2s var(--ease); }
.faq-question:hover { color: var(--purple); }
.faq-arrow { flex-shrink: 0; width: 20px; height: 20px; color: var(--fg-muted); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 15px; color: var(--fg-muted); line-height: 1.7; }

.bottom-cta { text-align: center; padding: 96px 0; }
.bottom-cta-box { background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-lg); padding: 56px 40px; max-width: 640px; margin: 0 auto; position: relative; overflow: hidden; }
.bottom-cta-box::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, transparent, var(--purple), var(--green), transparent); border-radius: 2px; }
.bottom-cta-box h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.bottom-cta-box > p { color: var(--fg-muted); font-size: 16px; margin-bottom: 36px; }
.bottom-cta-install { display: flex; align-items: center; gap: 0; background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); overflow: hidden; width: 100%; max-width: 440px; margin: 0 auto 16px; transition: border-color 0.2s var(--ease); }
.bottom-cta-install:hover { border-color: rgba(162, 119, 255, 0.3); }
.bottom-cta-install code { font-family: var(--font-mono); font-size: 14px; padding: 16px 20px; color: var(--fg); flex: 1; text-align: left; white-space: nowrap; }
.bottom-cta-install code .prompt-char { color: var(--purple); user-select: none; }
.bottom-cta-install .copy-btn { width: 48px; height: 52px; }
.bottom-cta-or { color: var(--fg-muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.download-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); color: var(--fg); border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease); }
.download-btn:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); transform: translateY(-1px); opacity: 1; }

.cross-links { margin: 48px 0; padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.cross-links h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.cross-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cross-link { display: block; padding: 16px 20px; background: var(--bg-elevated); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--fg); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.cross-link:hover { border-color: rgba(162, 119, 255, 0.3); transform: translateY(-1px); opacity: 1; }

footer { padding: 40px 24px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--fg-muted); flex-wrap: wrap; gap: 16px; }
.footer-left { font-size: 14px; color: var(--fg-muted); }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-right a { color: var(--fg-muted); font-size: 14px; font-weight: 500; }
.footer-right a:hover { color: var(--fg); opacity: 1; }

@media (max-width: 768px) {
  .pain-grid, .solution-grid { grid-template-columns: 1fr; }
  .cross-links-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav-links .nav-link-text { display: none; }
  .nav-links { gap: 16px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
