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

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --text: #ffffff;
  --text-muted: hsl(0 0% 100% / 0.58);
  --border: hsl(0 0% 100% / 0.12);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --page-max: 1180px;
  --page-gutter: 24px;
  --frame-radius: 20px;
  --frame-border: hsl(0 0% 100% / 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.site-shell {
  width: min(var(--page-max), calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 16px 0 40px;
}

.site-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.frame-panel,
.hero-shell {
  border: 1px solid var(--frame-border);
  border-radius: var(--frame-radius);
  overflow: hidden;
  background: #050505;
}

.hero-shell {
  background: #000;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

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

.site-header {
  position: relative;
  z-index: 20;
  padding: 8px 4px 20px;
}

.site-header-inner {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0;
  border: none;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

.site-logo-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  transition: opacity 0.15s ease;
}

.site-logo:hover {
  opacity: 0.88;
}

.site-logo img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.chrome-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.chrome-icon--lg {
  width: 20px;
  height: 20px;
}

.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 64px 40px 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  overflow: hidden;
}

.hero-bg-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.hero-bg-scene > * {
  width: 100% !important;
  height: 100% !important;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(0 0% 0% / 0.28) 0%, transparent 22%, transparent 62%, hsl(0 0% 0% / 0.72) 100%),
    linear-gradient(90deg, hsl(0 0% 0% / 0.34) 0%, transparent 30%, transparent 70%, hsl(0 0% 0% / 0.22) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-scene {
    display: none;
  }
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 48px;
  align-items: center;
}

.hero-layout > * {
  min-width: 0;
}

.hero-copy {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(0 0% 100% / 0.04);
  color: hsl(0 0% 100% / 0.72);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  color: #fff;
}

.hero-title .text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.btn-download {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 168px;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  background: hsl(0 0% 92%);
}

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

.btn-download.is-downloading {
  pointer-events: none;
  opacity: 0.65;
}

.hero-preview {
  position: relative;
  width: 100%;
}

.demo-panel-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-shrink: 0;
}

.demo-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  background: hsl(0 0% 100% / 0.04);
  color: hsl(0 0% 100% / 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.demo-preview-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px hsl(0 0% 100% / 0.55);
}

.demo-preview-frame {
  position: relative;
  border: 1px solid var(--frame-border);
  border-radius: var(--frame-radius);
  background:
    linear-gradient(180deg, hsl(0 0% 100% / 0.03) 0%, transparent 28%),
    linear-gradient(135deg, #080808 0%, #000 55%, #050505 100%);
  padding: 10px;
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04),
    0 28px 72px hsl(0 0% 0% / 0.62),
    inset 0 1px 0 hsl(0 0% 100% / 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.demo-preview-frame:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.06),
    0 36px 88px hsl(0 0% 0% / 0.68),
    inset 0 1px 0 hsl(0 0% 100% / 0.08);
}

.demo-preview-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, hsl(0 0% 100% / 0.07) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(18px);
}

.demo-preview-cap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: calc(var(--frame-radius) - 6px);
  border: 1px solid hsl(0 0% 100% / 0.08);
  background: hsl(0 0% 100% / 0.025);
}

.demo-preview-cap img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.demo-preview-cap-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: hsl(0 0% 100% / 0.88);
}

.demo-preview-cap-tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  background: hsl(0 0% 100% / 0.03);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(0 0% 100% / 0.42);
}

.demo-preview-frame .demo-panel {
  position: relative;
  z-index: 1;
}

.demo-hint {
  margin-top: 14px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: hsl(0 0% 100% / 0.42);
}

.demo-hint em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: hsl(0 0% 100% / 0.62);
}

@media (prefers-reduced-motion: reduce) {
  .demo-preview-frame {
    transition: none;
  }

  .demo-preview-frame:hover {
    transform: none;
  }
}

.features-section {
  position: relative;
  padding: 72px 40px;
  background: #000;
}

.features-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

.section-eyebrow,
.features-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: hsl(0 0% 100% / 0.48);
}

.features-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.features-head .section-title,
.section-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
}

.feature-item {
  padding: 32px 32px 32px 0;
  border-right: 1px solid hsl(0 0% 100% / 0.1);
}

.feature-item:last-child {
  border-right: none;
  padding-right: 0;
}

.feature-item:not(:first-child) {
  padding-left: 32px;
}

.feature-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.feature-item-index {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: hsl(0 0% 100% / 0.32);
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: hsl(0 0% 100% / 0.72);
}

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

.feature-item h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.feature-item p {
  font-size: 14px;
  color: hsl(0 0% 100% / 0.56);
  line-height: 1.65;
  max-width: 28ch;
}

.promo-banner {
  position: relative;
  background: #000;
  overflow: hidden;
}

.promo-banner-scene-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 500;
}

.promo-banner-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.promo-banner-scene > * {
  width: 100% !important;
  height: 100% !important;
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-scene {
    display: none;
  }
}

.other-browsers--hero {
  margin-top: 0;
}

.download-cta {
  position: relative;
  overflow: hidden;
  padding: 125px 40px 140px;
  background: #000;
  text-align: center;
}

.download-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.download-cta-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}

.btn-download--cta {
  min-width: 148px;
  height: 46px;
  padding: 0 28px;
  border-radius: 8px;
  font-size: 15px;
}

.download-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
}

.download-cta-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  opacity: 1;
  pointer-events: none;
}

.download-cta-scene > * {
  width: 100% !important;
  height: 100% !important;
}

.download-cta-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, hsl(0 0% 0% / 0.55) 0%, transparent 28%, transparent 52%, hsl(0 0% 0% / 0.45) 100%),
    radial-gradient(ellipse 70% 55% at 50% 100%, transparent 0%, hsl(0 0% 0% / 0.35) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .download-cta-scene {
    display: none;
  }
}

.site-footer {
  margin-top: 16px;
  padding: 28px 40px 32px;
  background: #000;
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-clear-note {
  color: #f4f4f5;
  font-weight: 600;
}

.other-browsers--footer {
  width: 100%;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
}

.other-browsers-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.browser-alt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.browser-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid hsl(0 0% 100% / 0.1);
  background: hsl(0 0% 100% / 0.03);
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.browser-alt-link:hover {
  background: hsl(0 0% 100% / 0.06);
  border-color: hsl(0 0% 100% / 0.16);
}

.browser-alt-link.is-soon {
  color: hsl(0 0% 100% / 0.38);
  cursor: default;
}

.browser-alt-link.is-soon:hover {
  background: hsl(0 0% 100% / 0.03);
  border-color: hsl(0 0% 100% / 0.1);
}

.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.04);
}

.lang-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: #fff;
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-switch:has(button[data-lang="ru"][aria-pressed="true"])::before {
  transform: translateX(100%);
}

.lang-switch button {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: hsl(0 0% 100% / 0.48);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.32s ease;
}

.lang-switch button[aria-pressed="true"] {
  color: #000;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch::before,
  .lang-switch button {
    transition: none;
  }
}

#install {
  scroll-margin-top: 24px;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    align-items: center;
  }

  .demo-hint {
    text-align: center;
  }

  .demo-preview-label {
    align-self: center;
  }

  .hero-preview {
    max-width: 420px;
    margin: 0 auto;
  }

  .features-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
    border-top: none;
  }

  .feature-item,
  .feature-item:not(:first-child) {
    padding: 0 0 28px;
    border-right: none;
    border-bottom: 1px solid hsl(0 0% 100% / 0.1);
  }

  .feature-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-inner {
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .other-browsers--footer {
    text-align: center;
  }

  .browser-alt-list {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 14px;
    --frame-radius: 16px;
  }

  .site-shell {
    padding-top: 10px;
    padding-bottom: 28px;
  }

  .site-header {
    padding: 4px 2px 14px;
  }

  .site-main,
  .page-stack {
    gap: 12px;
  }

  .site-header-inner {
    min-height: auto;
  }

  .site-logo {
    gap: 10px;
  }

  .site-logo img {
    width: 36px;
    height: 36px;
  }

  .site-logo-name {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 48px 20px 40px;
  }

  .hero-title,
  .hero-lead {
    width: calc(100vw - 88px);
    max-width: calc(100vw - 88px);
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .features-section,
  .download-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding: 24px 20px 28px;
  }

  .features-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .download-cta {
    padding-top: 94px;
    padding-bottom: 114px;
  }

  .features-head {
    margin-bottom: 32px;
  }

  .feature-item {
    min-height: auto;
  }

  .demo-panel {
    width: 100%;
  }

  .demo-preview-frame {
    padding: 8px;
  }

  .demo-preview-cap {
    padding: 7px 8px;
  }
}

body.install-modal-open {
  overflow: hidden;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.install-modal[hidden] {
  display: none;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 0% / 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.install-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 32px 32px 28px;
  border-radius: var(--frame-radius);
  border: 1px solid var(--frame-border);
  background:
    linear-gradient(180deg, hsl(0 0% 100% / 0.03) 0%, transparent 22%),
    linear-gradient(135deg, #080808 0%, #000 55%, #050505 100%);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.04),
    0 32px 80px hsl(0 0% 0% / 0.65);
}

.install-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.04);
  color: hsl(0 0% 100% / 0.72);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

.install-modal-close:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-1px);
}

.install-modal-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: hsl(0 0% 100% / 0.48);
}

.install-modal-title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 24px;
  padding-right: 44px;
  color: #fff;
}

.install-fallback {
  margin: 0;
  text-align: center;
}

.install-fallback-link {
  color: hsl(0 0% 100% / 0.48);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.install-fallback-link:hover {
  color: #fff;
}

.install-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid hsl(0 0% 100% / 0.1);
}

.install-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
}

.install-step-index {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: hsl(0 0% 100% / 0.38);
  padding-top: 2px;
}

.install-step-text {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.install-step-text strong {
  color: #fff;
  font-weight: 600;
}

.install-media-wrap {
  border-radius: calc(var(--frame-radius) - 4px);
  overflow: hidden;
  border: 1px solid hsl(0 0% 100% / 0.1);
  background: #000;
  box-shadow: inset 0 1px 0 hsl(0 0% 100% / 0.05);
}

.install-media-wrap video,
.install-media-wrap img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

@media (max-width: 640px) {
  .install-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .install-modal-dialog {
    padding: 24px 18px 18px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 94vh;
  }

  .install-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .install-step-text {
    font-size: 14px;
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: #0a0a0a;
  --cc-primary-color: #fff;
  --cc-secondary-color: hsl(0 0% 100% / 0.58);
  --cc-btn-primary-bg: #fff;
  --cc-btn-primary-color: #000;
  --cc-btn-primary-border-color: #fff;
  --cc-btn-primary-hover-bg: hsl(0 0% 100% / 0.9);
  --cc-btn-primary-hover-color: #000;
  --cc-btn-primary-hover-border-color: hsl(0 0% 100% / 0.9);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: #fff;
  --cc-btn-secondary-border-color: hsl(0 0% 100% / 0.2);
  --cc-btn-secondary-hover-bg: hsl(0 0% 100% / 0.06);
  --cc-btn-secondary-hover-color: #fff;
  --cc-btn-secondary-hover-border-color: hsl(0 0% 100% / 0.28);
  --cc-separator-border-color: hsl(0 0% 100% / 0.12);
  --cc-toggle-on-bg: #fff;
  --cc-modal-border-radius: 0;
  z-index: 50;
}

#cc-main .cm {
  border-top: 1px solid hsl(0 0% 100% / 0.12);
  box-shadow: 0 -8px 32px hsl(0 0% 0% / 0.45);
}

#cc-main .cm__title {
  font-family: var(--font-body);
  font-weight: 600;
}

#cc-main .cm__desc {
  font-size: 14px;
  line-height: 1.5;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.admin-shell {
  width: 100%;
  padding: 0 0 32px;
}

.admin-shell .site-header {
  padding: 16px 32px 12px;
}

.admin-panel {
  padding: 8px 32px 48px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: #000;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

#admin-identity,
.admin-note {
  color: var(--text-muted);
}

.admin-note {
  max-width: 62ch;
  margin: 18px 0 28px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-button {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-button.secondary {
  border-color: hsl(0 0% 100% / 0.14);
  background: transparent;
  color: #fff;
}

.admin-button:disabled {
  color: hsl(0 0% 100% / 0.4);
  cursor: not-allowed;
}

.admin-screen[hidden] {
  display: none;
}

.admin-login {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  max-width: 420px;
  margin: 8px 0 28px;
}

.admin-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: hsl(0 0% 100% / 0.72);
  font-size: 14px;
  font-weight: 500;
}

.admin-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: 12px;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.admin-field input::placeholder {
  color: hsl(0 0% 100% / 0.32);
}

.admin-field input:hover {
  border-color: hsl(0 0% 100% / 0.36);
}

.admin-field input:focus {
  border-color: #fff;
  background: #161616;
}

.admin-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 1000px #111 inset;
  caret-color: #fff;
}

.admin-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.client-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.admin-presence {
  margin: 18px 0 8px;
  padding: 14px 16px;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 14px;
  background: #0c0c0c;
}

.admin-presence-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.admin-button.small {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.admin-button.danger {
  border-color: hsl(0 72% 58% / 0.5);
  background: hsl(0 72% 52% / 0.16);
  color: hsl(0 86% 78%);
}

.admin-button.danger:hover {
  border-color: hsl(0 72% 58% / 0.9);
  background: hsl(0 72% 52% / 0.28);
}

.admin-button.danger.is-armed {
  border-color: hsl(0 86% 62%);
  background: hsl(0 72% 52% / 0.55);
  color: #fff;
}

.cookie-title {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  color: hsl(0 0% 100% / 0.72);
  font-size: 13px;
}

.admin-hint {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 12px;
  background: hsl(0 0% 100% / 0.03);
  color: hsl(0 0% 100% / 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.client-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 14px;
  background: #0c0c0c;
  color: #fff;
  font: inherit;
  text-align: left;
  transition: border-color 120ms ease-out, background 120ms ease-out;
}

.client-card:hover {
  border-color: hsl(0 0% 100% / 0.34);
  background: #141414;
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
}

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

.client-id {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-time {
  flex: 0 0 auto;
  color: hsl(0 0% 100% / 0.56);
  font-size: 12px;
}

.client-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-badge {
  padding: 4px 9px;
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.05);
  color: hsl(0 0% 100% / 0.78);
  font-size: 12px;
  line-height: 1.3;
}

.client-badge.is-empty {
  color: hsl(0 0% 100% / 0.4);
}

.client-count {
  color: hsl(0 0% 100% / 0.48);
  font-size: 12px;
}

.admin-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px;
}

.admin-filters .admin-field {
  max-width: 320px;
}

.event-dialog {
  width: min(880px, calc(100vw - 48px));
  height: min(82vh, 760px);
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: 18px;
  background: #090909;
  color: #fff;
  color-scheme: dark;
  overflow: hidden;
  box-shadow: 0 28px 90px hsl(0 0% 0% / 0.65);
}

.event-dialog::backdrop {
  background: hsl(0 0% 0% / 0.66);
}

.event-dialog[open]::backdrop {
  animation: event-fade 180ms ease-out;
}

.event-dialog[open] .event-panel {
  animation: event-rise 180ms ease-out;
}

.event-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

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

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

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

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-dialog[open] .event-panel,
  .event-dialog[open]::backdrop {
    animation: none;
  }
}

.event-dialog-head {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 32px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
}

.event-dialog h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
}

.value-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 8px 32px 40px;
  scrollbar-color: hsl(0 0% 100% / 0.35) transparent;
}

.value-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 20px 0 8px;
  color: hsl(0 0% 100% / 0.48);
  font-size: 13px;
  font-weight: 500;
}

.value-group:first-child {
  padding-top: 12px;
}

/* ─── Cookie Editor window ──────────────────────────────────────────────── */

.cookie-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
}

.cookie-toolbar .admin-field {
  max-width: 360px;
}

.cookie-toolbar .admin-note {
  margin: 0;
}

/* The category search sits above the categories and spans the whole
   width of the window: it is the way into a long list of categories. */
.cookie-category-search {
  display: flex;
  flex: 0 0 auto;
  padding: 16px 32px 12px;
}

.cookie-category-search .admin-field {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.cookie-category-search .admin-field input {
  width: 100%;
}

.cookie-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow: auto;
  padding: 8px 32px 40px;
  scrollbar-color: hsl(0 0% 100% / 0.35) transparent;
}

.cookie-group-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: hsl(0 0% 100% / 0.08);
  color: hsl(0 0% 100% / 0.78);
}

.cookie-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 12px 32px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
  overflow-x: auto;
  scrollbar-width: thin;
}

.cookie-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.04);
  color: hsl(0 0% 100% / 0.72);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cookie-tab:hover {
  border-color: hsl(0 0% 100% / 0.24);
  color: hsl(0 0% 100% / 0.92);
}

.cookie-tab.is-active {
  border-color: hsl(0 0% 100% / 0.42);
  background: hsl(0 0% 100% / 0.12);
  color: #ffffff;
}

.cookie-tab .cookie-group-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.cookie-tab-title {
  max-width: 220px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-tab--more {
  border-style: dashed;
  color: hsl(0 0% 100% / 0.6);
}

.cookie-more-button {
  display: block;
  width: 100%;
  margin: 18px 0 6px;
  padding: 12px;
  border: 1px dashed hsl(0 0% 100% / 0.22);
  border-radius: 12px;
  background: transparent;
  color: hsl(0 0% 100% / 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.cookie-more-button:hover {
  border-color: hsl(0 0% 100% / 0.4);
  color: #ffffff;
}

.cookie-block {
  margin: 0 0 8px;
}

.cookie-block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 10px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
  color: hsl(0 0% 100% / 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  border-radius: 12px;
  background: hsl(0 0% 100% / 0.03);
}

.cookie-group-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-group-count {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.08);
  color: hsl(0 0% 100% / 0.66);
  font-size: 12px;
}

.cookie-group-plan {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid hsl(160 62% 40% / 0.4);
  border-radius: 999px;
  background: hsl(160 62% 40% / 0.14);
  color: #3fd3a7;
  font-size: 12px;
  font-weight: 600;
}

.cookie-group-plan.is-error {
  border-color: hsl(0 0% 100% / 0.14);
  background: hsl(0 0% 100% / 0.06);
  color: hsl(0 0% 100% / 0.55);
  font-weight: 400;
}

.icon-chatgpt { background: hsl(160 62% 40% / 0.16); color: #3fd3a7; }
.icon-claude { background: hsl(14 62% 55% / 0.18); color: #f0916b; }
.icon-grok { background: hsl(0 0% 100% / 0.14); color: #ffffff; }
.icon-google { background: hsl(214 84% 60% / 0.16); color: #7aa7ff; }
.icon-discord { background: hsl(235 86% 65% / 0.18); color: #9a8cff; }
.icon-roblox { background: hsl(2 78% 52% / 0.18); color: #ff7a6e; }
.icon-youtube { background: hsl(348 89% 56% / 0.18); color: #ff6b81; }
.icon-mail { background: hsl(214 70% 55% / 0.16); color: #8fb6ff; }
.icon-wallet { background: hsl(36 92% 55% / 0.18); color: #ffbb63; }
.icon-steam { background: hsl(202 70% 55% / 0.18); color: #7fd0ff; }
.icon-twitch { background: hsl(265 85% 65% / 0.18); color: #c0a6ff; }
.icon-telegram { background: hsl(200 87% 54% / 0.18); color: #6fd0ff; }
.icon-social { background: hsl(210 90% 60% / 0.16); color: #86b6ff; }
.icon-cart { background: hsl(36 96% 54% / 0.16); color: #ffc266; }
.icon-game { background: hsl(250 80% 62% / 0.18); color: #b3a3ff; }
.icon-browser { background: hsl(0 0% 100% / 0.08); color: #c2c6cc; }
.icon-key { background: hsl(42 55% 58% / 0.16); color: #e3cb8e; }
.icon-text { background: hsl(0 0% 100% / 0.08); color: #b6bac1; }

.cookie-domain {
  margin: 0;
  padding: 18px 0 8px;
  color: hsl(0 0% 100% / 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}

.cookie-row {
  padding: 12px 0 14px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
}

.cookie-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cookie-row-name {
  min-width: 0;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cookie-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin-top: 10px;
}

.cookie-field {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 2px 0;
}

.cookie-field.is-value {
  grid-column: 1 / -1;
}

.cookie-field-label {
  flex: 0 0 96px;
  color: hsl(0 0% 100% / 0.42);
  font-size: 12px;
}

.cookie-field-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cookie-field.is-value .cookie-field-value {
  max-height: 6em;
  overflow: auto;
}

.value-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid hsl(0 0% 100% / 0.1);
}

.value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.value-name {
  flex: 1 1 auto;
  min-width: 0;
  color: hsl(0 0% 100% / 0.55);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.value-text {
  min-width: 0;
  max-width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.value-row.is-collapsed .value-text {
  max-height: 2.9em;
  overflow: hidden;
}

.value-row.is-open .value-text {
  max-height: min(46vh, 360px);
  padding: 12px;
  border: 1px solid hsl(0 0% 100% / 0.12);
  border-radius: 12px;
  background: #111;
  overflow: auto;
}

.value-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.value-actions.is-end {
  justify-content: flex-end;
  padding: 0 0 8px;
}

.value-toggle,
.value-copy {
  height: 36px;
  min-width: 132px;
  padding: 0 10px;
  border: 1px solid hsl(0 0% 100% / 0.16);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.value-toggle:hover,
.value-copy:hover {
  border-color: #fff;
}

@media (max-width: 720px) {
  .client-list {
    grid-template-columns: 1fr;
  }

  .client-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-filters .admin-field {
    max-width: none;
  }

  .value-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .event-dialog {
    width: calc(100vw - 24px);
    height: min(88vh, 760px);
    max-width: calc(100vw - 24px);
  }

  .cookie-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cookie-toolbar .admin-field {
    max-width: none;
  }

  .cookie-fields {
    grid-template-columns: 1fr;
  }

  .cookie-field-label {
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .admin-shell .site-header,
  .admin-panel,
  .event-dialog-head,
  .value-list,
  .cookie-toolbar,
  .cookie-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-panel {
    padding-top: 8px;
    padding-bottom: 32px;
  }

  .event-dialog-head {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}











