
:root {
  --bg-0: #090510;
  --bg-1: #120d23;
  --bg-2: #1a1430;
  --panel: rgba(14, 17, 34, 0.88);
  --panel-soft: rgba(23, 27, 52, 0.78);
  --line: rgba(153, 123, 255, 0.35);
  --accent: #a259ff;
  --accent-2: #60d0ff;
  --accent-3: #ff6fb1;
  --text: #f4f3ff;
  --muted: #b9b8cf;
  --shadow: 0 20px 45px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: radial-gradient(circle at top, #26174d 0%, var(--bg-1) 42%, var(--bg-0) 100%);
  color: var(--text);
  line-height: 1.7;
}
.page-bg {
  position: fixed; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.site-header, .site-footer, main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0 18px; position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
}
.site-header::before {
  content: ""; position: absolute; inset: 10px -12px 0; z-index: -1;
  background: rgba(9,5,16,.56); border: 1px solid rgba(255,255,255,.06); border-radius: 18px;
}
.site-brand { display:flex; gap:14px; align-items:center; }
.brand-icon { width: 58px; height: 58px; border-radius: 14px; box-shadow: var(--shadow); }
.site-brand h1 { margin: 2px 0 0; font-size: 1.24rem; }
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .14em; color: #8de1ff; text-transform: uppercase; }
.site-nav { display:flex; flex-wrap:wrap; gap:16px; font-size:.95rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: #fff; }
main { padding-bottom: 44px; }
.panel, .panel-glass {
  position: relative; border: 1px solid var(--line); border-radius: 28px;
  background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
}
.panel-glass { background: linear-gradient(180deg, rgba(25,19,49,.88), rgba(10,10,18,.92)); }
.hero {
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 36px; align-items: center;
}
.hero-copy { z-index: 1; }
.hero-logo { max-width: 540px; margin: 8px 0 18px; filter: drop-shadow(0 8px 24px rgba(162,89,255,.35)); }
.lead { font-size: 1.04rem; color: #eeecff; max-width: 620px; }
.hero-buttons { display:flex; flex-wrap:wrap; gap:14px; margin-top: 24px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:52px; padding: 0 22px;
  border-radius: 999px; font-weight:700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color:#fff; box-shadow: 0 12px 28px rgba(96,208,255,.25); }
.btn-secondary { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); }
.hero-tags { list-style:none; display:flex; flex-wrap:wrap; gap:10px; padding:0; margin: 24px 0 0; }
.hero-tags li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color:#ede9ff; padding:7px 12px; border-radius:999px; font-size:.9rem; }
.hero-artwrap { position: relative; min-height: 520px; }
.hero-backdrop { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.72; border-radius: 24px; }
.hero-art { position:absolute; right:0; bottom:0; }
.hero-art.main { width: min(100%, 500px); filter: drop-shadow(0 20px 44px rgba(0,0,0,.4)); }
.hero-art.sub { width: min(58%, 260px); left: 4%; bottom: 6%; opacity: .9; }
.section { margin-top: 28px; padding: 28px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.left-align { margin-bottom: 18px; }
.story-grid, .howto-grid { display:grid; gap:18px; }
.story-grid { grid-template-columns: repeat(3, 1fr); }
.card, .control-card, .installer-card {
  background: var(--panel-soft); border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 18px;
}
.card h3, .control-card h3, .installer-card h3 { margin-top: 0; }
.feature-strip {
  margin-top: 18px; display:flex; flex-wrap:wrap; gap:14px;
}
.feature-pill {
  display:flex; align-items:center; gap:10px; padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
}
.feature-pill img { width: 42px; height:42px; object-fit:contain; }
.warning-panel {
  display:grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: center;
  background: linear-gradient(135deg, rgba(31,11,28,.96), rgba(17,15,38,.96));
}
.warning-art { border-radius: 20px; opacity: .92; }
.feature-list { padding-left: 1.2rem; margin: 0; }
.howto-grid { grid-template-columns: repeat(3, 1fr); }
.control-card img { height: 120px; object-fit: contain; margin-inline:auto; }
.tips-box { margin-top: 20px; padding:18px 20px; border-radius:22px; background: rgba(89,54,170,.22); border: 1px solid rgba(141,225,255,.2); }
.two-column { display:grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.steps { margin: 0; padding-left: 1.3rem; }
.small-note, .download-help { color: var(--muted); font-size: .94rem; }
.installer-card img { border-radius: 16px; margin-bottom: 14px; }
.download-panel { text-align:center; }
.download-box {
  display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap: 18px; text-align:left;
  padding: 20px; border-radius: 24px; background: linear-gradient(135deg, rgba(43,31,76,.95), rgba(11,15,27,.94)); border: 1px solid rgba(255,255,255,.08);
}
.download-icon { width: 86px; height: 86px; border-radius: 22px; box-shadow: var(--shadow); }
.download-copy h3 { margin: 0 0 8px; word-break: break-all; }
.btn-download { min-width: 250px; }
.site-footer {
  display:flex; justify-content:space-between; align-items:flex-end; gap: 18px; padding: 28px 0 44px;
  color: var(--muted); border-top: 1px solid rgba(255,255,255,.08);
}
.footer-title { margin:0 0 6px; color:#fff; font-weight:700; }
.footer-links { display:flex; flex-wrap:wrap; gap: 14px; }
.footer-links a { color:#d7cfff; }
code { background: rgba(255,255,255,.08); padding: .12rem .4rem; border-radius: 8px; }
@media (max-width: 980px) {
  .site-header { position: static; }
  .hero, .warning-panel, .two-column { grid-template-columns: 1fr; }
  .story-grid, .howto-grid { grid-template-columns: 1fr 1fr; }
  .hero-artwrap { min-height: 420px; }
  .download-box { grid-template-columns: 1fr; text-align:center; }
  .download-icon { margin-inline:auto; }
  .btn-download { width: 100%; }
}
@media (max-width: 720px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .hero { padding: 24px; }
  .section { padding: 22px; }
  .story-grid, .howto-grid { grid-template-columns: 1fr; }
  .hero-artwrap { min-height: 320px; }
  .site-footer { flex-direction: column; align-items:flex-start; }
}


/* Password gate */
body.locked { overflow: hidden; }
body.locked > .site-header,
body.locked > main,
body.locked > .site-footer { visibility: hidden; }
.password-gate {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  padding: 24px; background:
    linear-gradient(rgba(8,5,17,.94), rgba(8,5,17,.97)),
    url('assets/img/title_bg_corrupted.png') center/cover no-repeat;
}
.password-gate.hidden { display: none; }
.gate-card {
  width: min(520px, 100%); padding: 34px 30px; text-align: center;
  border-radius: 28px; border: 1px solid rgba(141,225,255,.34);
  background: linear-gradient(180deg, rgba(25,19,49,.96), rgba(10,10,18,.98));
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 55px rgba(162,89,255,.14);
}
.gate-icon { width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--shadow); }
.gate-card h2 { margin: 7px 0 8px; font-size: clamp(1.45rem, 4vw, 2rem); }
.gate-copy { margin: 0 auto 20px; color: #d9d6ec; }
.gate-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gate-form input {
  min-width: 0; min-height: 52px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #fff; padding: 0 20px; text-align: center;
  letter-spacing: .22em; font: inherit; font-weight: 800; text-transform: uppercase; outline: none;
}
.gate-form input:focus { border-color: #7cdcff; box-shadow: 0 0 0 3px rgba(96,208,255,.12); }
.gate-message { min-height: 1.6em; margin: 12px 0 0; color: #ff8abb; font-weight: 700; }
.official-gate-link { display: inline-block; margin-top: 6px; color: #8de1ff; text-decoration: underline; text-underline-offset: 4px; }
.nav-official { color: #fff !important; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(162,89,255,.35), rgba(96,208,255,.25)); }
.btn-official { background: linear-gradient(90deg, #ff6fb1, #a259ff); color: #fff; box-shadow: 0 12px 28px rgba(255,111,177,.2); }
.btn-official.big { min-width: 260px; }
.official-panel { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; background: linear-gradient(135deg, rgba(42,18,56,.95), rgba(16,24,45,.95)); }
.official-kurone { width: 190px; height: 190px; object-fit: contain; margin: auto; filter: drop-shadow(0 16px 28px rgba(0,0,0,.35)); }
.official-copy h2 { margin: 5px 0 10px; }
.official-copy p { color: #e6e2f6; }
.official-url { margin-bottom: 0 !important; color: #8de1ff !important; word-break: break-all; font-weight: 700; }
@media (max-width: 720px) {
  .gate-form { grid-template-columns: 1fr; }
  .official-panel { grid-template-columns: 1fr; text-align: center; }
  .official-kurone { width: 155px; height: 155px; }
  .btn-official.big { width: 100%; }
}
