:root {
  --bg: #050507;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --gray: #2c2c2e;
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --glass: rgba(22, 22, 26, 0.55);
  --glass-strong: rgba(28, 28, 32, 0.72);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-soft: rgba(255, 255, 255, 0.05);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55);
  --blur: blur(28px) saturate(165%);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 12% -8%, rgba(140, 150, 180, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 12%, rgba(90, 100, 130, 0.1), transparent 50%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(60, 65, 80, 0.12), transparent 55%);
  background-attachment: fixed;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
button, a { font-family: inherit; }
img { max-width: 100%; display: block; }

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 40;
  background: rgba(8, 8, 10, 0.42);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--stroke-soft);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  text-decoration: none;
  color: inherit;
}
.logo img,
.logo .logo-img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.12));
}
.logo-text {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}
.menu {
  position: relative;
  z-index: 50;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.menu span {
  display: block;
  height: 1.5px;
  width: 18px;
  background: #fff;
  margin-left: auto;
}

.menu-panel {
  position: absolute;
  top: 72px;
  right: 18px;
  z-index: 50;
  min-width: 220px;
  padding: 10px;
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.menu-panel[hidden] { display: none; }
.menu-panel a,
.menu-panel button {
  background: none;
  border: 0;
  color: #fff;
  text-align: left;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.menu-panel button:hover, .menu-panel a:hover { background: rgba(255, 255, 255, 0.06); }

.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px 48px;
}
.screen h1, .screen h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.screen h1 { font-size: clamp(56px, 9vw, 92px); }
.screen h2 { font-size: clamp(40px, 6vw, 64px); }
.sub {
  margin: 18px 0 0;
  max-width: 460px;
  color: #d4d4d4;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
}
.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stack {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.stack.slim { margin-top: 22px; }
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.pill.white {
  background: linear-gradient(180deg, #ffffff 0%, #e8e8ed 100%);
  color: #111;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.pill.gray {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}
.pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pill { transition: filter 0.15s ease, transform 0.15s ease; }
.fine {
  margin: 22px 0 0;
  max-width: 280px;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.4;
}
.features { justify-content: flex-start; padding-top: 120px; }
.shot {
  width: min(1200px, 100%);
  margin: 28px auto 8px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
}
.shot-mac {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 0;
}
.shot-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: rgba(18, 18, 22, 0.85);
  border-bottom: 1px solid var(--stroke-soft);
}
.shot-dots {
  display: inline-flex;
  gap: 7px;
}
.shot-dots i {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.shot-dots i:first-child { background: #ff5f57; }
.shot-dots i:nth-child(2) { background: #febc2e; }
.shot-dots i:nth-child(3) { background: #28c840; }
.shot-caption {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-right: 52px;
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: auto;
}
.shot-heading {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.shot-grid {
  width: min(1200px, 100%);
  margin: 20px auto 8px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 14px;
  align-items: start;
}
.shot-grid .shot {
  margin: 0;
  width: 100%;
}
.shot-narrow .shot-caption {
  margin-right: 28px;
  font-size: 11px;
}
@media (max-width: 900px) {
  .shot-grid {
    grid-template-columns: 1fr;
  }
}
.feat {
  width: min(980px, 100%);
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.feat article {
  padding: 16px 16px 8px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.feat h3 { margin: 0 0 8px; font-size: 15px; }
.feat ul { margin: 0; padding: 0 0 8px 16px; color: #bdbdbd; font-size: 14px; }
.feat li { margin: 4px 0; }
@media (max-width: 800px) {
  .feat { grid-template-columns: 1fr; }
}
.plan {
  width: min(100%, 380px);
  margin-top: 8px;
  padding: 22px 20px 20px;
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 22px;
  margin-bottom: 6px;
}
.plan-top span { font-size: 40px; font-weight: 650; letter-spacing: -0.04em; }
.plan > p { color: var(--muted); margin: 0 0 18px; }
.plan .pill { width: 100%; margin-top: 10px; }

.dash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 48px;
  text-align: center;
}
.dash h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 80px);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1;
}
.dash .sub { margin-top: 16px; }
.dash form, .dash-result {
  width: min(100%, 380px);
  margin-top: 28px;
  text-align: left;
}
.dash label {
  display: block;
  font-size: 13px;
  color: #a1a1a1;
  margin-bottom: 8px;
}
.dash input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
  margin-bottom: 12px;
}
.dash input:focus { outline: 1px solid #444; }
.dash .pill { width: 100%; }
.dash-error { color: #f87171; font-size: 14px; margin: 12px 0 0; }
.dash-result {
  display: none;
  padding: 18px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: #0a0a0a;
}
.dash-result.visible { display: block; }
.dash-result strong { display: block; margin-bottom: 8px; }
.dash-key {
  margin: 0 0 12px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
  word-break: break-all;
}
.back {
  position: fixed;
  top: 22px;
  left: 22px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Full customer dashboard */
.dash-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1040px;
  margin: 0 auto;
}
.dash-page.dash-authed {
  padding: 96px 20px 48px;
}
.dash-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 48px;
}
.dash-gate[hidden] { display: none !important; }
.dash-gate-card {
  width: min(100%, 460px);
  padding: 36px 32px 32px;
  text-align: center;
}
.dash-gate-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.04em;
  font-weight: 650;
}
.dash-gate-card .sub {
  margin-top: 12px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #c8c8d0;
}
.dash-gate-card .dash-error {
  text-align: center;
  margin-top: 14px;
}
.dash-app-title {
  margin: 0;
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: -0.04em;
  font-weight: 650;
}
.dash-app-sub {
  margin-top: 10px;
  text-align: left;
  max-width: none;
}
.dash-login {
  width: 100%;
  margin-top: 26px;
  text-align: left;
}
.dash-login label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.dash-login input {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 0 16px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dash-login input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.dash-login .pill { width: 100%; }
.dash-app[hidden],
.dash-login[hidden] { display: none !important; }
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 18px;
}
.dash-toolbar .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-toolbar .pill {
  height: 44px;
  padding: 0 20px;
  width: auto;
  font-size: 14px;
}
.dash-toolbar .pill.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: #fff;
  backdrop-filter: blur(12px);
}
.dash-hero {
  padding: 22px 22px 20px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}
.dash-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}
.dash-hero h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.dash-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}
.dash-badge.bound {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.35);
}
.dash-time {
  margin: 18px 0 0;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.dash-time span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-time-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.dash-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border-radius: 18px;
}
.dash-download .pill {
  flex-shrink: 0;
}
.dash-progress {
  margin-top: 16px;
  height: 8px;
  border-radius: 999px;
  background: #1a1a1a;
  overflow: hidden;
}
.dash-progress > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e5e5e5, #fff);
  transition: width 0.4s ease;
}
.dash-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #737373;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 800px) {
  .dash-grid { grid-template-columns: 1fr; }
}
.dash-card {
  padding: 16px 16px 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.dash-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #737373;
  margin-bottom: 8px;
}
.dash-card .value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.dash-card .value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.dash-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8a8a94;
}
.dash-hint a {
  color: #d4d4d8;
  text-decoration: underline;
}
.dash-key-row {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.dash-key-row code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  word-break: break-all;
  flex: 1;
  min-width: 200px;
}
.dash-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}
.dash-links a {
  color: #d4d4d4;
  text-decoration: none;
}
.dash-links a:hover { color: #fff; text-decoration: underline; }
