:root {
  --bg: #f6f7fb;
  --bg-soft: #eef0f7;
  --surface: #ffffff;
  --surface-2: #f8f9fd;
  --text: #171625;
  --text-2: #4d4b61;
  --muted: #7b7890;
  --line: #e4e3ee;
  --line-strong: #d2d0e2;
  --accent: #6c4cf1;
  --accent-hover: #5939df;
  --accent-soft: #efebff;
  --accent-on: #ffffff;
  --success: #17845b;
  --success-soft: #e7f7ef;
  --warning: #946200;
  --warning-soft: #fff5df;
  --shadow: 0 18px 60px rgba(30, 24, 70, 0.1);
  --shadow-soft: 0 8px 30px rgba(30, 24, 70, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

[data-theme="dark"] {
  --bg: #0d0c14;
  --bg-soft: #12111c;
  --surface: #171624;
  --surface-2: #1d1c2d;
  --text: #f3f2fa;
  --text-2: #c2c0d6;
  --muted: #8e8ba6;
  --line: #2a2840;
  --line-strong: #3b3858;
  --accent: #9a82ff;
  --accent-hover: #b09dff;
  --accent-soft: #251f45;
  --accent-on: #121020;
  --success: #65d6a6;
  --success-soft: #122d25;
  --warning: #f1c56b;
  --warning-soft: #332711;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 34px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-self: center;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
}

.topnav a {
  transition: color 0.16s ease;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.web-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.web-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 16px;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 84px 0 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 74px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--accent);
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 30px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.button-small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12px;
}

.button-disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.button-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent-on) 18%, transparent);
  font-size: 14px;
}

.hero-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  min-height: 380px;
}

.art-glow {
  position: absolute;
  inset: 12% 5% 2% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 68%);
  filter: blur(30px);
}

.art-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
}

.art-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.art-bar span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
}

.art-body {
  display: grid;
  grid-template-columns: 132px 1fr;
  min-height: 310px;
}

.art-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.art-logo {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-on);
  font-size: 10px;
  font-weight: 750;
}

.art-line {
  display: block;
  width: 76%;
  height: 7px;
  border-radius: 99px;
  background: var(--line);
}

.art-line.wide {
  width: 94%;
  margin-top: 6px;
}

.art-line.short {
  width: 52%;
}

.art-main {
  padding: 22px;
}

.art-kicker {
  display: block;
  width: 74px;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: var(--accent-soft);
}

.art-title {
  display: block;
  width: 54%;
  height: 18px;
  margin-bottom: 22px;
  border-radius: 99px;
  background: var(--line-strong);
}

.art-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.art-cards span {
  height: 66px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.art-chart {
  display: block;
  height: 88px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, transparent 12%, var(--accent-soft) 12% 22%, transparent 22% 34%, var(--accent-soft) 34% 45%, transparent 45% 58%, var(--accent-soft) 58% 68%, transparent 68% 80%, var(--accent-soft) 80% 90%, transparent 90%),
    var(--surface);
}

.art-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.art-rows span {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}

.art-rows span:nth-child(2) {
  width: 82%;
}

.art-rows span:nth-child(3) {
  width: 64%;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 28px;
  margin: 20px 0 0;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
}

.section {
  padding: 88px 0 10px;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-heading h2,
.requirements h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow),
.requirements-copy > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.download-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.download-card-wide {
  grid-column: span 12;
  min-height: 0;
}

.download-card h3 {
  margin: 18px 0 7px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.platform-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 700;
}

.platform-icon-staff {
  background: var(--success-soft);
  color: var(--success);
}

.platform-icon-manager {
  background: var(--warning-soft);
  color: var(--warning);
}

.platform-icon-cashlogy {
  background: var(--surface-2);
  color: var(--accent);
}

.card-version {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-ready {
  background: var(--success-soft);
  color: var(--success);
}

.status-soon {
  background: var(--warning-soft);
  color: var(--warning);
}

.card-copy {
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.download-row-muted {
  opacity: 0.7;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.download-name {
  font-size: 13px;
  font-weight: 650;
}

.download-detail {
  color: var(--muted);
  font-size: 11px;
}

.card-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.store-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: not-allowed;
  opacity: 0.72;
}

.store-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 9px;
  font-weight: 750;
}

.store-small,
.store-big {
  display: block;
  line-height: 1.2;
}

.store-small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-big {
  font-size: 13px;
  font-weight: 650;
}

.early-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.early-access h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.early-access p {
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-number {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.feature h3 {
  margin-bottom: 7px;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.feature p {
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}

.requirements {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
  padding-top: 96px;
  padding-bottom: 80px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13px;
}

.check-list li::before {
  content: "✓";
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  font-weight: 750;
}

.checksum-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.checksum-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checksum-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
}

.checksum-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.checksum-note code {
  display: inline;
  font-size: 10px;
}

.legal-wrap {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.legal-wrap h1 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-wrap h2 {
  margin: 30px 0 10px;
  font-size: 20px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal-wrap ul {
  padding-left: 22px;
}

.legal-wrap a {
  color: var(--accent);
}

.legal-card {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.legal-card h2 {
  margin-top: 0;
}

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

.legal-wrap h2[id] {
  scroll-margin-top: 96px;
}

.legal-wrap h3 {
  margin: 20px 0 8px;
  font-size: 15px;
  color: var(--text);
}

.legal-wrap strong {
  color: var(--text);
}

.legal-wrap a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-intro {
  font-size: 15px;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 6px;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.3;
  text-decoration: none;
}

.legal-toc a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.legal-table {
  width: 100%;
  margin: 14px 0 6px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.6;
}

.legal-table th {
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
}

.legal-note strong {
  color: var(--text);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 42px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand strong,
.footer-brand > div > span {
  display: block;
}

.footer-brand strong {
  font-size: 13px;
}

.footer-brand > div > span {
  color: var(--text-2);
  font-size: 11px;
}

.footer-brand .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--accent-on);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-2);
  font-size: 12px;
}

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-2);
  font-size: 11px;
}

@media (max-width: 980px) {
  .topnav {
    display: none;
  }

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

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }

  .hero-art {
    max-width: 620px;
    min-height: 320px;
  }

  .download-card {
    grid-column: span 6;
  }

  .download-card-wide {
    grid-column: span 12;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .topbar {
    padding: 14px 16px;
  }

  .web-link {
    display: none;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-table tr:last-child {
    border-bottom: 0;
  }

  .legal-table td {
    padding: 2px 0;
    border: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 260px;
  }

  .art-body {
    grid-template-columns: 92px 1fr;
    min-height: 250px;
  }

  .art-side {
    padding: 14px 10px;
  }

  .art-main {
    padding: 16px;
  }

  .section {
    padding-top: 64px;
  }

  .download-card {
    grid-column: span 12;
  }

  .download-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-row .button {
    width: auto;
  }

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

  .early-access {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .button:hover {
    transform: none;
  }
}

@media print {
  .topbar,
  .footer {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .legal-wrap {
    width: 100%;
    padding: 0;
  }
}
