:root {
  --bg: #1e1e1e;
  --panel: #252526;
  --panel-2: #2d2d30;
  --line: #3c3c3c;
  --line-soft: #2f2f31;
  --text: #d4d4d4;
  --muted: #858585;
  --quiet: #666;
  --blue: #007acc;
  --blue-dark: #264f78;
  --light: #f0efe9;
  --mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "Roboto", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1260px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; background: white; color: black; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(37, 37, 38, .94); backdrop-filter: blur(12px); }
.nav-shell { min-height: 52px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; letter-spacing: -.03em; font-size: .93rem; }
.brand-mark { width: 28px; height: 28px; color: #f5f5f5; }
.site-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: .76rem; }
.site-nav > a:hover { color: white; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 20px; height: 1px; margin: 5px; background: currentColor; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 16px; border: 1px solid var(--line); border-radius: 3px; font-size: .72rem; font-weight: 500; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); border-color: #666; }
.button-small { min-height: 35px; padding-inline: 14px; color: var(--text); background: var(--panel); }
.button-primary { border-color: var(--blue); background: var(--blue); color: white; }
.button-primary:hover { background: #1688d4; border-color: #1688d4; }
.button-ghost { background: transparent; }
.button-light { margin-top: 25px; border-color: var(--light); background: var(--light); color: #171717; }

.hero { min-height: 745px; padding-block: 88px 82px; display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 54px; }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: #6aaf72; box-shadow: 0 0 10px rgba(106, 175, 114, .45); }
h1, h2, h3, p { margin-top: 0; }
h1, .section-heading h2, .cta h2 { font-family: var(--mono); font-weight: 400; letter-spacing: -.055em; line-height: 1.04; }
h1 { max-width: 680px; margin-bottom: 28px; font-size: clamp(3rem, 4.6vw, 4.65rem); }
h1 span { color: var(--muted); }
.hero-text { max-width: 510px; color: #a7a7aa; font-size: .86rem; }
.hero-actions { display: flex; gap: 10px; margin-top: 35px; }
.fine-print { margin-top: 17px; color: var(--quiet); font-size: .67rem; }

.app-window { min-width: 0; border: 1px solid #48484a; border-radius: 6px; overflow: hidden; background: #1e1e1e; box-shadow: 0 28px 80px rgba(0, 0, 0, .42); }
.window-bar { height: 34px; padding: 0 11px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: #252526; color: #777; font-size: .59rem; }
.traffic-lights { display: flex; gap: 6px; }
.traffic-lights i { width: 8px; height: 8px; border: 1px solid #555; border-radius: 50%; }
.window-kbd { justify-self: end; border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.app-layout { min-height: 470px; display: grid; grid-template-columns: 145px minmax(0, 1fr) 125px; }
.app-sidebar { position: relative; padding: 9px 7px; border-right: 1px solid var(--line); background: #252526; }
.app-sidebar-right { border-right: 0; border-left: 1px solid var(--line); }
.pane-tabs { display: flex; gap: 3px; align-items: center; height: 28px; margin: -3px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line); color: #777; }
.pane-tabs > * { width: 23px; height: 21px; display: grid; place-items: center; border-radius: 3px; font-size: .65rem; }
.pane-tabs b { background: #37373d; color: #fff; }
.pane-label { margin: 0 6px 7px; color: #666; font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }
.pane-gap { margin-top: 26px; }
.app-sidebar a { display: flex; align-items: center; gap: 6px; padding: 4px 6px; color: #b0b0b0; border-radius: 3px; font-size: .58rem; white-space: nowrap; overflow: hidden; }
.app-sidebar a span { width: 12px; }
.app-sidebar a b { margin-left: auto; color: #5d5d60; font-weight: 400; }
.app-sidebar a.active { background: #37373d; color: #e4e4e4; }
.vault-card { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #2d2d30; font-size: .55rem; }
.vault-card small, .vault-card em { color: #858585; font-size: .5rem; font-style: normal; }
.vault-card strong { color: #e0e0e0; font-size: .62rem; font-weight: 400; }
.note-pane { overflow: hidden; background: #1e1e1e; }
.app-query { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 6px 8px; background: #252526; border-bottom: 1px solid var(--line); color: #777; font-size: .58rem; }
.app-query .hamburger { color: #888; }
.app-query > div { min-width: 0; flex: 1; display: flex; gap: 7px; padding: 6px 7px; border: 1px solid var(--blue); border-radius: 4px; background: #1e1e1e; color: #d4d4d4; }
.app-query > div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-query b { color: #888; font-weight: 400; }
.result-tools { height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-bottom: 1px solid var(--line-soft); color: #777; font-size: .5rem; }
.result-tools div { display: flex; gap: 4px; }
.result-tools b { padding: 1px 5px; border: 1px solid #4a3d35; border-radius: 999px; color: #808080; font-weight: 400; }
.result-tools b.active-tool { background: #b89578; color: #2a1f18; }
.note-meta { display: flex; justify-content: space-between; margin-top: 8px; padding: 4px 11px 0; color: #666; font-size: .58rem; font-style: italic; }
.note-card { margin: 6px 6px 0; padding: 10px 11px 8px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 5px; background: rgba(255,255,255,.025); color: #d4d4d4; font-size: .64rem; }
.note-card p { margin-bottom: 10px; }
.note-card.selected { box-shadow: inset 0 0 0 1px rgba(212, 212, 212, .13); }
.note-card mark { background: var(--blue-dark); color: white; }
.tags { display: flex; gap: 7px; color: #ce9178; font-size: .52rem; }
.tags time { margin-left: auto; color: #666; font-style: italic; }
.md-heading { color: #569cd6; }
.muted-card { height: 70px; }
.cursor { display: block; width: 1px; height: 14px; background: #cfcfcf; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.ticker { overflow: hidden; padding: 13px 0; border-block: 1px solid var(--line); color: #747478; font-size: .62rem; letter-spacing: .14em; white-space: nowrap; text-align: center; }
.ticker span { margin: 0 35px; color: #444448; }
.section { padding-block: 130px; }
.section-heading { display: grid; grid-template-columns: 1fr 1.15fr .8fr; align-items: end; gap: 45px; margin-bottom: 65px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { margin: 0; font-size: clamp(2.5rem, 4.2vw, 4.2rem); }
.section-heading > p:last-child { color: var(--muted); font-size: .82rem; }
.feature-grid { display: grid; grid-template-columns: 1.2fr .8fr; }
.feature { min-height: 340px; position: relative; padding: 35px; border: 1px solid var(--line); margin: -1px 0 0 -1px; background: var(--panel); }
.feature-wide { grid-row: span 2; min-height: 680px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #242426, #1e1e1f); }
.feature-number { position: absolute; top: 25px; right: 27px; color: #56565a; font-size: .65rem; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 55px; border: 1px solid #49494c; border-radius: 3px; color: #a9a9ac; }
.feature-wide .feature-icon { margin-bottom: auto; }
.feature h3 { max-width: 440px; margin-bottom: 13px; font: 500 1.2rem/1.25 var(--mono); letter-spacing: -.025em; }
.feature-wide h3 { font-size: 1.85rem; }
.feature p { max-width: 470px; color: var(--muted); font-size: .77rem; }
.search-demo { margin-top: 30px; display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #47474a; background: #19191a; color: #707074; font-size: .7rem; }
.search-demo .typed { color: #cacacd; }
kbd { margin-left: auto; border: 1px solid #444448; padding: 0 5px; color: #777; font: inherit; }

.workflow-section { border-block: 1px solid var(--line); background: #1d1d1e; }
.workflow-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.workflow-grid .section-heading { display: block; margin: 0; }
.workflow-grid .section-heading h2 { font-size: clamp(2.7rem, 4.7vw, 4.5rem); }
.sticky-heading { align-self: start; position: sticky; top: 110px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { min-height: 180px; display: grid; grid-template-columns: 60px 1fr; gap: 25px; padding: 34px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--blue); font-size: .66rem; }
.steps h3 { margin-bottom: 11px; font: 500 1.35rem var(--mono); }
.steps p { max-width: 510px; color: var(--muted); font-size: .78rem; }

.cta { width: min(1260px, calc(100% - 48px)); margin-block: 100px; padding: 95px 30px; border: 1px solid #444447; background: #252526; text-align: center; }
.cta-mark { width: 55px; height: 55px; margin-bottom: 45px; color: #bcbcbc; }
.cta h2 { margin-bottom: 24px; font-size: clamp(3rem, 6.2vw, 6rem); }
.cta > p:not(.eyebrow) { color: var(--muted); font-size: .8rem; }
.site-footer { min-height: 115px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 25px; border-top: 1px solid var(--line); color: #666; font-size: .63rem; }
.site-footer .brand { color: var(--text); font-size: .9rem; }
.site-footer div { display: flex; gap: 20px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 85px; }
  .app-window { width: 100%; max-width: 700px; justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .section-heading .eyebrow { margin-bottom: 10px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 60px; }
  .sticky-heading { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; padding-block: 35px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 52px; left: 0; right: 0; display: none; padding: 25px; border-bottom: 1px solid var(--line); background: #252526; flex-direction: column; align-items: stretch; gap: 18px; }
  .site-nav.open { display: flex; }
  .hero { min-height: auto; padding-block: 70px; gap: 50px; }
  h1 { font-size: 3.25rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .app-layout { min-height: 420px; grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .note-pane { padding: 22px 20px; }
  .ticker { text-align: left; }
  .section { padding-block: 90px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature, .feature-wide { min-height: 320px; grid-row: auto; padding: 27px; }
  .feature-wide { min-height: 500px; }
  .steps li { grid-template-columns: 42px 1fr; gap: 10px; }
  .cta { width: calc(100% - 30px); margin-block: 70px; padding: 70px 20px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
}

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