* {
  box-sizing: border-box;
}

:root {
  --bg: #07000d;
  --purple: #8b22ff;
  --purple2: #d39cff;
  --cyan: #4dfff5;
  --text: #ffffff;
  --muted: #d9c7f0;
  --glass: rgba(35, 0, 68, 0.62);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(168, 72, 255, 0.35), transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(75, 255, 245, 0.14), transparent 28%),
    linear-gradient(135deg, #06000b, #160024 45%, #07000d);
  overflow-x: hidden;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.55;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #21003f, #050009 72%);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.logo-intro {
  text-align: center;
  animation: introPulse 1.4s infinite alternate;
}

.intro-svg {
  width: min(80vw, 520px);
}

.infinity-path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLogo 2.4s ease forwards, logoHover 2s ease-in-out infinite;
}

.logo-text {
  font-size: 36px;
  font-weight: 900;
  fill: #ffffff;
  filter: drop-shadow(0 0 8px #9d39ff);
}

@keyframes drawLogo {
  to { stroke-dashoffset: 0; }
}

@keyframes logoHover {
  50% { transform: translateY(-8px); }
}

@keyframes introPulse {
  from { filter: drop-shadow(0 0 12px #8b22ff); }
  to { filter: drop-shadow(0 0 30px #d39cff); }
}

.hero {
  min-height: 86vh;
  padding: 24px;
  position: relative;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: auto;
  padding: 14px 18px;
  border: 1px solid rgba(211, 156, 255, 0.25);
  border-radius: 22px;
  background: rgba(12, 0, 25, 0.6);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 35px rgba(139, 34, 255, 0.25);
}

.brand {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 12px #a348ff;
}

.brand span {
  color: var(--purple2);
}

.hero-content {
  max-width: 1050px;
  margin: 70px auto 0;
  text-align: center;
}

.main-logo {
  width: min(78vw, 520px);
  margin: 0 auto 16px;
}

.site-logo {
  width: 100%;
  filter: drop-shadow(0 0 22px rgba(174, 95, 255, 0.7));
}

.orbit {
  stroke-dasharray: 70 24;
  animation: orbitMove 4s linear infinite, floatLogo 3s ease-in-out infinite;
}

@keyframes orbitMove {
  to { stroke-dashoffset: -188; }
}

@keyframes floatLogo {
  50% { transform: translateY(-9px); }
}

h1 {
  font-size: clamp(46px, 8vw, 104px);
  margin: 0;
  line-height: 0.95;
  background: linear-gradient(90deg, #fff, #d39cff, #8b22ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 35px rgba(139, 34, 255, 0.45);
}

h2 {
  font-size: clamp(20px, 3vw, 38px);
  color: var(--purple2);
}

.tagline {
  font-size: 20px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.nav-btn,
.chat-toggle,
.chat-input button {
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 24px;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff, #aa55ff 20%, #6f00ff 55%, #250045);
  box-shadow: 0 0 22px rgba(139, 34, 255, 0.55), inset 0 1px 1px rgba(255,255,255,0.65);
}

.secondary-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(211,156,255,0.45);
}

.full {
  width: 100%;
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #350063, #8b22ff, #350063);
  border-block: 1px solid rgba(255,255,255,0.25);
}

.ticker {
  display: inline-block;
  padding: 18px 0;
  font-size: clamp(26px, 5vw, 56px);
  font-weight: 1000;
  text-transform: uppercase;
  animation: ticker 16s linear infinite;
  text-shadow: 0 0 12px #fff;
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 70px auto;
  padding: 0 24px;
}

.card {
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid rgba(211, 156, 255, 0.28);
  box-shadow: 0 0 28px rgba(139, 34, 255, 0.25);
  backdrop-filter: blur(12px);
}

.card h3 {
  font-size: 30px;
  margin-top: 0;
  color: var(--purple2);
}

.card p {
  color: var(--muted);
  line-height: 1.55;
}

.message-panel {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.72);
}

.message-panel.show {
  display: grid;
}

.message-box {
  width: min(92vw, 540px);
  padding: 28px;
  border-radius: 28px;
  position: relative;
  background: linear-gradient(145deg, rgba(42,0,76,0.96), rgba(7,0,13,0.96));
  border: 1px solid rgba(211,156,255,0.45);
  box-shadow: 0 0 45px rgba(139,34,255,0.55);
}

.close-btn,
#chatClose {
  border: 0;
  color: white;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  right: 18px;
  top: 12px;
}

input,
select,
textarea {
  width: 100%;
  margin: 10px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(211,156,255,0.45);
  color: white;
  background: rgba(255,255,255,0.08);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.chat-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 800;
}

.chatbot {
  position: fixed;
  right: 22px;
  bottom: 88px;
  width: min(92vw, 380px);
  height: 500px;
  z-index: 801;
  display: none;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(11, 0, 22, 0.96);
  border: 1px solid rgba(211,156,255,0.45);
  box-shadow: 0 0 38px rgba(139,34,255,0.55);
}

.chatbot.show {
  display: flex;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(90deg, #3b006f, #8b22ff);
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.bot,
.user {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.35;
}

.bot {
  background: rgba(139,34,255,0.25);
  border: 1px solid rgba(211,156,255,0.25);
}

.user {
  background: rgba(77,255,245,0.15);
  border: 1px solid rgba(77,255,245,0.3);
  text-align: right;
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(211,156,255,0.25);
}

.chat-input input {
  margin: 0;
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
  }

  nav {
    gap: 12px;
    flex-direction: column;
  }
}

.logo-png{width:min(72vw,420px);display:block;margin:0 auto 18px;filter:drop-shadow(0 0 28px rgba(190,120,255,.85));animation:pngLogoFloat 3.5s ease-in-out infinite}
@keyframes pngLogoFloat{50%{transform:translateY(-10px) scale(1.025)}}
.qr-section{max-width:1100px;margin:70px auto;padding:34px 24px;text-align:center;border-radius:30px;background:rgba(35,0,68,.52);border:1px solid rgba(211,156,255,.28);box-shadow:0 0 34px rgba(139,34,255,.28);backdrop-filter:blur(12px)}
.qr-grid{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:24px;margin-top:24px}
.qr-card{padding:22px;border-radius:24px;background:rgba(255,255,255,.07);border:1px solid rgba(211,156,255,.3)}
.qr-card img{width:min(100%,280px);border-radius:18px;background:white;padding:10px;box-shadow:0 0 20px rgba(211,156,255,.35)}
.qr-card a{color:#d9b4ff;font-weight:800;word-break:break-word}
.site-footer{margin-top:80px;padding:24px;text-align:center;color:#eadbff;background:linear-gradient(90deg,rgba(42,0,76,.95),rgba(7,0,13,.95),rgba(42,0,76,.95));border-top:1px solid rgba(211,156,255,.35);box-shadow:0 -10px 30px rgba(139,34,255,.22)}
.visitor-count{margin-top:8px;font-size:20px;font-weight:900;color:#fff;text-shadow:0 0 12px #8b22ff}
@media(max-width:720px){.qr-grid{grid-template-columns:1fr}}
