:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #0d0f14;
  --panel: #111319;
  --panel-2: #171a22;
  --panel-3: #202631;
  --text: #f3f5f7;
  --muted: #aeb6c2;
  --line: #2a303a;
  --red: #ee1f36;
  --red-dark: #9e1222;
  --steel: #7e8a98;
  --focus: #f4c95d;
  --ok: #61d394;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.overlay-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}

.brand-logo {
  width: clamp(142px, 18vw, 230px);
  height: auto;
}

.brand strong,
.brand small {
  display: none;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a,
.site-nav button {
  padding: 10px 11px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active,
.site-nav button:hover,
.site-nav button:focus-visible,
.site-nav button.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(238, 31, 54, 0.5);
  border-radius: 6px;
  background: rgba(238, 31, 54, 0.12);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.cart-button strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--red);
  font-size: 13px;
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(860px, calc(100vh - 76px));
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-main {
  min-height: calc(100vh - 180px);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(238, 31, 54, 0.12), transparent 42%),
    #0d0f14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-hero {
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(42px, 6vw, 72px);
}

.page-hero h1,
.page-hero p {
  max-width: 820px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 48%, rgba(238, 31, 54, 0.16), transparent 24%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.8) 44%, rgba(8, 9, 11, 0.26) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.05) 46%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  max-width: 820px;
  padding-top: 22px;
}

.hero-logo {
  width: min(680px, 88vw);
  margin: 0 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
span,
button,
a {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.hero-content > p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--red);
  color: white;
}

.button.secondary,
.button.compact {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
}

.section-heading {
  margin: 0 auto 28px;
  max-width: 1180px;
}

.brand-section {
  background: var(--bg);
}

.credibility-section,
.spotlight-section,
.faq-section,
.cta-section {
  background: var(--bg);
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.brand-story > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.pillar-grid,
.process-grid,
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.pillar-grid article,
.process-grid article,
.credibility-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
}

.pillar-grid span,
.process-grid strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(238, 31, 54, 0.14);
  color: var(--red);
  font-weight: 900;
}

.pillar-grid p,
.process-grid p,
.credibility-grid p,
.feature-tile p {
  margin: 0;
  color: var(--muted);
}

.credibility-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.featured-section,
.process-section {
  background: var(--bg-soft);
}

.feature-band {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-tile {
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.feature-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08)),
    linear-gradient(90deg, rgba(238, 31, 54, 0.18), transparent);
}

.feature-tile > * {
  position: relative;
}

.feature-tile span {
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
}

.feature-tile h3 {
  font-size: 26px;
}

.scanner-tile {
  background:
    radial-gradient(circle at 52% 42%, rgba(238, 31, 54, 0.85), transparent 14%),
    linear-gradient(90deg, transparent 8%, rgba(238, 31, 54, 0.35), transparent 92%),
    #111319;
}

.download-tile {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #17202b, #090b0f);
}

.idea-tile {
  background:
    radial-gradient(circle at 80% 22%, rgba(244, 201, 93, 0.22), transparent 24%),
    linear-gradient(135deg, #161920, #090b0f);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spotlight-layout,
.cta-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.spotlight-layout > div:first-child p,
.cta-panel p {
  color: var(--muted);
  font-size: 18px;
}

.spotlight-visual {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.spotlight-visual.scanner {
  background:
    radial-gradient(circle at 50% 48%, rgba(238, 31, 54, 0.9), transparent 16%),
    linear-gradient(90deg, transparent 6%, rgba(238, 31, 54, 0.34), var(--red), rgba(238, 31, 54, 0.34), transparent 94%),
    linear-gradient(180deg, #202633, #08090b);
}

.spotlight-visual.voicebox {
  background:
    linear-gradient(90deg, rgba(238, 31, 54, 0.1), transparent),
    repeating-linear-gradient(90deg, #252a33 0 10px, #08090b 10px 17px);
}

.spotlight-visual.module {
  background:
    radial-gradient(circle at 28% 34%, #f4c95d 0 9px, transparent 10px),
    radial-gradient(circle at 72% 64%, var(--red) 0 10px, transparent 11px),
    linear-gradient(135deg, #1f2733, #0d0f14);
}

.spotlight-visual.switchpod {
  background:
    radial-gradient(circle at 18% 50%, var(--ok) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, #f4c95d 0 8px, transparent 9px),
    radial-gradient(circle at 82% 50%, var(--red) 0 8px, transparent 9px),
    linear-gradient(180deg, #2b313d, #111319);
}

.spotlight-visual.has-image {
  background: #050608;
}

.spotlight-visual img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.cta-panel {
  grid-template-columns: minmax(300px, 1fr) auto;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(238, 31, 54, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(238, 31, 54, 0.14), transparent 54%),
    var(--panel);
  box-shadow: var(--shadow);
}

.news-grid,
.product-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.news-card,
.overview-card,
.product-card,
.account-panel,
.idea-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.news-card,
.overview-card,
.product-card {
  padding: 22px;
}

.overview-card {
  color: inherit;
  text-decoration: none;
}

.overview-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--red);
  font-weight: 900;
}

.overview-card:hover {
  border-color: rgba(238, 31, 54, 0.55);
}

.news-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.news-card p,
.status-item p,
.product-card p,
.download-row p,
.site-footer p,
.cart-empty p,
.cart-note,
.idea-note {
  margin: 0;
  color: var(--muted);
}

.status-section,
.shop-section {
  background: var(--bg-soft);
}

.status-list,
.download-list {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.status-item,
.download-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 300px) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

meter {
  width: 100%;
  height: 12px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: #252a33;
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-dark), var(--red), #f4c95d);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  max-width: 1292px;
  margin: 0 auto;
}

.split-section .section-heading {
  margin: 0;
}

.download-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.shop-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 280px) auto;
  gap: 14px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.shop-controls span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}

.empty-state {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.shop-toolbar span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.product-card:hover {
  border-color: rgba(238, 31, 54, 0.55);
  transform: translateY(-2px);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-meta span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.product-visual,
.modal-visual {
  position: relative;
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: var(--panel-2);
  overflow: hidden;
}

.product-visual.has-image,
.modal-visual.has-image {
  background: #050608;
}

.product-visual img,
.modal-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.gallery-visual {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  gap: 8px;
  overflow: hidden;
}

.modal-visual img.gallery-main {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  background: #050608;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-thumbs img {
  flex: 0 0 84px;
  width: 84px;
  min-height: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
}

.product-visual.scanner,
.modal-visual.scanner {
  background:
    radial-gradient(circle at 50% 50%, rgba(238, 31, 54, 0.7), transparent 18%),
    linear-gradient(90deg, transparent 6%, rgba(238, 31, 54, 0.28) 18%, var(--red) 50%, rgba(238, 31, 54, 0.28) 82%, transparent 94%),
    repeating-linear-gradient(90deg, #171a22 0 22px, #202633 22px 26px);
}

.product-visual.voicebox,
.modal-visual.voicebox {
  background:
    linear-gradient(90deg, rgba(238, 31, 54, 0.08), transparent),
    repeating-linear-gradient(90deg, #252a33 0 10px, #08090b 10px 17px);
}

.product-visual.module,
.modal-visual.module {
  background:
    radial-gradient(circle at 28% 34%, #f4c95d 0 9px, transparent 10px),
    radial-gradient(circle at 72% 64%, var(--red) 0 10px, transparent 11px),
    linear-gradient(135deg, #1f2733, #0d0f14);
}

.product-visual.switchpod,
.modal-visual.switchpod {
  background:
    radial-gradient(circle at 18% 50%, var(--ok) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, #f4c95d 0 8px, transparent 9px),
    radial-gradient(circle at 82% 50%, var(--red) 0 8px, transparent 9px),
    linear-gradient(180deg, #2b313d, #111319);
}

.product-card strong {
  font-size: 22px;
}

.idea-section,
.account-section,
.form-layout,
.download-page {
  max-width: 1180px;
  margin: 0 auto;
}

.idea-form,
.account-panel {
  max-width: 560px;
  padding: 18px;
}

.idea-form {
  display: grid;
  gap: 14px;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
}

.info-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.info-panel p {
  margin: 0;
  color: var(--muted);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tab.active {
  border-color: rgba(238, 31, 54, 0.75);
  background: rgba(238, 31, 54, 0.16);
  color: var(--text);
}

.account-form {
  display: none;
  gap: 14px;
}

.account-form.active {
  display: grid;
}

.account-session {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.account-session[hidden] {
  display: none;
}

.account-session span {
  color: var(--muted);
}

label,
.config-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090b0f;
  color: var(--text);
  padding: 0 12px;
}

textarea {
  min-height: 106px;
  padding: 12px;
  resize: vertical;
}

select {
  cursor: pointer;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-note,
.idea-note {
  min-height: 24px;
  margin: 14px 0 0;
}

.cart-drawer,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  overflow: hidden;
}

.cart-drawer.open,
.product-modal.open {
  display: block;
}

.cart-drawer::before,
.modal-backdrop {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.62);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100%;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #0b0d12;
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 16px 0;
}

.cart-empty {
  display: none;
  align-self: start;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cart-empty.visible {
  display: block;
}

.cart-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.cart-item-top,
.cart-summary > div,
.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-actions button {
  min-width: 40px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.cart-summary {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-note {
  min-height: 42px;
}

.modal-panel {
  position: relative;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  gap: 26px;
  padding: 28px;
}

.modal-visual {
  min-height: 430px;
}

.modal-content {
  display: grid;
  align-content: start;
  gap: 14px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.config-form,
.config-options {
  display: grid;
  gap: 14px;
}

.quantity-row label {
  width: 130px;
}

.quantity-row strong {
  display: block;
  font-size: 28px;
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(220px, auto);
  align-items: start;
  gap: 24px;
  padding: 30px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050608;
}

.footer-brand img {
  width: min(240px, 70vw);
  margin-bottom: 10px;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact span,
.footer-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

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

code {
  color: var(--focus);
}

.configurator-main .page-hero {
  background:
    linear-gradient(90deg, rgba(244, 201, 93, 0.12), transparent 48%),
    var(--bg-soft);
}

.editor-shell {
  display: grid;
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
}

.editor-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.editor-topbar h2 {
  margin: 0;
}

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

.editor-note,
.editor-help {
  margin: 0;
  color: var(--muted);
}

.editor-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.editor-menu {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 25, 0.96);
}

.editor-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.editor-menu button:hover,
.editor-menu button.active {
  background: rgba(238, 31, 54, 0.15);
  color: var(--text);
}

.editor-menu span {
  color: var(--red);
  font-size: 12px;
}

.editor-content {
  display: grid;
  gap: 18px;
}

.editor-page[hidden] {
  display: none;
}

.editor-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.editor-card h2,
.editor-card h3 {
  margin: 0;
}

.editor-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.preview-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.site-preview-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-info-grid .editor-help {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.editor-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.editor-row.stacked {
  grid-template-columns: 1fr;
}

.editor-row .editor-card-head {
  padding-bottom: 10px;
}

.image-upload-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.download-upload-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.download-upload-row span {
  color: var(--muted);
  font-weight: 800;
}

.image-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 150px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #090b0f;
  color: var(--muted);
  overflow: hidden;
}

.image-preview-list > span {
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
}

.image-preview-item {
  display: grid;
  gap: 8px;
  margin: 0;
}

.image-preview-item img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 6px;
}

.image-upload-controls {
  display: grid;
  gap: 10px;
}

.image-data-store {
  display: none;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(17, 19, 25, 0.98);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a,
  .site-nav button {
    min-height: 44px;
    text-align: left;
  }

  .hero {
    min-height: 760px;
  }

  .news-grid,
  .product-grid,
  .overview-grid,
  .pillar-grid,
  .credibility-grid,
  .feature-band,
  .process-grid,
  .brand-story,
  .spotlight-layout,
  .cta-panel,
  .split-section,
  .modal-layout,
  .form-layout,
  .shop-controls,
  .editor-layout,
  .editor-topbar,
  .editor-info-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .editor-menu {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-visual {
    min-height: 240px;
  }

  .status-item {
    grid-template-columns: 1fr;
  }

  .status-item span {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    width: 178px;
  }

  .cart-button {
    justify-content: space-between;
    width: 100%;
  }

  .site-nav {
    top: 112px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 9, 11, 0.65), rgba(8, 9, 11, 0.96) 58%),
      linear-gradient(90deg, rgba(8, 9, 11, 0.88), rgba(8, 9, 11, 0.25));
  }

  .hero-content {
    align-self: end;
    padding-bottom: 38px;
  }

  .hero-logo {
    width: min(420px, 92vw);
    margin-bottom: 18px;
  }

  .hero-actions,
  .site-footer,
  .cart-item-top,
  .quantity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .quantity-row label {
    width: 100%;
  }

  .download-row {
    grid-template-columns: 1fr;
  }

  .modal-panel {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    overflow-y: auto;
    border-radius: 0;
  }

  .modal-layout {
    min-height: 100%;
    padding: 72px 18px max(42px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 700px) {
  .editor-grid,
  .editor-row,
  .editor-menu,
  .image-upload-row,
  .download-upload-row,
  .image-preview-list {
    grid-template-columns: 1fr;
  }

  .product-modal.open {
    display: grid;
    align-items: stretch;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .product-modal.open .modal-panel {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    background: var(--panel);
  }

  .product-modal.open .modal-layout {
    background: var(--panel);
  }

  .modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
  }

  .modal-content {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .quantity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .quantity-row label {
    width: 100%;
  }

  .quantity-row strong {
    text-align: left;
  }
}
