
:root {
  --navy: #071428;
  --navy2: #0b1f3a;
  --teal: #14b8a6;
  --violet: #7c3aed;
  --magenta: #ec4899;
  --gold: #f59e0b;
  --bg: #070b14;
  --card: rgba(255,255,255,0.06);
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.12);
  --logo-bg: #ffffff;
}
[data-theme="light"] {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0b1f3a;
  --muted: #5b6b7c;
  --border: #d8e0ea;
  --logo-bg: #ffffff;
}
[data-theme="light"] body {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 280px);
}
[data-theme="light"] .aurora { opacity: 0.35; filter: blur(14px); }
[data-theme="light"] .lang-switch select, [data-theme="light"] #pdfLang {
  background: #fff; color: var(--text);
}
[data-theme="light"] .scale label { background: #fff; }
[data-theme="light"] .q, [data-theme="light"] .card, [data-theme="light"] .score-box {
  box-shadow: 0 1px 2px rgba(11,31,58,0.06);
}
[data-theme="light"] .bullets { color: var(--text); }
[data-theme="light"] .hero-copy .badge {
  background: linear-gradient(90deg, rgba(20,184,166,0.12), rgba(124,58,237,0.12));
  color: var(--navy2);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: var(--teal); }
.aurora {
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(124,58,237,0.45), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 20%, rgba(20,184,166,0.4), transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 60%, rgba(236,72,153,0.25), transparent 50%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}
.wrap { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 22px 20px 80px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar img { height: 42px; width: auto; background: var(--logo-bg); border-radius: 8px; padding: 4px 8px; }
.theme-toggle {
  width: 46px; height: 26px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.08); position: relative; cursor: pointer; padding: 0;
}
[data-theme="light"] .theme-toggle { background: #e8eef6; }
.theme-toggle .knob {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  transition: transform .2s ease;
}
[data-theme="dark"] .theme-toggle .knob { transform: translateX(20px); }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.lang-switch select, #pdfLang {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; background: rgba(0,0,0,0.35); color: var(--text); font: inherit;
}
.hero-open {
  margin: 0 0 22px;
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  aspect-ratio: 16 / 9;
  max-height: 360px;
  background: #000;
}
.hero-open img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-copy .badge {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(20,184,166,0.2), rgba(124,58,237,0.25));
  border: 1px solid var(--border); color: #e2e8f0; font-size: 12px; margin-bottom: 14px;
}
h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.03em; }
.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 22px; }
.bullets { padding-left: 18px; margin: 0 0 26px; color: #cbd5e1; }
.bullets li { margin-bottom: 8px; }
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), #0ea5e9 40%, var(--violet));
  color: #fff !important; text-decoration: none;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; border: none; cursor: pointer;
  font-size: 1rem; box-shadow: 0 10px 40px rgba(20,184,166,0.25);
  background-size: 200% 200%; animation: sheen 6s ease infinite;
}
@keyframes sheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.cta.secondary { background: linear-gradient(135deg, var(--violet), var(--magenta)); animation: none; }
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 8px;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-open { max-height: 220px; aspect-ratio: 16 / 10; }
}
.gallery figure {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: #000; position: relative;
}
.gallery img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 18px; backdrop-filter: blur(10px);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
footer {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
footer a { margin-right: 12px; color: var(--muted); }
.q {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.q p { margin: 0 0 12px; font-weight: 500; }
.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale label {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; height: 40px; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-weight: 600; background: rgba(0,0,0,0.25);
}
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:checked) {
  background: linear-gradient(135deg, var(--teal), var(--violet)); border-color: transparent; color: #fff;
}
.hint { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.controls { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin: 0 0 18px; }
.score-box { padding: 14px 16px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border); background: rgba(255,255,255,0.04); }
.score-box.red { border-color: rgba(236,72,153,0.45); background: rgba(236,72,153,0.08); }
.score-box.amber { border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.08); }
.score-box.green { border-color: rgba(20,184,166,0.45); background: rgba(20,184,166,0.08); }
.hidden { display: none; }
.onepager {
  width: 210mm; min-height: 148mm; padding: 22mm 18mm; margin: 12px auto;
  border: 1px solid #ddd; background: #fff; color: #0b1f3a;
}
@media print {
  .no-print, .aurora { display: none !important; }
  body { background: #fff; color: #000; }
  .onepager { border: none; margin: 0; }
}

.brand-block { margin: 8px 0 18px; }
.brand-title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.brand-block { text-align: left; }
@media (max-width: 700px) {
  .brand-block { margin-bottom: 12px; }
  .hero-open { margin-bottom: 14px; }
}
.brand-sub {
  margin: 8px 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--muted);
  font-weight: 500;
}

.feature-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .feature-grid.three { grid-template-columns: 1fr; }
}
.back-to-top {
  position: fixed; right: 18px; bottom: 22px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #fff; font-size: 20px; font-weight: 700;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .2s ease; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.topbar a img { display:block; }
.brand-title a:hover { opacity: 0.9; }
