:root {
  --bg: #060608;
  --bg-2: #0a0a0e;
  --surface: #0e0e13;
  --surface-2: #14141b;
  --surface-glass: rgba(16, 16, 22, 0.72);
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --specular: rgba(255, 255, 255, 0.09);
  --text: #ededf2;
  --text-dim: #9696a4;
  --text-muted: #60606d;
  --white: #f7f7fa;
  --velvet: #d9264e;
  --velvet-soft: rgba(217, 38, 78, 0.16);
  --velvet-border: rgba(217, 38, 78, 0.42);
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --blue: #38bdf8;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Segoe UI Variable', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

/* Liquid Glass theme override */
html[data-theme="glass"] {
  --bg: #07090d;
  --bg-2: #0c1018;
  --surface: rgba(20, 26, 38, 0.56);
  --surface-2: rgba(28, 36, 52, 0.62);
  --surface-glass: rgba(22, 28, 42, 0.54);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.24);
  --specular: rgba(255, 255, 255, 0.16);
  --velvet: #e11d48;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.56;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background 0.45s var(--ease-out);
}

/* Subtle velvet-silk top sheen + architectural dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 68% 36% at 22% -8%, rgba(217, 38, 78, 0.13), transparent 65%),
    radial-gradient(ellipse 52% 28% at 84% 4%, rgba(255, 255, 255, 0.045), transparent 62%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 45%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.55) 45%, transparent 92%);
  transition: opacity 0.45s ease;
}

html[data-theme="glass"] body::before {
  background:
    radial-gradient(ellipse 72% 44% at 18% -6%, rgba(225, 29, 72, 0.16), transparent 64%),
    radial-gradient(ellipse 60% 38% at 82% 8%, rgba(148, 163, 184, 0.14), transparent 62%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
}

/* Subtle film-grain overlay for tactile studio feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, footer {
  position: relative;
  z-index: 1;
}

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

.mono {
  font-family: var(--mono);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--velvet), #f43f5e 60%, var(--white));
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 0.9;
  }
  70% {
    box-shadow: 0 0 0 6px transparent;
    opacity: 1;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    opacity: 0.9;
  }
}

@keyframes resultSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition:
    opacity 0.72s var(--ease-out),
    transform 0.72s var(--ease-out),
    filter 0.72s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.topbar.scrolled {
  background: rgba(6, 6, 8, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

html[data-theme="glass"] .topbar {
  background: rgba(10, 14, 22, 0.62);
}

.topbar-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.wordmark:hover {
  opacity: 0.88;
}

.wordmark-mark {
  width: 10px;
  height: 10px;
  background: var(--velvet);
  box-shadow: 0 0 12px rgba(217, 38, 78, 0.6);
  display: inline-block;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
}

.wordmark:hover .wordmark-mark {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 16px rgba(217, 38, 78, 0.85);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.topbar-nav a {
  position: relative;
  padding: 5px 0;
  transition: color 0.2s ease;
}

.topbar-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--velvet);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.topbar-nav a:hover,
.topbar-nav a.is-current {
  color: var(--white);
}

.topbar-nav a:hover::after,
.topbar-nav a.is-current::after {
  transform: scaleX(1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme switcher pill (Velvet Dark / Liquid Glass) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease-out);
}

.theme-toggle:hover {
  color: var(--white);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--velvet);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="glass"] .theme-dot {
  background: #e2e8f0;
  box-shadow: 0 0 8px rgba(226, 232, 240, 0.8);
}

/* Status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: statusPulse 2.4s ease-out infinite;
}

.status-ok { color: var(--green); border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); }
.status-warn { color: var(--yellow); border-color: rgba(234, 179, 8, 0.3); background: rgba(234, 179, 8, 0.06); }
.status-err { color: var(--red); border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.06); }
.status-info { color: var(--blue); border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.06); }
.status-muted { color: var(--text-dim); border-color: var(--border); }

/* Buttons with specular sheen sweep */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--specular);
  transition: transform 0.22s var(--ease-out), background 0.22s ease, border-color 0.22s ease, box-shadow 0.26s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.16) 50%, transparent 80%);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  left: 140%;
}

.btn:hover {
  transform: translateY(-1.5px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-solid {
  background: var(--white);
  color: #08080a;
  border-color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 26px rgba(0, 0, 0, 0.48);
}

.btn-solid::after {
  background: linear-gradient(110deg, transparent 20%, rgba(217, 38, 78, 0.22) 50%, transparent 80%);
}

.btn-solid:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.14), 0 10px 26px rgba(0, 0, 0, 0.52);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero-stagger > * {
  opacity: 0;
  animation: fadeUp 0.72s var(--ease-out) forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.04s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.20s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.28s; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--velvet);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.85rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1.03rem;
  max-width: 540px;
  margin-bottom: 32px;
}

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

/* Cursor-reactive spotlight + specular border */
.spotlight {
  position: relative;
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.065),
    rgba(217, 38, 78, 0.03) 38%,
    transparent 68%
  );
  transition: opacity 0.3s ease;
}

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

/* Technical spec box */
.spec-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 var(--specular), 0 22px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.78s var(--ease-out) 0.22s forwards;
  transition: border-color 0.28s ease, transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}

.spec-box:hover {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 26px 56px rgba(0, 0, 0, 0.55);
}

.spec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-rows {
  display: flex;
  flex-direction: column;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  transition: background 0.18s ease, padding-left 0.2s var(--ease-out);
}

.spec-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-k {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-v {
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* Sections */
.section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--white);
}

.section-sub {
  color: var(--text-dim);
  font-size: 0.91rem;
  margin-top: 5px;
}

/* Input */
.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.22s ease;
}

.input:focus {
  border-color: var(--velvet-border);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--velvet-soft);
}

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

/* Feature catalog */
.fn-search {
  width: 310px;
  max-width: 100%;
}

.fn-tabs-wrap {
  position: relative;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.fn-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fn-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 32px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 -2px 0 var(--velvet), 0 6px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.34s var(--ease-spring), width 0.34s var(--ease-spring), height 0.25s var(--ease-spring), opacity 0.2s ease;
}

.fn-tab {
  position: relative;
  z-index: 1;
  padding: 7px 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.fn-tab:hover,
.fn-tab.active {
  color: var(--white);
}

.fn-tab-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-right: 6px;
  transition: color 0.2s ease;
}

.fn-tab.active .fn-tab-num {
  color: var(--velvet);
}

.fn-panel {
  display: none;
}

.fn-panel.active {
  display: block;
}

.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.fn-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--specular);
  transition: transform 0.26s var(--ease-out), border-color 0.25s ease, box-shadow 0.28s ease;
}

.fn-panel.active .fn-card {
  animation: cardIn 0.44s var(--ease-out) both;
}

.fn-panel.active .fn-card:nth-child(2) { animation-delay: 0.055s; }
.fn-panel.active .fn-card:nth-child(3) { animation-delay: 0.11s; }

.fn-card:hover {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.48);
}

.fn-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.fn-card-head h3 {
  font-size: 0.99rem;
  font-weight: 600;
  color: var(--white);
}

.fn-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.fn-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-list li {
  font-size: 0.87rem;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
  transition: transform 0.2s var(--ease-out), color 0.18s ease;
}

.fn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 5px;
  height: 1px;
  background: var(--text-muted);
  transition: width 0.22s var(--ease-out), background 0.2s ease;
}

.fn-list li:hover {
  color: var(--text);
  transform: translateX(3px);
}

.fn-list li:hover::before {
  width: 8px;
  background: var(--velvet);
}

.fn-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Chams chips */
.fn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.fn-chip {
  font-family: var(--mono);
  font-size: 0.73rem;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: default;
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fn-chip:hover {
  transform: translateY(-2px);
  color: var(--white);
  border-color: var(--chip-tint, var(--border-strong));
  background: color-mix(in srgb, var(--chip-tint, #ffffff) 14%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--chip-tint, #ffffff) 18%, transparent);
}

.fn-empty {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--specular);
  transition: transform 0.28s var(--ease-out), border-color 0.25s ease, box-shadow 0.28s ease;
}

.price-card:hover {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 18px 42px rgba(0, 0, 0, 0.5);
}

.price-card-featured {
  border-color: var(--velvet-border);
  background: linear-gradient(180deg, rgba(217, 38, 78, 0.09), var(--surface-glass) 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.price-card-featured:hover {
  border-color: rgba(217, 38, 78, 0.65);
}

.price-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.price-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.price-tag-pop {
  color: var(--white);
  border-color: var(--velvet-border);
  background: var(--velvet-soft);
}

.price-val {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  line-height: 1.1;
}

.price-val span {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 8px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.price-list {
  flex: 1;
  margin-bottom: 20px;
}

.price-btn {
  width: 100%;
}

/* Changelog */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cl-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--specular);
  padding: 18px 20px;
  transition: border-color 0.22s ease, transform 0.24s var(--ease-out);
}

.cl-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.cl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.cl-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cl-ver {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--velvet-soft);
  border: 1px solid var(--velvet-border);
  color: var(--white);
}

.cl-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--white);
}

.cl-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cl-body {
  color: var(--text-dim);
  font-size: 0.88rem;
  white-space: pre-wrap;
  line-height: 1.56;
}

/* Requirements & FAQ (60fps grid-template-rows accordion) */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 var(--specular);
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease;
}

.faq-plus {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring), color 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  color: var(--velvet);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease-out);
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > p {
  overflow: hidden;
  padding: 0 18px;
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.58;
  opacity: 0;
  transition: padding-bottom 0.34s var(--ease-out), opacity 0.28s ease;
}

.faq-item.open .faq-a > p {
  padding-bottom: 16px;
  opacity: 1;
}

/* Key checker & Support */
.checker-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 36px;
  align-items: start;
}

.checker-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--specular), 0 16px 40px rgba(0, 0, 0, 0.38);
  transition: border-color 0.25s ease;
}

.checker-panel:focus-within {
  border-color: var(--border-strong);
}

.checker-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.checker-form .input {
  flex: 1 1 220px;
}

.checker-result {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.checker-result.visible {
  display: block;
  animation: resultSlide 0.32s var(--ease-out) both;
}

.checker-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
  font-size: 0.86rem;
}

.checker-meta-k {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.legal-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-note a {
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal-note a:hover {
  color: var(--white);
  border-color: var(--velvet);
}

/* Support section */
.support-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.support-tickets {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
  animation: resultSlide 0.28s var(--ease-out) both;
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.ticket-msg {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 0.86rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.ticket-msg-admin {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.07);
}

.ticket-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ticket-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Pre-download modal */
.dl-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.dl-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.dl-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 var(--specular), 0 28px 72px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transform: translateY(16px) scale(0.975);
  transition: transform 0.32s var(--ease-spring);
}

.dl-modal.open .dl-dialog {
  transform: translateY(0) scale(1);
}

.dl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.dl-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.dl-body {
  padding: 20px;
}

.dl-intro {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.dl-steps {
  list-style: none;
  counter-reset: dlstep;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.dl-steps li {
  counter-increment: dlstep;
  position: relative;
  padding-left: 30px;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.dl-steps li::before {
  content: counter(dlstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--velvet-soft);
  border: 1px solid var(--velvet-border);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
  display: grid;
  place-items: center;
}

.dl-steps li strong {
  color: var(--white);
}

.dl-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

/* Legal document pages (/terms, /privacy) */
.doc-shell {
  padding: 56px 0 72px;
  border-bottom: 1px solid var(--border);
}

.doc-head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.doc-head h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 10px 0 8px;
}

.doc-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.doc-article {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.doc-section h2 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.doc-section p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 10px;
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.doc-list li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
}

.doc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--velvet);
}

.doc-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-dim);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--white);
}

@media (max-width: 880px) {
  .hero-grid,
  .checker-wrap,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .topbar-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-stagger > *, .spec-box {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
