/* =========================================================
   WorkCanvas — Apple-inspired white theme
   Loaded after styles.css; keeps the structure and interaction
   hooks, replaces the warm editorial surfaces.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-deep: #f5f5f7;
  --surface: #f5f5f7;
  --surface-2: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: #e8e8ed;
  --line-strong: #d2d2d7;
  --accent: #0071e3;
  --accent-ink: #0066cc;
  --accent-soft: rgba(0, 113, 227, 0.09);
  --blue: #0071e3;
  --indigo: #5e5ce6;
  --green: #30d158;
  --amber: #ff9f0a;
  --pink: #ff375f;
  --teal: #64d2ff;
  --coral: #ff9f0a;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "SFMono-Regular", "Menlo", ui-monospace, monospace;
  --shadow-window: 0 48px 120px -42px rgba(0, 0, 0, 0.26), 0 12px 32px -18px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 24px 60px -38px rgba(0, 0, 0, 0.18);
  --header-h: 56px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background: #fff;
}

body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
}

.grain {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 64px));
}

.scroll-progress span {
  background: linear-gradient(90deg, #0071e3, #5e5ce6, #bf5af2);
}

/* typography ------------------------------------------------ */

h2 {
  margin-top: 16px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.eyebrow {
  gap: 8px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.12);
}

.eyebrow-light {
  color: #64d2ff;
}

.eyebrow-light .eyebrow-dot {
  background: #64d2ff;
  box-shadow: 0 0 0 2px rgba(100, 210, 255, 0.14);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin-bottom: clamp(44px, 5vw, 66px);
  text-align: center;
  gap: 0;
}

.section-head h2 {
  margin-top: 14px;
}

.section-lede {
  max-width: 660px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head-dark h2 {
  color: #f5f5f7;
}

code {
  border: 1px solid #e8e8ed;
  border-radius: 5px;
  background: #f5f5f7;
  color: #424245;
  font-family: var(--font-mono);
  font-size: 0.82em;
}

kbd {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #d2d2d7;
  border-bottom-width: 1.5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  color: #424245;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* buttons / links ------------------------------------------ */

.btn {
  height: 44px;
  padding: 0 21px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: none;
  translate: var(--mx, 0) var(--my, 0);
  transition: background-color 0.25s ease, transform 0.35s var(--ease-out), translate 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn:hover {
  background: #0077ed;
  box-shadow: none;
  transform: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-small {
  height: 30px;
  padding: 0 14px;
  font-size: 12px;
}

.btn-primary {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn-download {
  height: 50px;
  padding: 0 22px;
  font-size: 16px;
  box-shadow: none;
}

.btn-download:hover {
  box-shadow: none;
}

.text-link {
  padding: 4px 0;
  border-bottom: 0;
  color: var(--accent);
  font-size: 15px;
}

.text-link:hover {
  border-color: transparent;
  color: #0077ed;
}

.text-link-arrow {
  font-size: 14px;
}

/* header -------------------------------------------------- */

.site-header {
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.header-inner {
  width: min(1200px, calc(100% - 48px));
  height: var(--header-h);
}

.brand {
  gap: 9px;
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.nav-links {
  gap: 28px;
}

.nav-links a {
  padding: 6px 0;
  color: #424245;
  font-size: 12px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a::after {
  bottom: 0;
  background: var(--accent);
}

.header-actions {
  gap: 12px;
}

.version-pill {
  height: 24px;
  padding: 0 9px;
  border-color: #e8e8ed;
  background: transparent;
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0;
  gap: 6px;
}

.version-pill i {
  width: 5px;
  height: 5px;
  background: var(--accent);
  box-shadow: none;
}

.menu-toggle {
  width: 32px;
  height: 32px;
  border-color: #e8e8ed;
  background: #fff;
}

.menu-toggle .icon {
  width: 16px;
  height: 16px;
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu nav a {
  padding: 17px 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.mobile-menu nav .icon {
  color: #86868b;
}

.mobile-menu-meta {
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 11px;
}

/* hero ---------------------------------------------------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(52px, 7vw, 92px));
  background: #fff;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  height: 100%;
  overflow: hidden;
}

.hero-atmosphere::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: min(1050px, 90vw);
  aspect-ratio: 1.35;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 42% 40%, rgba(0, 113, 227, 0.12), transparent 70%),
    radial-gradient(closest-side at 62% 55%, rgba(191, 90, 242, 0.09), transparent 72%);
  transform: translateX(-50%);
  filter: blur(38px);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(540px circle at var(--spot-x, 50%) var(--spot-y, 24%), rgba(0, 113, 227, 0.07), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero.is-pointer .hero-atmosphere::after {
  opacity: 1;
}

.hero-grid,
.hero-glow,
.spark {
  display: none;
}

.hero-inner {
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-up 0.8s var(--ease-out) 0.05s both;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  max-width: 1050px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(56px, 8.1vw, 104px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.03;
  text-align: center;
}

.hero-line {
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}

.hero-title em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(100deg, #0071e3 0%, #5e5ce6 48%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title em::after {
  display: none;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.hero-line > span {
  animation: hero-rise 1s var(--ease-out) 0.12s both;
}

.hero-line-2 > span {
  animation-delay: 0.24s;
}

.hero-aside {
  max-width: 650px;
  margin: 26px auto 0;
  padding: 0;
  border: 0;
  text-align: center;
  animation: fade-up 0.9s var(--ease-out) 0.42s both;
}

.hero-lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.hero-actions {
  justify-content: center;
  gap: 22px;
  margin-top: 26px;
}

.hero-meta {
  justify-content: center;
  margin-top: 18px;
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
}

.hero-stage {
  max-width: 1200px;
  margin: 58px auto 0;
  padding: 0;
}

.hero-window {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-window);
}

.hero-window::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 25px;
  background: linear-gradient(130deg, rgba(0, 113, 227, 0.16), rgba(255, 255, 255, 0) 42%, rgba(191, 90, 242, 0.1));
  filter: blur(10px);
}

.window {
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-window);
}

.window::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.window-bar {
  height: 34px;
  border-bottom-color: #ececf0;
  background: #f5f5f7;
}

.window-title {
  color: #86868b;
  font-size: 10px;
  font-weight: 500;
}

.hero-window .window-bar {
  border-radius: 23px 23px 0 0;
}

.hero-caption {
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0;
}

.status-dot {
  background: #30d158;
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.12);
}

.shot-shine {
  display: none;
}

.hero-foot {
  display: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -28px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  filter: blur(30px);
  z-index: -1;
}

/* spec strip ---------------------------------------------- */

.spec-strip {
  position: relative;
  padding: 34px 0;
  border-top: 1px solid #f0f0f2;
  border-bottom: 1px solid #f0f0f2;
  background: #fff;
}

.spec-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 980px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  border-left: 1px solid #e8e8ed;
  text-align: center;
}

.spec-item:first-child {
  border-left: 0;
}

.spec-item strong {
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
}

.spec-item strong em {
  margin-left: 1px;
  font-size: 21px;
  font-style: normal;
  letter-spacing: -0.04em;
}

.spec-item > span:last-child {
  color: #86868b;
  font-size: 11px;
  letter-spacing: 0;
}

/* flow ---------------------------------------------------- */

.flow {
  background: #f5f5f7;
}

.flow-copy h2 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.flow-copy .section-lede {
  margin-top: 18px;
  text-align: left;
}

.flow-step {
  border-top-color: #d2d2d7;
  opacity: 0.42;
}

.flow-step:last-child {
  border-bottom-color: #d2d2d7;
}

.flow-step.is-active {
  border-top-color: #0071e3;
}

.step-index {
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.flow-step.is-active .step-index {
  color: #0071e3;
}

.flow-step h3 {
  color: var(--ink);
  font-size: 15px;
}

.flow-step p {
  color: var(--muted);
  font-size: 13px;
}

.flow-stage {
  border-color: #e8e8ed;
  background:
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.92), transparent 55%),
    #fff;
  box-shadow: 0 34px 80px -56px rgba(0, 0, 0, 0.3);
}

.stage-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
}

.drop-ring {
  border-color: rgba(0, 113, 227, 0.28);
}

.stage-link {
  stroke: #0071e3;
  opacity: 0.72;
}

.stage-link-end {
  fill: #0071e3;
}

.stage-card {
  border-color: #e8e8ed;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 28px -20px rgba(0, 0, 0, 0.2);
}

.stage-card-title {
  color: #1d1d1f;
}

.stage-card-path,
.stage-card-meta {
  color: #86868b;
}

.stage-group {
  border-color: rgba(0, 113, 227, 0.45);
  background: rgba(0, 113, 227, 0.035);
}

.stage-group-title {
  color: #0071e3;
}

.stage-group-note {
  color: #6e6e73;
}

.stage-group-pill {
  background: #f5f5f7;
  color: #86868b;
}

.stage-search {
  border-color: #e8e8ed;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.2);
}

.stage-search .icon {
  color: #0071e3;
}

.stage-search-caret {
  background: #0071e3;
}

.stage-card.is-match {
  outline: 2px solid #0071e3;
  box-shadow: 0 0 0 7px rgba(0, 113, 227, 0.1), 0 14px 26px -18px rgba(0, 0, 0, 0.2);
}

.stage-footnote {
  color: #86868b;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

/* features ------------------------------------------------ */

.features {
  background: #fff;
}

.bento-card {
  border: 1px solid transparent;
  border-radius: 28px;
  background: #f5f5f7;
  isolation: isolate;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 0%), rgba(0, 113, 227, 0.08), transparent 64%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card > * {
  z-index: 1;
}

.bento-card:hover {
  border-color: transparent;
  box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.22);
}

.card-file,
.card-folder,
.card-link,
.card-image,
.card-note {
  background: #f5f5f7;
}

.card-file {
  background:
    radial-gradient(ellipse at 88% 8%, rgba(255, 255, 255, 0.9), transparent 55%),
    #f5f5f7;
}

.card-folder {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    #f5f5f7;
}

.card-link {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    #f5f5f7;
}

.card-image {
  background:
    radial-gradient(ellipse at 86% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    #f5f5f7;
}

.card-note {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, 0.92), transparent 58%),
    #f5f5f7;
}

.card-tag {
  color: #0071e3;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.bento-card h3 {
  color: var(--ink);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.bento-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.mini-node {
  border-color: #e8e8ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.2);
}

.mini-title {
  color: #1d1d1f;
}

.mini-path,
.mini-meta {
  color: #86868b;
}

.mini-badge {
  background: rgba(48, 209, 88, 0.1);
  color: #248a3d;
}

.mini-file-back {
  opacity: 0.6;
}

.folder-sheet {
  border-color: #e8e8ed;
  background: #fff;
}

.visual-cursor {
  border-color: #e8e8ed;
  background: #fff;
  color: #0071e3;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.2);
}

.link-ring {
  border-color: rgba(0, 113, 227, 0.13);
}

.link-ring::after {
  border-color: rgba(0, 113, 227, 0.18);
}

.image-card {
  border-color: #e8e8ed;
  background: #fff;
  box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.2);
}

.visual-note img {
  box-shadow: 0 16px 34px -24px rgba(0, 0, 0, 0.2);
}

/* relations card: the one dark tile */

.card-relations {
  border-color: #1d1d1f;
  background:
    radial-gradient(ellipse at 82% 12%, rgba(0, 113, 227, 0.28), transparent 48%),
    #000;
  color: #f5f5f7;
}

.card-relations:hover {
  border-color: #333;
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.55);
}

.relations-copy h3 {
  color: #f5f5f7;
  font-size: 28px;
  font-weight: 600;
}

.relations-copy p {
  color: #a1a1a6;
}

.card-tag-light {
  color: #64d2ff;
}

.relations-chips > span {
  border-color: rgba(255, 255, 255, 0.16);
  color: #a1a1a6;
}

.relations-chips kbd {
  border-color: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
}

.relations-copy kbd {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
}

.rel-group {
  border-color: rgba(100, 210, 255, 0.52);
  background: rgba(0, 113, 227, 0.08);
}

.rel-group-title {
  color: #64d2ff;
}

.rel-group-note,
.rel-group-pill {
  color: #86868b;
}

.rel-group-pill {
  background: rgba(255, 255, 255, 0.08);
}

.rel-node {
  border-color: rgba(255, 255, 255, 0.16);
  background: #fff;
}

.rel-node b {
  color: #1d1d1f;
}

.rel-node i {
  color: #86868b;
}

.rel-node::before {
  background: #ff9f0a;
}

.rel-node-image::before {
  background: #ff375f;
}

.rel-line {
  stroke: #64d2ff;
  filter: drop-shadow(0 0 5px rgba(100, 210, 255, 0.3));
}

.rel-end {
  fill: #64d2ff;
  stroke: rgba(0, 0, 0, 0.4);
}

.rel-pulse {
  fill: #fff;
  filter: drop-shadow(0 0 8px rgba(100, 210, 255, 0.8));
}

.rel-target {
  border-color: rgba(255, 255, 255, 0.15);
  background: #1d1d1f;
}

.rel-target-title {
  color: #f5f5f7;
}

.rel-badge {
  border-color: rgba(255, 255, 255, 0.14);
  background: #f5f5f7;
  color: #1d1d1f;
}

/* search -------------------------------------------------- */

.search-section {
  border-top: 0;
  border-bottom: 0;
  background: #f5f5f7;
}

.search-copy h2 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
}

.search-fields span {
  border-color: #e8e8ed;
  background: #fff;
  color: #424245;
}

.key-combo {
  color: #86868b;
}

.search-window {
  transform: none;
}

.search-visual:hover .search-window {
  transform: translateY(-4px);
}

.floating-key {
  border-color: #e8e8ed;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.22);
}

.search-caption {
  color: #86868b;
  font-family: var(--font-sans);
}

/* vault --------------------------------------------------- */

.vault {
  background: #fff;
}

.vault-copy h2 {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
}

.vault-points li {
  border-top-color: #e8e8ed;
  color: #424245;
}

.vault-points li::before {
  background: #0071e3;
}

.vault-demo {
  --vault-tone: #f05a3c;
}

.vault-demo[data-tone="green"] {
  --vault-tone: #4fb56a;
}

.vault-demo[data-tone="blue"] {
  --vault-tone: #4d9bff;
}

.vault-demo[data-tone="pink"] {
  --vault-tone: #f06b9a;
}

.vault-board {
  border-color: #e8e8ed;
  background: #f5f5f7;
  box-shadow: 0 36px 90px -62px rgba(0, 0, 0, 0.28);
  transition: background-color 0.5s ease;
}

.vault-demo[data-tone="coral"] .vault-board {
  background:
    radial-gradient(ellipse at 14% 10%, rgba(240, 90, 60, 0.08), transparent 48%),
    #f5f5f7;
}

.vault-demo[data-tone="green"] .vault-board {
  background:
    radial-gradient(ellipse at 14% 10%, rgba(79, 181, 106, 0.1), transparent 48%),
    #f5f5f7;
}

.vault-demo[data-tone="blue"] .vault-board {
  background:
    radial-gradient(ellipse at 14% 10%, rgba(77, 155, 255, 0.1), transparent 48%),
    #f5f5f7;
}

.vault-demo[data-tone="pink"] .vault-board {
  background:
    radial-gradient(ellipse at 14% 10%, rgba(240, 107, 154, 0.1), transparent 48%),
    #f5f5f7;
}

.vault-demo[data-tone] .vault-board-node::before {
  background: var(--vault-tone);
}

.vault-demo[data-tone] .vault-board-lines {
  stroke: var(--vault-tone);
}

.vault-board-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vault-board-head span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--vault-tone);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
  transition: background-color 0.4s ease;
}

.vault-demo[data-tone="green"] .vbn-a { transform: translate(18px, -10px); }
.vault-demo[data-tone="green"] .vbn-c { transform: translate(-22px, 14px); }
.vault-demo[data-tone="green"] .vbn-d { transform: translate(-28px, -8px); }
.vault-demo[data-tone="coral"] .vbn-a { transform: translate(-8px, 10px); }
.vault-demo[data-tone="coral"] .vbn-c { transform: translate(16px, -8px); }

.vault-board::before {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

.vault-board-head {
  color: #86868b;
  font-family: var(--font-sans);
}

.vault-board-head span:first-child {
  color: #424245;
}

.vault-board-node {
  border-color: #e8e8ed;
  background: #fff;
  box-shadow: 0 12px 30px -22px rgba(0, 0, 0, 0.18);
}

.vault-board-node::before {
  background: #0071e3;
}

.vault-board-lines {
  stroke: #0071e3;
  opacity: 0.22;
}

.vault-panel {
  border-color: #e8e8ed;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 36px 90px -44px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.vault-panel-title {
  color: var(--ink);
}

.vault-panel-sub,
.vault-count {
  color: #86868b;
}

.vault-count {
  background: #f5f5f7;
}

.vault-row:hover {
  background: #f5f5f7;
}

.vault-row.is-active {
  background: #eef5ff;
}

.vault-thumb,
img.vault-thumb {
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}

.vault-row-text b {
  color: var(--ink);
  font-size: 11.5px;
}

.vault-row-text small {
  color: #86868b;
  font-family: var(--font-sans);
}

.vault-check {
  background: #0071e3;
  box-shadow: 0 4px 10px -5px rgba(0, 113, 227, 0.55);
}

.vault-more {
  color: #86868b;
}

.vault-foot {
  border-top-color: #e8e8ed;
  background: rgba(255, 255, 255, 0.8);
  color: #6e6e73;
}

.vault-caption {
  color: #86868b;
  font-family: var(--font-sans);
}

/* local --------------------------------------------------- */

.local {
  background: #000;
  color: #f5f5f7;
}

.local-glow {
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.22), transparent 70%);
}

.local .section-lede {
  color: #a1a1a6;
}

.local .section-head {
  margin-bottom: clamp(44px, 5vw, 64px);
}

.local code {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #d2d2d7;
}

.local-card {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #1d1d1f;
}

.local-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #242426;
}

.local-card::after {
  display: none;
}

.local-kicker {
  color: #86868b;
  font-family: var(--font-sans);
  letter-spacing: 0.06em;
}

.local-path {
  color: #a1a1a6;
  font-family: var(--font-mono);
}

.local-mini-node {
  border-color: rgba(255, 255, 255, 0.12);
  background: #fff;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
}

.local-mini-node .mini-title {
  color: #1d1d1f;
}

.local-mini-node .mini-path,
.local-mini-node .mini-meta {
  color: #86868b;
}

.local-status {
  border-color: rgba(255, 255, 255, 0.14);
  color: #d2d2d7;
}

.local-status i,
.autosave-status i {
  background: #30d158;
}

.package-title {
  color: #f5f5f7;
  font-family: var(--font-sans);
}

.package-title .icon {
  color: #64d2ff;
}

.package-row {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.package-row b {
  color: #f5f5f7;
  font-family: var(--font-mono);
}

.package-row small {
  color: #86868b;
}

.package-chip {
  border-color: rgba(255, 255, 255, 0.14);
  color: #a1a1a6;
}

.autosave-status {
  color: #a1a1a6;
}

.autosave-options {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.autosave-options button {
  color: #86868b;
}

.autosave-options button.is-active {
  background: #0071e3;
  color: #fff;
}

.autosave-note {
  color: #86868b;
}

.local-chips span {
  border-color: rgba(255, 255, 255, 0.14);
  color: #a1a1a6;
}

/* personalize --------------------------------------------- */

.personalize {
  --accent: #0071e3;
  background: #fff;
}

.compare-window {
  border-radius: 20px;
}

.compare {
  background: #f5f5f7;
}

.compare-handle {
  color: #0071e3;
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.28);
}

.compare-tag {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans);
}

.control-block,
.lang-sample {
  border-color: #e8e8ed;
  border-radius: 20px;
  background: #f5f5f7;
}

.control-head {
  color: #424245;
}

.control-value {
  color: #0071e3;
  font-family: var(--font-sans);
}

.swatch.is-active {
  box-shadow: 0 0 0 2px #f5f5f7, 0 0 0 4px var(--swatch);
}

.lang {
  border-color: #d2d2d7;
  background: #fff;
  color: #424245;
}

.lang:hover {
  border-color: #86868b;
}

.lang.is-active {
  border-color: #1d1d1f;
  background: #1d1d1f;
  color: #fff;
}

.lang-sample {
  background: #fff;
}

.sample-text {
  color: #1d1d1f;
}

.sample-meta {
  color: #86868b;
}

.sample-stripe {
  background: var(--accent);
}

/* shortcuts ---------------------------------------------- */

.shortcuts {
  border-top: 0;
  border-bottom: 0;
  background: #f5f5f7;
}

.shortcuts-mark {
  display: none;
}

.shortcut-group {
  border-top-color: #d2d2d7;
}

.shortcut-group h3 {
  color: #86868b;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.shortcut-group li {
  border-bottom-color: #e8e8ed;
  color: #1d1d1f;
  font-size: 14px;
}

.shortcut-group li:hover {
  color: #0071e3;
}

.keys kbd,
.wide-key {
  border-color: #d2d2d7;
  background: #fff;
  color: #424245;
}

.keys kbd {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.shortcut-footnote {
  color: #86868b;
  font-family: var(--font-sans);
}

/* details ------------------------------------------------ */

.details {
  background: #fff;
}

.detail-item {
  border-top-color: #e8e8ed;
}

.detail-index {
  color: #86868b;
  font-family: var(--font-sans);
}

.detail-item:hover .detail-index {
  color: #0071e3;
}

.detail-item h3 {
  color: var(--ink);
  font-size: 15px;
}

.detail-item p {
  color: #6e6e73;
  font-size: 13px;
}

.detail-window {
  border-color: #e8e8ed;
  border-radius: 18px;
  background: #f5f5f7;
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.2);
  transform: none;
}

.detail-visual:hover .detail-window {
  transform: translateY(-3px);
}

.detail-window-bar {
  border-bottom-color: #e8e8ed;
  background: #f5f5f7;
  color: #86868b;
  font-family: var(--font-sans);
}

.detail-window img {
  background: #fff;
}

.detail-caption {
  color: #86868b;
  font-family: var(--font-sans);
}

/* download ----------------------------------------------- */

.download {
  border-top: 1px solid #f0f0f2;
  background: #fff;
}

.download-sky {
  overflow: hidden;
}

.download-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 15%, transparent 72%);
}

.download-orb {
  left: 50%;
  bottom: -27vw;
  width: 78vw;
  height: 58vw;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, rgba(0, 113, 227, 0.22), transparent 58%),
    radial-gradient(circle at 62% 48%, rgba(191, 90, 242, 0.18), transparent 60%),
    radial-gradient(circle at 50% 62%, rgba(100, 210, 255, 0.14), transparent 62%);
  box-shadow: none;
  filter: blur(44px);
  opacity: 0.9;
  transform: translateX(-50%);
}

.download-node {
  opacity: 0.45;
}

.dn-1 { background: #0071e3; }
.dn-2 { background: #5e5ce6; }
.dn-3 { background: #bf5af2; }

.download-icon-wrap {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px -34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: none;
}

.download-icon-wrap:hover {
  transform: translateY(-4px) scale(1.02);
}

.download-icon-wrap img {
  border-radius: 24px;
}

.download h2 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.download-meta {
  color: #6e6e73;
  font-family: var(--font-sans);
  font-size: 12px;
}

.btn-download {
  background: #0071e3;
  color: #fff;
}

.btn-download:hover {
  background: #0077ed;
}

.btn-download .btn-sub {
  border-left-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
}

.install-line {
  border-color: #e8e8ed;
  background: #f5f5f7;
  color: #6e6e73;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.download .eyebrow {
  color: #0071e3;
}

/* footer ------------------------------------------------- */

.footer {
  background: #f5f5f7;
  color: #6e6e73;
  border-top: 1px solid #e8e8ed;
}

.footer-brand .brand-name {
  color: #1d1d1f;
}

.footer-brand p {
  color: #86868b;
}

.footer-heading {
  color: #86868b;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

.footer-nav a {
  color: #424245;
}

.footer-nav a:hover {
  color: #0071e3;
}

.footer-base {
  border-top-color: #e8e8ed;
  color: #86868b;
  font-family: var(--font-sans);
}

.back-top {
  color: #6e6e73;
}

.back-top:hover {
  color: #0071e3;
}

.skip-link {
  background: #1d1d1f;
  color: #fff;
}

/* reveal / focus ----------------------------------------- */

html.js body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(9px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1s var(--ease-out),
    filter 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

html.js body.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

/* responsive --------------------------------------------- */

@media (max-width: 1060px) {
  .hero-title {
    font-size: clamp(54px, 8.8vw, 86px);
  }

  .flow-copy h2 {
    font-size: clamp(36px, 4vw, 48px);
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: calc(var(--header-h) + 46px);
  }

  .hero-title {
    font-size: clamp(48px, 9.8vw, 74px);
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-stage {
    margin-top: 42px;
  }

  .flow-copy .section-lede {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }

  h2 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .section-lede {
    font-size: 15px;
  }

  .hero-title {
    font-size: clamp(43px, 12.6vw, 64px);
    letter-spacing: -0.055em;
  }

  .hero-eyebrow {
    justify-content: center;
    margin-bottom: 20px;
  }

  .hero-aside {
    margin-top: 22px;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-stage {
    margin-top: 34px;
  }

  .hero-caption {
    font-size: 10px;
  }

  .caption-right {
    display: none;
  }

  .hero-window {
    border-radius: 18px;
  }

  .hero-window .window-bar {
    border-radius: 17px 17px 0 0;
  }

  .window-bar {
    height: 30px;
  }

  .spec-strip {
    padding: 24px 0;
  }

  .spec-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .spec-item {
    min-height: 64px;
    border-left: 1px solid #e8e8ed;
  }

  .spec-item:nth-child(odd) {
    border-left: 0;
  }

  .spec-item:nth-child(n + 3) {
    border-top: 1px solid #e8e8ed;
  }

  .spec-item strong {
    font-size: 28px;
  }

  .spec-item strong em {
    font-size: 18px;
  }

  .features,
  .search-section,
  .vault,
  .local,
  .personalize,
  .details {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .shortcuts {
    padding: 74px 0;
  }

  .card-relations {
    background:
      radial-gradient(ellipse at 80% 12%, rgba(0, 113, 227, 0.26), transparent 48%),
      #000;
  }

  .compare-window {
    border-radius: 16px;
  }

  .download {
    padding-top: 78px;
    padding-bottom: 100px;
  }

  .download h2 {
    font-size: clamp(38px, 10.4vw, 56px);
  }

  .download-orb {
    width: 120vw;
    height: 90vw;
    bottom: -48vw;
  }

  .download-meta {
    font-size: 11px;
  }

  .btn-download {
    height: 48px;
    font-size: 14px;
  }

  .footer-main {
    gap: 34px;
  }

  .footer-base {
    font-family: var(--font-sans);
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .hero-title {
    font-size: clamp(40px, 12.8vw, 56px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .btn {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  .btn-primary {
    height: 44px;
  }

  .hero-meta {
    font-size: 10px;
  }

  .spec-item strong {
    font-size: 25px;
  }

  .spec-item > span:last-child {
    font-size: 10px;
  }

  .pkg-row,
  .reference-card,
  .package-card,
  .autosave-card {
    min-height: 0;
  }

  .download-icon-wrap {
    width: 78px;
    height: 78px;
    border-radius: 19px;
  }

  .install-line {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js body.reveal-ready [data-reveal] {
    filter: none;
  }

  .btn {
    translate: none;
  }

  .bento-card::after {
    display: none;
  }
}

/* ambient motion ------------------------------------------ */

.hero-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.hero-atmosphere::before {
  animation: aura-drift 16s ease-in-out infinite alternate;
}

.hero-title em {
  background-size: 220% 100%;
  animation: gradient-pan 10s ease-in-out infinite alternate;
}

@keyframes aura-drift {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-48%) scale(1.06); }
}

@keyframes gradient-pan {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere::before,
  .hero-title em {
    animation: none;
  }
}
