:root {
  color-scheme: dark;
  --bg: #050507;
  --ink: #f7f5ee;
  --muted: #aaa8a0;
  --line: rgba(255, 255, 255, 0.16);
  --blue: #4c93ff;
  --mint: #55e6c1;
  --amber: #ffd36e;
  --rose: #ff6b8a;
  --paper: rgba(255, 255, 255, 0.08);
  --paper-strong: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

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

.home-page {
  min-height: 100svh;
  overflow: hidden;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(5, 5, 7, 0.98) 0%, rgba(8, 7, 10, 0.94) 47%, rgba(5, 5, 7, 0.98) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 92px);
}

.site-shell::before {
  position: absolute;
  inset: -20%;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(132deg, transparent 12%, rgba(76, 147, 255, 0.24) 38%, transparent 39%),
    linear-gradient(24deg, transparent 58%, rgba(255, 211, 110, 0.13) 65%, transparent 66%),
    linear-gradient(166deg, transparent 71%, rgba(85, 230, 193, 0.15) 76%, transparent 77%);
  filter: blur(14px);
  opacity: 0.72;
  transform: translate3d(calc(var(--mx, 0px) * -0.08), calc(var(--my, 0px) * -0.08), 0);
}

.site-shell::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.38) 100%);
  mix-blend-mode: screen;
  opacity: 0.46;
}

.site-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(76, 147, 255, 0.35);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(247, 245, 238, 0.7);
  font-size: 14px;
}

.top-nav a {
  transition: color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 116px);
  padding: 48px 24px 84px;
}

.signal-grid {
  position: absolute;
  inset: 8% 4% 12%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, transparent 0%, black 18%, black 78%, transparent 100%);
  opacity: 0.32;
}

.light-thread {
  position: absolute;
  width: 45vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
  opacity: 0.74;
  transform-origin: center;
}

.thread-a {
  top: 30%;
  right: 6%;
  color: var(--blue);
  transform: rotate(-18deg);
}

.thread-b {
  top: 62%;
  left: 13%;
  color: var(--mint);
  transform: rotate(13deg);
}

.thread-c {
  right: 18%;
  bottom: 16%;
  color: var(--rose);
  transform: rotate(28deg);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(620px, 92vw);
  margin: 13vh 0 0 max(5vw, calc((100vw - 1180px) / 2));
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.92);
}

.kicker {
  margin: 0 0 18px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 96px;
  line-height: 0.9;
  font-weight: 800;
}

.manifesto {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(247, 245, 238, 0.86);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 650;
}

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

.primary-action,
.quiet-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action {
  color: #06101f;
  background: var(--ink);
  box-shadow: 0 18px 46px rgba(255, 255, 255, 0.16);
}

.quiet-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(247, 245, 238, 0.82);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action:hover,
.quiet-action:hover,
.primary-action:focus-visible,
.quiet-action:focus-visible {
  transform: translateY(-2px);
}

.quiet-action:hover,
.quiet-action:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.dock-stage {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  --rail-scale: 1;
  height: min(42vh, 350px);
  min-height: 282px;
  pointer-events: none;
}

.dock-stage::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 52%;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.46) 32%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(76, 147, 255, 0.13), transparent 38%, rgba(85, 230, 193, 0.12));
}

.dock-glow {
  position: absolute;
  right: 7%;
  bottom: -28%;
  left: 7%;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(76, 147, 255, 0.36), rgba(85, 230, 193, 0.10) 42%, transparent 72%);
  filter: blur(26px);
  opacity: 0.86;
  transform: translate3d(calc(var(--rail-x, 0px) * 0.08), 0, 0);
}

.dock-perspective {
  position: absolute;
  inset: 0;
  overflow: visible;
  perspective: 1050px;
  perspective-origin: 50% 58%;
}

.clip-rail {
  position: absolute;
  bottom: 34px;
  left: calc(50% + var(--rail-x, 0px));
  width: 1px;
  height: 252px;
  transform-style: preserve-3d;
  transform: rotateX(6deg) scale(var(--rail-scale));
  transition: transform 180ms ease-out;
}

.clip-card {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: var(--z);
  display: grid;
  width: 228px;
  height: 228px;
  grid-template-rows: 1fr;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.036)),
    rgba(20, 20, 21, 0.82);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.94);
  transform:
    translate3d(calc(-50% + var(--x)), var(--arc-y), calc(var(--z) * 12px))
    rotateY(var(--yaw))
    rotateZ(var(--roll))
    scale(var(--scale));
  transform-style: preserve-3d;
  transform-origin: center bottom;
  transition: transform 220ms ease-out, border-color 180ms ease, opacity 180ms ease;
}

.clip-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.20), transparent 24%),
    linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, 0.36) 100%);
  opacity: 0.62;
}

.clip-card.is-selected {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.66),
    0 0 0 3px rgba(255, 255, 255, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.clip-preview {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 15px 14px;
  font-size: 13px;
  line-height: 1.32;
}

.clip-preview strong {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.28;
  text-overflow: ellipsis;
}

.clip-preview p {
  display: -webkit-box;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.70);
  font-size: 12px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.clip-preview-url p,
.clip-preview-code code {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.clip-preview-text strong {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.clip-preview-code {
  justify-content: center;
  color: #c9ffee;
}

.clip-preview-code code {
  color: #d4fff3;
}

.favicon,
.hotkey {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #151515;
  font-size: 13px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.favicon-text {
  background: linear-gradient(135deg, #d7f9ff, #6fa8ff);
}

.favicon-git {
  color: #fff;
  background: linear-gradient(135deg, #24292f, #111);
}

.favicon-doc {
  background: linear-gradient(135deg, #fff, #d9d4ff);
}

.hotkey {
  color: #fff;
  font-size: 26px;
  background: linear-gradient(135deg, #ff972f, #ff4d22);
}

.mock-shot {
  position: relative;
  height: 94px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), transparent 9%),
    linear-gradient(135deg, rgba(255, 83, 135, 0.94), rgba(67, 116, 255, 0.86) 48%, rgba(44, 255, 199, 0.70));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mock-shot span {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.mock-shot span:nth-child(1) {
  top: 18px;
  right: 22px;
  width: 42px;
  height: 8px;
}

.mock-shot span:nth-child(2) {
  right: 22px;
  bottom: 24px;
  width: 92px;
  height: 8px;
}

.mock-shot span:nth-child(3) {
  right: 22px;
  bottom: 40px;
  width: 58px;
  height: 8px;
}

.clip-preview-color {
  justify-content: center;
}

.color-chip {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.color-chip.mint {
  background: var(--mint);
}

.color-chip.amber {
  background: var(--amber);
}

.color-chip.rose {
  background: var(--rose);
}


.legal-page {
  color-scheme: light;
  min-height: 100vh;
  color: #1e1f24;
  background: #f6f5f0;
}

.legal-page .site-header {
  color: #1e1f24;
}

.legal-page .brand img {
  box-shadow: 0 12px 32px rgba(76, 147, 255, 0.22);
}

.legal-page .top-nav {
  color: rgba(30, 31, 36, 0.62);
}

.legal-page .top-nav a:hover,
.legal-page .top-nav a:focus-visible {
  color: #1e1f24;
}

.legal-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 96px;
}

.legal-kicker {
  margin: 0 0 14px;
  color: #4c5c68;
  font-size: 14px;
  font-weight: 800;
}

.legal-wrap h1 {
  color: #111216;
  font-size: 52px;
  line-height: 1.02;
}

.updated {
  margin: 18px 0 42px;
  color: #676b73;
  font-size: 15px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid rgba(30, 31, 36, 0.12);
}

.legal-section h2 {
  margin: 0 0 14px;
  color: #111216;
  font-size: 22px;
}

.legal-section p,
.legal-section li {
  color: #3c4047;
  font-size: 16px;
  line-height: 1.78;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-section a {
  color: #0b65d8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-footer {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 36px;
  color: #676b73;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    min-height: calc(100svh - 104px);
    padding-top: 22px;
  }

  .hero-copy {
    margin-top: 6vh;
  }

  h1 {
    font-size: 72px;
  }

  .manifesto {
    font-size: 24px;
  }

  .dock-stage {
    --rail-scale: 0.88;
    height: min(40vh, 314px);
    min-height: 252px;
  }

  .clip-rail {
    bottom: 22px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 32px);
    padding-top: 18px;
  }

  .brand span {
    display: none;
  }

  .top-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    padding: 28px 16px 260px;
  }

  .hero-copy {
    width: min(100%, 430px);
    margin: 6vh auto 0;
  }

  .kicker {
    font-size: 12px;
  }

  h1 {
    font-size: 52px;
  }

  .manifesto {
    max-width: 330px;
    font-size: 22px;
  }

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

  .primary-action,
  .quiet-action {
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }

  .signal-grid {
    inset: 15% -18% 7%;
    background-size: 52px 52px;
  }

  .light-thread {
    width: 84vw;
  }

  .dock-stage {
    --rail-scale: 0.72;
    height: 266px;
    min-height: 266px;
  }

  .clip-rail {
    bottom: 4px;
  }

  .clip-card {
    opacity: 0.96;
  }

  .clip-preview {
    padding: 14px 13px 8px;
  }

  .legal-wrap {
    width: calc(100% - 32px);
    padding-top: 36px;
  }

  .legal-wrap h1 {
    font-size: 38px;
  }
}

@media (max-height: 720px) {
  .hero-copy {
    margin-top: 6vh;
  }

  h1 {
    font-size: 64px;
  }

  .manifesto {
    font-size: 22px;
  }

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

  .dock-stage {
    height: 248px;
    min-height: 248px;
  }
}

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

  .site-shell::before {
    transform: none !important;
  }
}
