:root {
  --bg: #061016;
  --bg-deep: #040c11;
  --bg-soft: #09171e;
  --panel: #0b1a21;
  --panel-raised: #0e2029;
  --line: rgba(172, 220, 228, 0.14);
  --line-strong: rgba(172, 220, 228, 0.26);
  --text: #edf7f8;
  --text-soft: #c8dce0;
  --muted: #8ca6ae;
  --muted-dim: #617c84;
  --cyan: #71e8ef;
  --cyan-soft: #a7f5f8;
  --mint: #b9f45a;
  --mint-deep: #8ed22d;
  --amber: #ffbf69;
  --danger: #ff7b7b;
  --accent: #71e8ef;
  --accent-rgb: 113, 232, 239;
  --max-width: 1220px;
  --gutter: clamp(20px, 4.4vw, 56px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-sans: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: rgba(185, 244, 90, 0.24);
  color: #fff;
}

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--mint);
  color: #061016;
  font-weight: 700;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 18px;
}

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

.page-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 84% -6%, rgba(36, 126, 140, 0.19), transparent 64%),
    radial-gradient(800px 640px at 6% 18%, rgba(94, 145, 47, 0.08), transparent 60%),
    linear-gradient(180deg, #071218 0%, var(--bg) 42%, #050e13 100%);
}

.atmosphere-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.38;
}

.orb-one {
  width: 40vw;
  height: 40vw;
  right: -10vw;
  top: 8vh;
  background: radial-gradient(circle, rgba(55, 211, 219, 0.22), transparent 66%);
}

.orb-two {
  width: 34vw;
  height: 34vw;
  left: -12vw;
  top: 56vh;
  background: radial-gradient(circle, rgba(185, 244, 90, 0.10), transparent 66%);
}

.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(152, 205, 213, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(152, 205, 213, 0.038) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 76%);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(172, 220, 228, 0.08);
  background: rgba(6, 16, 22, 0.72);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.topbar-inner {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 16px rgba(113, 232, 239, 0.26));
}

.brand-name {
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.brand-tag {
  margin-left: 1px;
  padding: 3px 6px;
  border: 1px solid rgba(185, 244, 90, 0.32);
  border-radius: 5px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  transform: translateY(-2px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 14px;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 180ms ease;
}

.admin-link svg {
  width: 16px;
  height: 16px;
}

.admin-link:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.btn-primary {
  --btn-bg: var(--mint);
  --btn-fg: #0a1418;
  border-color: rgba(220, 255, 167, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.34) inset,
    0 9px 24px rgba(128, 189, 38, 0.15);
}

.btn-primary:hover {
  --btn-bg: #c8ff72;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 12px 32px rgba(128, 189, 38, 0.22);
}

.btn-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.btn-quiet:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn-compact {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12.5px;
}

.btn-compact svg {
  width: 14px;
  height: 14px;
}

.btn-hero {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: 15px;
}

.btn-hero .btn-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: -8px;
  border-radius: 50%;
  background: rgba(6, 16, 22, 0.12);
}

.btn-arrow svg {
  width: 17px;
  height: 17px;
  transition: transform 200ms ease;
}

.btn-hero:hover .btn-arrow svg {
  transform: translateX(2px);
}

.play-dot {
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(113, 232, 239, 0.08);
}

/* ---------- Hero ---------- */

.hero {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  min-height: 690px;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 78px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 8px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: #a9c1c7;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(185, 244, 90, 0.09);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(185, 244, 90, 0.35);
  border-radius: 50%;
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

h1 {
  margin: 0;
  font-size: clamp(46px, 5.2vw, 70px);
  font-weight: 660;
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.headline-serif {
  color: transparent;
  background: linear-gradient(100deg, #f5fffb 4%, #b7f6ef 42%, #88ebdf 68%, #b9f45a 110%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.075em;
}

.hero-lede {
  max-width: 530px;
  margin: 28px 0 0;
  color: #9bb3ba;
  font-size: 16.5px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 52px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  padding-right: 14px;
}

.hero-facts dt {
  margin-bottom: 6px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

/* ---------- Instrument visual ---------- */

.hero-stage {
  position: relative;
  min-width: 0;
  padding: 18px 0 24px;
  perspective: 1400px;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 12% -6% 4% 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(45, 176, 185, 0.16), transparent 67%);
  filter: blur(30px);
}

.instrument-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169, 222, 229, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 37, 47, 0.97), rgba(8, 21, 28, 0.98)),
    var(--panel);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(255, 255, 255, 0.05) inset,
    0 0 0 1px rgba(0, 0, 0, 0.28);
  transform: rotate(0.35deg);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.instrument-card:hover {
  transform: rotate(0deg) translateY(-3px);
}

.instrument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(167, 217, 224, 0.09);
}

.instrument-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #b7cdd2;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34525b;
}

.window-dots i:first-child {
  background: rgba(255, 191, 105, 0.7);
}

.window-dots i:nth-child(2) {
  background: rgba(113, 232, 239, 0.6);
}

.instrument-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(185, 244, 90, 0.2);
  border-radius: 99px;
  background: rgba(185, 244, 90, 0.06);
  color: #cdf892;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.instrument-state i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
}

.instrument-canvas {
  position: relative;
  margin: 0 12px;
  overflow: hidden;
  border-radius: 11px;
  background: #dfe1de;
  aspect-ratio: 900 / 640;
}

.instrument-canvas > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03) brightness(0.79);
  transform: scale(1.012);
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 12, 17, 0.34), transparent 22%, transparent 72%, rgba(3, 12, 17, 0.28)),
    radial-gradient(ellipse at 50% 58%, transparent 48%, rgba(3, 12, 16, 0.22));
  pointer-events: none;
}

.measure-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.measure-grid path {
  fill: none;
  stroke: rgba(213, 255, 255, 0.13);
  stroke-width: 1;
  stroke-dasharray: 3 11;
}

.baseline-line {
  stroke: var(--mint);
  stroke-width: 2.2;
  stroke-dasharray: 7 5;
  opacity: 0.9;
}

.read-guides line {
  stroke: rgba(222, 255, 255, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.drop-contour {
  fill: none;
  stroke: url(#contourGradient);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-contour 2.6s 0.4s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
}

@keyframes draw-contour {
  to { stroke-dashoffset: 0; }
}

.tangent-lines line {
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.74;
}

.angle-arcs path {
  fill: none;
  stroke: #d9ff9d;
  stroke-width: 2;
  stroke-linecap: round;
}

.contact-points circle {
  fill: #e6ffb9;
  stroke: #0b1a21;
  stroke-width: 2;
}

.overlay-labels rect {
  fill: rgba(7, 21, 27, 0.83);
  stroke: rgba(185, 244, 90, 0.25);
  stroke-width: 1;
}

.overlay-labels text {
  fill: #eaffca;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.overlay-labels .apex-label {
  fill: rgba(227, 255, 255, 0.55);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 16%;
  background: linear-gradient(180deg, transparent, rgba(137, 255, 242, 0.06) 55%, rgba(137, 255, 242, 0.22));
  border-bottom: 1px solid rgba(177, 255, 246, 0.42);
  mix-blend-mode: screen;
  animation: scan 8.5s 1s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0%, 8% { transform: translateY(0); opacity: 0; }
  18% { opacity: 0.8; }
  52% { opacity: 0.5; }
  68%, 100% { transform: translateY(720%); opacity: 0; }
}

.frame-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border-color: rgba(203, 255, 255, 0.56);
  border-style: solid;
  pointer-events: none;
}

.frame-corner.top-left {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.frame-corner.top-right {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
}

.frame-corner.bottom-left {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
}

.frame-corner.bottom-right {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.instrument-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px 20px;
}

.readout-main > span {
  display: block;
  color: #8eabb2;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.readout-main strong {
  display: block;
  margin: 1px 0 0;
  color: #f2fffb;
  font-family: var(--font-mono);
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1.1;
}

.readout-main sup {
  position: relative;
  top: -0.8em;
  margin-left: 2px;
  color: var(--mint);
  font-size: 0.42em;
  letter-spacing: 0;
}

.readout-main small {
  color: #68848b;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.readout-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 118px;
  padding-left: 18px;
  border-left: 1px solid rgba(171, 220, 226, 0.12);
}

.readout-side > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.readout-side span {
  color: #627e86;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.readout-side b {
  color: #bdd6da;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(176, 225, 231, 0.19);
  border-radius: 11px;
  background: rgba(9, 25, 32, 0.78);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: float 7s ease-in-out infinite;
}

.float-note small {
  display: block;
  margin-bottom: 1px;
  color: #77949b;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.float-note b {
  display: block;
  color: #d9ecee;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.float-note-a {
  right: -24px;
  top: 20%;
  animation-delay: -2s;
}

.float-note-b {
  left: -28px;
  bottom: 14%;
  animation-delay: -4s;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(113, 232, 239, 0.08);
  color: var(--cyan);
}

.note-icon svg {
  width: 16px;
  height: 16px;
}

.status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(185, 244, 90, 0.8);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Signal bar ---------- */

.signal-bar {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  margin: 24px auto 0;
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

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

.signal-index {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.signal-item b {
  display: block;
  color: #d8e8ea;
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.4;
}

.signal-item small {
  display: block;
  margin-top: 2px;
  color: #708a91;
  font-size: 10px;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.section {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.software-section {
  padding: 112px 0 20px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.19em;
}

.kicker-line {
  width: 34px;
  height: 1px;
  background: rgba(185, 244, 90, 0.55);
}

.section-heading h2,
.open-panel-intro h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-intro {
  max-width: 380px;
  margin: 0 0 5px;
  color: #839da4;
  font-size: 13.5px;
  line-height: 1.75;
}

.library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7e989f;
  font-size: 11.5px;
  cursor: pointer;
  transition: 170ms ease;
}

.filter-chip:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
}

.filter-chip[aria-pressed="true"] {
  border-color: rgba(185, 244, 90, 0.2);
  background: rgba(185, 244, 90, 0.08);
  color: #d9ffa0;
}

.library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 204px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-dim);
  transition: border-color 180ms ease;
}

.library-search:focus-within {
  border-color: rgba(185, 244, 90, 0.42);
}

.library-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.library-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11.5px;
}

.library-search input::placeholder {
  color: #617b82;
}

.library-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px 14px;
  color: #607c84;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.app-card {
  --accent: #71e8ef;
  --accent-rgb: 113, 232, 239;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 33, 41, 0.92), rgba(8, 20, 26, 0.96));
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
  animation: card-in 500ms both;
}

.app-card[data-accent="lime"] { --accent: #b9f45a; --accent-rgb: 185, 244, 90; }
.app-card[data-accent="amber"] { --accent: #ffbf69; --accent-rgb: 255, 191, 105; }
.app-card[data-accent="violet"] { --accent: #c3a6ff; --accent-rgb: 195, 166, 255; }
.app-card[data-accent="rose"] { --accent: #ff9fb5; --accent-rgb: 255, 159, 181; }
.app-card[data-accent="blue"] { --accent: #8bb9ff; --accent-rgb: 139, 185, 255; }

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-card.is-filtered-out {
  display: none;
}

.app-visual {
  position: relative;
  height: 174px;
  overflow: hidden;
  border-bottom: 1px solid rgba(170, 220, 227, 0.09);
  background:
    radial-gradient(circle at 72% 30%, rgba(var(--accent-rgb), 0.18), transparent 44%),
    radial-gradient(circle at 18% 100%, rgba(var(--accent-rgb), 0.08), transparent 48%),
    #0b1b22;
}

.app-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(177, 223, 230, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 223, 230, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
}

.app-visual::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -34px;
  bottom: -52px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(var(--accent-rgb), 0.035),
    0 0 0 48px rgba(var(--accent-rgb), 0.022);
}

.app-visual-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 13px 0;
}

.app-version {
  padding: 4px 7px;
  border: 1px solid rgba(173, 220, 226, 0.14);
  border-radius: 5px;
  background: rgba(5, 15, 20, 0.4);
  color: #9fb7bd;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(var(--accent-rgb), 0.9);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.app-status i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.app-status.is-pending {
  color: #b79f70;
}

.app-monogram {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 1;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%) rotate(-3deg);
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.2), rgba(7, 20, 26, 0.72)),
    rgba(8, 22, 28, 0.8);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.4);
}

.app-monogram::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  border-radius: 15px;
}

.app-visual-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: rgba(203, 235, 238, 0.34);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.17em;
}

.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 17px 15px;
}

.app-category {
  margin-bottom: 7px;
  color: rgba(var(--accent-rgb), 0.82);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-body h3 {
  margin: 0;
  color: #edf9fa;
  font-size: 20px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.app-tagline {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  margin: 6px 0 0;
  color: #829da4;
  font-size: 11.5px;
  line-height: 1.7;
}

.app-summary {
  display: none;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(171, 220, 227, 0.08);
  color: #667f86;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.app-meta svg {
  width: 11px;
  height: 11px;
  opacity: 0.7;
}

.app-meta .meta-divider {
  width: 1px;
  height: 9px;
  background: rgba(171, 220, 227, 0.12);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.app-open {
  flex: 1;
  min-height: 37px;
  padding: 0 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  transition: 180ms ease;
}

.app-open:hover:not(:disabled) {
  background: rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.4);
}

.app-open:disabled {
  cursor: not-allowed;
  border-color: rgba(172, 220, 228, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: #6b8389;
}

.app-detail {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #8da4aa;
  cursor: pointer;
  transition: 180ms ease;
}

.app-detail:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.app-detail svg {
  width: 15px;
  height: 15px;
}

.app-grid.is-solo {
  grid-template-columns: 1fr;
}

.app-grid.is-solo .app-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  min-height: 318px;
}

.app-grid.is-solo .app-visual {
  height: auto;
  min-height: 318px;
  border-right: 1px solid rgba(170, 220, 227, 0.09);
  border-bottom: 0;
}

.app-grid.is-solo .app-body {
  justify-content: center;
  padding: 32px 36px;
}

.app-grid.is-solo .app-body h3 {
  font-size: 34px;
  letter-spacing: -0.045em;
}

.app-grid.is-solo .app-tagline {
  max-width: 560px;
  min-height: 0;
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 3;
}

.app-grid.is-solo .app-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 600px;
  margin: 12px 0 0;
  color: #6f8a91;
  font-size: 11.5px;
  line-height: 1.8;
}

.app-grid.is-solo .app-meta {
  max-width: 520px;
  margin-top: 19px;
}

.app-grid.is-solo .app-actions {
  max-width: 330px;
  margin-top: 20px;
}

.app-grid.is-solo .app-monogram {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  font-size: 32px;
}

.app-grid.is-solo .app-monogram::before {
  inset: 11px;
  border-radius: 20px;
}

.app-grid.is-solo .app-visual-label {
  left: 22px;
  bottom: 18px;
}

.library-empty {
  grid-column: 1 / -1;
  padding: 76px 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.library-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.library-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-card-skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-body span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-visual {
  height: 174px;
}

.skeleton-body {
  display: grid;
  gap: 12px;
  padding: 20px 17px;
}

.skeleton-body span {
  height: 13px;
  border-radius: 5px;
}

.skeleton-body span:nth-child(2) {
  width: 86%;
}

.skeleton-body span:nth-child(3) {
  width: 62%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.library-notice {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 191, 105, 0.18);
  border-radius: 9px;
  background: rgba(255, 191, 105, 0.05);
  color: #d8b982;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Open guide ---------- */

.open-section {
  padding: 100px 0 30px;
}

.open-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 64px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 2% 0%, rgba(113, 232, 239, 0.08), transparent 38%),
    linear-gradient(145deg, rgba(13, 31, 39, 0.94), rgba(7, 18, 24, 0.97));
}

.open-panel::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(185, 244, 90, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(185, 244, 90, 0.018),
    0 0 0 98px rgba(185, 244, 90, 0.012);
  pointer-events: none;
}

.open-panel-intro {
  position: relative;
  z-index: 1;
}

.open-panel-intro h2 {
  margin-bottom: 20px;
}

.open-panel-intro > p:not(.section-kicker) {
  max-width: 350px;
  margin: 0;
  color: #8ba4ab;
  font-size: 13.5px;
  line-height: 1.8;
}

.os-detection {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 11px;
  border: 1px solid rgba(113, 232, 239, 0.16);
  border-radius: 99px;
  background: rgba(113, 232, 239, 0.05);
  color: #a5c5ca;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.os-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

.open-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.open-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 17px;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}

.open-steps li:first-child {
  padding-top: 0;
  border-top: 0;
}

.open-steps li:last-child {
  padding-bottom: 0;
}

.step-number {
  padding-top: 1px;
  color: rgba(185, 244, 90, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.open-steps h3 {
  margin: 0 0 5px;
  color: #deedef;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.open-steps p {
  margin: 0;
  color: #7f999f;
  font-size: 12px;
  line-height: 1.75;
}

code {
  padding: 1px 5px;
  border: 1px solid rgba(172, 220, 228, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9d5d9;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.browser-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
  padding: 17px 19px;
  border: 1px solid rgba(172, 220, 228, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.browser-note-icon {
  flex: 0 0 auto;
  color: #8faeb4;
}

.browser-note-icon svg {
  width: 21px;
  height: 21px;
}

.browser-note p {
  margin: 0;
  color: #718b92;
  font-size: 11.5px;
  line-height: 1.75;
}

.browser-note strong {
  color: #aac1c6;
  font-weight: 600;
}

/* ---------- FAQ ---------- */

.faq-section {
  padding: 92px 0 110px;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 70px;
  align-items: start;
}

.section-heading.compact {
  display: block;
  margin: 0;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 21px 42px 21px 0;
  color: #d6e6e8;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #789399;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 300;
  transition: transform 220ms ease, color 220ms ease;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--mint);
}

.faq-list details p {
  max-width: 680px;
  margin: -4px 38px 22px 0;
  color: #7e989f;
  font-size: 12.5px;
  line-height: 1.85;
}

.faq-list details p a {
  color: var(--mint);
  border-bottom: 1px solid rgba(185, 244, 90, 0.3);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 12, 17, 0.55);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  padding: 38px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: start;
}

.footer-brand .brand img {
  width: 32px;
  height: 32px;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #617a82;
  font-size: 11.5px;
}

.footer-links {
  display: flex;
  gap: 26px;
  padding-top: 8px;
}

.footer-links a {
  color: #7d969d;
  font-size: 11.5px;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(172, 220, 228, 0.07);
  color: #4f6870;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

/* ---------- Modals ---------- */

.launch-modal,
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 11, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 180ms ease both;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(176, 226, 231, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(113, 232, 239, 0.08), transparent 40%),
    linear-gradient(160deg, #0e222b, #08151b 68%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
  animation: modal-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(172, 220, 228, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #819aa1;
  cursor: pointer;
  transition: 180ms ease;
}

.modal-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.launch-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border: 1px solid rgba(185, 244, 90, 0.25);
  border-radius: 15px;
  background: rgba(185, 244, 90, 0.07);
  color: var(--mint);
  box-shadow: 0 0 34px rgba(185, 244, 90, 0.08);
}

.launch-mark svg {
  width: 31px;
  height: 31px;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
}

.modal-card h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.22;
}

.launch-description {
  margin: 10px 0 20px;
  color: #89a2a9;
  font-size: 12px;
  line-height: 1.75;
}

.launch-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(172, 220, 228, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.file-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(113, 232, 239, 0.22);
  border-radius: 7px;
  background: rgba(113, 232, 239, 0.07);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info b {
  display: block;
  overflow: hidden;
  color: #dbecee;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info small {
  display: block;
  margin-top: 2px;
  color: #697f85;
  font-size: 9.5px;
}

.download-pulse {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.download-pulse i {
  width: 2px;
  border-radius: 2px;
  background: var(--mint);
  animation: bars 800ms ease-in-out infinite alternate;
}

.download-pulse i:nth-child(1) { height: 6px; animation-delay: 0ms; }
.download-pulse i:nth-child(2) { height: 12px; animation-delay: 150ms; }
.download-pulse i:nth-child(3) { height: 8px; animation-delay: 300ms; }

@keyframes bars {
  to { transform: scaleY(0.45); opacity: 0.55; }
}

.launch-steps {
  display: grid;
  gap: 9px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.launch-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #91a8ad;
  font-size: 11.5px;
  line-height: 1.55;
}

.launch-steps li span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #acc1c5;
  font-family: var(--font-mono);
  font-size: 8px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.modal-actions .btn {
  min-height: 42px;
  padding: 0 17px;
  font-size: 12px;
}

.modal-actions .btn-primary {
  flex: 1;
}

.modal-footnote {
  margin: 13px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(172, 220, 228, 0.08);
  color: #5f777e;
  font-size: 9.5px;
  line-height: 1.6;
}

/* Detail modal */

.detail-card {
  width: min(620px, 100%);
  padding: 36px;
}

.detail-top {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-right: 36px;
}

.detail-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(var(--accent-rgb, 113, 232, 239), 0.3);
  border-radius: 16px;
  background: rgba(var(--accent-rgb, 113, 232, 239), 0.08);
  color: var(--accent, var(--cyan));
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.detail-avatar[data-accent="cyan"] { --accent: #71e8ef; --accent-rgb: 113, 232, 239; }
.detail-avatar[data-accent="lime"] { --accent: #b9f45a; --accent-rgb: 185, 244, 90; }
.detail-avatar[data-accent="amber"] { --accent: #ffbf69; --accent-rgb: 255, 191, 105; }
.detail-avatar[data-accent="violet"] { --accent: #c3a6ff; --accent-rgb: 195, 166, 255; }
.detail-avatar[data-accent="rose"] { --accent: #ff9fb5; --accent-rgb: 255, 159, 181; }
.detail-avatar[data-accent="blue"] { --accent: #8bb9ff; --accent-rgb: 139, 185, 255; }

.detail-top h2 {
  font-size: 25px;
}

.detail-top p:last-child {
  margin: 3px 0 0;
  color: #829ba2;
  font-size: 11px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(172, 220, 228, 0.12);
  border-radius: 5px;
  color: #91aab0;
  font-family: var(--font-mono);
  font-size: 8.5px;
}

.detail-description {
  margin: 20px 0 0;
  color: #9bb0b5;
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-line;
}

.detail-section {
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 6px;
  color: #6f8a91;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0;
  color: #9bb1b6;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

/* ---------- Toast ---------- */

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(176, 226, 231, 0.18);
  border-radius: 10px;
  background: rgba(10, 27, 34, 0.94);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  color: #c2d7da;
  font-size: 11.5px;
  line-height: 1.55;
  backdrop-filter: blur(14px);
  animation: toast-in 220ms ease both;
}

.toast::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.toast.is-error::before {
  background: var(--danger);
}

.toast.is-leaving {
  animation: toast-out 220ms ease both;
}

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

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(680px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  text-align: center;
}

.not-found-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 122px;
  height: 122px;
  margin-bottom: 38px;
  border: 1px solid rgba(113, 232, 239, 0.16);
  border-radius: 50%;
}

.not-found-orbit::before,
.not-found-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(113, 232, 239, 0.08);
  border-radius: 50%;
}

.not-found-orbit::before {
  inset: -21px;
}

.not-found-orbit::after {
  inset: -46px;
}

.not-found-orbit img {
  width: 48px;
  height: 48px;
}

.not-found-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(185, 244, 90, 0.6);
}

.not-found-orbit span:nth-child(1) { top: -3px; left: 55px; }
.not-found-orbit span:nth-child(2) { right: 5px; bottom: 22px; background: var(--cyan); }
.not-found-orbit span:nth-child(3) { left: -12px; bottom: 35px; opacity: 0.4; }

.not-found .section-kicker {
  justify-content: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.15;
}

.not-found > p:not(.section-kicker) {
  max-width: 470px;
  margin: 20px 0 0;
  color: #819da4;
  font-size: 13.5px;
  line-height: 1.85;
}

.not-found-actions {
  display: flex;
  gap: 9px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
  }

  .float-note-a {
    right: -8px;
  }

  .float-note-b {
    left: -10px;
  }

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

  .open-panel {
    gap: 42px;
  }
}

@media (max-width: 940px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 54px;
    gap: 44px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-stage {
    width: min(660px, 100%);
    margin: 0 auto;
  }

  .hero-facts {
    max-width: 580px;
  }

  h1 {
    font-size: clamp(48px, 8vw, 74px);
  }

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

  .signal-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .open-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .open-panel-intro > p:not(.section-kicker) {
    max-width: 560px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 74px;
  }

  .faq-section .section-heading {
    margin-bottom: 6px;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    height: 68px;
    gap: 16px;
  }

  .admin-link {
    display: none;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .hero {
    padding-top: 42px;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 9px;
  }

  .hero-lede {
    margin-top: 22px;
    font-size: 14.5px;
  }

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

  .btn-hero {
    min-height: 50px;
    font-size: 13.5px;
  }

  .hero-facts {
    margin-top: 38px;
  }

  .hero-facts dt {
    font-size: 8px;
  }

  .hero-facts dd {
    font-size: 11px;
    white-space: normal;
  }

  .hero-stage {
    padding-bottom: 34px;
  }

  .float-note {
    display: none;
  }

  .instrument-card {
    transform: none;
  }

  .instrument-readout {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 16px 17px;
  }

  .readout-main strong {
    font-size: 40px;
  }

  .readout-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(171, 220, 226, 0.1);
    border-left: 0;
  }

  .readout-side > div {
    display: block;
  }

  .readout-side b {
    display: block;
    margin-top: 1px;
  }

  .signal-bar {
    margin-top: 16px;
    padding: 20px 0;
  }

  .signal-item {
    padding: 0 16px;
  }

  .signal-item b {
    font-size: 11.5px;
  }

  .signal-item small {
    font-size: 9px;
  }

  .software-section {
    padding-top: 78px;
  }

  .section-heading {
    display: block;
    margin-bottom: 26px;
  }

  .section-heading h2,
  .open-panel-intro h2 {
    font-size: 38px;
  }

  .section-intro {
    margin-top: 14px;
  }

  .library-toolbar {
    display: grid;
    gap: 11px;
  }

  .filter-row {
    gap: 2px;
    margin-left: -8px;
  }

  .library-search {
    width: 100%;
  }

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

  .app-grid.is-solo .app-card {
    display: flex;
    min-height: 0;
  }

  .app-grid.is-solo .app-visual {
    height: 158px;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(170, 220, 227, 0.09);
  }

  .app-grid.is-solo .app-body {
    padding: 17px;
  }

  .app-grid.is-solo .app-body h3 {
    font-size: 22px;
  }

  .app-grid.is-solo .app-summary {
    display: none;
  }

  .app-grid.is-solo .app-actions {
    max-width: none;
  }

  .app-grid.is-solo .app-monogram {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    font-size: 25px;
  }

  .app-grid.is-solo .app-monogram::before {
    inset: 9px;
    border-radius: 15px;
  }

  .app-visual {
    height: 158px;
  }

  .open-section {
    padding-top: 72px;
  }

  .open-panel {
    padding: 27px 23px;
    border-radius: 20px;
  }

  .browser-note {
    padding: 14px;
  }

  .faq-section {
    padding-bottom: 78px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 0 26px;
  }

  .footer-links {
    gap: 20px;
    padding-top: 0;
  }

  .footer-meta {
    margin-top: 6px;
  }

  .launch-modal,
  .detail-modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
    animation-name: sheet-up;
  }

  @keyframes sheet-up {
    from { opacity: 0; transform: translateY(30px); }
  }

  .detail-card {
    padding: 30px 22px calc(24px + env(safe-area-inset-bottom));
  }

  .detail-top {
    gap: 13px;
  }

  .detail-avatar {
    width: 55px;
    height: 55px;
    border-radius: 13px;
  }

  .detail-top h2 {
    font-size: 22px;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}

@media (max-width: 490px) {
  .brand-tag {
    display: none;
  }

  .topbar-actions .btn-compact {
    padding: 0 12px;
    font-size: 11.5px;
  }

  .topbar-actions .btn-compact svg {
    display: none;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -0.06em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
  }

  .hero-facts dt {
    margin: 0;
  }

  .signal-bar {
    grid-template-columns: 1fr;
  }

  .signal-item,
  .signal-item:nth-child(3) {
    padding: 0;
    border-left: 0;
  }

  .signal-item + .signal-item {
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .instrument-head {
    height: 48px;
    padding: 0 13px;
  }

  .instrument-title {
    gap: 9px;
    font-size: 8px;
  }

  .instrument-canvas {
    margin: 0 8px;
    border-radius: 8px;
  }

  .overlay-labels text {
    font-size: 20px;
  }

  .open-steps li {
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 10px;
  }

  .faq-list summary {
    font-size: 12.5px;
  }

  .faq-list details p {
    margin-right: 10px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .detail-card .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .drop-contour {
    stroke-dashoffset: 0;
  }
}
