:root {
  color-scheme: dark light;
  --bg: #0F0F10;
  --preview: #0F0F10;
  --panel: #18181B;
  --surface: #202024;
  --surface-strong: #18181B;
  --input: #18181B;
  --button: #202024;
  --button-hover: #2A2A2F;
  --text: #F8FAFC;
  --card-text: #F8FAFC;
  --input-text: #F8FAFC;
  --muted: #A1A1AA;
  --line: #2A2A2F;
  --line-strong: #52525B;
  --primary: #8B5CF6;
  --primary-hover: #7C3AED;
  --primary-text: #FFFFFF;
  --success: #22C55E;
  --success-text: #0B1220;
  --danger: #7F1D1D;
  --danger-text: #FEE2E2;
  --warning-bg: #241B10;
  --warning-line: #5A3D16;
  --nav-bg: rgba(24, 24, 27, 0.92);
  --shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  --page-max: 1180px;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F8FB;
    --preview: #ECF2F8;
    --panel: #FFFFFF;
    --surface: #F9FBFE;
    --surface-strong: #ECF2F8;
    --input: #FFFFFF;
    --button: #F1F5FA;
    --button-hover: #E3EBF5;
    --text: #0B1220;
    --card-text: #0B1220;
    --input-text: #0B1220;
    --muted: #5F6C7D;
    --line: #D7E0EA;
    --line-strong: #8091A8;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-text: #FFFFFF;
    --success: #16803A;
    --success-text: #FFFFFF;
    --danger: #B91C1C;
    --danger-text: #FFFFFF;
    --warning-bg: #FFF7E8;
    --warning-line: #E8C37D;
    --nav-bg: rgba(255, 255, 255, 0.92);
    --shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--preview) 100%);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
main { width: 100%; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--primary);
  color: var(--primary-text);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
}
.skip-link:focus {
  transform: translateY(0);
}
body > main:not(#start) {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}
h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}
h3 {
  margin: 0 0 10px;
  color: var(--card-text);
  font-size: 18px;
  line-height: 1.25;
}
p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
code {
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(clamp(18px, 4vw, 52px), calc((100vw - var(--page-max)) / 2));
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

body > main:not(#start) > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
body > main:not(#start) > header h1 {
  font-size: 28px;
  line-height: 1.15;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.site-nav,
.hero-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  font-weight: 650;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--primary-text);
  font-weight: 750;
  cursor: pointer;
  text-align: center;
}
.button:hover,
button:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.button.secondary,
button.secondary {
  background: var(--button);
  border-color: var(--line);
  color: var(--text);
}
.button.secondary:hover,
button.secondary:hover {
  background: var(--button-hover);
}
.button.ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.button.danger,
button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: var(--danger-text);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: 720px;
  padding: clamp(76px, 9vw, 118px) max(clamp(18px, 5vw, 74px), calc((100vw - var(--page-max)) / 2)) clamp(56px, 6vw, 78px);
  background:
    linear-gradient(180deg, rgba(15, 15, 16, 0.92), rgba(15, 15, 16, 0.98)),
    linear-gradient(135deg, rgba(139, 92, 246, 0.16), transparent 58%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-content {
  display: grid;
  gap: 22px;
  max-width: 620px;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  z-index: 1;
}
.hero-content h1 {
  color: #FFFFFF;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.9;
}
.lead {
  max-width: 610px;
  font-size: clamp(19px, 1.8vw, 24px);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
}
.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 0;
}
.hero-facts {
  max-width: 760px;
}
.quick-facts div,
.release-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}
.hero-facts div {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(17, 18, 15, 0.72);
  backdrop-filter: blur(12px);
}
.hero-facts dt,
.hero-facts dd {
  color: #FFFFFF;
}
.freeware-note {
  display: grid;
  gap: 6px;
  max-width: 760px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, var(--primary) 10%);
  color: var(--text);
}
.freeware-note strong {
  color: var(--text);
  font-size: 13px;
}
.freeware-note p {
  margin: 0;
  color: var(--muted);
}
.hero-freeware {
  background: rgba(17, 18, 15, 0.74);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}
.hero-freeware strong,
.hero-freeware p {
  color: #FFFFFF;
}
.hero-next {
  position: absolute;
  right: clamp(18px, 5vw, 74px);
  bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}
.hero-mockup {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 780px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}
dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

.section {
  padding: clamp(62px, 7vw, 94px) max(clamp(18px, 5vw, 74px), calc((100vw - var(--page-max)) / 2));
}
.muted-band {
  background: color-mix(in srgb, var(--surface-strong) 94%, var(--primary) 6%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 30px;
}
.section-heading-wide {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  max-width: var(--page-max);
  align-items: end;
}
.section-heading-wide > p {
  margin-bottom: 4px;
}
.copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1080px;
}
.product-overview {
  display: grid;
  gap: 28px;
}
.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1120px;
  margin: 0;
}
.capability-list div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.capability-list dd {
  font-weight: 700;
  line-height: 1.45;
}
.feature-grid,
.support-grid,
.news-grid,
.legal-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-card,
.legal-card {
  min-height: 166px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}
.example-card {
  position: absolute;
  display: grid;
  gap: 10px;
  align-content: start;
  width: min(31vw, 280px);
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
}
.example-grid {
  position: relative;
  display: grid;
  width: min(100%, 1040px);
  min-height: 760px;
  margin: 20px auto 0;
}
.example-card:nth-child(1) { left: 50%; top: 8%; }
.example-card:nth-child(2) { left: 82%; top: 28%; }
.example-card:nth-child(3) { left: 82%; top: 70%; }
.example-card:nth-child(4) { left: 50%; top: 91%; }
.example-card:nth-child(5) { left: 18%; top: 70%; }
.example-card:nth-child(6) { left: 18%; top: 28%; }
.example-card::before {
  content: "";
  position: absolute;
  inset: 34px 0 0;
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 13%, transparent), transparent 56%),
    linear-gradient(225deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 180ms ease;
}
.example-card:hover::before,
.example-card:focus-within::before {
  opacity: 1;
}
.example-card h3 {
  position: relative;
  z-index: 2;
  min-height: 26px;
  margin: 0;
  text-align: center;
}
.example-card p {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  align-items: end;
  min-height: calc(100% - 36px);
  margin: 36px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.20), rgba(17, 24, 39, 0.94));
  color: #F8FAFC;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}
.example-card:hover p,
.example-card:focus-within p {
  opacity: 1;
  transform: translateY(0);
}
.example-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #151713;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}
.card h2,
.legal-card h2 {
  font-size: 20px;
  line-height: 1.2;
}
.download-panel h3,
.archive-block h3 {
  font-size: 22px;
  line-height: 1.25;
}
.use-case-list {
  display: grid;
  gap: 0;
  max-width: var(--page-max);
  border-top: 1px solid var(--line);
}
.use-case-list article {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.news-card {
  display: grid;
  gap: 10px;
}
.news-card p {
  margin: 0;
}
.read-more,
.back-link {
  font-weight: 800;
}
.news-body {
  color: var(--muted);
  line-height: 1.65;
}
.news-body p,
.news-body ul,
.news-body ol,
.news-body blockquote,
.news-body pre {
  margin: 0 0 12px;
}
.news-body ul,
.news-body ol {
  padding-left: 22px;
}
.news-body h2,
.news-body h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}
.news-body pre {
  overflow-x: auto;
  padding: 14px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.news-detail-page {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 22px;
}
.news-detail {
  display: grid;
  gap: 16px;
}
.news-detail h1 {
  font-size: clamp(34px, 6vw, 62px);
}
.news-detail-body {
  margin-top: 12px;
  font-size: 17px;
}

.download-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 46%),
    var(--panel);
  color: var(--text);
}
.download-section .section-heading h2,
.download-section h3,
.download-section dt,
.download-section dd {
  color: var(--text);
}
.download-section p,
.download-section .muted {
  color: var(--muted);
}
.download-panel,
.archive-block {
  max-width: var(--page-max);
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}
.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: center;
}
.download-heading {
  display: grid;
  gap: 12px;
}
.download-freeware {
  max-width: 100%;
}
.download-heading h2,
.download-heading h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
}
.download-panel.notice {
  grid-template-columns: 1fr;
  border-color: var(--warning-line);
  background: var(--warning-bg);
}
.release-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.release-meta div {
  background: var(--input);
  border-color: var(--line);
}
.release-meta code {
  display: block;
  max-width: 100%;
  font-size: 12px;
}
.archive-block {
  margin-top: 24px;
}
.ad-shell {
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(100% - 36px, 1120px);
  min-height: 112px;
  margin: 28px auto;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  overflow: hidden;
}
.ad-slot-content {
  min-height: 128px;
}
.ad-slot-footer {
  min-height: 96px;
}
.ad-label {
  justify-self: start;
  align-self: start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.adsbygoogle {
  width: 100%;
  min-height: 90px;
}
.ad-placeholder {
  border-style: dashed;
}
.table-shell {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  margin-top: 14px;
}
th,
td {
  padding: 13px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}
.status.live { background: #14532D; color: #BBF7D0; }
.status.idle { background: var(--button); color: var(--text); }
.status.danger { background: var(--danger); color: var(--danger-text); }
.status.private { background: #4C1D95; color: #DDD6FE; }

label {
  display: block;
  color: var(--card-text);
  font-size: 13px;
  margin: 13px 0 6px;
}
input,
textarea,
select {
  width: 100%;
  background: var(--input);
  color: var(--input-text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  outline: 0;
}
input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}
textarea {
  min-height: 150px;
  resize: vertical;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--soft-shadow);
}
.stacked-card {
  margin-top: 18px;
}
.narrow-card {
  max-width: 480px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.toolbar > * {
  max-width: 100%;
}
.toolbar .button,
.toolbar button,
.editor-toolbar button {
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  max-width: none !important;
  min-height: 100vh;
  padding: 0 !important;
  background: var(--bg);
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  grid-auto-rows: min-content;
  gap: 8px;
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.admin-sidebar strong {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 18px;
}
.admin-nav-group {
  grid-column: 1 / -1;
  margin: 10px 8px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  font-weight: 750;
}
.admin-sidebar a:hover,
.admin-sidebar a:focus-visible,
.admin-sidebar a.active {
  background: var(--button-hover);
  text-decoration: none;
}
.admin-content {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 34px) 42px;
}
.admin-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}
.admin-titlebar h1 {
  font-size: 30px;
  line-height: 1.1;
}
.admin-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-user-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--input);
  font-weight: 750;
}
.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-status-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.admin-status-card h2 {
  margin: 0;
  font-size: 16px;
}
.admin-status-card p {
  margin: 0;
  color: var(--muted);
}
.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.admin-section-heading h2,
.admin-section-heading p {
  margin: 0;
}
.admin-filterbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: min(100%, 360px);
}
.admin-filterbar input,
.admin-filterbar select {
  width: auto;
  min-width: 160px;
}
.admin-form-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.admin-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.admin-checklist {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.compact-metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-weight: 800;
}
.admin-tabs a:hover,
.admin-tabs a.active {
  background: var(--primary);
  color: var(--primary-text);
  text-decoration: none;
}
.flash {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--primary) 18%, var(--surface));
  color: var(--text);
  border: 1px solid var(--primary);
}
.flash.error {
  background: #450A0A;
  color: #FECACA;
  border-color: #991B1B;
}
.inline-form { display: inline; }
.edit-release-form {
  min-width: 280px;
  margin-top: 10px;
}
.admin-news-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  max-width: 100%;
}
.editor-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
}
.wysiwyg-editor {
  min-height: 260px;
  padding: 14px;
  background: var(--input);
  color: var(--input-text);
  border: 1px solid var(--line);
  border-radius: 10px;
  line-height: 1.6;
}
.wysiwyg-editor:focus {
  border-color: var(--primary);
  outline: 0;
}
.news-admin-list {
  display: grid;
  gap: 14px;
}
.news-admin-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric-card {
  background: color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.metric-card strong {
  font-size: 28px;
  color: var(--text);
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}
.metric-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 220px;
  padding-top: 16px;
}
.metric-chart div {
  display: grid;
  align-items: end;
  gap: 8px;
  height: 190px;
}
.metric-chart span {
  display: block;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-hover));
}
.metric-chart strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.quick-actions {
  display: grid;
  gap: 10px;
}
.admin-content .card {
  box-shadow: none;
}
.admin-content table {
  margin-top: 0;
}
.admin-content th {
  background: var(--surface-strong);
}
.admin-content td {
  background: color-mix(in srgb, var(--surface) 96%, var(--primary) 4%);
}
.admin-content tr:hover td {
  background: color-mix(in srgb, var(--surface) 90%, var(--primary) 10%);
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
}
.release-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.artifact-upload-grid,
.artifact-list {
  display: grid;
  gap: 10px;
}
.artifact-upload {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}
.artifact-upload strong {
  color: var(--card-text);
}
.artifact-upload span,
.file-status {
  color: var(--muted);
  font-size: 12px;
}
.file-status.selected {
  color: var(--success);
}
.file-status.error,
.file-status.missing {
  color: var(--danger);
}
.artifact-list code {
  display: block;
  max-width: 260px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.wizard-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.step {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: var(--button);
  font-weight: 800;
  font-size: 13px;
}
.step.active {
  color: var(--primary-text);
  background: var(--primary);
  border-color: var(--primary);
}
.step.done {
  color: var(--success-text);
  background: var(--success);
  border-color: var(--success);
}

.legal-hero {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 74px) 28px;
}
.legal-hero .lead {
  margin-top: 16px;
}
.legal-layout {
  padding: 0 clamp(18px, 5vw, 74px) clamp(54px, 8vw, 92px);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
  gap: 24px;
  padding: 28px max(clamp(18px, 5vw, 74px), calc((100vw - var(--page-max)) / 2));
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.site-footer div,
.site-footer nav {
  display: grid;
  align-content: start;
  gap: 4px;
}
.site-footer .footer-brand {
  gap: 6px;
}
.site-footer strong {
  color: var(--text);
}
.site-footer span {
  color: var(--muted);
}
.site-footer a {
  color: var(--muted);
  width: fit-content;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-mockup {
    width: min(100%, 760px);
  }
  .feature-grid,
  .support-grid,
  .news-grid,
  .legal-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .example-grid {
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
  }
  .example-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    transform: none;
  }
  .section-heading-wide,
  .download-panel {
    grid-template-columns: 1fr;
  }
  .release-meta,
  .metric-grid,
  .admin-dashboard-grid,
  .capability-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    min-height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-titlebar {
    flex-direction: column;
  }
  .admin-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-section-heading {
    flex-direction: column;
  }
  .admin-filterbar {
    width: 100%;
    justify-content: stretch;
  }
  .admin-filterbar input,
  .admin-filterbar select {
    width: 100%;
  }
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-nav {
    width: 100%;
    align-items: stretch;
  }
  .site-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
  .quick-facts,
  .copy-grid,
  .feature-grid,
  .support-grid,
  .news-grid,
  .legal-layout,
  .example-grid,
  .release-meta,
  .capability-list,
  .grid,
  .form-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    grid-template-columns: 1fr;
  }
  .admin-status-grid {
    grid-template-columns: 1fr;
  }
  .use-case-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  table {
    min-width: 680px;
  }
}

/* SaaS visual system refinements */
:root {
  --accent: #2563EB;
  --accent-strong: #1D4ED8;
  --warm: #F59E0B;
  --rose: #F43F5E;
  --glass: color-mix(in srgb, var(--surface) 82%, transparent);
  --panel-border: color-mix(in srgb, var(--line) 72%, var(--primary) 28%);
}

body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, var(--accent) 8%) 0%, var(--bg) 42%, var(--preview) 100%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--line) 18%, transparent) 0 1px, transparent 1px 72px);
}

a,
.button,
button,
input,
textarea,
.card,
.feature-card,
.example-card img,
.admin-sidebar a,
.artifact-upload {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.example-card:focus-visible,
.wysiwyg-editor:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand img {
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.site-nav a {
  border-radius: 8px;
  padding: 8px 10px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  text-decoration: none;
}

.button,
button {
  border-radius: 8px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 18%, transparent);
}

.button.secondary,
button.secondary,
.button.ghost {
  box-shadow: none;
}

.button.danger,
button.danger {
  box-shadow: 0 10px 22px rgba(127, 29, 29, 0.22);
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, transparent 38%),
    linear-gradient(225deg, rgba(37, 99, 235, 0.14) 0%, transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px),
    linear-gradient(180deg, #0F0F10 0%, #18181B 72%, var(--bg) 100%);
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.12) 48%, transparent 78%),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent), transparent);
}

.hero-content {
  align-content: center;
}

.hero-actions {
  gap: 12px;
}

.hero-badges,
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-badges li,
.feature-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
}

.hero-badges li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px color-mix(in srgb, var(--primary) 80%, transparent);
}

.hero-facts div {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-facts div:hover,
.hero-mockup:hover {
  transform: translateY(-2px);
}

.hero-mockup {
  background: rgba(8, 10, 10, 0.74);
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
}

.product-overview {
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 46%),
    var(--glass);
  box-shadow: var(--soft-shadow);
}

.capability-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface) 86%, var(--primary) 6%);
}

.feature-card,
.legal-card,
.card,
.download-panel,
.archive-block,
.ad-shell {
  border-color: var(--panel-border);
}

.feature-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 38%, transparent), transparent 48%),
    linear-gradient(45deg, transparent 0 42%, color-mix(in srgb, var(--primary) 70%, transparent) 42% 58%, transparent 58% 100%),
    var(--input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 44%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

.feature-card:nth-child(2)::before {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 48%, transparent), transparent),
    repeating-linear-gradient(90deg, transparent 0 7px, color-mix(in srgb, var(--accent) 70%, transparent) 7px 10px),
    var(--input);
}

.feature-card:nth-child(3)::before {
  border-color: color-mix(in srgb, var(--warm) 56%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--warm) 42%, transparent), transparent),
    repeating-linear-gradient(0deg, transparent 0 8px, color-mix(in srgb, var(--warm) 70%, transparent) 8px 10px),
    var(--input);
}

.feature-card:nth-child(4)::before {
  border-color: color-mix(in srgb, var(--success) 56%, var(--line));
  background:
    linear-gradient(135deg, transparent 0 46%, color-mix(in srgb, var(--success) 70%, transparent) 46% 56%, transparent 56% 100%),
    linear-gradient(45deg, transparent 0 58%, color-mix(in srgb, var(--success) 70%, transparent) 58% 68%, transparent 68% 100%),
    var(--input);
}

.feature-card:hover,
.feature-card:focus-within,
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature-tags {
  margin-top: auto;
}

.feature-tags li {
  border-color: color-mix(in srgb, var(--line) 70%, var(--primary));
  color: var(--text);
  background: color-mix(in srgb, var(--input) 86%, var(--primary) 8%);
}

.example-grid::before {
  content: "";
  position: absolute;
  inset: 11% 17%;
  border: 1px dashed color-mix(in srgb, var(--primary) 40%, var(--line));
  border-radius: 50%;
  opacity: 0.55;
  pointer-events: none;
}

.example-grid::after {
  content: "LogiQR";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 50%;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--accent) 12%, transparent)),
    var(--surface);
  color: var(--text);
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: var(--soft-shadow);
  pointer-events: none;
}

.example-card {
  outline: none;
}

.example-card:hover,
.example-card:focus-visible {
  z-index: 5;
}

.example-card:hover img,
.example-card:focus-visible img {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 68%, var(--line));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.example-card:focus-visible p {
  opacity: 1;
  transform: translateY(0);
}

.example-card p {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.use-case-list article {
  position: relative;
}

.use-case-list article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 4px;
  height: calc(100% - 44px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.65;
}

.use-case-list h3 {
  padding-left: 16px;
}

.news-grid {
  align-items: stretch;
}

.news-card {
  min-height: 230px;
}

.news-card::before {
  display: none;
}

.news-card .muted:first-child {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--input);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.read-more {
  align-self: end;
  margin-top: auto;
}

.read-more::after,
.back-link::before {
  display: inline-block;
}

.read-more::after {
  content: " ->";
}

.back-link::before {
  content: "<- ";
}

#news > .muted,
.news-admin-list > .muted {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.news-detail {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 48%),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.news-detail h1 {
  max-width: 780px;
}

.news-detail .muted {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--input);
  font-weight: 800;
}

.news-detail-body {
  max-width: 760px;
}

.news-body a {
  font-weight: 800;
}

.news-body blockquote {
  padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: color-mix(in srgb, var(--surface-strong) 86%, var(--primary) 8%);
}

.download-panel,
.archive-block {
  position: relative;
  overflow: hidden;
}

.download-panel::before,
.archive-block::before,
.admin-titlebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
}

.download-panel .button {
  justify-self: start;
  min-width: 210px;
}

.download-panel.notice .button {
  margin-top: 4px;
}

.release-meta div {
  display: grid;
  align-content: start;
  min-height: 96px;
}

.release-meta code,
td code,
.artifact-list code {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  background: color-mix(in srgb, var(--bg) 70%, var(--input));
  color: color-mix(in srgb, var(--text) 92%, var(--primary));
}

.table-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

table {
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
}

th {
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--surface-strong) 90%, var(--primary) 5%);
}

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: color-mix(in srgb, var(--surface) 90%, var(--primary) 6%);
}

.status {
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status.live {
  border-color: color-mix(in srgb, var(--success) 48%, transparent);
}

.status.idle {
  border-color: var(--line);
}

.status.danger {
  border-color: color-mix(in srgb, var(--rose) 58%, transparent);
}

.status.private {
  border-color: color-mix(in srgb, #8B5CF6 58%, transparent);
}

input,
textarea,
select,
.wysiwyg-editor {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input:focus,
textarea:focus,
select:focus,
.wysiwyg-editor:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.card {
  position: relative;
}

.card:hover {
  transform: none;
}

body > main:not(#start):not(.admin-shell) {
  width: min(100% - 28px, 1120px);
  padding-top: clamp(26px, 5vw, 48px);
}

body > main:not(#start):not(.admin-shell) > header {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 48%),
    var(--surface);
  box-shadow: var(--soft-shadow);
}

.narrow-card {
  margin: 0 auto;
}

.admin-shell {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 96%, var(--accent) 4%), var(--bg)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--line) 16%, transparent) 0 1px, transparent 1px 64px);
}

.admin-sidebar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, var(--primary) 8%), var(--panel)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 46px);
}

.admin-sidebar strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar strong::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 46%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 34%, transparent), transparent),
    var(--input);
}

.admin-sidebar a {
  border: 1px solid transparent;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible,
.admin-sidebar a.active {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--line));
  background: color-mix(in srgb, var(--button-hover) 82%, var(--primary) 12%);
}

.admin-titlebar {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 50%),
    var(--surface);
}

.admin-tabs {
  background: color-mix(in srgb, var(--surface) 90%, var(--bg) 10%);
}

.admin-tabs a.active {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 20%, transparent);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.72;
}

.metric-card span {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-chart {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--line) 30%, transparent) 0 1px, transparent 1px 38px),
    var(--input);
}

.quick-actions .button {
  justify-content: flex-start;
}

.artifact-upload {
  border-style: dashed;
  min-height: 96px;
}

.artifact-upload:hover,
.artifact-upload:focus-within {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--input) 82%, var(--primary) 9%);
}

.editor-toolbar {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.editor-toolbar button {
  box-shadow: none;
}

.news-admin-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--surface) 92%, var(--bg) 8%);
}

.news-admin-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.sponsor-preview-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 34%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 48%),
    var(--input);
}

.sponsor-preview-media {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, transparent), transparent 48%),
    linear-gradient(45deg, transparent 0 35%, color-mix(in srgb, var(--primary) 50%, transparent) 35% 45%, transparent 45% 100%),
    var(--surface);
}

.sponsor-preview-card .ad-label {
  display: inline-flex;
  margin-bottom: 6px;
}

.sponsor-preview-card h3 {
  margin-bottom: 6px;
}

.sponsor-preview-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wizard-steps {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.step {
  flex: 1 1 160px;
  justify-content: center;
  border-radius: 8px;
}

.flash {
  box-shadow: var(--soft-shadow);
}

.flash.success {
  background: color-mix(in srgb, var(--success) 18%, var(--surface));
  border-color: var(--success);
}

@media (hover: none), (max-width: 980px) {
  .example-grid::before,
  .example-grid::after {
    display: none;
  }

  .example-card p {
    position: relative;
    min-height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .hero-badges li {
    color: var(--text);
    border-color: var(--line);
    background: var(--surface);
  }

  .sponsor-preview-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .hero-section {
    padding-top: 52px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-overview,
  .download-panel,
  .archive-block,
  .news-detail,
  .admin-titlebar,
  .card {
    padding: 16px;
  }

  .use-case-list h3 {
    padding-left: 12px;
  }

  .release-meta div {
    min-height: auto;
  }

  .admin-content {
    padding-inline: 14px;
  }

  .sponsor-preview-card {
    grid-template-columns: 1fr;
  }
}

/* Example SVG layout fix: wide, non-overlapping mockup cards */
#beispiele {
  overflow: hidden;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  width: min(100%, 1320px);
  min-height: auto;
  margin-top: clamp(28px, 4vw, 52px);
  padding: clamp(8px, 2vw, 18px) 0;
}

.example-grid::before {
  inset: 9% -6%;
  border-radius: 999px;
  transform: rotate(-5deg);
}

.example-grid::after {
  display: none;
}

.example-card,
.example-card:nth-child(1),
.example-card:nth-child(2),
.example-card:nth-child(3),
.example-card:nth-child(4),
.example-card:nth-child(5),
.example-card:nth-child(6) {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  min-width: 0;
  transform: none;
}

.example-card:nth-child(2),
.example-card:nth-child(5) {
  margin-top: clamp(26px, 4.5vw, 58px);
}

.example-card:nth-child(3),
.example-card:nth-child(4) {
  margin-top: clamp(10px, 2vw, 26px);
}

.example-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
}

.example-card p {
  top: 36px;
  min-height: auto;
}

@media (max-width: 980px) {
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .example-card:nth-child(2),
  .example-card:nth-child(3),
  .example-card:nth-child(4),
  .example-card:nth-child(5) {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin: flat utility interface */
.admin-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  background: var(--bg);
}

.admin-sidebar {
  gap: 4px;
  padding: 18px 12px;
  background: var(--panel);
}

.admin-sidebar strong::before,
.admin-titlebar::before,
.metric-card::after {
  display: none;
}

.admin-sidebar a {
  min-height: 36px;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.admin-sidebar a:hover,
.admin-sidebar a:focus-visible,
.admin-sidebar a.active {
  border-color: var(--line);
  background: var(--button-hover);
}

.admin-content {
  padding: 22px;
}

.admin-titlebar,
.admin-content .card,
.metric-card,
.table-shell,
.metric-chart,
.editor-toolbar,
.wizard-steps {
  box-shadow: none;
}

.admin-titlebar {
  margin-bottom: 16px;
  background: var(--surface);
}

.admin-titlebar h1 {
  font-size: 26px;
}

.admin-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.admin-upload-grid,
.admin-settings-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.admin-content .button,
.admin-content button {
  min-height: 36px;
  border-radius: 6px;
  box-shadow: none;
}

.admin-content .metric-card {
  background: var(--surface);
}

.admin-content td,
.admin-content tr:hover td {
  background: var(--surface);
}

.admin-content th {
  background: var(--surface-strong);
}

.admin-ad-meta {
  grid-template-columns: 1fr;
}

.admin-ad-meta div {
  min-height: auto;
}

@media (max-width: 980px) {
  .admin-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-dashboard-grid,
  .admin-upload-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-title-actions,
  .admin-filterbar {
    justify-content: stretch;
  }
  .admin-title-actions .button,
  .admin-user-chip,
  .admin-status-grid,
  .admin-filterbar input,
  .admin-filterbar select {
    width: 100%;
  }
  .admin-status-grid {
    grid-template-columns: 1fr;
  }
}
