:root {
  color-scheme: dark;
  --bg: #101110;
  --panel: #171918;
  --line: #333832;
  --muted: #b5bab1;
  --ink: #f2f4ed;
  --accent: #dffb86;
  --gutter: clamp(16px, 4.4vw, 72px);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input { font: inherit; }
a, button { color: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; display: block; flex: none; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only, .icon-library, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; background: var(--bg); padding: 10px; }
.masthead, main, .footer { width: min(1344px, 100% - var(--gutter) * 2); margin-inline: auto; }
.masthead {
  position: sticky; top: 12px; z-index: 5;
  margin-block: 16px 20px; padding: 8px 10px 8px 13px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 62px; border: 1px solid var(--line); border-radius: 16px;
  background: #191c19ed; backdrop-filter: blur(16px); box-shadow: 0 9px 24px #0004;
}
.brand, .header-actions, nav { display: flex; align-items: center; gap: 9px; }
.brand { font-weight: 900; letter-spacing: .145em; white-space: nowrap; }
.brand strong span { color: var(--accent); }
.brand-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #181d11; background: var(--accent); }
.brand-icon svg { width: 22px; height: 22px; }
nav a, .language { display: grid; place-items: center; min-height: 42px; padding: 7px 11px; border-radius: 9px; color: var(--muted); font-size: .92rem; white-space: nowrap; }
nav a[aria-current], nav a:hover, .language:hover { color: var(--ink); background: #2a3127; }
.language { border: 1px solid var(--line); background: transparent; font: 700 .83rem ui-monospace, monospace; }
.button, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 16px;
  color: #1a2111; background: var(--accent); font-size: .94rem; font-weight: 680;
  transition: transform .22s, background .22s, border-color .22s;
}
.button:hover { background: #efffc3; transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 11px; white-space: nowrap; }
.button-small svg { width: 17px; height: 17px; }
.button.ghost, .icon-btn { color: var(--ink); border-color: #4a5046; background: #222722; }
.button.ghost:hover, .icon-btn:hover { background: #363e34; border-color: #687262; }
.icon-btn { padding: 0; min-width: 40px; min-height: 40px; }
.menu-toggle { display: none; }
main { flex: 1; min-width: 0; }
.screen { animation: enter .34s cubic-bezier(.22,.7,.3,1) both; }
@keyframes enter { from { opacity: .65; transform: translateY(7px); } }
.hero {
  min-height: clamp(470px, 55vw, 630px); position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; padding: clamp(28px, 5.5vw, 82px);
  border: 1px solid #414d3f; border-radius: 23px; background: #151c15;
}
.hero-art { position: absolute; inset: 0 0 0 19%; z-index: -2; background: #18231a; }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.hero::after { position: absolute; z-index: -1; pointer-events: none; inset: 0; content: ""; background: #151d1530; box-shadow: inset 220px 0 178px -74px #151d15, inset 0 -100px 76px -62px #10140f; }
.hero-copy { width: min(100%, 625px); padding-bottom: 24px; }
.eyebrow, .art-footer > span {
  display: flex; gap: 9px; align-items: center; color: #c4d5b9; font: 650 .78rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow > span:first-child:empty { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px #dffb8670; flex: none; }
.hero h1, .page-intro h1 { margin: 18px 0; font-size: clamp(3.1rem, 7vw, 6.6rem); font-weight: 730; line-height: .98; letter-spacing: -.083em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy > p, .page-intro > p { max-width: 51ch; color: #c7cfc4; line-height: 1.65; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.art-footer { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 12px; }
.art-footer > span { color: #c7d6c4; background: #121912df; border: 1px solid #ffffff2b; padding: 9px 11px; border-radius: 7px; }
.home-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 32px 0 15px; }
.home-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -.04em; }
.home-heading > span, .quick-card small, .chat-head small { color: var(--muted); }
.quick-grid, .download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card, .panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.quick-card { display: flex; align-items: center; gap: 13px; padding: 15px; transition: border-color .24s, transform .24s, background .24s; }
.quick-card:hover { border-color: #78896c; transform: translateY(-3px); background: #20261e; }
.quick-card div { flex: 1; }
.quick-card small, .chat-head small { display: block; margin-top: 4px; line-height: 1.4; font-size: .82rem; }
.tile { display: grid; width: 44px; height: 44px; place-items: center; flex: none; border-radius: 10px; background: #29342a; color: #c0e6b0; }
.tile.lime { background: #303c25; color: var(--accent); }
.tile.violet { background: #332b41; color: #d6bffb; }
.tile.blue { background: #263741; color: #b5dff4; }
.tile.orange { background: #3c3026; color: #ffd5ae; }
.page-intro { padding: clamp(28px, 5vw, 69px) 0 30px; }
.page-intro h1 { font-size: clamp(2.9rem, 7vw, 5.65rem); overflow-wrap: anywhere; }
.page-intro p { margin-bottom: 0; }
.feature-grid, .about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card, .download-card, .bio-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 3vw, 32px); }
.feature-card { position: relative; overflow: hidden; isolation: isolate; min-height: 235px; }
.feature-card h2, .bio-card h2, .download-card h2 { margin: 15px 0 0; font-size: 1.35rem; letter-spacing: -.035em; }
.feature-card p, .download-card p { color: var(--muted); line-height: 1.55; flex: 1; margin-bottom: 20px; }
.feature-card .actions { margin-top: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tags span { border: 1px solid var(--line); border-radius: 100px; padding: 5px 9px; font-size: .8rem; color: #d0d9cb; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.filters button, .prompt { color: var(--ink); background: #20241f; border: 1px solid var(--line); border-radius: 9px; min-height: 42px; padding: 8px 13px; }
.filters button:hover, .prompt:hover { border-color: #78896c; }
.filters button[aria-pressed="true"] { background: #303b26; border-color: #81946e; color: #efffcd; }
.support-card { grid-column: 1 / -1; }
.support-card h2 { margin-top: 0; }
.social-list { margin: 13px 0 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.social-list a { color: var(--accent); padding-block: 5px; }
.chat-layout { display: grid; grid-template-columns: minmax(185px, 250px) minmax(0, 1fr); gap: 14px; align-items: start; }
.chat-aside { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-aside .eyebrow { padding: 6px 0; }
.prompt { text-align: left; line-height: 1.35; }
.chat-aside .button { align-self: flex-start; margin-top: 8px; }
.chat-panel { overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .icon-btn { margin-left: auto; }
.messages { padding: 18px; min-height: 245px; height: clamp(245px, 44dvh, 465px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.bubble { border-radius: 12px 12px 12px 3px; background: #292f28; padding: 11px 14px; width: fit-content; max-width: min(84%, 68ch); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: #38452d; border-radius: 12px 12px 3px 12px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #20241f; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; color: var(--ink); background: #151815; font-size: 16px; }
.footer { border-top: 1px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; padding-block: 18px 24px; color: var(--muted); font-size: .86rem; }
.footer > span { flex: 1; }
.footer .brand-icon { width: 27px; height: 27px; }
.footer .brand-icon svg { width: 17px; height: 17px; }
.footer a:hover { color: var(--accent); }
@media (max-width: 930px) {
  .masthead { gap: 9px; }
  nav { gap: 1px; }
  nav a { padding-inline: 8px; }
  .quick-grid, .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 770px) {
  .menu-toggle { display: inline-flex; order: 3; }
  .header-actions { margin-left: auto; }
  .masthead nav { display: none; position: absolute; inset: calc(100% + 5px) 0 auto; padding: 8px; background: #1b1f1b; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 14px 28px #0007; }
  .masthead nav.open { display: grid; animation: enter .2s ease-out both; }
  nav a { justify-content: start; min-height: 44px; }
  .hero-art { inset: 0; }
  .hero::after { background: #151d1555; box-shadow: inset 130px 0 124px -38px #151d15, inset 0 -105px 88px -62px #10140f; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-aside { flex-flow: row wrap; align-items: center; }
  .chat-aside .eyebrow { flex-basis: 100%; }
  .chat-aside .button { align-self: auto; margin-top: 0; min-height: 42px; }
}
@media (max-width: 520px) {
  .masthead { margin-block: 10px 13px; top: 7px; }
  .header-chat { display: none; }
  .hero { min-height: 485px; align-items: flex-end; padding-bottom: 65px; }
  .hero-art { inset: 0 0 22%; }
  .hero::after { background: #151d1580; box-shadow: inset 0 -175px 108px -62px #151d15; }
  .hero-copy { padding-bottom: 5px; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.05rem); }
  .hero .actions { margin-top: 18px; }
  .art-footer { right: 12px; bottom: 12px; }
  .home-heading > span { display: none; }
  .quick-grid, .download-grid, .feature-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .chat-head, .messages { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.overview { overflow: hidden; box-shadow: 0 18px 55px #0003; }
.overview-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #1e241e; }
.overview-bar .tile { width: 34px; height: 34px; border-radius: 8px; }
.overview-switch { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.overview-switch button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; min-height: 40px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font-size: .85rem; }
.overview-switch button[aria-pressed=true], .overview-switch button:hover { border-color: #4e5947; background: #2e382a; color: var(--ink); }
.overview-switch svg { width: 15px; height: 15px; }
.overview-panel { padding: 15px; animation: enter .24s ease-out both; }
.overview-content { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.overview-panel > .button { margin-top: 14px; }
.overview-chat { display: flex; flex-direction: column; gap: 10px; margin: 4px auto; max-width: 760px; }
@media (max-width: 740px) { .overview-content { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) {
  .overview-content { grid-template-columns: minmax(0,1fr); }
  .overview-switch { justify-content: space-between; width: 100%; margin-left: 0; }
  .overview-switch button { gap: 5px; padding-inline: 6px; }
  .hero h1 { letter-spacing: -.065em; }
}

/* Motion is enabled after the saved preference has been applied. */
:root { --settle: cubic-bezier(.18,.8,.24,1); }
.hero-lights {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lights i {
  position: absolute;
  top: -30%;
  left: var(--beam-x);
  width: clamp(35px, 10vw, 160px);
  height: 150%;
  transform: rotate(var(--beam-angle));
  transform-origin: center top;
  filter: blur(clamp(11px, 2vw, 26px));
  opacity: var(--beam-opacity);
}
.hero-lights i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c9ec9b24;
  clip-path: polygon(22% 0, 53% 0, 100% 100%, 0 84%);
}
.hero-lights i:nth-child(1) { --beam-x: 86%; --beam-angle: 34deg; --beam-opacity: .62; --beam-delay: 80ms; }
.hero-lights i:nth-child(2) { --beam-x: 98%; --beam-angle: 44deg; --beam-opacity: .48; --beam-delay: 150ms; }
.hero-lights i:nth-child(3) { --beam-x: 104%; --beam-angle: 18deg; --beam-opacity: .38; --beam-delay: 115ms; }

.hero-word { display: inline-block; }
.hero h1 { perspective: 650px; }
.hero { transform-origin: center 25%; }
.overview { transform-origin: 50% 100%; }
.menu-toggle svg { transition: transform 210ms var(--settle); }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.chat-form input { transition: border-color 180ms ease; }
.chat-form input:focus { border-color: #849666; }

html[data-motion="on"] .masthead { animation: nav-appear 500ms var(--settle) both; }
html[data-motion="on"] [data-screen="home"] { animation: none; }
html[data-motion="on"] .hero { animation: hero-appear 760ms var(--settle) both; }
html[data-motion="on"] .hero-word {
  transform-origin: 50% 85%;
  animation: word-appear 680ms var(--settle) calc(210ms + var(--word-order) * 74ms) both;
}
html[data-motion="on"] .hero-copy > .eyebrow { animation: enter 420ms var(--settle) 95ms both; }
html[data-motion="on"] .hero-copy > p { animation: enter 580ms var(--settle) 470ms both; }
html[data-motion="on"] .hero-copy .actions { animation: enter 620ms var(--settle) 550ms both; }
html[data-motion="on"] .hero-lights i {
  animation: beam-appear 1200ms var(--settle) var(--beam-delay) both,
    beam-drift 10s ease-in-out calc(1200ms + var(--beam-delay)) infinite alternate;
}
html[data-motion="on"] .art-footer > span { animation: enter 620ms var(--settle) 650ms both; }
html[data-motion="on"] .will-enter:not(.has-entered):not(:focus-within) { opacity: 0; }
html[data-motion="on"] .has-entered { animation: section-appear 540ms var(--settle) var(--reveal-delay, 0ms) both; }
html[data-motion="on"] .has-entered[data-reveal="tilt"] { animation-name: board-appear; animation-duration: 850ms; }
html[data-motion="on"] .overview-panel { animation: panel-appear 360ms var(--settle) both; }
html[data-motion="on"] .overview-panel .quick-card { animation: enter 470ms var(--settle) both; }
html[data-motion="on"] .overview-panel .quick-card:nth-child(2) { animation-delay: 55ms; }
html[data-motion="on"] .overview-panel .quick-card:nth-child(3) { animation-delay: 110ms; }
html[data-motion="on"] .bubble-enter { animation: panel-appear 300ms var(--settle) both; }
html[data-motion="on"] .bubble-enter.assistant { animation-delay: 80ms; }

@keyframes nav-appear {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-appear {
  from { opacity: .6; transform: translateY(12px) scale(.992); }
  to { opacity: 1; transform: none; }
}
@keyframes word-appear {
  from { opacity: 0; filter: blur(9px); transform: translateY(.36em) rotateX(48deg); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes beam-appear {
  from { opacity: 0; transform: translate(26%, -14%) rotate(-4deg); }
  to { opacity: var(--beam-opacity); transform: rotate(var(--beam-angle)); }
}
@keyframes beam-drift {
  to { opacity: calc(var(--beam-opacity) * .7); transform: translateX(-14%) rotate(calc(var(--beam-angle) + 6deg)); }
}
@keyframes section-appear {
  from { opacity: 0; transform: translateY(17px); }
  to { opacity: 1; transform: none; }
}
@keyframes board-appear {
  0% { opacity: 0; transform: perspective(1200px) translateY(38px) rotateX(15deg) scale(.98); }
  70% { opacity: 1; transform: perspective(1200px) translateY(-2px) rotateX(-.5deg) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes panel-appear {
  from { opacity: .24; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@media (hover: hover) and (pointer: fine) {
  .feature-card, .download-card, .bio-card {
    transition: border-color 230ms ease, box-shadow 230ms ease, translate 230ms var(--settle);
  }
  .feature-card:hover, .download-card:hover, .bio-card:hover {
    border-color: #607154;
    box-shadow: 0 12px 30px #0004;
    translate: 0 -3px;
  }
}
@media (max-width: 520px) {
  .hero-lights i { height: 110%; }
  .hero-lights i:nth-child(1) { --beam-x: 77%; --beam-angle: 22deg; }
  .hero-lights i:nth-child(2) { --beam-x: 93%; --beam-angle: 28deg; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="off"] :is(.button,.quick-card,.feature-card,.download-card,.bio-card):hover { transform: none; translate: none; }
