/* ==========================================================================
   Relocation — design system
   paper / ink / hairline grid · accent violet 7C3AED
   ========================================================================== */

:root {
  /* palette */
  --paper: #F6F4EF;
  --paper-2: #FCFBF8;
  --paper-3: #F1EEE7;
  --ink: #14131A;
  --ink-2: #24212C;
  --mute: #6E6A75;
  --mute-2: #918D99;
  --line: #E1DDD4;
  --line-2: #EBE8E1;
  --accent: #7C3AED;
  --accent-2: #5B21B6;
  --accent-soft: #EDE3FF;
  --on-accent: #FFFFFF;

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Tomorrow", cursive, Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 68px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --autoplay: 6000ms;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; }
button { font: inherit; color: inherit; }

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: .87em;
  background: var(--paper-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: .1em .38em;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--accent);
}

p { margin: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

[hidden] { display: none !important; }

/* --------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.shell-narrow { max-width: 840px; }

.section { padding: var(--section-y) 0; }
.section-tight { padding: calc(var(--section-y) * .82) 0; }

/* ------------------------------------------------------- scroll progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: 0 50%;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 244, 239, .82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(246, 244, 239, .94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.02em;
  flex: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  /* border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2); */
  overflow: hidden;
}
.brand-mark img { width: 30px; height: 30px; }

.brand-name { font-size: 1.02rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--paper-3); }
.site-nav a.is-active { color: var(--ink); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 1px 2px rgba(20, 19, 26, .16);
}
.btn-primary:hover { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 30px rgba(124, 58, 237, .3); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }

.btn-sm { padding: 9px 18px; font-size: .87rem; }

.btn-onink { color: var(--paper); border-color: rgba(246, 244, 239, .28); }
.btn-primary.btn-onink { background: var(--paper); color: var(--ink); box-shadow: none; }
.btn-primary.btn-onink:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-ghost.btn-onink:hover { background: rgba(246, 244, 239, .1); color: var(--paper); border-color: rgba(246, 244, 239, .5); }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 108px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 10%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 600;
}

.lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.5vw, 1.13rem);
  line-height: 1.62;
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .02em;
  color: var(--mute-2);
}
.hero-meta code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--mute);
}

/* hero entrance */
.rise { opacity: 0; animation: rise .85s var(--ease) forwards; }
.hero-copy .rise:nth-child(1) { animation-delay: .05s; }
.hero-copy .rise:nth-child(2) { animation-delay: .15s; }
.hero-copy .rise:nth-child(3) { animation-delay: .25s; }
.hero-copy .rise:nth-child(4) { animation-delay: .35s; }
.hero-copy .rise:nth-child(5) { animation-delay: .45s; }
.mock-wrap.rise { animation-delay: .3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ app mock */
.mock-wrap { position: relative; }
.mock-wrap::before {
  content: "";
  position: absolute;
  inset: 12% -6% -8% 6%;
  background: radial-gradient(60% 60% at 60% 55%, rgba(124, 58, 237, .18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.mock {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(20, 19, 26, .04),
    0 30px 60px -30px rgba(20, 19, 26, .35);
}

.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 9px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--mute);
}
.mock-signal { display: inline-flex; gap: 3px; align-items: flex-end; }
.mock-signal i { width: 3px; background: var(--mute-2); border-radius: 1px; display: block; transition: background .3s var(--ease), opacity .3s var(--ease); }
.mock-signal i:nth-child(1) { height: 4px; }
.mock-signal i:nth-child(2) { height: 6px; }
.mock-signal i:nth-child(3) { height: 8px; }
.mock-signal i:nth-child(4) { height: 10px; }
.mock-signal.lv-1 i:nth-child(1),
.mock-signal.lv-2 i:nth-child(-n+2),
.mock-signal.lv-3 i:nth-child(-n+3),
.mock-signal.lv-4 i { background: var(--accent); }
.mock-signal.lv-0 i { opacity: .4; }

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 20px 14px;
  border-bottom: 1px solid var(--line-2);
}
.mock-title { font-weight: 600; letter-spacing: -.02em; font-size: .98rem; }
.mock-chip {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ----------------------------------------------------------- tab system */
.tab-list {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: -.01em;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.tab:hover { color: var(--ink); background: var(--paper-3); }
.tab.is-active { color: var(--paper); background: var(--ink); }

.tab-list-lg {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 244, 239, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  justify-content: center;
  flex-wrap: wrap;
}
.tab-list-lg .tab { font-size: .9rem; padding: 10px 20px; }
.tab-list-lg .tab.is-active { background: var(--accent); }

.tab-panel { display: none; }
.tab-panel.is-active {
  display: grid;
  animation: fadein .5s var(--ease);
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------- mock stage panels */
.mock-stage { position: relative; background: var(--paper-2); }
.mock-panel {
  grid-template-rows: 1fr auto;
  min-height: 300px;
}

.map-svg { width: 100%; height: auto; display: block; }

/* real / mock comparison panes */
.split-pane {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.pane {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.pane-art {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 160 / 130;
}
.pane figcaption {
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .04em;
  color: var(--mute);
  border-top: 1px solid var(--line-2);
  background: var(--paper-2);
}
.pane-mock {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .25);
}
.pane-mock figcaption { color: var(--accent-2); }

@media (prefers-reduced-motion: no-preference) {
  .split-pane .pane {
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  }
  .split-pane .pane:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -28px rgba(20, 19, 26, .55);
  }
  .split-pane .pane-mock { animation: pane-in .6s var(--ease) both; }
  @keyframes pane-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
  }
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.mock-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-2);
  font-size: .87rem;
}
.mock-list li:last-child { border-bottom: 0; }
.mock-list li span { color: var(--mute); }
.mock-list li b {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink);
}
.sw {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: var(--accent);
  position: relative;
  flex: none;
}
.sw::after {
  content: "";
  position: absolute;
  top: 2.5px;
  right: 2.5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
}

.mock-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line-2);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .03em;
  color: var(--mute-2);
}
.mock-caption strong { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------- section head */
.sec-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 36px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.sec-index {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent-2);
  padding-top: .7em;
  border-top: 2px solid var(--accent);
}

.sec-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

.sec-lead {
  margin-top: 18px;
  max-width: 54ch;
  color: var(--mute);
  font-size: 1.02rem;
}

/* ---------------------------------------------------------- hairline grids */
.grid-3, .grid-2 {
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid-border + .grid-border { border-top: 0; }

.cell {
  padding: clamp(26px, 3vw, 38px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .3s var(--ease);
}
.cell:hover { background: var(--paper-2); }

.cell-index {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--mute-2);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.cell h3 {
  font-size: 1.22rem;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.cell p { color: var(--mute); font-size: .94rem; }
.cell p:last-child { margin-bottom: 0; }

.cell-quiet { padding: clamp(22px, 2.4vw, 30px); }
.cell-quiet h3 { font-size: 1.04rem; }
.cell-quiet .cell-index { display: none; }

.cell-warn { background: rgba(124, 58, 237, .035); }
.cell-warn:hover { background: rgba(124, 58, 237, .06); }

.grid-tight .cell { border-right-color: var(--line); }

.checks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--mute);
  font-size: .95rem;
  line-height: 1.55;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 13px;
  height: 7px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}
.checks li strong { color: var(--ink); font-weight: 600; }

.note {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  font-size: .92rem;
}

/* ------------------------------------------------------------- downloads */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background .3s var(--ease);
}
.dl:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }

.dl-own { background: var(--paper-2); }
.dl-own:hover { background: var(--accent-soft); }

.dl-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--accent-2);
}
.dl-icon svg { width: 22px; height: 22px; }
.dl-own .dl-icon { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.dl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.dl-name {
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.dl-desc { color: var(--mute); font-size: .93rem; line-height: 1.5; }
.dl-meta {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--mute-2);
  text-transform: uppercase;
}

.dl-cta {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--accent-2);
}
.dl-cta svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.dl:hover .dl-cta svg { transform: translateX(4px); }

/* ------------------------------------------------------- tabs / panels */
.tabs { display: grid; gap: 26px; }

.tabs > .tab-panel {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(24px, 3vw, 44px);
  padding-top: clamp(20px, 3vw, 34px);
  min-height: 340px;
}

.panel-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.panel-copy > p { color: var(--mute); font-size: 1rem; }

.panel-aside {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  align-self: start;
}
.panel-aside h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.panel-aside h4 + p { margin-top: 0; }
.panel-aside p {
  color: var(--mute);
  font-size: .92rem;
  line-height: 1.62;
  margin-bottom: 14px;
}
.panel-aside p:last-child { margin-bottom: 0; }
.panel-aside h4:not(:first-child) { margin-top: 24px; }
.panel-aside-standalone { align-self: stretch; }

.panel-aside .note { margin-top: 4px; }

/* -------------------------------------------------------------- steps */
.split-tight {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(48px, 6vw, 76px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}

.setup-head { margin-bottom: 26px; }
.setup-head h3 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 8px; }
.setup-head p { color: var(--mute); font-size: .95rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: none;
}
.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
}
.steps li:last-child { border-bottom: 1px solid var(--line-2); }

.step-num {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent-2);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
}
.steps h4 { font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--mute); font-size: .93rem; line-height: 1.6; }

.steps-compact li { padding: 16px 0; }

.sub {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 40px;
  margin-bottom: 8px;
}

/* --------------------------------------------------------- side download */
.dl-actions { display: grid; gap: 14px; align-content: start; }
.dl-actions-inline { margin-top: 26px; }

.dl-card {
  position: sticky; 
  top:6rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.dl-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -24px rgba(20, 19, 26, .5);
  color: var(--ink);
  text-decoration: none;
}
.dl-card .dl-name { font-size: 1.05rem; }
.dl-card .dl-desc { font-size: .88rem; }
.dl-card .dl-cta { margin-top: 8px; }
.dl-card:hover .dl-cta svg { transform: translateX(4px); }

/* ---------------------------------------------------------- virtual master */
.vm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: start;
}
.vm-copy h3 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 6px; }
.vm-copy > p { color: var(--mute); font-size: .98rem; }
.vm-copy h4:not(.sub) { font-size: 1.05rem; margin-top: 30px; }

.vm-media { display: grid; gap: 22px; position: sticky; top: 6rem; }

.video-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  overflow: hidden;
}
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #14131A;
}
.video-facade { position: absolute; inset: 0; cursor: pointer; overflow: hidden; }
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .35s var(--ease), transform .6s var(--ease);
}
.video-facade:hover .video-thumb { opacity: .95; transform: scale(1.04); }
.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 19, 26, .55), transparent 55%);
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.video-play svg { width: 26px; height: 26px; fill: currentColor; stroke: none; margin-left: 3px; }
.video-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: var(--accent);
  color: #fff;
}
.video-badge {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 19, 26, .6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 12px;
}
.video-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-meta { padding: 20px 22px 22px; }
.video-title { font-weight: 600; font-size: .98rem; letter-spacing: -.02em; margin-bottom: 6px; }
.video-sub { font-size: .89rem; color: var(--mute); }

.table-wrap { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 18px 22px 12px;
}
.table th, .table td {
  text-align: left;
  padding: 13px 22px;
  border-top: 1px solid var(--line-2);
  vertical-align: top;
}
.table th {
  width: 42%;
  font-weight: 500;
  color: var(--mute);
}
.table td { color: var(--ink); }
.table tr:last-child th, .table tr:last-child td { padding-bottom: 20px; }

/* ------------------------------------------------------------- two-col */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.split h3 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 4px; }

/* ------------------------------------------------------------ accordion */
.accordion { border-top: 1px solid var(--line); }

.acc-item { border-bottom: 1px solid var(--line); }

.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .2s var(--ease);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--accent-2); }

.acc-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-2);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background .25s var(--ease);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.acc-item[open] .acc-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.acc-item[open] .acc-icon::before,
.acc-item[open] .acc-icon::after { background: var(--paper); }
.acc-item[open] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-body {
  padding: 0 clamp(44px, 8vw, 90px) 26px 4px;
  animation: fadein .35s var(--ease);
}
.acc-body p {
  color: var(--mute);
  font-size: .97rem;
  line-height: 1.68;
  margin-bottom: 12px;
}
.acc-body p:last-child { margin-bottom: 0; }
.acc-body em { font-family: var(--font-serif); font-style: italic; color: var(--ink); }

/* ------------------------------------------------------------------ band */
.band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(52px, 7vw, 78px) 0;
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}
.band-inner > div { max-width: 62ch; }
.band-index {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 16px;
}
.band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -.035em;
  margin-bottom: 14px;
}
.band p { color: rgba(246, 244, 239, .66); font-size: 1rem; }

/* ------------------------------------------------------------------- cta */
.cta { padding: var(--section-y) 0; }

.cta-card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 34px;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto;
  height: 90%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 58, 237, .5), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; }

.cta-mark {
  width: 84px;
  height: 84px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  /* border: 1px solid rgba(246, 244, 239, .16);
  border-radius: 24px;
  background: rgba(246, 244, 239, .07); */
  backdrop-filter: blur(6px);
}
.cta-mark img {
  width: 56px;
  height: 56px;
  /* light logo on the dark CTA card */
  filter: brightness(0) invert(1);
}

.cta-card h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.cta-card h2 em { color: #C4A6FF; }

.cta-card > p {
  margin: 20px auto 0;
  max-width: 46ch;
  color: rgba(246, 244, 239, .66);
  font-size: 1.02rem;
}
.cta-card .hero-actions { justify-content: center; }

.cta-meta {
  margin-top: 28px !important;
  font-family: var(--font-mono);
  font-size: .75rem !important;
  letter-spacing: .04em;
  color: rgba(246, 244, 239, .45) !important;
}
.cta-meta code {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(246, 244, 239, .6);
}

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(52px, 7vw, 76px) 0 34px;
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 16px;
  color: var(--mute);
  font-size: .93rem;
  max-width: 40ch;
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: .72rem !important;
  color: var(--mute-2) !important;
  letter-spacing: .03em;
}
.footer-meta code { background: none; border: 0; padding: 0; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--mute);
  text-decoration: none;
  font-size: .93rem;
  padding: 6px 0;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer-col a:hover { color: var(--ink); transform: translateX(3px); }

.footer-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.footer-bottom p { font-size: .85rem; color: var(--mute-2); }
.footer-note { max-width: 52ch; text-align: right; }

/* ------------------------------------------------------------- to-top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(252, 251, 248, .92);
  backdrop-filter: blur(10px);
  cursor: pointer;
  box-shadow: 0 12px 26px -18px rgba(20, 19, 26, .7);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.to-top svg { width: 18px; height: 18px; stroke-width: 1.8; }
.to-top:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* --------------------------------------------------------------- reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock-wrap { max-width: 520px; }
  .vm-grid, .split, .split-tight, .tabs > .tab-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .header-inner {
    justify-content: space-between;
  }
  .header-actions { margin-left: auto; gap: 8px; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 14px var(--gutter) 22px;
    background: rgba(246, 244, 239, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-140%);
    transition: transform .35s var(--ease);
    z-index: 99;
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { padding: 13px 12px; font-size: 1rem; border-radius: 12px; }
  .nav-toggle { display: block; }

  .grid-3, .grid-2, .dl-grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-index { display: inline-block; width: auto; padding-top: .5em; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .footer-note { text-align: left; }
  .tab-list-lg { justify-content: flex-start; }
  .tab-list-lg .tab { padding: 9px 14px; font-size: .85rem; }
  .acc-body { padding-right: 4px; }
}

@media (max-width: 560px) {
  .header-actions .btn { padding: 9px 14px; font-size: .8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-caption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cta-card { border-radius: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .step-num { width: 30px; height: 30px; }
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise, .reveal { opacity: 1 !important; transform: none !important; }
}
