@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #05050b;
  --panel: rgba(14, 14, 28, 0.68);
  --panel-strong: rgba(25, 20, 45, 0.82);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #9147ff;
  --accent-2: #b66cff;
  --border: rgba(174, 112, 255, 0.34);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(145, 71, 255, 0.45), transparent 22rem),
    radial-gradient(circle at 88% 85%, rgba(119, 44, 232, 0.55), transparent 20rem),
    radial-gradient(circle at 52% 48%, rgba(145, 71, 255, 0.14), transparent 32rem),
    linear-gradient(135deg, #05050b 0%, #09091a 55%, #080510 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(172, 102, 255, 0.85) 0 2px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.42) 0 1px, transparent 1px);
  background-size: 280px 280px, 190px 190px;
  background-position: 20px 80px, 120px 20px;
  opacity: 0.34;
}

.bg-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatGlow 9s ease-in-out infinite;
}

.glow-one { top: 5%; left: -10rem; background: #7a23ff; }
.glow-two { right: -10rem; bottom: -6rem; background: #721bff; animation-delay: -3s; }
.glow-three { right: 18%; top: 40%; background: rgba(145, 71, 255, 0.35); animation-delay: -5s; }

@keyframes floatGlow {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.15) translateY(-18px); }
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.hub-card {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 42%),
    radial-gradient(circle at 50% 38%, rgba(145, 71, 255, 0.14), transparent 28rem),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  overflow: visible;
  z-index: 20;
}

.hub-card::before {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  left: 50%;
  top: 110px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(145,71,255,0.16) 0 1px, transparent 1px 54px);
  opacity: 0.34;
  pointer-events: none;
}

.hub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
}

body.tour-active .hub-card::after {
  opacity: 1;
}

.logo-wrap, h1, .subtitle, .divider, .links, .note {
  position: relative;
  z-index: 1;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: -2px;
}

.logo {
  width: clamp(185px, 30vw, 300px);
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.5));
}

h1 {
  text-align: center;
  font-size: clamp(3.1rem, 9vw, 5.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.08em;
  text-shadow: 0 10px 28px rgba(0,0,0,0.5);
}

h1 span {
  color: var(--accent);
  background: linear-gradient(180deg, #c185ff 0%, #9147ff 48%, #6e22dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.06em;
}

.subtitle {
  margin-top: 14px;
  text-align: center;
  color: var(--accent-2);
  font-size: clamp(1rem, 2.7vw, 1.34rem);
  font-weight: 600;
}

.description {
  max-width: 640px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.divider {
  width: min(360px, 100%);
  margin: 24px auto 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.divider span {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.shield-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
}

.shield-icon svg, .note svg, .icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.links {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr 30px;
  align-items: center;
  gap: 18px;
  min-height: 96px;
  padding: 15px 28px 15px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(90deg, rgba(255,255,255,0.045), rgba(145,71,255,0.085));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(190, 132, 255, 0.85);
  background: linear-gradient(90deg, rgba(145,71,255,0.16), rgba(145,71,255,0.10));
  box-shadow: 0 18px 42px rgba(145,71,255,0.18), inset 0 0 0 1px rgba(255,255,255,0.06);
}

.link-card.is-highlighted {
  position: relative;
  z-index: 30;
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(216, 183, 255, 1);
  background: linear-gradient(90deg, rgba(145,71,255,0.28), rgba(145,71,255,0.16));
  box-shadow:
    0 0 0 4px rgba(145, 71, 255, 0.28),
    0 0 34px rgba(145, 71, 255, 0.72),
    0 22px 52px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.link-card.is-highlighted .icon {
  box-shadow: 0 0 0 4px rgba(145, 71, 255, 0.22), 0 0 32px rgba(145,71,255,0.9);
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #b782ff, #7629ef 58%, #651dcb);
  box-shadow: 0 10px 28px rgba(145,71,255,0.44);
}

.icon svg { width: 31px; height: 31px; }

.text strong {
  display: block;
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  line-height: 1.2;
  margin-bottom: 6px;
}

.text small {
  color: var(--muted);
  font-size: clamp(0.88rem, 2.2vw, 1.05rem);
}

.arrow {
  color: var(--accent-2);
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 400;
}

.note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: 34px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.note svg {
  width: 26px;
  min-width: 26px;
  color: var(--accent-2);
}

.tour-mask {
  position: fixed;
  inset: 0;
  z-index: 12;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tour-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}

.tour-tooltip {
  position: fixed;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(190, 132, 255, 0.72);
  border-radius: 18px;
  background: rgba(18, 14, 34, 0.94);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55), 0 0 30px rgba(145,71,255,0.18);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tour-tooltip.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tour-step {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.tour-title {
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tour-text {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 14px;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tour-skip,
.tour-next {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.tour-skip {
  background: transparent;
  color: rgba(255,255,255,0.55);
  padding: 8px 4px;
}

.tour-next {
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #b66cff, #7629ef);
  box-shadow: 0 10px 24px rgba(145,71,255,0.34);
}

@media (max-width: 640px) {
  .page { padding: 18px 12px; }
  .hub-card { border-radius: 26px; padding: 26px 14px; }
  .link-card { grid-template-columns: 60px 1fr 18px; min-height: 82px; padding: 12px 14px; gap: 12px; }
  .icon { width: 50px; height: 50px; border-radius: 13px; }
  .icon svg { width: 27px; height: 27px; }
  .arrow { font-size: 2.4rem; }
  .note { align-items: flex-start; font-size: 0.85rem; }
  .description { font-size: 0.92rem; }
}

body.tour-active .links {
  z-index: 5;
}

body.tour-active .link-card:not(.is-highlighted) {
  opacity: 0.38;
}

body.tour-active .link-card.is-highlighted {
  z-index: 9;
  filter: none;
}
