/*
 * VibeForge — site styles.
 * Same design language as the app: raw colour tokens from an Omarchy theme, everything
 * else derived with color-mix. The tokens are registered with @property so a theme switch
 * glides instead of snapping. Idle recedes, hover warms to the accent, keyboard focus takes
 * the second gradient stop, a committed choice sits in the accent.
 */

@property --bg { syntax: "<color>"; inherits: true; initial-value: #09090b; }
@property --bg-dark { syntax: "<color>"; inherits: true; initial-value: #0c0c0e; }
@property --bg-deep { syntax: "<color>"; inherits: true; initial-value: #050506; }
@property --bg-raised { syntax: "<color>"; inherits: true; initial-value: #151518; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #a1a1aa; }
@property --fg-3 { syntax: "<color>"; inherits: true; initial-value: #71717a; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff6b35; }
@property --accent-2 { syntax: "<color>"; inherits: true; initial-value: #fca311; }
@property --on-accent { syntax: "<color>"; inherits: true; initial-value: #050506; }
@property --red { syntax: "<color>"; inherits: true; initial-value: #ff4d6d; }
@property --green { syntax: "<color>"; inherits: true; initial-value: #34d399; }
@property --yellow { syntax: "<color>"; inherits: true; initial-value: #fca311; }
@property --blue { syntax: "<color>"; inherits: true; initial-value: #38bdf8; }
@property --cyan { syntax: "<color>"; inherits: true; initial-value: #22d3ee; }
@property --magenta { syntax: "<color>"; inherits: true; initial-value: #7c3aed; }

:root {
  --line: color-mix(in srgb, var(--fg-3) 24%, transparent);
  --line-2: color-mix(in srgb, var(--fg-3) 40%, transparent);
  --fill: color-mix(in srgb, var(--fg) 3%, transparent);
  --fill-2: color-mix(in srgb, var(--fg) 6%, transparent);
  --hover-fill: color-mix(in srgb, var(--accent) 12%, transparent);
  --hover-line: color-mix(in srgb, var(--accent) 55%, transparent);
  --focus-fill: color-mix(in srgb, var(--accent-2) 10%, transparent);
  --focus-line: color-mix(in srgb, var(--accent-2) 65%, transparent);
  --sel-fill: color-mix(in srgb, var(--accent) 20%, transparent);
  --sel-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --gradient: linear-gradient(45deg, var(--accent), var(--accent-2));
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 28px -6px color-mix(in srgb, var(--accent) 75%, transparent);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --mono: "JetBrains Mono", "JetBrainsMono Nerd Font", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --wrap: 1180px;

  color-scheme: dark;
  transition: --bg 0.6s ease, --bg-dark 0.6s ease, --bg-deep 0.6s ease, --bg-raised 0.6s ease, --fg 0.6s ease, --fg-2 0.6s ease,
    --fg-3 0.6s ease, --accent 0.6s ease, --accent-2 0.6s ease, --on-accent 0.6s ease, --red 0.6s ease, --green 0.6s ease,
    --yellow 0.6s ease, --blue 0.6s ease, --cyan 0.6s ease, --magenta 0.6s ease;
}

:root[data-mode="light"] {
  color-scheme: light;
  --shadow: 0 30px 80px -34px rgba(40, 30, 20, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
kbd,
pre {
  font-family: var(--mono);
}

p code,
li code,
dd code,
i code {
  white-space: nowrap;
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--fill-2);
  color: color-mix(in srgb, var(--accent-2) 70%, var(--fg));
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  background: var(--fill);
  color: var(--fg);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 1px;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

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

svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------ backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.backdrop-glow {
  position: absolute;
  inset: -20vh -10vw auto;
  height: 110vh;
  background:
    radial-gradient(40vw 34vh at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(30vw 26vh at 64% 8%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    radial-gradient(60vw 50vh at 50% 110%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  filter: blur(8px);
}

.circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 95%);
}

.circuit .trace {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  opacity: 0.2;
}

.circuit .pulse {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px var(--accent));
  animation: pulse-run var(--dur, 6s) linear var(--delay, 0s) infinite;
}

.circuit .node {
  fill: var(--accent-2);
  opacity: 0.7;
  filter: drop-shadow(0 0 4px var(--accent));
}

.circuit .core {
  fill: color-mix(in srgb, var(--accent) 8%, transparent);
  stroke: var(--accent);
  stroke-width: 1.4;
  opacity: 0.55;
  filter: drop-shadow(0 0 12px var(--accent));
}

.circuit .core-mark {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px var(--accent));
}

@keyframes pulse-run {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: var(--travel, -1400);
  }
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

:root[data-mode="light"] .grain {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ waybar */

.bar {
  position: fixed;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 40;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  font: 500 12.5px var(--mono);
}

.workspaces {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.workspaces a {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 8px 0 4px;
  border-radius: 8px;
  color: var(--fg-3);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.workspaces a span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 11px;
}

.workspaces a em {
  font-style: normal;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease;
}

.workspaces a:hover {
  color: var(--accent);
  background: var(--hover-fill);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.workspaces a:hover em,
.workspaces a[aria-current="true"] em {
  max-width: 90px;
}

.workspaces a[aria-current="true"] {
  color: var(--fg);
  background: var(--sel-fill);
  border-color: var(--sel-line);
}

.workspaces a[aria-current="true"] span {
  background: var(--gradient);
  color: var(--on-accent);
}

.bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px var(--mono);
  letter-spacing: -0.02em;
}

.bar-brand svg {
  width: 20px;
  height: 20px;
}

.bar > .bar-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.bar-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--fg-2);
  border: 1px solid transparent;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.bar-item svg {
  width: 15px;
  height: 15px;
}

a.bar-item:hover,
button.bar-item:hover {
  color: var(--accent);
  background: var(--hover-fill);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.bar-item[aria-expanded="true"] {
  color: var(--accent);
  background: var(--sel-fill);
  border-color: var(--sel-line);
}

.clock {
  cursor: default;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

/* ------------------------------------------------------------------ theme menu */

.theme-menu {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 50;
  width: 290px;
  max-height: min(560px, calc(100vh - 80px));
  overflow: auto;
  padding: 8px;
  border-radius: 14px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow), 0 0 50px -20px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.theme-menu[hidden] {
  display: none;
}

.theme-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px 8px;
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.theme-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--fg-2);
  font: 500 13px var(--mono);
  text-align: left;
  cursor: pointer;
}

.theme-option:hover {
  background: var(--hover-fill);
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.theme-option[aria-checked="true"] {
  background: var(--sel-fill);
  border-color: var(--sel-line);
  color: var(--fg);
}

.theme-option .dots {
  display: flex;
  margin-left: auto;
}

.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.35);
  margin-left: -3px;
}

.theme-option .mode {
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--fg);
  font: 600 14.5px var(--mono);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s, transform 0.2s, filter 0.2s;
}

.btn:hover {
  background: var(--hover-fill);
  border-color: var(--hover-line);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--gradient);
  border-color: transparent;
  color: var(--on-accent);
  box-shadow: 0 10px 40px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn.primary:hover {
  color: var(--on-accent);
  box-shadow: var(--glow), 0 16px 50px -12px color-mix(in srgb, var(--accent) 90%, transparent);
  filter: brightness(1.07) saturate(1.05);
}

.btn.small {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
  border-radius: 8px;
  gap: 6px;
}

.btn.small svg {
  width: 14px;
  height: 14px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

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

.hero {
  position: relative;
  padding: 150px 24px 40px;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--sel-line);
  background: color-mix(in srgb, var(--accent) 9%, color-mix(in srgb, var(--bg) 80%, transparent));
  color: var(--fg);
  font: 600 12.5px var(--mono);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, box-shadow 0.25s;
}

.eyebrow:hover {
  border-color: var(--hover-line);
  box-shadow: var(--glow);
}

.eyebrow svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

h1 {
  margin: 0;
  max-width: 1080px;
  font: 800 clamp(42px, 7.2vw, 96px) / 1.02 var(--mono);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.forged {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 30%, color-mix(in srgb, var(--accent-2) 55%, #fff) 45%, var(--accent-2) 60%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px color-mix(in srgb, var(--accent) 55%, transparent));
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0% 0;
  }
}

.lede {
  margin: 0;
  max-width: 740px;
  font-size: clamp(16px, 1.6vw, 19.5px);
  color: var(--fg-2);
  text-wrap: pretty;
}

.install-line {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(780px, 100%);
  height: 46px;
  padding: 0 6px 0 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 80%, transparent);
  font: 13px var(--mono);
  backdrop-filter: blur(6px);
}

.install-line .prompt {
  color: var(--accent);
  font-weight: 700;
}

.install-line code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--fg-2);
  scrollbar-width: none;
  text-align: left;
}

.copy {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--fg-3);
  cursor: pointer;
  transition: 0.2s;
}

.copy:hover {
  color: var(--accent);
  background: var(--hover-fill);
  border-color: var(--hover-line);
}

.copy.is-done,
.btn.is-done {
  color: var(--green);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 13px var(--mono);
  color: var(--fg-2);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.facts svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  stroke-width: 2.6;
}

/* ------------------------------------------------------------------ the desk */

.desk {
  position: relative;
  margin: 72px auto 0;
  max-width: 1240px;
  height: 590px;
  display: grid;
  grid-template-columns: 1fr 330px;
  grid-template-rows: 1fr 200px;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform-origin: 50% 0%;
}

.desk::before {
  content: "";
  position: absolute;
  inset: -60px 10% auto;
  height: 220px;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
  filter: blur(40px);
  opacity: 0.55;
}

.desk.reveal {
  transform: perspective(2000px) rotateX(14deg) scale(0.94) translateY(40px);
}

.desk.reveal.is-visible {
  transform: perspective(2000px) rotateX(0deg) scale(1) translateY(0);
  transition: opacity 1s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.win {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  border: 2px solid color-mix(in srgb, var(--fg-3) 26%, transparent);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.win.is-focused {
  border-color: transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  box-shadow: 0 0 40px -16px color-mix(in srgb, var(--accent) 80%, transparent);
}

.win-app {
  grid-row: 1 / 3;
}

/* the app mockup — a scaled-down copy of VibeForge's own layout */

.app {
  height: 100%;
  display: grid;
  grid-template-columns: 58px 188px 1fr;
  font-size: 11.5px;
  line-height: 1.45;
}

.m-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 8px;
  background: var(--bg-dark);
  border-right: 1px solid var(--line);
}

.m-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 18px -6px color-mix(in srgb, var(--accent) 80%, transparent);
}

.m-logo svg {
  width: 17px;
  height: 17px;
}

.m-rail-btn,
.m-rail-foot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 46px;
  padding: 5px 0 4px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--fg-3);
}

.m-rail-btn svg,
.m-rail-foot svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.m-rail-btn i,
.m-rail-foot i {
  font: 600 8.5px var(--sans);
  font-style: normal;
}

.m-rail-btn.is-on {
  color: var(--fg);
  background: var(--sel-fill);
  border-color: var(--sel-line);
}

.m-rail-btn.is-on::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--gradient);
}

.m-rail-foot {
  margin-top: auto;
  color: var(--accent);
}

.m-badge {
  position: absolute;
  top: 1px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--gradient);
  color: var(--on-accent);
  font: 700 8.5px/14px var(--sans);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.6);
}

.m-badge.bump {
  transform: scale(1.35);
}

.m-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 7px;
  background: var(--bg-dark);
  border-right: 1px solid var(--line);
}

.m-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin: 0 -7px 6px;
  padding: 0 8px 0 12px;
  border-bottom: 1px solid var(--line);
  font: 650 12.5px var(--sans);
}

.m-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  font-size: 10px;
  font-weight: 600;
}

.m-chip-btn svg {
  width: 10px;
  height: 10px;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--fg-2);
}

.m-row.is-on {
  background: var(--sel-fill);
  border-color: var(--sel-line);
  color: var(--fg);
}

.m-row-text,
.m-head-text,
.w-run-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.m-row-text b,
.m-head-text b,
.w-run-text b {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-row-text i,
.m-head-text i,
.w-run-text i {
  font-style: normal;
  color: var(--fg-3);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-avatar {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border-radius: 8px;
  font: 700 9.5px var(--sans);
  color: var(--fg);
  background: linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
}

.m-avatar.lg {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 11px;
}

.m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--fg-3);
  display: inline-block;
}

.m-dot.is-live {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: live 1.8s ease-in-out infinite;
}

.m-dot.is-ok {
  background: var(--green);
}

.m-dot.is-warn {
  background: var(--yellow);
}

@keyframes live {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 6%, transparent);
  }
}

.m-count {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  border: 1px solid var(--sel-line);
  color: var(--accent);
  font: 700 9.5px/15px var(--sans);
  text-align: center;
}

.m-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.m-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid var(--line);
}

.m-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--gradient);
  color: var(--on-accent);
  font: 650 11px var(--sans);
  white-space: nowrap;
}

.m-primary svg {
  width: 12px;
  height: 12px;
}

.m-tabs {
  display: flex;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font-weight: 560;
}

.m-tabs span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 8px 8px;
  white-space: nowrap;
}

.m-tabs svg {
  width: 12px;
  height: 12px;
}

.m-tabs .is-on {
  color: var(--fg);
}

.m-tabs .is-on::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}

.m-term {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 16px;
  background: var(--bg);
  font: 12px/1.65 var(--mono);
  color: var(--fg);
}

.m-term .ln {
  white-space: pre-wrap;
  word-break: break-word;
  animation: line-in 0.35s ease both;
}

.m-term .dim {
  color: var(--fg-3);
}

.m-term .acc {
  color: var(--accent);
}

.m-term .grn {
  color: var(--green);
}

.m-term .red {
  color: var(--red);
}

.m-term .yel {
  color: var(--yellow);
}

.m-term .cyan {
  color: var(--cyan);
}

.m-term .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

@keyframes line-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.m-sessionbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: linear-gradient(45deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 8%, transparent));
  color: var(--fg-2);
  font-size: 10.5px;
}

.m-sessionbar > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-sessionbar code {
  font-size: 10px;
}

.m-sessionbar.is-done {
  background: color-mix(in srgb, var(--green) 9%, transparent);
}

.m-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  color: var(--fg);
}

.m-ghost-btn svg {
  width: 10px;
  height: 10px;
}

.m-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 12px 11px;
  padding: 5px 5px 5px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  color: var(--fg-3);
}

.m-composer > span:first-child {
  flex: 1;
}

.m-send {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--gradient);
  color: var(--on-accent);
  font-weight: 650;
  opacity: 0.55;
}

.m-send svg {
  width: 12px;
  height: 12px;
}

/* side windows */

.w-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-dark);
  font: 700 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.w-head svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.w-head b {
  color: var(--accent);
}

.w-run {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 6px 8px 0;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--fill);
  font-size: 11.5px;
}

.w-run.is-new {
  border-color: var(--sel-line);
  background: var(--hover-fill);
}

.w-run.is-hidden {
  display: none;
}

.w-run.is-arriving {
  animation: arrive 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateX(20px) scale(0.97);
  }
}

.w-diff,
.rv-diff {
  margin: 9px 8px 0;
  padding: 8px 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-deep) 70%, transparent);
  font: 10.5px/1.7 var(--mono);
  overflow: hidden;
}

.w-diff div,
.rv-diff div {
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.d-file {
  color: var(--accent);
  font-weight: 700;
}

.d-hunk {
  color: var(--cyan);
}

.d-add {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

.d-del {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, transparent);
}

.w-next {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--line);
}

.w-next:last-child {
  border-bottom: 0;
}

.w-next b {
  font-weight: 600;
  display: block;
}

.w-next i {
  font-style: normal;
  color: var(--fg-3);
  font-size: 10.5px;
}

.w-time {
  min-width: 46px;
  font: 700 12px var(--mono);
  color: var(--accent);
}

.toast {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 330px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 96%, transparent)) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow), 0 0 40px -14px color-mix(in srgb, var(--accent) 80%, transparent);
  font-size: 12px;
  opacity: 0;
  transform: translateY(-14px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  pointer-events: none;
}

.toast.is-shown {
  opacity: 1;
  transform: none;
}

.toast b {
  display: block;
}

.toast i {
  font-style: normal;
  color: var(--fg-2);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--fill-2);
}

.toast-icon svg {
  width: 20px;
  height: 20px;
}

/* ------------------------------------------------------------------ engines */

.engines {
  max-width: 1180px;
  margin: 70px auto 0;
  padding: 0 24px;
  text-align: center;
}

.engines-title {
  margin: 0 0 18px;
  font: 600 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.engines-note {
  margin: 18px auto 0;
  max-width: 620px;
  color: var(--fg-3);
  font-size: 14px;
}

.marquee {
  display: flex;
  overflow: hidden;
  gap: 10px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  flex: none;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--fill);
  font: 600 14px var(--mono);
  color: var(--fg-2);
  white-space: nowrap;
}

.marquee-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.marquee-track span.any {
  color: var(--accent);
  border-color: var(--sel-line);
}

.marquee-track span.any::before {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(calc(-100% - 10px));
  }
}

/* ------------------------------------------------------------------ sections */

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 130px 24px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-head.left {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 28px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.kicker b {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--sel-fill);
  border: 1px solid var(--sel-line);
  color: var(--accent);
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font: 800 clamp(32px, 4.6vw, 58px) / 1.05 var(--mono);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  max-width: 680px;
  color: var(--fg-2);
  font-size: 18px;
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ bento */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--sel-line);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: var(--accent);
}

.art-themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-content: end;
}

.art-themes button {
  display: flex;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.art-themes button span {
  flex: 1;
}

.art-themes button:hover {
  transform: translateY(-2px);
  border-color: var(--hover-line);
}

.art-themes button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px -6px var(--accent);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-dark) 70%, transparent);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.card.wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}

.card.wide .card-copy {
  flex: 0 0 42%;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--accent);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 26px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  margin-bottom: 4px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card h3 {
  margin: 0;
  font: 700 19px/1.25 var(--mono);
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}

.card p b {
  color: var(--fg);
  font-weight: 600;
}

.art {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  border-radius: 12px;
  font-size: 12px;
}

/* agent art */

.art-agent {
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.agent-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-meta b {
  font: 700 15px var(--mono);
}

.engine-flip {
  display: inline-flex;
  height: 20px;
  overflow: hidden;
  font: 600 12px/20px var(--mono);
  color: var(--accent);
}

.engine-flip i {
  font-style: normal;
  display: block;
  transition: transform 0.45s cubic-bezier(0.6, -0.2, 0.3, 1.3), opacity 0.3s;
}

.engine-flip i.out {
  transform: translateY(-100%);
  opacity: 0;
}

.engine-flip i.in {
  transform: translateY(100%);
  opacity: 0;
  transition: none;
}

.agent-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.agent-parts span,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-2);
  font: 600 11px var(--mono);
  white-space: nowrap;
}

.agent-parts svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.chip.ok {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 40%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

/* tiles art */

.art-tiles {
  gap: 7px;
  height: 128px;
}

.tile {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 2px solid color-mix(in srgb, var(--fg-3) 26%, transparent);
  background: var(--bg);
  font: 10.5px/1.5 var(--mono);
  overflow: hidden;
}

.tile i {
  font-style: normal;
  font-weight: 700;
  color: var(--fg-2);
  margin-bottom: 4px;
}

.tile code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile .dim {
  color: var(--fg-3);
}

.tile.is-focused {
  border-color: transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
}

.tile.is-focused code:first-of-type {
  color: var(--accent);
}

.tile-web .web-block {
  height: 34px;
  border-radius: 6px;
  background: var(--gradient);
  opacity: 0.8;
}

.tile-web .web-line {
  height: 6px;
  border-radius: 3px;
  background: var(--fill-2);
}

.tile-web .web-line.short {
  width: 60%;
}

/* cron art */

.art-cron {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.cron {
  font: 700 17px var(--mono);
  color: var(--accent);
  letter-spacing: 0.08em;
}

.cron-arrow svg {
  color: var(--fg-3);
  transform: rotate(90deg);
}

.art-cron b {
  font: 600 13px var(--mono);
}

.cron-next {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.cron-next span {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--fill-2);
  color: var(--fg-2);
  font: 600 10.5px/22px var(--mono);
}

/* board art */

.art-board {
  height: 128px;
  gap: 7px;
}

.art-board .col {
  flex: 1;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 8px;
}

.art-board .col i {
  font: 700 9.5px var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.board-card {
  position: absolute;
  top: 34px;
  left: 6px;
  width: calc((100% - 14px) / 3 - 12px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid var(--sel-line);
  background: var(--bg-raised);
  font: 600 10.5px var(--mono);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  animation: board 7s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

.board-card span {
  height: 5px;
  width: 70%;
  border-radius: 3px;
  background: var(--fill-2);
}

@keyframes board {
  0%,
  22% {
    transform: translateX(0);
    border-color: var(--line-2);
  }
  30%,
  58% {
    transform: translateX(calc(100% + 19px));
    border-color: var(--accent);
    box-shadow: 0 0 22px -6px var(--accent);
  }
  66%,
  94% {
    transform: translateX(calc(200% + 38px));
    border-color: var(--green);
  }
  100% {
    transform: translateX(0);
    border-color: var(--line-2);
  }
}

/* review art */

.art-review {
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.rv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rv-head b {
  font: 700 14px var(--mono);
  margin-right: 4px;
}

.rv-tabs {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-3);
  font: 600 11px var(--mono);
}

.rv-tabs .is-on {
  color: var(--fg);
  box-shadow: 0 9px 0 -7px var(--accent);
}

.rv-diff {
  margin: 10px 0 0;
}

.rv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.rv-foot code {
  font-size: 11px;
  color: var(--fg-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* keys art */

.art-keys {
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
}

.keycap {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 58px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  border-bottom-width: 5px;
  background: linear-gradient(var(--bg-raised), var(--bg));
  font: 700 15px var(--mono);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  animation: press 3.2s ease-in-out infinite;
}

.keycap.wide {
  min-width: 82px;
}

.keycap:nth-child(2) {
  animation-delay: 0.12s;
}

.keycap:nth-child(3) {
  animation-delay: 0.24s;
  color: var(--accent);
  border-color: var(--sel-line);
}

@keyframes press {
  0%,
  60%,
  100% {
    transform: none;
    border-bottom-width: 5px;
  }
  70%,
  80% {
    transform: translateY(3px);
    border-bottom-width: 2px;
    box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  }
}

/* private art */

.art-private {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  text-align: center;
}

.lock {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: var(--accent);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 40px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}

.lock svg {
  width: 24px;
  height: 24px;
}

.art-private code {
  font-size: 10.5px;
  color: var(--fg-3);
  word-break: break-all;
}

/* path art */

.art-path {
  flex-wrap: wrap;
  align-content: center;
  gap: 7px;
  min-height: 110px;
}

.art-path span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font: 600 12px var(--mono);
  color: var(--fg-2);
}

.art-path span:last-child {
  opacity: 0.5;
}

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

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
}

.flow::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  width: 18%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: current 4.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes current {
  from {
    transform: translateX(0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  to {
    transform: translateX(390%);
    opacity: 0;
  }
}

.flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-node {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  border-radius: 16px;
  font: 800 20px var(--mono);
  color: var(--accent);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 34px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}

.flow h3 {
  margin: 0;
  font: 700 18px var(--mono);
  letter-spacing: -0.03em;
}

.flow p {
  margin: 0;
  color: var(--fg-2);
  font-size: 15px;
}

/* ------------------------------------------------------------------ themes */

.themes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.theme-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 13px 0 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--fill);
  color: var(--fg-2);
  font: 600 12.5px var(--mono);
  cursor: pointer;
  transition: 0.2s;
}

.theme-pill .dots {
  display: flex;
  padding-left: 3px;
}

.theme-pill:hover {
  color: var(--accent);
  background: var(--hover-fill);
  border-color: var(--hover-line);
}

.theme-pill[aria-pressed="true"] {
  color: var(--fg);
  background: var(--sel-fill);
  border-color: var(--sel-line);
}

.theme-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-preview .win {
  height: 330px;
}

.tp {
  display: grid;
  grid-template-columns: 50px 1fr;
  height: 100%;
}

.tp-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 0;
  background: var(--bg-dark);
  border-right: 1px solid var(--line);
}

.tp-rail .m-rail-btn {
  width: 38px;
  padding: 7px 0;
}

.tp-canvas {
  display: flex;
  gap: 8px;
  padding: 8px;
  min-width: 0;
}

.tp-pane {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.tp-pane.is-focused {
  border-color: var(--sel-line);
  box-shadow: inset 0 2px 0 var(--accent), 0 0 30px -18px var(--accent);
}

.tp-pane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line);
  font: 600 11px var(--sans);
}

.tp-pane pre {
  margin: 0;
  padding: 10px 12px;
  font: 11px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow: hidden;
}

.t-dir {
  color: var(--cyan);
  font-weight: 700;
}

.t-branch {
  color: var(--magenta);
  font-style: italic;
}

.t-acc {
  color: var(--accent);
  font-weight: 700;
}

.t-yel {
  color: var(--yellow);
}

.t-grn {
  color: var(--green);
}

.t-red {
  color: var(--red);
}

.t-dim {
  color: var(--fg-3);
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.swatches span {
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ------------------------------------------------------------------ keys + files */

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.duo > *,
.themes-grid > * {
  min-width: 0;
}

.duo h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.keys {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-dark) 70%, transparent);
  overflow: hidden;
}

.keys div {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.keys div:last-child {
  border-bottom: 0;
}

.keys dt {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--fg-3);
  font: 12px var(--mono);
}

.keys dd {
  margin: 0;
  color: var(--fg-2);
  font-size: 14.5px;
}

.code-window {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-dark);
  color: var(--fg-3);
  font: 11.5px var(--mono);
  white-space: nowrap;
  overflow: hidden;
}

.code-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.code {
  margin: 0;
  padding: 18px 20px;
  font: 13px/1.75 var(--mono);
  color: var(--fg-2);
  overflow-x: auto;
}

.y-key {
  color: var(--accent);
}

.y-bool {
  color: var(--green);
}

.y-em {
  color: var(--yellow);
}

/* ------------------------------------------------------------------ install */

kbd.big {
  height: 0.95em;
  min-width: 1.4em;
  padding: 0 0.3em;
  font-size: 0.72em;
  border-radius: 0.2em;
  border-bottom-width: 0.1em;
  vertical-align: 0.08em;
  color: var(--accent);
  border-color: var(--sel-line);
  background: var(--sel-fill);
  box-shadow: 0 0 30px -10px var(--accent);
}

.install-window {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow), 0 0 80px -30px color-mix(in srgb, var(--accent) 80%, transparent);
  overflow: hidden;
}

.iw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 8px 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-dark);
}

.iw-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px var(--mono);
  color: var(--fg-3);
}

.iw-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.iw-body {
  margin: 0;
  padding: 22px 24px 26px;
  font: 13.5px/1.75 var(--mono);
  color: var(--fg);
  white-space: pre-wrap;
  word-break: break-word;
}

.needs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 18px auto 0;
}

.needs div {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-dark) 70%, transparent);
}

.needs svg {
  color: var(--accent);
  margin-top: 3px;
}

.needs span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}

.needs b {
  font: 700 13.5px var(--mono);
}

.needs i {
  font-style: normal;
  color: var(--fg-3);
  font-size: 13px;
}

.build {
  max-width: 900px;
  margin: 12px auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-dark) 70%, transparent);
}

.build summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  font: 600 14px var(--mono);
  list-style: none;
}

.build summary::-webkit-details-marker {
  display: none;
}

.build summary svg {
  color: var(--accent);
}

.build summary:hover {
  color: var(--accent);
}

.build pre {
  margin: 0;
  padding: 0 18px 18px 44px;
  font: 13px/1.8 var(--mono);
  color: var(--fg-2);
  overflow-x: auto;
}

/* ------------------------------------------------------------------ final */

.final {
  position: relative;
  max-width: 900px;
  margin: 150px auto 0;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.final::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, 100%);
  height: 300px;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  filter: blur(30px);
}

.final-logo {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 80%, transparent));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

.final h2 {
  font-size: clamp(40px, 6vw, 80px);
}

.final p {
  margin: 0;
  color: var(--fg-2);
  font-size: 18px;
}

.cta.center {
  margin-top: 8px;
}

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

.footer {
  max-width: var(--wrap);
  margin: 140px auto 0;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font: 500 13px var(--mono);
  color: var(--fg-2);
}

.footer nav a:hover {
  color: var(--accent);
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.credit {
  font: 500 13px var(--mono);
  color: var(--fg-3);
}

.credit a {
  color: var(--fg-2);
  transition: color 0.2s ease;
}

.credit a:hover {
  color: var(--accent);
}

.fine {
  margin: 18px 0 0;
  max-width: 820px;
  color: var(--fg-3);
  font-size: 12.5px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s ease var(--delay, 0s), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

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

@media (max-width: 1080px) {
  .desk {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 540px;
  }

  .win-review,
  .win-next {
    display: none;
  }

  .win-app {
    grid-row: auto;
  }

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

  .card.wide {
    grid-column: span 2;
  }

  .themes-grid,
  .duo {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .needs {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .flow::before,
  .flow::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .bar > .bar-brand {
    position: static;
    transform: none;
  }

  .workspaces {
    display: none;
  }

  .theme-button span,
  .clock {
    display: none;
  }

  .hero {
    padding-top: 146px;
  }

  .desk {
    height: 460px;
    padding: 8px;
  }

  .app {
    grid-template-columns: 50px 1fr;
  }

  .m-list,
  .m-tabs .m-hide-sm,
  .toast,
  .eyebrow .eyebrow-extra {
    display: none;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .card.wide {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .flow,
  .needs {
    grid-template-columns: 1fr;
  }

  .keys div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section {
    padding-top: 100px;
  }
}

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

  .reveal,
  .desk.reveal {
    opacity: 1;
    transform: none;
  }
}
