:root{
  --max: 1120px;
  --headerH: 72px;

  --menu: #4441A9;
  --menuHover: #2f2ca3;

  --bgA: #BD82FB;
  --bgB: #FFFFFF;

  --shadow: 0 10px 30px rgba(36, 22, 95, 0.18);
  --border: rgba(68,65,169,0.14);

  --text: #1c1630;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  overflow-x: hidden;
  background: linear-gradient(180deg, var(--bgA) 0%, var(--bgB) 100%);
  background-attachment: fixed;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .22;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

header, main, section, footer{ 
  position: relative; 
  z-index: 1; 
}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.721),
    rgba(255, 255, 255, 0.664),
    rgba(255, 255, 255, 0.745)
  );
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  z-index: 1;
}

.header-inner{
  height: var(--headerH);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.left-group{
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.brand{
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
}

.brand-stack{ 
  display: grid; 
  grid-auto-rows: min-content; 
  gap: 4px; }

.brand-img{ 
  height: 55px;
  width: 90px; 
  display:block;
  }

.nav{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
}

.nav-link{
  font-family: "Epilogue", system-ui;
  text-decoration: none;
  color: var(--menu);
  font-weight: 600;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.nav-link i{
  font-size: 18px;
  transition: transform 0.25s ease;
}

.nav-link:hover{
  color: #fff;
  background: linear-gradient(135deg, rgba(212, 160, 255, 0.416), rgba(129, 0, 250, 0.504));
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.nav-link:hover i{
  transform: translateY(-2px);
}

.nav-link.active{
  color: #ffffff;
  background: linear-gradient(135deg, rgba(212, 160, 255, 0.416), rgba(129, 0, 250, 0.504));
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.actions{
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
}

.menu-btn{
  display:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 18px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-btn:hover{ 
  background: rgba(255,255,255,0.45); 
  transform: scale(1.05); 
}

.menu-btn:active{ 
  transform: scale(0.98); 
}

.mobile-nav{
  display:none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 18px 16px;
}

.mobile-nav a{
  font-family: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  display:block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--menu);
  text-decoration:none;
  font-weight: 500;
  min-height: 44px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover{ 
  background: rgba(255,255,255,0.25); 
}

.mobile-nav.open{ 
  display:block; 
  animation: drop .18s ease-out; 
}

@keyframes drop{ 
  from{transform:translateY(-6px);opacity:0} to{transform:translateY(0);opacity:1} }

.home, .about, .guide, .install{ 
  background: transparent; 
  position: relative; 
  overflow: hidden; 
}

.home, .install{
  min-height: calc(100vh - var(--headerH));
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
}

.about, .guide{
  min-height: calc(100vh - var(--headerH));
  display: flex;
  align-items: center;
}

.home .container,
.about .container,
.guide .container,
.install .container{
  width: 100%;
  padding-top: 18px;
  padding-bottom: 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  width: 300px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  text-decoration:none;
  box-shadow: 0 10px 18px rgba(20, 10, 55, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 20px rgba(20, 10, 55, 0.15); }
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(68,65,169,0.16);
  color:#3e3ba6;
}

.btn-secondary{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  color: rgba(126, 82, 255, 0.95);
}

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.51);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  animation: particleFloat linear infinite;
  opacity: 0.6;
}

@keyframes particleFloat {
  0% { transform: translateY(0px) translateX(0px) scale(0.8); opacity: 0.6; }
  50% { transform: translateY(-60px) translateX(20px) scale(1); opacity: 0.9; }
  100% { transform: translateY(0px) translateX(0px) scale(0.8); opacity: 0.6; }
}

html{ scroll-snap-type: y proximity; }
.home, .about, .guide, .install{
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--headerH);
}

#typing-text{ display: inline-block; animation: slideIn 0.6s ease-out; }
@keyframes slideIn{ from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }

.reveal {
  opacity: 0;
  transform: translateY(100px) scale(0.96);
  filter: blur(12px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

.reveal-left  { transform: translateX(-140px) scale(0.96); }
.reveal-right { transform: translateX(140px) scale(0.96); }
.reveal-up    { transform: translateY(140px) scale(0.96); }
.reveal-down  { transform: translateY(-140px) scale(0.96); }

.reveal.visible {
  opacity: 1;
  transform: translate(0,0) scale(1);
  filter: blur(0);
}

.reveal.hidden {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(60px) scale(0.98);
}

.reveal.delay-1 { transition-delay: 0.15s; }
.reveal.delay-2 { transition-delay: 0.3s; }
.reveal.delay-3 { transition-delay: 0.45s; }

.manual-div {
  margin-left: auto;
  position: relative; 
  display: flex;
  align-items: center;
  z-index: 10000;
}

.manual-div .manual-download::after {
  content: "User Manual";
  position: absolute;
  top: 50%;
  right: 120%;
  transform: translateY(-50%) translateX(10px); 
  background: rgba(42, 29, 125, 0.9);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.manual-div .manual-download::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 110%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgba(42, 29, 125, 0.9) transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.manual-div .manual-download:hover::after,
.manual-div .manual-download:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0); 
}
@media (max-width: 820px){
  .nav{ display:none; }
  .menu-btn{ display:inline-flex; }
}

@media (max-width: 640px){
  .btn{ width: 100%; }
}

@media (min-width: 1024px) and (max-width: 1366px){

  :root{
    --max: 1000px;
  }

  .header-inner{
    padding: 0 18px;
  }

  .nav{
    gap: 22px;
  }

  .nav-link{
    font-size: 1rem;
    padding: 10px 12px;
  }

  .home, .install{
    padding-top: 100px;
  }

  .btn{
    width: 260px;
    font-size: 16px;
  }
}

@media (min-width: 1440px){

  :root{
    --max: 1280px;
  }

  .nav{
    gap: 40px;
  }

  .nav-link{
    font-size: 1.2rem;
  }

  .home, .install{
    padding-top: 80px;
  }

  .btn{
    width: 320px;
    font-size: 19px;
  }
}