:root {
  --bg: #0d0820;
  --bg2: #170c33;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3eefe;
  --muted: #b8a9d9;
  --pink: #ff4fa3;
  --violet: #8b5cff;
  --cyan: #3ee8ff;
  --sun: linear-gradient(180deg, #ffe066 0%, #ff8a3d 55%, #ff3d8b 100%);
  --grad: linear-gradient(135deg, #8b5cff 0%, #ff4fa3 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #3a1670 0%, transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-color: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: var(--cyan); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.lang { position: relative; }
.globe { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); color: var(--text); cursor: pointer; }
.globe:hover { border-color: var(--violet); }
.lang-menu { position: absolute; right: 0; top: 46px; max-height: 70vh; overflow-y: auto; background: #1c1036; border: 1px solid var(--border); border-radius: 14px; padding: 6px; min-width: 150px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); z-index: 10; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 9px 12px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 15px; }
.lang-menu button:hover { background: var(--card); }
.lang-menu button.on { color: var(--pink); font-weight: 700; }

.hero { text-align: center; padding: 40px 0 24px; position: relative; }
.hero .icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 60px rgba(255, 79, 163, 0.45), 0 0 120px rgba(139, 92, 255, 0.35); }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 22px 0 12px; letter-spacing: -0.02em; }
h1 .glow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 19px); max-width: 640px; margin: 0 auto; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 32px 0 8px; }
.dl {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); transition: transform 0.15s, border-color 0.15s;
}
.dl:hover { transform: translateY(-2px); border-color: var(--violet); }
.dl.primary { background: var(--grad); border: none; box-shadow: 0 6px 30px rgba(255, 79, 163, 0.35); }
.dl .os { font-weight: 700; }
.dl .sub { font-size: 13px; color: var(--muted); }
.dl.primary .sub { color: rgba(255, 255, 255, 0.85); }
.dl.soon { opacity: 0.55; pointer-events: none; }
.dl svg { flex: none; }
.note { text-align: center; color: var(--muted); font-size: 13px; }

section { padding: 36px 0; }
h2 { font-size: 26px; margin: 0 0 18px; text-align: center; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; }
.feature .em { font-size: 26px; }
.feature h3 { margin: 6px 0 4px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 auto; max-width: 620px; }
.steps li { counter-increment: s; position: relative; padding: 12px 12px 12px 56px; margin-bottom: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center; font-weight: 800;
}

/* Invite page */
.invite { max-width: 520px; margin: 30px auto; text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 28px 22px; }
.invite .nick { font-size: clamp(28px, 7vw, 40px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; word-break: break-all; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 14px; text-decoration: none; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 6px 30px rgba(255, 79, 163, 0.35); border: none; font: inherit; cursor: pointer; }
.btn.ghost { background: none; border: 1px solid var(--border); box-shadow: none; color: var(--text); }
.invite .small { color: var(--muted); font-size: 14px; }

/* Horizon */
.horizon { height: 160px; margin-top: 30px; background:
  linear-gradient(transparent 0, transparent 60%, rgba(255, 79, 163, 0.25) 100%),
  repeating-linear-gradient(90deg, rgba(255, 79, 163, 0.35) 0 1px, transparent 1px 60px);
  mask-image: linear-gradient(transparent, #000 40%); -webkit-mask-image: linear-gradient(transparent, #000 40%);
}
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0 40px; }

/* ===== Neon / Tron look (fx.js) ===== */
body { background: radial-gradient(900px 500px at 50% 0%, #2a0f55 0%, transparent 70%), #07031a; overflow-x: hidden; }
#grid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scanlines { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.25;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.wrap { position: relative; z-index: 2; }
.horizon { display: none; }
header { position: relative; z-index: 5; }
.brand { text-shadow: 0 0 12px rgba(62, 232, 255, 0.5); }

.hero .icon { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

h1.neon { text-shadow: 0 0 18px rgba(139, 92, 255, 0.55), 0 0 2px #fff; position: relative; }
h1.neon .glow { background: linear-gradient(90deg, #3ee8ff, #ff4fa3, #ffb547, #3ee8ff); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite; text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(255, 79, 163, 0.55)); }
@keyframes flow { to { background-position: 300% 0; } }
h1.neon:hover { animation: glitch 0.45s steps(2) 1; }
@keyframes glitch {
  0% { transform: translate(0); text-shadow: 2px 0 #ff4fa3, -2px 0 #3ee8ff; }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); text-shadow: -3px 0 #ff4fa3, 3px 0 #3ee8ff; }
  100% { transform: translate(0); }
}

.lead { text-shadow: 0 1px 8px rgba(7, 3, 26, 0.9); }

/* download cards: glass + neon edge */
.downloads { position: relative; }
.dl { position: relative; overflow: hidden; background: rgba(20, 10, 48, 0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(62, 232, 255, 0.35); box-shadow: inset 0 0 18px rgba(62, 232, 255, 0.08); transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.dl::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%); }
.dl:hover::after { opacity: 1; }
.dl.primary { background: linear-gradient(135deg, rgba(139, 92, 255, 0.92), rgba(255, 79, 163, 0.92)); border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 24px rgba(255, 79, 163, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.15); }
.dl.pointed { border-color: #3ee8ff; box-shadow: 0 0 0 1px #3ee8ff, 0 0 28px rgba(62, 232, 255, 0.7), 0 0 60px rgba(255, 79, 163, 0.35); }
.dl.pointed::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(62, 232, 255, 0.55) 90%, transparent 100%);
  animation: spin 3s linear infinite; pointer-events: none; mix-blend-mode: screen; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl.soon { opacity: 0.6; }
.note { background: rgba(7, 3, 26, 0.55); border-radius: 12px; padding: 8px 10px; }

/* holographic agent */
.agent { position: absolute; left: 0; top: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; width: 240px;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1.15), opacity 0.4s; opacity: 0; pointer-events: auto; cursor: pointer; }
.agent.on { opacity: 1; }
.agent[hidden] { display: none; }
.agent-bubble { position: relative; text-align: left; font-size: 13.5px; line-height: 1.35; color: #e9fbff; padding: 9px 12px 10px;
  background: linear-gradient(135deg, rgba(62, 232, 255, 0.18), rgba(139, 92, 255, 0.22)); border: 1px solid rgba(62, 232, 255, 0.65);
  border-radius: 12px; box-shadow: 0 0 22px rgba(62, 232, 255, 0.35), inset 0 0 14px rgba(62, 232, 255, 0.15);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-height: 42px; width: 100%;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); animation: holo 3.5s ease-in-out infinite; }
.agent-bubble::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(62, 232, 255, 0.08) 0 1px, transparent 1px 3px); }
.agent-name { display: block; font-size: 10px; letter-spacing: 0.18em; color: #3ee8ff; font-weight: 800; margin-bottom: 2px; }
.agent-text::after { content: "▍"; color: #ff4fa3; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes holo { 0%, 100% { opacity: 1; } 47% { opacity: 1; } 48% { opacity: 0.75; } 50% { opacity: 1; } 80% { opacity: 0.92; } }
.agent-bot { width: 46px; height: 52px; margin-top: 2px; filter: drop-shadow(0 0 8px rgba(62, 232, 255, 0.8)); animation: float 3s ease-in-out infinite; }
.agent-led { animation: blink 1.4s steps(1) infinite; }
.agent-eyes { animation: look 5s ease-in-out infinite; transform-origin: center; }
@keyframes look { 0%, 40%, 100% { transform: translateX(0) scaleY(1); } 45% { transform: scaleY(0.1); } 50% { transform: scaleY(1); } 70% { transform: translateX(2px); } 85% { transform: translateX(-2px); } }
.agent-beam { animation: beam 2s ease-in-out infinite; }
@keyframes beam { 50% { opacity: 0.5; } }

/* features: holographic cards */
.feature.holo { position: relative; overflow: hidden; background: rgba(20, 10, 48, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 255, 0.35); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.feature.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(62, 232, 255, 0.18), transparent 65%); }
.feature.holo:hover { border-color: rgba(62, 232, 255, 0.7); transform: translateY(-3px); box-shadow: 0 0 26px rgba(62, 232, 255, 0.25); }
.feature.holo:hover::after { opacity: 1; }
.feature .em { filter: drop-shadow(0 0 10px rgba(255, 79, 163, 0.6)); }
h2 { text-shadow: 0 0 16px rgba(62, 232, 255, 0.45); }
.steps li { background: rgba(20, 10, 48, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-color: rgba(62, 232, 255, 0.25); }
.steps li::before { box-shadow: 0 0 14px rgba(255, 79, 163, 0.7); }
.invite { background: rgba(20, 10, 48, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(62, 232, 255, 0.35);
  box-shadow: 0 0 40px rgba(139, 92, 255, 0.3); }
footer { position: relative; z-index: 2; }

/* reveal on scroll */
.hidden-r { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
.hidden-r.shown { opacity: 1; transform: none; }

/* room for the agent above the buttons */
.hero .downloads { margin-top: 150px; }
@media (max-width: 560px) {
  .agent { width: 210px; }
  .dl.mine { order: -1; }
  .agent-bubble { font-size: 12.5px; }
  .hero .downloads { margin-top: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Wider page; the main title on one line on wide screens. */
.wrap { max-width: 1200px; }
.lead { max-width: 760px; }
.features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 900px) {
  h1 { white-space: nowrap; font-size: min(46px, 3.3vw); }
}

/* Feedback form */
.feedback { max-width: 620px; margin: 0 auto; padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); display: grid; gap: 12px; text-align: left; }
.feedback p { margin: 0; }
.feedback input, .feedback textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: rgba(13, 8, 32, 0.6);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; }
.feedback input:focus, .feedback textarea:focus { border-color: #3ee8ff; box-shadow: 0 0 0 3px rgba(62, 232, 255, 0.18); }
.feedback .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.feedback .btn { justify-self: start; font-weight: 700; }
.feedback .btn:disabled { opacity: 0.6; cursor: default; }
.fb-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fb-status { font-size: 14px; color: var(--muted); }
.fb-status.ok { color: #5dffb0; }
.fb-status.err { color: #ff8fa8; }
.fb-mail { color: var(--muted); }

/* Install warning: one line, opens on click */
details.note { max-width: 760px; margin: 14px auto 0; }
details.note summary { cursor: pointer; list-style: none; color: var(--muted); }
details.note summary::-webkit-details-marker { display: none; }
details.note summary::before { content: "ⓘ "; color: #3ee8ff; }
details.note summary:hover { color: #fff; }
details.note[open] summary { margin-bottom: 8px; }
