:root {
  --bg: #0b0f1a;
  --card: #151b2b;
  --text: #e8ecf5;
  --muted: #9aa4b8;
  --accent: #5b3df5;
  --accent-hover: #4b2ee0;
  --accent-2: #22d3ee;
  --border: rgba(232, 236, 245, 0.12);
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.6; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Space Grotesk', system-ui, sans-serif; line-height: 1.2; margin: 0 0 16px; color: var(--text); }
h1 { font-size: 44px; letter-spacing: -0.02em; }
h2 { font-size: 28px; margin-bottom: 24px; }
h3 { font-size: 20px; margin-bottom: 12px; }
p { margin: 0 0 16px; color: var(--muted); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%; }
.site-main { flex: 1; }

.site-header { border-bottom: 1px solid var(--border); background: rgba(11, 15, 26, 0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: inset 0 0 0 3px var(--accent-2); display: inline-block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.hero-tool { padding: 36px 0 48px; }
.hero-head { max-width: 760px; margin-bottom: 24px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent-2); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 68ch; margin-bottom: 0; }

.tool-stage { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-md); }

.section { padding: 56px 0; }
.section-alt { background: rgba(21, 27, 43, 0.45); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: var(--accent-2); margin-bottom: 8px; }
.step-card p { margin-bottom: 0; font-size: 15px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 24px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; max-width: 70ch; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose code { background: rgba(124, 92, 255, 0.16); color: var(--text); padding: 2px 6px; border-radius: 6px; font-size: 14px; }
.prose pre { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; overflow-x: auto; margin: 0 0 20px; }
.prose pre code { background: none; padding: 0; }

.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); font-size: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 12px 0 0; font-size: 15px; }

.related-bar, .cta-banner { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.related-bar p, .cta-banner p { margin: 0; max-width: 60ch; }
.related-links { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { padding: 40px 0 24px; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }

.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: var(--radius); font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-primary:focus-visible, .btn-secondary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent-2); text-decoration: none; }

.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 48px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 14px; margin: 0; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .container { padding: 0 16px; }
  .hero-tool { padding: 24px 0 36px; }
  .tool-stage { padding: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .btn-primary, .btn-secondary { width: 100%; }
  .related-links { width: 100%; }
}