/* Copyright 2026 Albert LaMotte - All Rights Reserved */
:root {
  --bg: #111318;
  --bg-soft: #161920;
  --bg-card: #1a1d24;
  --card: #1a1d24;
  --card-2: #222630;
  --border: #2d333f;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --blue: #3b82f6;
  --sky: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --purple: #6366f1;
  --danger: #ef4444;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22, 25, 32, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.nav-collapsible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-collapsible {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .nav-collapsible.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a { padding: 8px 10px; }
  .nav-cta { justify-content: flex-start; }
}
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand-logo-video {
  height: 40px;
  width: 68px;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: #0b1324;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.brand-wordmark {
  font-size: 16.5px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #f8fafc;
  white-space: nowrap;
  line-height: 1;
}
.brand-wordmark .brand-accent {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-wordmark small {
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
}
.brand-logo-pill {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.brand-logo-pill img {
  height: 32px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
}
.nav-links a { color: #cbd5e1; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--sky); }
.btn.primary { background: linear-gradient(135deg, #2563eb, #0284c7); border-color: #38bdf8; color: #fff; }
.btn.emerald { background: linear-gradient(135deg, #059669, #10b981); border-color: #34d399; color: #fff; }
.btn.amber { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.5); color: #fcd34d; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 11px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section.block { padding: 72px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.10); }
section#home.block {
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(56, 189, 248, 0.11), transparent 70%);
}
@media (max-width: 640px) {
  section.block { padding: 48px 0; }
  .container { padding: 0 16px; }
}

.eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-title {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.hero-title span {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 17.5px; color: #cbd5e1; max-width: 640px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--muted); }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 16px; margin-top: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 22px; margin-top: 28px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.studio-card {
  background: linear-gradient(180deg, rgba(21, 35, 64, 0.85), rgba(15, 26, 48, 0.95));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.studio-card:hover { border-color: rgba(56, 189, 248, 0.55); transform: translateY(-2px); }
.studio-card.flagship { border-color: rgba(16, 185, 129, 0.55); box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.p1 { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge.suite { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.35); }
.badge.rd { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }

.feature-list { list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: #cbd5e1; margin: 10px 0; }
.feature-list li::before { content: "✓ "; color: var(--emerald); font-weight: 800; }

.section-head { max-width: 780px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); font-size: 15.5px; }

.step-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 26px 0; }
.step-box { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 13px;
  display: inline-grid; place-items: center; margin-bottom: 10px;
}

.wizard-drop {
  border: 2px dashed rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(11, 19, 36, 0.75);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wizard-drop.dragover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.09);
}
.format-pills { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 12px 0; }
.format-pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; background: var(--card-2); border: 1px solid var(--border); color: #e2e8f0;
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.price-card.popular, .price-card.featured { border-color: var(--sky); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35); }
.price-amount { font-size: 36px; font-weight: 850; color: #fff; }
.price-amount small, .price-amount span { font-size: 14px; font-weight: 500; color: var(--muted); }

.demo-canvas-wrap {
  position: relative;
  background: #040811;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 340px;
}
#demo3dCanvas, #const3dCanvas { width: 100%; height: 350px; display: block; cursor: crosshair; touch-action: none; }
.sim-banner {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #070e1c;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
label.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: #cbd5e1; }

table.matrix-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
table.matrix-table th, table.matrix-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.matrix-table th { background: var(--bg-soft); color: #e2e8f0; font-weight: 700; }

dialog.modal {
  margin: auto;
  max-width: 560px;
  width: calc(100% - 28px);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--sky);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}
dialog.modal::backdrop { background: rgba(2, 6, 23, 0.8); }

footer.site-footer {
  padding: 44px 0;
  background: #040811;
  color: var(--muted);
  font-size: 13px;
}
.legal-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(15, 26, 48, 0.6);
  border: 1px solid var(--border);
  font-size: 12px;
  color: #94a3b8;
}

/* Top-Right Flag Language Switcher & Cross-Browser / Mobile Polish */
.nav-right-utility {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  min-height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.lang-btn:hover { border-color: var(--sky); }
.lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-caret { font-size: 11px; color: var(--muted); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 260;
  min-width: 225px;
  max-height: 360px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #161b26;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  display: grid;
  gap: 2px;
}
.lang-menu[hidden] { display: none !important; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
[dir="rtl"] .lang-option { text-align: right; }
.lang-option:hover, .lang-option.is-selected {
  background: rgba(56, 189, 248, 0.16);
  color: #fff;
}
.btn, .nav-toggle { touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.panel[style*="overflow-x"] { -webkit-overflow-scrolling: touch; }
@media (max-width: 960px) {
  .nav-right-utility { order: 2; }
  .nav-collapsible { order: 3; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 8px 14px; gap: 10px; }
  .brand-logo-video { width: 54px; height: 34px; }
  .brand-wordmark { font-size: 14.5px; }
  .btn, .nav-toggle, .lang-btn, .lang-option { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
}
