:root {
  color-scheme: light;
  --ink: #23202e;
  --muted: #686073;
  --surface: #ffffffd9;
  --border: #e1d9ed;
  --soft: #f3eefb;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3effb;
  --muted: #beb3d0;
  --paper: #0d0a16;
  --surface: #221a34ed;
  --border: #433252;
  --soft: #2b203d;
  --line: #30233e;
  --purple: #b39af5;
}
body { transition: background-color .22s, color .22s; }
button { min-height: 44px; }
.navigation { gap: 18px; }
.brand { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.theme-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
}
.theme-switch button {
  min-width: 48px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 99px;
  color: var(--muted);
  transition: background-color .2s, color .2s;
}
.theme-switch button[aria-pressed="true"] { background: #7652df; color: #fff; }
.board { z-index: 1; }
.hero-title { z-index: 2; }
.hero-title > img.hero-emblem {
  width: 136px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px #7355a52b);
  margin-bottom: 4px;
}
.hero-title h1 { font-size: clamp(64px, 6.6vw, 102px); }
.hero-description { margin-top: 18px; }
.hero-hint { margin-top: 12px; }
.float { animation-duration: 4s; animation-delay: 0s; animation-iteration-count: 1; }
.canvas-controls { z-index: 5; }
.note-picker {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px #39204b26, inset 0 1px 0 #ffffff60;
}
.note-picker[hidden] { display: none; }
.note-picker > p { margin-bottom: 13px; font-size: 13px; color: var(--muted); }
.note-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.canvas-controls .note-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 8px;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
}
.note-options button > span { display: grid; place-items: center; width: 28px; font-size: 20px; color: var(--purple); }
.board-note { width: 225px; }
.board-note .float { border-radius: 16px; background: var(--surface); padding: 20px; border: 1px solid var(--border); box-shadow: 0 15px 40px #4e286b15; }
.board-preview { display: block; padding: 8px 0 18px; font-size: 40px; color: #9f82e0; }
.board-note h2 { font-size: 16px; margin-bottom: 10px; }
.board-note p { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.image-note { width: 220px; }
.image-note .float { padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 45px #4e286b1c; }
.image-note img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; border-radius: 9px; }
.image-note h2 { padding: 14px 4px 4px; margin: 0; }
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, #8966e5, #c4b1ee, #8fced9);
  pointer-events: none;
}
.video-shell { isolation: isolate; }
.video-toggle { z-index: 2; color: #332440; opacity: .2; transition: opacity .2s; }
.video-shell:hover .video-toggle, .video-shell:focus-within .video-toggle { opacity: 1; }
html[data-theme="dark"] .navigation { background: #100b1cdd; border-color: #392947; }
html[data-theme="dark"] .navigation .open-app { background: #281d39; border-color: #594371; box-shadow: inset 0 1px 0 #ffffff0d; }
html[data-theme="dark"] .open-app:hover { background: #35254b; border-color: #9b7ac2; }
html[data-theme="dark"] .hero { background: #100b1b; }
html[data-theme="dark"] .hero-atmosphere {
  background: radial-gradient(ellipse at 8% 88%, #6c408e65, transparent 52%), radial-gradient(ellipse at 90% 20%, #462c626e, transparent 50%), radial-gradient(ellipse at 50% 48%, #28203a, transparent 58%), #100b1b;
}
html[data-theme="dark"] .hero::after { background-image: radial-gradient(#b3a0cc36 .75px, transparent .75px); }
html[data-theme="dark"] .hero-description, html[data-theme="dark"] .hero-hint { color: var(--muted); }
html[data-theme="dark"] .canvas-controls { background: #21172fed; border-color: #564167; box-shadow: 0 8px 35px #0003, inset 0 1px 0 #ffffff14; }
html[data-theme="dark"] .canvas-controls button:hover { background: #39264f; }
html[data-theme="dark"] .canvas-controls > span { background: #574066; }
html[data-theme="dark"] .todo .float,
html[data-theme="dark"] .table-note .float,
html[data-theme="dark"] .comment-note .float,
html[data-theme="dark"] .link-note .float,
html[data-theme="dark"] .column .float { background: var(--surface); border-color: var(--border); box-shadow: 0 15px 40px #0002; }
html[data-theme="dark"] .sticky .float { background: linear-gradient(140deg, #65542d, #493b24); color: #fff2d0; }
html[data-theme="dark"] .pin { background: #d8bc7955; border-color: #e4c68944; }
html[data-theme="dark"] .note-mark { color: #dec18b; }
html[data-theme="dark"] .mini-card { background: #342443; border-color: #54376a; }
html[data-theme="dark"] .mini-card.lavender { background: #49315e; }
html[data-theme="dark"] .text-note em { color: #c8a5f4; }
html[data-theme="dark"] .link-art { background: radial-gradient(ellipse at 72% 19%, #65437b, transparent 66%), #312045; }
html[data-theme="dark"] .link-copy > span:first-child { color: #c4acd4; }
html[data-theme="dark"] th { color: #c9b5d9; }
html[data-theme="dark"] th, html[data-theme="dark"] td { border-color: #493254; }
html[data-theme="dark"] .tag, html[data-theme="dark"] .avatar { background: #533a6b; color: #f7ebff; }
html[data-theme="dark"] .tag.pink { background: #6d3b58; }
html[data-theme="dark"] .map-note svg rect { fill: #463259; }
html[data-theme="dark"] .map-note svg g { fill: #f0e3ff; }
html[data-theme="dark"] .film-section { background: radial-gradient(ellipse at 0% 25%, #322047, transparent 55%), #0d0a16; }
html[data-theme="dark"] .features { background: radial-gradient(ellipse at 100% 38%, #34204580, transparent 45%), #0d0a16; }
html[data-theme="dark"] .eyebrow { color: #c5a7e5; }
html[data-theme="dark"] .feature h2 em, html[data-theme="dark"] .campaign-copy h3 em { color: #b8a4cf; }
html[data-theme="dark"] .video-shell { background: #21162f; border-color: #4e3667; box-shadow: 0 25px 60px #0003; }
html[data-theme="dark"] .closing { background: radial-gradient(ellipse at 50% 100%, #55376a9c, transparent 64%), #100b1b; }
html[data-theme="dark"] footer { color: #bfb0cf; }
@media (max-width: 1000px) {
  nav { gap: 16px; }
  .hero-title h1 { font-size: 80px; }
}
@media (max-width: 600px) {
  .navigation { padding: 0 16px; gap: 8px; }
  .brand { font-size: 12px; gap: 6px; }
  .brand img { width: 29px; height: 29px; }
  nav { gap: 8px; }
  .theme-switch { padding: 2px; }
  .theme-switch button { min-width: 39px; font-size: 11px; padding: 0 7px; }
  .navigation .open-app { gap: 6px; padding: 10px; font-size: 11px; }
  .hero-title > img.hero-emblem { width: 110px; height: 110px; }
  .hero-title h1 { font-size: 60px; }
  .hero-description { font-size: 12px; }
  .hero-hint { font-size: 9px; }
  .comment-note { top: 38%; left: -6%; }
  .link-note { top: 76%; }
  .todo { top: 76%; }
  .table-note { left: 66%; top: 94%; scale: .48; }
  .note-picker { width: 284px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .float { animation: none; }
}
