:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0c0c0c;
  --panel-2: #121212;
  --text: #fafafa;
  --text-2: rgb(250 250 250 / 0.68);
  --text-3: rgb(250 250 250 / 0.44);
  --text-4: rgb(250 250 250 / 0.24);
  --fill: rgb(255 255 255 / 0.03);
  --fill-2: rgb(255 255 255 / 0.06);
  --fill-3: rgb(255 255 255 / 0.1);
  --line: rgb(255 255 255 / 0.075);
  --line-2: rgb(255 255 255 / 0.13);
  --line-3: rgb(255 255 255 / 0.24);
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f42;
  --offline: #80848e;
  --success: #3ddc84;
  --danger: #ff5f57;
  --warning: #f5c451;
  --gold: #f5c451;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1120px;
  --section-bottom: 72px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
  scrollbar-color: rgb(255 255 255 / 0.16) transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img:not([src]),
img[src=""] {
  visibility: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.8);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 680px at 50% -14%, rgb(255 255 255 / 0.075), transparent 62%),
    radial-gradient(900px 620px at 108% 112%, rgb(255 255 255 / 0.035), transparent 60%),
    var(--bg);
}

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

.wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 52%;
  opacity: 0.24;
}

.wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 44% at 50% 50%, rgb(5 5 5 / 0.8), rgb(5 5 5 / 0.25) 100%),
    linear-gradient(180deg, rgb(5 5 5 / 0.75), transparent 28%, transparent 66%, var(--bg));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--fill);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

.btn i {
  font-size: 13px;
}

.btn:hover {
  background: var(--fill-2);
  border-color: var(--line-3);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  box-shadow: 0 14px 34px -14px rgb(255 255 255 / 0.5);
}

.btn-danger {
  color: var(--danger);
  border-color: rgb(255 95 87 / 0.32);
  background: rgb(255 95 87 / 0.08);
}

.btn-danger:hover {
  background: rgb(255 95 87 / 0.16);
  border-color: rgb(255 95 87 / 0.55);
}

.btn.is-success {
  background: var(--success);
  border-color: var(--success);
  color: #04150b;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  gap: 8px;
  font-size: 13px;
}

.btn-sm i {
  font-size: 11px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s ease, background 0.2s ease, transform 0.35s var(--ease);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--fill-2);
}

.icon-btn:active {
  transform: scale(0.92);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s ease;
}

.link-btn i {
  font-size: 11px;
  transition: transform 0.3s var(--ease);
}

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

.link-btn:hover i {
  transform: translateX(3px);
}

.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: rgb(255 255 255 / 0.025);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.input::placeholder {
  color: var(--text-4);
}

.input:hover {
  border-color: var(--line-3);
}

.input:focus {
  border-color: rgb(255 255 255 / 0.42);
  background: var(--fill-2);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.05);
}

textarea.input {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}

.input.is-invalid {
  border-color: rgb(255 95 87 / 0.6);
  animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field-optional {
  margin-left: 6px;
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-4);
}

.counter {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--text-4);
  transition: color 0.2s ease;
}

.counter.is-warning {
  color: var(--warning);
}

.counter.is-limit {
  color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.status-text {
  min-height: 1.4em;
  font-size: 13px;
  color: var(--text-3);
}

.status-text.is-error {
  color: var(--danger);
}

.status-text.is-success {
  color: var(--success);
}

.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--fill-2);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.35s var(--spring), background 0.25s ease;
}

.switch input:checked + .switch-track {
  background: var(--text);
  border-color: var(--text);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
  background: var(--bg);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid rgb(255 255 255 / 0.8);
  outline-offset: 3px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--fill);
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}

.chip i {
  font-size: 11px;
  color: var(--text-3);
}

.chip img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.label i {
  font-size: 11px;
}

.label svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.card {
  position: relative;
  isolation: isolate;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 30px 70px -45px rgb(0 0 0 / 0.95);
  transition: border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.055), transparent 45%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.card:hover {
  border-color: var(--line-2);
}

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

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px 20px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-2);
  font-size: 14px;
  text-align: center;
  color: var(--text-3);
}

.empty-state i {
  font-size: 18px;
}

@media (hover: hover) {
  [data-tip] {
    position: relative;
  }

  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 40;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line-2);
    background: #161616;
    color: var(--text);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.2s ease, transform 0.3s var(--ease);
  }

  [data-tip]:hover::after,
  [data-tip]:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .tip-below[data-tip]::after {
    top: calc(100% + 10px);
    bottom: auto;
    transform: translate(-50%, -4px);
  }

  .tip-below[data-tip]:hover::after,
  .tip-below[data-tip]:focus-visible::after {
    transform: translate(-50%, 0);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(180deg, rgb(5 5 5 / 0.92) 30%, rgb(5 5 5 / 0));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
}

.nav {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(14 14 14 / 0.74);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 44px -20px rgb(0 0 0 / 0.95);
}

.nav-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  width: var(--w, 0);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--text);
  opacity: var(--o, 0);
  transform: translateX(var(--x, 0));
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s ease;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.3s ease;
}

.nav-link i {
  font-size: 12px;
}

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

.nav-link[aria-current="true"] {
  color: var(--bg);
}

.header-end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(14 14 14 / 0.74);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.glass-pill i {
  font-size: 11px;
  color: var(--text-3);
}

a.glass-pill:hover,
button.glass-pill:hover {
  color: var(--text);
  border-color: var(--line-3);
}

.glass-icon {
  width: 36px;
  padding: 0;
  justify-content: center;
}

.scroll-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.page-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 20px) max(var(--gutter), env(safe-area-inset-right)) var(--section-bottom) max(var(--gutter), env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.section::-webkit-scrollbar {
  display: none;
}

.section:focus {
  outline: none;
}

.section > .container,
.hero-inner,
.product-hero-inner {
  margin-block: auto;
}

.js .section:not(.is-current) *,
.js .section:not(.is-current) *::before,
.js .section:not(.is-current) *::after,
.js.has-dialog .section *,
.js.has-dialog .section *::before,
.js.has-dialog .section *::after,
.js:not(.is-entered) #app *,
.js:not(.is-entered) #app *::before,
.js:not(.is-entered) #app *::after {
  animation-play-state: paused !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

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

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: italic;
  color: var(--text-2);
}

.section-aside {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
  color: var(--text-3);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  transform: translateX(-50%);
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 36px;
  overflow: hidden;
  background: var(--line-2);
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 45%;
  background: var(--text);
  transform: translateY(-100%);
  animation: scroll-line 2.2s var(--ease) infinite;
}

.section-progress {
  position: fixed;
  left: max(var(--gutter), env(safe-area-inset-left));
  bottom: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
  pointer-events: none;
}

.section-progress-current {
  color: var(--text);
}

.section-progress-track {
  position: relative;
  width: 72px;
  height: 1px;
  overflow: hidden;
  background: var(--line-2);
}

.section-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform 0.6s var(--ease);
}

.section-progress-label {
  margin-left: 6px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.site-footer a {
  transition: color 0.2s ease;
}

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

.site-footer-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-4);
}

.heart {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 13px;
}

.dialog {
  position: fixed;
  inset: 0;
  width: min(100% - 32px, 380px);
  max-width: none;
  max-height: min(100dvh - 40px, 860px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.45s var(--ease), overlay 0.45s allow-discrete, display 0.45s allow-discrete;
}

.dialog[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .dialog[open] {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
}

.dialog::backdrop {
  background: rgb(3 3 3 / 0);
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, overlay 0.45s allow-discrete, display 0.45s allow-discrete;
}

.dialog[open]::backdrop {
  background: rgb(3 3 3 / 0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@starting-style {
  .dialog[open]::backdrop {
    background: rgb(3 3 3 / 0);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}

.dialog-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 26px 26px;
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.dialog-close:hover {
  transform: rotate(90deg);
}

.dialog-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--fill-2);
  font-size: 20px;
  color: var(--text);
}

.dialog-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.dialog[open] .dialog-icon {
  animation: pop 0.55s var(--spring) both;
}

.dialog-icon.is-danger {
  color: var(--danger);
  border-color: rgb(255 95 87 / 0.25);
  background: rgb(255 95 87 / 0.08);
}

.dialog-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.dialog-text {
  max-width: 290px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

.dialog-code {
  width: 100%;
  margin-top: 4px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--fill);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  word-break: break-all;
  user-select: all;
}

.dialog-code.is-small {
  font-size: 12.5px;
  color: var(--text-2);
}

.dialog-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.dialog-actions .btn {
  flex: 1;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgb(20 20 20 / 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.95);
  font-size: 13.5px;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.3s ease, transform 0.45s var(--ease);
}

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

.toast i {
  font-size: 13px;
  color: var(--text-2);
}

.toast-success i {
  color: var(--success);
}

.toast-error i {
  color: var(--danger);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }

  20%,
  80% {
    transform: translateX(2px);
  }

  30%,
  50%,
  70% {
    transform: translateX(-4px);
  }

  40%,
  60% {
    transform: translateX(4px);
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }

  70%,
  100% {
    transform: translateY(222.3%);
  }
}

@media (max-height: 860px) and (min-width: 861px) {
  :root {
    --section-bottom: 60px;
  }

  .section {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 10px);
  }

  .card {
    padding: 20px;
  }

  .site-footer {
    margin-top: 32px;
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .section-title {
    font-size: clamp(40px, 4.4vw, 54px);
  }

  .section-head {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
}

@media (max-width: 1140px) {
  .nav-link span {
    display: none;
  }

  .nav-link {
    width: 40px;
    padding: 0;
  }

  .nav-link i {
    font-size: 13px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
    --section-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-end {
    grid-column: 2;
  }

  .nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 60;
    padding: 5px;
    transform: translateX(-50%);
  }

  .nav-indicator {
    top: 5px;
    height: calc(100% - 10px);
  }

  .nav-link {
    width: 46px;
    height: 42px;
  }

  .section-progress,
  .scroll-cue {
    display: none;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-aside {
    text-align: left;
  }

  .toasts {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  .wallpaper img {
    object-position: 58% 50%;
  }

  .card {
    padding: 20px;
  }

  .nav-link {
    width: 42px;
  }

  .dialog-body {
    padding: 32px 20px 20px;
  }

  .brand-text {
    display: none;
  }
}

@media (max-width: 380px) {
  .nav-link {
    width: 38px;
  }
}

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