:root {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #111318;
  --panel-light: #181b21;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f7f8;
  --muted: #999ca5;
  --muted-light: #c7c8cc;
  --blue: #5f8cff;
  --blue-bright: #8dabff;
  --blue-glow: rgba(64, 116, 255, 0.22);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% -10%, rgba(80, 92, 125, 0.13), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.page-glow-one {
  top: 650px;
  left: -360px;
  background: #477fff;
}

.page-glow-two {
  top: 1380px;
  right: -380px;
  background: #658cff;
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  width: min(calc(100% - 48px), var(--max-width));
  height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.94),
    rgba(8, 9, 11, 0.72)
  );
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-header > .button {
  justify-self: end;
}

.site-header > .brand,
.site-header > .button {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.site-header.is-visible > .brand,
.site-header.is-visible > .button {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
}

.button-primary {
  border-color: rgba(115, 155, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(52, 80, 142, 0.35), rgba(17, 24, 41, 0.7)),
    rgba(255, 255, 255, 0.035);
  box-shadow:
    0 12px 46px rgba(36, 80, 195, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  border-color: var(--blue-bright);
  background:
    linear-gradient(180deg, rgba(69, 103, 181, 0.42), rgba(22, 31, 52, 0.8)),
    rgba(255, 255, 255, 0.05);
}

.button svg {
  width: 21px;
  fill: currentColor;
}

.button .arrow {
  color: var(--blue-bright);
  font-size: 19px;
}

.hero {
  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
  padding-top: 76px;
  text-align: center;
}

.hero-brand {
  width: max-content;
  margin: 0 auto 42px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 54px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.hero-brand img {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.42);
}

.hero h1 {
  margin: 0;
  font-size: clamp(70px, 9vw, 132px);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero h1 span {
  display: block;
  background: linear-gradient(180deg, #fff 5%, #888b95 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 590px;
  min-height: 3em;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.1vw, 23px);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.hero-copy.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: #8dabff;
  animation: blink 0.75s steps(1) infinite;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-top: 30px;
}

.requirement {
  color: #767983;
  font-size: 12px;
}

.hero-visual {
  position: relative;
  min-height: 700px;
  margin-top: 64px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(67, 103, 195, 0.2), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(40, 74, 161, 0.18), transparent 36%),
    linear-gradient(180deg, #0c0e12 0%, #090a0d 100%);
  box-shadow:
    0 70px 120px -80px rgba(53, 102, 235, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent);
}

.stage-orbit {
  position: absolute;
  left: 50%;
  top: 53%;
  border: 1px solid rgba(103, 141, 239, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.stage-orbit-one {
  width: 900px;
  height: 360px;
}

.stage-orbit-two {
  width: 1110px;
  height: 500px;
}

.picker-window,
.target-window {
  position: absolute;
  overflow: hidden;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(19, 21, 26, 0.88);
  box-shadow:
    0 38px 85px rgba(0, 0, 0, 0.48),
    inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(32px);
}

.picker-window {
  z-index: 3;
  top: 62px;
  left: 50%;
  width: min(690px, calc(100% - 80px));
  min-height: 400px;
  border-radius: 18px;
  transform: translateX(-58%) rotate(-1deg);
}

.search-field {
  height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #858891;
}

.search-field svg {
  width: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f0f2;
  font-family: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.search-field input::placeholder {
  color: #72757d;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.toolbar-button,
.icon-action,
.type-action {
  border: 0;
  background: transparent;
  color: #9699a1;
  cursor: pointer;
}

.toolbar-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 24px;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.toolbar-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e8e8ea;
}

.settings-button svg {
  width: 22px;
  stroke-width: 1.6;
}

.snippet-list {
  padding: 8px;
}

.snippet-row {
  width: 100%;
  min-height: 78px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition:
    background 160ms ease,
    opacity 160ms ease;
}

.snippet-row:hover,
.snippet-row.is-active {
  background: rgba(91, 135, 244, 0.2);
}

.snippet-row.is-active {
  box-shadow: inset 0 0 0 1px rgba(111, 151, 255, 0.08);
}

.snippet-row[hidden] {
  display: none;
}

.snippet-number {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #b4b6bd;
  font-size: 14px;
  font-weight: 700;
}

.snippet-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.snippet-content strong {
  font-size: 15px;
  font-weight: 650;
}

.snippet-content small {
  overflow: hidden;
  color: #8c8f97;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.snippet-row:hover .row-actions,
.snippet-row.is-active .row-actions {
  opacity: 1;
  pointer-events: auto;
}

.type-action {
  padding: 7px 8px;
  color: #b5c7fb;
  font-size: 12px;
  white-space: nowrap;
}

.icon-action {
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 15px;
}

.icon-action svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.type-action:hover,
.icon-action:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.delete-action:hover {
  color: #ff8179;
}

.empty-results {
  margin: 92px 0 0;
  color: #777a82;
  font-size: 14px;
  text-align: center;
}

.target-window {
  z-index: 4;
  right: max(60px, 7%);
  bottom: 62px;
  width: min(630px, calc(100% - 100px));
  min-height: 292px;
  border-radius: 19px;
  transform: rotate(0.8deg);
  background: rgba(13, 15, 19, 0.93);
}

.target-header {
  height: 58px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #c8c9ce;
  font-size: 13px;
}

.target-app,
.recording-state {
  display: flex;
  align-items: center;
  gap: 9px;
}

.target-app-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #5e70e5, #814bcd);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.recording-state {
  color: #777a83;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.recording-state > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #61de86;
  box-shadow: 0 0 9px rgba(97, 222, 134, 0.6);
}

.target-copy {
  min-height: 165px;
  padding: 38px 42px 20px;
  color: #ececef;
  font-size: clamp(20px, 2.4vw, 29px);
  letter-spacing: -0.025em;
  line-height: 1.4;
  white-space: pre-wrap;
}

.target-copy p {
  display: inline;
  margin: 0;
}

.target-copy.is-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(15px, 1.8vw, 21px);
  letter-spacing: -0.02em;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.08em;
  margin-left: 3px;
  vertical-align: -0.13em;
  background: #6d97ff;
  animation: blink 0.75s steps(1) infinite;
}

.target-footer {
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #70737b;
  font-size: 11px;
}

.typing-meter {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.typing-meter i {
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #6e94ff;
  animation: meter 900ms ease-in-out infinite alternate;
}

.typing-meter i:nth-child(2) {
  animation-delay: -600ms;
}

.typing-meter i:nth-child(3) {
  animation-delay: -300ms;
}

.typing-meter i:nth-child(4) {
  animation-delay: -750ms;
}

.typing-meter i:nth-child(5) {
  animation-delay: -150ms;
}

.shortcut-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(17, 19, 24, 0.8);
  color: #81848d;
  font-size: 11px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.shortcut-chip-left {
  left: 50px;
  top: 255px;
}

.shortcut-chip-right {
  right: 35px;
  top: 150px;
}

kbd {
  font-family: inherit;
}

.shortcut-chip kbd,
.hotkey-visual kbd {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: linear-gradient(180deg, #272a31, #17191e);
  color: #f2f2f3;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.7);
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.workflow {
  padding-top: 120px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: end;
  gap: 48px;
}

.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(45px, 5.8vw, 76px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.step-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    #0e1014;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  min-height: 370px;
  padding: 24px;
}

.step-number {
  color: #555861;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.step-visual {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotkey-visual {
  gap: 8px;
}

.hotkey-visual kbd {
  min-width: 47px;
  height: 47px;
  border-radius: 11px;
  font-size: 19px;
  box-shadow:
    0 4px 0 #050608,
    0 15px 28px rgba(0, 0, 0, 0.35);
}

.list-visual {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 30px;
}

.mini-search,
.mini-row {
  padding: 10px 12px;
  border-radius: 7px;
  color: #797c85;
  font-size: 10px;
}

.mini-search {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.22);
}

.mini-row {
  color: #a9abb2;
}

.mini-row.is-selected {
  background: rgba(89, 132, 244, 0.22);
  color: #d8e1ff;
}

.text-visual {
  padding-inline: 28px;
  color: #d5d6da;
  font-size: 17px;
}

.text-visual i {
  width: 2px;
  height: 22px;
  margin-left: 4px;
  background: var(--blue);
  animation: blink 0.75s steps(1) infinite;
}

.step-card h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.step-card > p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.closing {
  padding: 140px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing > img {
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-radius: 19px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.closing h2 {
  margin-bottom: 32px;
  font-size: clamp(54px, 7vw, 88px);
}

.closing .requirement {
  margin-top: 14px;
}

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: #656871;
  font-size: 12px;
}

.site-footer > span {
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(24, 27, 33, 0.94);
  color: #dedfe2;
  font-size: 13px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition:
    opacity 200ms ease,
    transform 200ms ease;
  backdrop-filter: blur(18px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  animation: reveal 850ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-delay-one {
  animation-delay: 80ms;
}

.reveal-delay-two {
  animation-delay: 160ms;
}

.reveal-delay-three {
  animation-delay: 240ms;
}

.reveal-delay-four {
  animation-delay: 360ms;
}

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

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes meter {
  to {
    height: 18px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-visual {
    min-height: 650px;
  }

  .picker-window {
    top: 60px;
    transform: translateX(-55%) rotate(-1deg);
  }

  .target-window {
    right: 35px;
  }

  .shortcut-chip {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading > p {
    max-width: 560px;
  }

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

  .step-card {
    min-height: auto;
  }

}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 32px);
    height: 78px;
  }

  .site-header .button {
    min-height: 38px;
    padding: 0 12px;
  }

  .site-header .button span:last-child {
    display: none;
  }

  .hero {
    width: calc(100% - 20px);
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(57px, 18vw, 82px);
  }

  .hero-brand {
    gap: 16px;
    margin-bottom: 32px;
    font-size: 36px;
  }

  .hero-brand img {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .hero-copy {
    padding-inline: 14px;
    font-size: 17px;
  }

  .hero-visual {
    min-height: 610px;
    margin-top: 64px;
    border-radius: 25px;
  }

  .picker-window {
    top: 45px;
    width: calc(100% - 28px);
    transform: translateX(-50%) rotate(-1deg);
  }

  .target-window {
    right: 14px;
    bottom: 42px;
    width: calc(100% - 28px);
    min-height: 250px;
  }

  .target-copy {
    min-height: 130px;
    padding: 28px 24px 14px;
    font-size: 20px;
  }

  .snippet-row {
    min-height: 62px;
  }

  .snippet-row:nth-child(n + 3) {
    display: none;
  }

  .icon-action {
    display: none;
  }

  .section-shell {
    width: calc(100% - 32px);
  }

  .workflow {
    padding-top: 90px;
  }

  .steps {
    margin-top: 32px;
  }

  .closing {
    padding: 105px 0 90px;
  }

  .site-footer {
    padding: 28px 0;
  }
}

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

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