:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #dce1e8;
  --accent: #f05a28;
  --accent-strong: #d94818;
  --accent-soft: #fff0e9;
  --code: #111827;
  --code-text: #e7edf5;
  --shadow: 0 18px 55px rgba(17, 24, 39, .09);
  --radius: 20px;
  --max: 1160px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1016;
  --surface: #131922;
  --surface-2: #1a222e;
  --text: #f4f7fb;
  --muted: #a6b1c0;
  --line: #2b3543;
  --accent: #ff7541;
  --accent-strong: #ff8b5f;
  --accent-soft: #2a1b16;
  --code: #080b10;
  --code-text: #e8eef7;
  --shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-toggle, .theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.theme-toggle { width: 40px; height: 40px; }
.nav-toggle { display: none; padding: .6rem .7rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-strong); }
.button-secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.hero { padding: 88px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.045em; }
h1 { max-width: 760px; margin: 1rem 0 1.2rem; font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.hero-art {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 19%, transparent), transparent 67%);
}
.editor-window {
  position: relative;
  width: min(100%, 570px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(1deg);
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dot:first-child { background: #ff6b5d; }
.dot:nth-child(2) { background: #f5c451; }
.dot:nth-child(3) { background: #55c979; }
.editor-title { margin-left: auto; margin-right: auto; font-size: .75rem; color: var(--muted); }
.editor-body {
  display: grid;
  grid-template-columns: 78px 1fr;
  padding: 1.2rem;
  gap: 1rem;
  background: var(--code);
  color: var(--code-text);
  font: 13px/1.85 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.offsets { color: #75849a; text-align: right; }
.hex-lines { color: #d9e4f2; }
.hex-accent { color: #ff9069; }
.hex-blue { color: #8db9ff; }
.ascii { color: #8de2a4; }
.section { padding: 92px 0; }
.section-muted { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card, .article-card, .comparison-wrap, .demo, .price-card, .faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-card { padding: 1.5rem; }
.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.feature-card p, .article-card p { color: var(--muted); }
.feature-card ul { padding-left: 1.1rem; color: var(--muted); }
.demo {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  overflow: hidden;
}
.demo-copy { padding: 2rem; }
.demo-copy p { color: var(--muted); }
.demo-panel { padding: 1.4rem; background: var(--code); color: var(--code-text); }
.demo-label { display: block; margin-bottom: .45rem; color: #9ca9bb; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.demo textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #303a49;
  border-radius: 12px;
  padding: 1rem;
  background: #0b1017;
  color: #e8eef7;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .8rem 0; }
.demo-controls button {
  border: 1px solid #344152;
  border-radius: 9px;
  background: #161f2b;
  color: #e8eef7;
  padding: .55rem .75rem;
  cursor: pointer;
}
.demo-controls button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.demo-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  margin-top: .8rem;
}
.output-box { min-width: 0; }
.output-value {
  min-height: 74px;
  overflow-wrap: anywhere;
  border: 1px solid #303a49;
  border-radius: 10px;
  padding: .8rem;
  background: #0b1017;
  font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  position: relative;
  padding: 1.3rem;
  border-top: 2px solid var(--accent);
}
.step-number { color: var(--accent); font: 800 .8rem ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.comparison-wrap { overflow-x: auto; }
.comparison { width: 100%; min-width: 780px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { background: var(--surface-2); font-size: .82rem; }
.comparison td { color: var(--muted); }
.comparison td:first-child { color: var(--text); font-weight: 700; }
.comparison .current { color: var(--accent); font-weight: 800; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.price-card { padding: 2rem; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 12px 45px color-mix(in srgb, var(--accent) 10%, transparent); }
.price { margin: .4rem 0 1rem; font-size: 2.4rem; font-weight: 800; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.price-card ul { padding-left: 1.1rem; color: var(--muted); }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: 1.5rem; }
.download-button-windows, .download-button-linux, .download-button-macos {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.download-button-windows:hover, .download-button-linux:hover, .download-button-macos:hover { transform: translateY(-2px); border-color: var(--accent); }
.download-name { font-weight: 800; }
.download-meta { color: var(--muted); font-size: .8rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-card { display: flex; flex-direction: column; padding: 1.5rem; }
.article-card time { color: var(--accent); font-size: .78rem; font-weight: 800; }
.article-card .read-more { margin-top: auto; padding-top: 1rem; color: var(--text); font-weight: 800; text-decoration: none; }
.faq-list { display: grid; gap: .7rem; }
.faq-item { overflow: hidden; }
.faq-item summary { padding: 1.15rem 1.3rem; cursor: pointer; font-weight: 750; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--accent); font-size: 1.3rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.3rem 1.3rem; color: var(--muted); }
.cta {
  position: relative;
  overflow: hidden;
  padding: 3.2rem;
  border-radius: 28px;
  color: #fff;
  background: #151b24;
}
.cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -130px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
  filter: blur(10px);
}
.cta-content { position: relative; z-index: 1; max-width: 700px; }
.cta p { color: #bac4d1; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-title { margin-bottom: .7rem; font-weight: 800; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.page-hero { padding: 70px 0 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 4rem; align-items: start; }
.article-meta { color: var(--muted); }
.article-content { font-size: 1.08rem; }
.article-content h2 { margin-top: 2.6rem; font-size: 2rem; }
.article-content p { color: var(--muted); }
.article-content a { color: var(--accent); }
.article-source { margin-top: 2rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }
.article-aside { position: sticky; top: 100px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.article-aside a { color: var(--muted); text-decoration: none; }
.article-aside a:hover { color: var(--text); }
.not-found-safe { padding: 3rem 0; }
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-grid, .demo, .article-layout { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; }
  .feature-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-aside { position: static; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 64px; }
  .nav-links { top: 64px; left: 14px; right: 14px; }
  .nav-actions .button { display: none; }
  .hero { padding: 58px 0 45px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-art { min-height: 300px; }
  .editor-body { grid-template-columns: 54px 1fr; font-size: 10px; padding: .8rem; gap: .5rem; }
  .section { padding: 64px 0; }
  .feature-grid, .workflow, .price-grid, .article-grid, .download-grid { grid-template-columns: 1fr; }
  .demo-output { grid-template-columns: 1fr; }
  .cta { padding: 2rem 1.3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}