:root {
  --ink: #0b0b0d;
  --paper: #f7f7f3;
  --white: #ffffff;
  --muted: #65656c;
  --line: rgba(11, 11, 13, 0.16);
  --lime: #dceeb1;
  --purple: #c5b0f4;
  --mint: #c8e6cd;
  --coral: #f3c9b6;
  --teal: #0f766e;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 243, .9);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; width: max-content; }
.brand strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 18px; border-radius: 10px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.brand-mark i { width: 3px; height: 3px; border-radius: 50%; background: var(--white); opacity: .86; }
.site-header nav { display: flex; gap: 2rem; font-size: .82rem; font-weight: 700; }
.site-header nav a { position: relative; padding: 1rem 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .75rem; height: 2px; background: var(--ink); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; display: inline-flex; gap: .45rem; align-items: center; font: 700 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--ink); padding: .62rem .9rem; }

.hero { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 2.5rem 4rem; overflow: hidden; }
.hero-copy { max-width: 1050px; }
.system-line { display: flex; align-items: center; gap: .6rem; margin: 0 0 2rem; font: 650 .73rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.system-line span { width: 7px; height: 7px; border-radius: 50%; background: #35b36e; box-shadow: 0 0 0 4px rgba(53, 179, 110, .14); }
.hero h1 { max-width: 1120px; margin: 0; font-size: clamp(3.5rem, 8.3vw, 8.7rem); line-height: .9; letter-spacing: -.075em; font-weight: 760; }
.hero h1 em { display: block; font-style: normal; color: var(--teal); }
.hero-lead { max-width: 740px; margin: 2.3rem 0 0; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.65; color: #3c3c42; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .85rem 1.25rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--purple); }
.button-primary { color: var(--white); background: var(--ink); }
.button-secondary { background: transparent; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 3.8rem 0 0; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 220px; padding: 1.2rem 2.5rem 1.2rem 0; margin-right: 2.5rem; border-right: 1px solid var(--line); }
.hero-facts dt { margin-bottom: .45rem; color: var(--muted); font: 600 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.hero-facts dd { margin: 0; font-size: .92rem; font-weight: 700; }

.hero-visual { margin-top: 4rem; border: 1px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--ink); }
.visual-toolbar, .visual-status { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; font: 650 .66rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.visual-toolbar { border-bottom: 1px solid var(--ink); }
.visual-toolbar i { width: 8px; height: 8px; border-radius: 50%; background: #35b36e; }
.visual-status { gap: 1rem; border-top: 1px solid var(--ink); background: var(--lime); }
.hero-visual img { width: 100%; height: auto; }

.problem-strip { max-width: var(--max); margin: 2rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--ink); }
.problem-strip p { margin: 0; padding: 1.5rem 2.5rem; font-size: .95rem; font-weight: 700; }
.problem-strip p + p { border-left: 1px solid var(--ink); }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 2.5rem; }
.section-heading > div { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font: 650 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.section-heading h2 { max-width: 1060px; margin: 2rem 0 3.5rem; font-size: clamp(2.6rem, 6vw, 6rem); line-height: .98; letter-spacing: -.06em; }

.demo-shell { display: grid; grid-template-columns: minmax(260px, .72fr) 2fr; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--purple); }
.demo-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.demo-tabs button { flex: 1; min-height: 126px; display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-content: center; text-align: left; border: 0; border-bottom: 1px solid var(--line); padding: 1.4rem; background: transparent; color: var(--ink); cursor: pointer; }
.demo-tabs button:last-child { border-bottom: 0; }
.demo-tabs button span { grid-row: 1 / 3; align-self: start; font: 700 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.demo-tabs button strong { font-size: 1.05rem; }
.demo-tabs button small { margin-top: .4rem; color: var(--muted); font-size: .78rem; }
.demo-tabs button[aria-selected="true"] { background: var(--lime); }
.demo-tabs button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.demo-stage { min-width: 0; display: grid; grid-template-columns: .78fr 1.22fr; min-height: 510px; }
.demo-copy { align-self: end; padding: 2.4rem; }
.demo-copy > p:first-child { margin: 0 0 1rem; color: var(--teal); font: 750 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.demo-copy h3 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.02; letter-spacing: -.045em; }
.demo-copy > p:last-child { margin: 1.4rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.demo-media { min-width: 0; display: grid; place-items: center; padding: clamp(2rem, 5vw, 5rem); background: var(--ink); overflow: hidden; }
.demo-media img { width: min(100%, 620px); height: auto; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 28px 70px rgba(0,0,0,.36); image-rendering: auto; }

.features { max-width: none; background: var(--ink); color: var(--white); }
.features > * { max-width: calc(var(--max) - 5rem); margin-inline: auto; }
.section-heading-dark > div { color: rgba(255,255,255,.55); border-color: rgba(255,255,255,.2); }
.feature-list { border-top: 1px solid rgba(255,255,255,.35); }
.feature-list article { display: grid; grid-template-columns: 120px minmax(260px, 1.2fr) 1fr; gap: 2rem; align-items: start; padding: 2.2rem 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.feature-list article > span { color: var(--lime); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-list h3 { margin: 0; max-width: 650px; font-size: clamp(1.3rem, 2.2vw, 2.15rem); line-height: 1.12; letter-spacing: -.035em; }
.feature-list p { margin: 0; color: rgba(255,255,255,.66); line-height: 1.75; }

.flow { display: grid; grid-template-columns: minmax(320px, .9fr) 1.3fr; gap: clamp(3rem, 7vw, 8rem); }
.flow-intro > p, .install-copy > p:first-child, .faq-heading > p { color: var(--muted); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.flow-intro h2, .install-copy h2 { margin: 1.5rem 0 0; font-size: clamp(2.4rem, 4.7vw, 4.9rem); line-height: .98; letter-spacing: -.055em; }
.flow-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.flow-steps li { display: grid; grid-template-columns: 54px 1fr; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.flow-steps span { grid-row: 1 / 3; color: var(--teal); font: 750 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.flow-steps strong { font-size: 1.25rem; }
.flow-steps p { margin: .55rem 0 0; color: var(--muted); line-height: 1.6; }

.install { max-width: none; display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; background: var(--purple); }
.install > *:first-child { margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.install > *:last-child { margin-right: max(0px, calc((100vw - var(--max)) / 2)); }
.install-copy > p:not(:first-child) { max-width: 610px; margin: 1.8rem 0 0; line-height: 1.75; }
.install-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.button-light { background: var(--white); }
.text-link { padding-bottom: .25rem; border-bottom: 1px solid var(--ink); font-size: .86rem; font-weight: 700; }
.terminal { color: #f7f7f3; background: #101014; border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); overflow: hidden; }
.terminal > div { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.terminal > div span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.terminal > div span:nth-child(2) { background: #f4e4a7; }
.terminal > div span:nth-child(3) { background: var(--mint); }
.terminal > div strong { margin-left: auto; color: rgba(255,255,255,.52); font: 600 .65rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal pre { margin: 0; padding: 2rem; overflow: auto; font: 500 clamp(.7rem, 1vw, .85rem)/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal b { color: #aee0a8; }
.terminal i { color: #92929b; font-style: normal; }

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 8vw, 9rem); }
.faq-heading h2 { margin: 1.4rem 0 0; font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -.065em; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 1.4rem; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 740px; margin: -.3rem 0 1.8rem; color: var(--muted); line-height: 1.75; }

.closing { max-width: var(--max); margin: 0 auto 2.5rem; min-height: 320px; display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 3rem; color: var(--white); background: var(--teal); }
.closing p { margin: 0 0 1rem; font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.closing h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6.5rem); line-height: .94; letter-spacing: -.065em; }
.closing a { min-width: 180px; padding: 1rem 0; border-bottom: 1px solid var(--white); font: 750 .75rem ui-monospace, SFMono-Regular, Menlo, monospace; }

footer { max-width: var(--max); min-height: 130px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: center; padding: 2rem 2.5rem; border-top: 1px solid var(--ink); font: 650 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
footer > div { display: flex; flex-direction: column; gap: .5rem; }
footer > div:nth-child(2) { flex-direction: row; gap: 1.2rem; }
footer span { color: var(--muted); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 1.25rem; }
  .site-header nav { display: none; }
  .hero, .section { padding-inline: 1.25rem; }
  .hero-facts div { min-width: 180px; }
  .problem-strip { margin-inline: 1.25rem; grid-template-columns: 1fr; }
  .problem-strip p + p { border-left: 0; border-top: 1px solid var(--ink); }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 0; border-bottom: 1px solid var(--ink); overflow-x: auto; }
  .demo-tabs button { min-width: 180px; min-height: 112px; border-bottom: 0; border-right: 1px solid var(--line); }
  .demo-stage { min-height: 450px; }
  .feature-list article { grid-template-columns: 80px 1fr; }
  .feature-list article p { grid-column: 2; }
  .flow, .faq { grid-template-columns: 1fr; }
  .install { grid-template-columns: 1fr; padding-inline: 1.25rem; }
  .install > * { margin-inline: 0 !important; }
  footer { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 680px) {
  .site-header { min-height: 62px; }
  .brand strong { font-size: .9rem; }
  .header-cta { padding: .55rem .7rem; }
  .hero { padding-top: 4.5rem; }
  .system-line { font-size: .62rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-facts { display: grid; }
  .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; margin-right: 0; }
  .hero-visual { box-shadow: 7px 7px 0 var(--ink); }
  .visual-toolbar, .visual-status { font-size: .52rem; }
  .visual-status { align-items: flex-start; flex-direction: column; padding-block: .8rem; }
  .section-heading > div { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .section-heading h2 { margin-bottom: 2.2rem; }
  .demo-shell { box-shadow: 7px 7px 0 var(--purple); }
  .demo-tabs { grid-template-columns: repeat(4, minmax(148px, 1fr)); }
  .demo-tabs button { min-width: 148px; min-height: 96px; grid-template-columns: 28px 1fr; padding: 1rem; }
  .demo-tabs button small { display: none; }
  .demo-stage { grid-template-columns: 1fr; min-height: auto; }
  .demo-copy { order: 2; padding: 1.5rem; }
  .demo-media { padding: 1.5rem; }
  .feature-list article { grid-template-columns: 1fr; gap: .8rem; padding: 1.7rem 0; }
  .feature-list article p { grid-column: 1; }
  .install { padding-block: 4rem; }
  .terminal { box-shadow: 7px 7px 0 var(--ink); }
  .terminal pre { padding: 1.2rem; }
  .closing { margin-inline: 1.25rem; padding: 1.5rem; min-height: 350px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .closing a { min-width: 100%; }
  footer { padding-inline: 1.25rem; }
}

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