:root {
  color-scheme: dark;
  --bg: #101014;
  --panel: #17171d;
  --panel-alt: #1d1d25;
  --raised: #23232c;
  --text: #f2f1f6;
  --muted: #9c9ba9;
  --quiet: #72717f;
  --border: #303039;
  --accent: #a29bfa;
  --accent-soft: rgba(162, 155, 250, .11);
  --button: #f2f1f6;
  --button-text: #19191d;
  --header: rgba(16, 16, 20, .91);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfbfc;
  --panel: #fff;
  --panel-alt: #f6f6f9;
  --raised: #eeeeF4;
  --text: #1b1b22;
  --muted: #666674;
  --quiet: #858594;
  --border: #e3e3e9;
  --accent: #6359bd;
  --accent-soft: rgba(99, 89, 189, .08);
  --button: #22222b;
  --button-text: #fff;
  --header: rgba(251, 251, 252, .93);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.shell { width: min(100% - 48px, 1160px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 16px; padding: 9px 14px; background: var(--button); color: var(--button-text); }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); background: var(--header); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; font-weight: 700; letter-spacing: -.045em; font-size: 17px; }
.brand-symbol { display: flex; align-items: center; gap: 2px; width: 21px; height: 22px; transform: skew(-24deg); }
.brand-symbol span { width: 5px; height: 15px; background: var(--text); border-radius: 1px; }
.brand-symbol span:nth-child(2) { height: 20px; }
.brand-symbol span:nth-child(3) { height: 11px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 29px); margin-left: auto; }
.nav a { color: var(--muted); font-size: 12px; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--text); }
.theme-button, .menu-button { cursor: pointer; background: none; color: var(--muted); border: 0; }
.theme-button { flex: none; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 7px; font-size: 20px; line-height: 1; }
.theme-button:hover { color: var(--text); }
.menu-button { display: none; }

.hero { padding-top: clamp(90px, 10vw, 150px); }
.hero-copy { max-width: 780px; margin: 0 auto 76px; text-align: center; }
.overline, .section-number { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.overline { margin: 0 0 25px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.055em; }
h1 { margin-bottom: 25px; font-size: clamp(45px, 6.1vw, 76px); font-weight: 660; }
h2 { margin-bottom: 20px; font-size: clamp(37px, 4vw, 54px); font-weight: 630; }
h3 { font-weight: 600; }
p { color: var(--muted); }
.hero-description { max-width: 610px; margin: 0 auto; font-size: clamp(16px, 1.5vw, 19px); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 27px; margin-top: 31px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 43px; padding: 10px 16px; border-radius: 7px; font-size: 13px; font-weight: 650; transition: transform .2s, opacity .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--button-text); background: var(--button); }
.quiet-link { font-size: 13px; color: var(--muted); }
.quiet-link:hover { color: var(--text); }

.product-window { overflow: hidden; width: min(100%, 1010px); height: 430px; margin: 0 auto; border: 1px solid var(--border); border-radius: 11px 11px 0 0; background: var(--panel); box-shadow: 0 18px 70px rgba(0, 0, 0, .22); }
.window-bar { display: flex; align-items: center; gap: 20px; height: 39px; padding: 0 16px; border-bottom: 1px solid var(--border); color: var(--quiet); font-size: 11px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border: 1px solid var(--quiet); border-radius: 50%; }
.window-bar-end { margin-left: auto; }
.window-layout { display: grid; grid-template-columns: 213px 1fr; height: calc(100% - 39px); }
.window-sidebar { padding: 16px 10px; border-right: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.sidebar-logo { padding: 0 10px 18px; color: var(--text); font-weight: 650; font-size: 12px; }
.sidebar-mark, .case-purple { color: var(--accent); font-size: 17px; vertical-align: middle; }
.sidebar-caption { padding: 0 10px; color: var(--quiet); font-size: 9px; letter-spacing: .1em; }
.sidebar-caption.lower { margin-top: 21px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; margin-top: 7px; padding: 6px 10px; border-radius: 5px; }
.sidebar-item.active { background: var(--raised); color: var(--text); }
.sidebar-item small { margin-left: auto; color: var(--quiet); }
.window-main { position: relative; min-width: 0; }
.window-toolbar { display: flex; justify-content: space-between; gap: 15px; padding: 16px 23px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; }
.toolbar-muted { color: var(--quiet); font-weight: 400; }
.window-group { display: flex; justify-content: space-between; padding: 15px 23px 8px; color: var(--muted); font-size: 11px; }
.window-group.second { padding-top: 22px; }
.issue { display: flex; align-items: center; gap: 13px; min-width: 0; height: 42px; padding: 0 23px; border-bottom: 1px solid var(--border); font-size: 11px; }
.issue-icon { color: var(--quiet); font-size: 17px; }
.issue-icon.progress { color: var(--accent); }
.issue-id { color: var(--quiet); white-space: nowrap; }
.issue-title { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.issue-tag { margin-left: auto; padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 10px; }
.window-hint { position: absolute; right: 23px; bottom: 20px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-alt); box-shadow: 0 8px 22px rgba(0,0,0,.12); color: var(--text); font-size: 11px; }
.hint-spark { margin-right: 8px; color: var(--accent); }
.hero-footnote { margin: 13px 0 72px; color: var(--quiet); text-align: center; font-size: 11px; }

.section { padding: clamp(82px, 9vw, 126px) 0; }
.section-border { border-top: 1px solid var(--border); }
.section-intro { display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 30px; align-items: start; margin-bottom: 55px; }
.section-intro > div > p { max-width: 630px; margin-bottom: 0; font-size: 16px; }
.section-number { padding-top: 8px; }
.rows { border-top: 1px solid var(--border); }
.info-row { display: grid; grid-template-columns: 60px minmax(180px, 300px) minmax(0, 1fr) 20px; gap: 22px; align-items: start; padding: 27px 4px; border-bottom: 1px solid var(--border); }
.row-number { color: var(--quiet); font-size: 12px; }
.info-row h3 { margin: 0; font-size: 20px; }
.info-row p { margin: 0; font-size: 13px; }
.row-arrow { color: var(--accent); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline > div { border-top: 1px solid var(--border); padding-top: 19px; }
.timeline span { color: var(--accent); font-size: 11px; }
.timeline h3 { margin: 22px 0 12px; font-size: 20px; }
.timeline p { max-width: 230px; margin: 0; font-size: 13px; }

.case-section { background: var(--panel); }
.case-workspace { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.case-topbar, .case-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 21px; font-size: 11px; }
.case-topbar { border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
.case-muted, .case-bottom { color: var(--quiet); font-weight: 400; }
.case-top-status { padding: 3px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.case-body { display: grid; grid-template-columns: 230px 1fr; min-height: 360px; }
.case-rail { padding: 19px 10px; border-right: 1px solid var(--border); }
.case-step { display: flex; gap: 13px; align-items: center; width: 100%; padding: 12px; border: 0; border-radius: 5px; background: none; color: var(--muted); text-align: left; cursor: pointer; font-size: 12px; }
.case-step span { color: var(--quiet); font-size: 11px; }
.case-step:hover, .case-step.active { background: var(--accent-soft); color: var(--text); }
.case-step.active span { color: var(--accent); }
.case-content { max-width: 760px; padding: clamp(31px, 5vw, 62px); }
.case-kicker, .demo-label, .note-label { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: .09em; }
.case-content h3 { max-width: 650px; margin: 19px 0; font-size: clamp(28px, 3.4vw, 43px); }
.case-content > p { max-width: 640px; font-size: 15px; }
.case-note { margin-top: 30px; padding: 17px 20px; border-left: 2px solid var(--accent); background: var(--accent-soft); }
.case-note p { margin: 8px 0 0; color: var(--text); font-size: 13px; }
.case-bottom { border-top: 1px solid var(--border); }

.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 480px); gap: clamp(50px, 8vw, 120px); align-items: center; }
.demo-layout > div:first-child > p { max-width: 490px; }
.demo-layout h2 { margin-top: 22px; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.demo-button { padding: 8px 13px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.demo-button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.demo-panel { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.demo-panel-top { display: flex; justify-content: space-between; padding: 14px 19px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.demo-panel-top span:last-child { color: var(--accent); }
.demo-panel-main { min-height: 210px; padding: 27px 23px; }
.demo-panel-main h3 { margin: 15px 0 12px; font-size: 23px; }
.demo-panel-main p { margin: 0; font-size: 13px; }
.demo-property { display: flex; justify-content: space-between; gap: 15px; padding: 12px 23px; border-top: 1px solid var(--border); font-size: 12px; }
.demo-property span { color: var(--muted); }
.demo-property strong { text-align: right; font-weight: 500; }

.contact-layout { display: flex; justify-content: space-between; align-items: end; gap: 50px; }
.contact-layout h2 { max-width: 640px; margin-top: 20px; }
.contact-layout p { max-width: 540px; }
.contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; flex: none; padding-bottom: 6px; }
.email-link { color: var(--muted); font-size: 12px; }
.email-link:hover { color: var(--text); }
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; color: var(--quiet); font-size: 11px; }
.footer a:hover { color: var(--text); }

@media (max-width: 920px) {
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .menu-button { display: inline-flex; gap: 9px; align-items: center; margin-left: auto; font-size: 12px; }
  .nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 14px; }
  .section-intro { grid-template-columns: 170px 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 32px, 1160px); }
  .hero { padding-top: 78px; }
  .hero-copy { margin-bottom: 53px; }
  .hero-actions { flex-wrap: wrap; gap: 17px; }
  .product-window { height: 345px; }
  .window-layout { grid-template-columns: 1fr; }
  .window-sidebar, .window-bar-end, .issue-tag { display: none; }
  .window-hint { right: 12px; bottom: 15px; left: 12px; }
  .window-bar { gap: 10px; }
  .window-toolbar, .issue, .window-group { padding-left: 14px; padding-right: 14px; }
  .hero-footnote { margin-bottom: 55px; }
  .section-intro { grid-template-columns: 1fr; gap: 15px; margin-bottom: 35px; }
  .info-row { grid-template-columns: 30px 1fr 16px; gap: 10px; }
  .info-row p { grid-column: 2; }
  .row-arrow { grid-column: 3; grid-row: 1; }
  .timeline { gap: 24px 15px; }
  .timeline h3 { font-size: 18px