:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --panel: #11151c;
  --panel-2: #0f1218;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(226, 226, 236, 0.62);
  --purple: #9f6bff;
  --purple-2: #7a4bf0;
  --container: min(100% - 72px, 1340px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.035), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
img, svg { max-width: 100%; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.concept-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.035);
  background: rgba(9, 10, 15, .62);
  backdrop-filter: blur(16px);
}
.concept-nav-inner {
  width: var(--container);
  height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 24px;
}
.concept-brand { justify-self: start; display: inline-flex; align-items: center; }
.concept-brand img { width: 44px; height: 44px; display: block; object-fit: contain; }
.concept-nav-links { display: flex; justify-content: center; align-items: center; gap: clamp(34px, 4.6vw, 64px); }
.concept-nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 34px; color: rgba(255,255,255,.82); font-size: 16px; font-weight: 650; }
.concept-nav-links a:hover, .concept-nav-links a.active { color: #fff; }
.concept-nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 99px; background: var(--purple); box-shadow: 0 0 18px rgba(159,107,255,.65); }
.concept-login { justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 104px; height: 42px; padding: 0 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 7px; background: linear-gradient(180deg, #7f50f2, #5731c2); color: #fff; box-shadow: 0 16px 34px rgba(89,48,197,.22); font-size: 16px; font-weight: 650; }
.concept-login svg { width: 19px; height: 19px; }

.concept-home-page { overflow: hidden; }
.concept-home-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 32%, rgba(255,255,255,.045), transparent 28%), radial-gradient(circle at 20% 90%, rgba(154,101,255,.08), transparent 30%), radial-gradient(circle at 78% 92%, rgba(154,101,255,.07), transparent 34%); }
.concept-shell { position: relative; min-height: 100vh; isolation: isolate; }
.concept-main { position: relative; z-index: 1; min-height: calc(100vh - 76px); overflow: hidden; }
.concept-hero { min-height: calc(100vh - 76px); display: grid; justify-items: center; align-content: center; gap: 18px; padding: 0 24px 92px; text-align: center; }
.concept-title { margin: 0; color: #fff; font-size: clamp(84px, 10vw, 148px); font-weight: 850; line-height: .82; letter-spacing: -.055em; text-transform: lowercase; text-shadow: 0 18px 52px rgba(0,0,0,.42); }
.concept-title span, .concept-title strong { display: inline-block; font: inherit; }
.concept-title strong { color: var(--purple); font-weight: 900; margin-inline: .015em; }
.concept-hero p { margin: 0; color: rgba(226,226,236,.58); font-size: clamp(14px, 1.3vw, 19px); font-weight: 650; letter-spacing: .34em; text-transform: uppercase; }
.concept-hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.concept-hero-button { display: inline-flex; align-items: center; justify-content: center; min-width: 126px; height: 44px; padding: 0 20px; border-radius: 8px; font-size: 15px; font-weight: 750; }
.concept-hero-button.primary, .btn, .download-button.primary, button[type="submit"] { border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, #a978ff, #7447e8); color: #fff; box-shadow: 0 16px 36px rgba(116,71,232,.24); }
.concept-hero-button.secondary, .download-button:not(.primary), .btn-secondary { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); color: #fff; }
.concept-wave { position: absolute; left: 50%; bottom: -105px; width: 150vw; height: 300px; transform: translateX(-50%) rotate(-1deg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; pointer-events: none; }
.concept-wave-one { z-index: 1; bottom: -80px; background: rgba(255,255,255,.045); clip-path: ellipse(58% 40% at 32% 60%); }
.concept-wave-two { z-index: 0; bottom: -142px; background: rgba(255,255,255,.035); clip-path: ellipse(64% 44% at 66% 44%); }

.site-shell, .page { width: 100%; min-height: 100vh; margin: 0; padding: 0; background: transparent; }
.main, .page > main, .download-only-main, .simple-auth-main, .simple-support-main { width: min(100% - 72px, 1120px); min-height: calc(100vh - 76px); margin: 0 auto; padding: 34px 0 64px; display: grid; align-items: start; justify-content: stretch; gap: 20px; }
.marketplace-page { width: var(--container); max-width: 1340px; }
footer, .site-footer, .copy, .kicker, .subtitle, .note, .download-card p, .support-card > p, .login-card > p:not(.message), .card > p:not(.message) { display: none !important; }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1040px; margin: 0 auto; }
.download-card, .login-card, .support-card, .card, .public-product-card, .products-status, .products-toolbar { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: none; }
.download-card { min-height: 190px; padding: 24px; display: grid; align-content: start; gap: 18px; }
.download-card h3, .login-card h2, .support-card h2, .card h2 { margin: 0; color: #fff; font-size: 24px; line-height: 1.15; }
.icon-tile { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: rgba(159,107,255,.14); color: #d8c7ff; }
.download-button, .btn, button[type="submit"] { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 800; }

.auth-panel, .support-panel, .panel { width: 100%; max-width: 680px; justify-self: center; }
.login-card, .support-card, .card { padding: 28px; }
form, .support-form, .form-grid { display: grid; gap: 14px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field, .users-field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
label, .field label { color: #fff; font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: #080a0f; color: #fff; outline: none; }
textarea { min-height: 150px; padding: 13px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(166,179,195,.72); }
input:focus, select:focus, textarea:focus { border-color: rgba(159,107,255,.72); box-shadow: 0 0 0 3px rgba(159,107,255,.16); }
.message, .form-status { min-height: 20px; color: var(--muted); font-size: 13px; }
.message.error, .form-status.error { color: #ff8ca0; }
.message.success { color: #8dffca; }
.links { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.links button, .links a { padding: 0; border: 0; background: transparent; color: #fff; font-size: 14px; font-weight: 750; box-shadow: none; }
.links button:hover, .links a:hover { color: #d8c7ff; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.checkbox-field input { width: auto; min-height: 0; }

.products-toolbar { position: sticky; top: 76px; z-index: 90; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px; background: rgba(17,21,28,.94); backdrop-filter: blur(14px); }
.products-search { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: #080a0f; color: #d8c7ff; }
.products-search input { min-height: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.products-search input:focus { box-shadow: none; }
.products-filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.product-filter { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.025); color: #d7d7de; font-size: 13px; font-weight: 800; }
.product-filter.active { background: #b58cff; color: #140b23; border-color: #b58cff; }
.products-status { min-height: 118px; display: grid; place-items: center; padding: 24px; color: #cfc5ee; text-align: center; }
.public-products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.public-product-card { overflow: hidden; }
.public-product-media { height: 180px; display: grid; place-items: center; background: #151923; }
.public-product-media img { width: 100%; height: 100%; object-fit: cover; }
.public-product-media span { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid rgba(159,107,255,.45); border-radius: 14px; background: rgba(159,107,255,.12); color: #e7dbff; font-size: 22px; font-weight: 900; }
.public-product-body { display: grid; gap: 14px; padding: 20px; }
.public-product-top { display: flex; justify-content: space-between; gap: 12px; }
.product-type-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(159,107,255,.12); color: #e7dbff; font-size: 12px; font-weight: 850; }
.public-product-card h2 { margin: 0; font-size: 22px; }
.public-product-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.public-product-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.public-product-card dl div { min-width: 0; padding: 10px; background: var(--panel-2); }
.public-product-card dt { color: rgba(226,226,236,.52); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.public-product-card dd { overflow: hidden; margin: 4px 0 0; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.public-product-action { width: 100%; }

@media (max-width: 820px) {
  :root { --container: min(100% - 30px, 1340px); }
  .concept-navbar, .concept-nav-inner { height: auto; min-height: 78px; }
  .concept-nav-inner { grid-template-columns: auto auto; gap: 12px; padding: 12px 0; }
  .concept-brand img { width: 42px; height: 42px; }
  .concept-nav-links { grid-column: 1 / -1; justify-content: flex-start; gap: 24px; overflow-x: auto; padding-bottom: 4px; }
  .concept-nav-links a { white-space: nowrap; font-size: 15px; }
  .main, .page > main, .download-only-main, .simple-auth-main, .simple-support-main { width: min(100% - 28px, 1120px); min-height: auto; padding: 26px 0 48px; }
  .download-grid, .form-grid, .public-products-grid, .public-product-card dl { grid-template-columns: 1fr; }
  .products-toolbar { position: static; grid-template-columns: 1fr; }
  .products-filter-row { justify-content: flex-start; }
  .concept-title { font-size: clamp(68px, 22vw, 108px); }
  .concept-hero { padding-bottom: 76px; }
}