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

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #111;
  height: 100vh;
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(20, 60, 120, 0.08),
      transparent 45%
    );
  z-index: -1;
  pointer-events: none;
}


/* LOADER */
#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: grid;
  place-items: center;
  z-index: 10;
}


#loader img {
  width: 120px;
  max-width: min(60vw, 320px);
  animation: fade 1.2s ease-in-out infinite;
}

@keyframes fade {
  0% {
    opacity: 0.3;
    transform: scale(0.96);
   }
  50% { 
    opacity: 1;
    transform: scale(1);
   }
  100% { 
    opacity: 0.3;
    transform: scale(0.96);
   }
}

/* APP */
.hidden {
  display: none;
}

#app {
  position: relative;
  height: 100vh;
}

/* VIEWS */
.view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* CONTENT */
.content {
  max-width: 680px;
  padding: 40px;
}

h1 {
  font-size: 3.6rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
}

.description {
  margin-top: 18px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
}

/* BUTTONS */
button {
  margin-top: 36px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.primary {
  background: #000;
  color: #fff;
}

.primary:hover {
  opacity: 0.85;
}

.secondary {
  background: transparent;
  color: #666;
}

/* PRODUCT DETAILS */
.pill-group {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-group span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  color: #555;
}

/* MOBILE */
@media (max-width: 768px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.2rem;
  }
}

/* BACKGROUND EFFECTS */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(0, 0, 0, 0.04),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(0, 0, 0, 0.035),
      transparent 45%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(0, 0, 0, 0.03),
      transparent 50%
    );
}

#product.active {
  background:
    radial-gradient(
      circle at top right,
      rgba(0,0,0,0.06),
      transparent 45%
    );
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* MENU BUTTON */
.menu-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  font-size: 1.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

/* MENU BUTTON (hamburger) */
.menu-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 40;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: #111;
}

/* Hide menu button by default */
.menu-btn {
  display: none;
}
/* Prevent content from hiding under menu button */
.content {
  padding-top: 60px;
}
.menu-btn {
  left: auto;
  right: 20px;
}


/* SIDEBAR */
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 300px;
  max-width: 85%;
  background: #ffffff;
  box-shadow: 8px 0 30px rgba(0,0,0,0.1);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  z-index: 50;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

#sidebar.open {
  transform: translateX(0);
}

/* CLOSE BUTTON */
.close-btn {
  align-self: flex-end;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: 32px;
}

/* NAV */
#sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#sidebar nav a {
  font-size: 1.1rem;
  text-decoration: none;
  color: #111;
  padding: 12px 4px;
  border-radius: 8px;
}

#sidebar nav a:hover {
  background: rgba(0,0,0,0.04);
}

/* OVERLAY (background dim) */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 45;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 480px) {
  #sidebar nav a {
    font-size: 1.15rem;
  }
}

/* LEGAL PAGES */
.legal-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-top: 120px;
}

.back-link {
  display: inline-block;
  margin-top: 32px;
  text-decoration: none;
  color: #666;
}

/* ENABLE SCROLLING FOR LEGAL PAGES */
body.legal {
  height: auto;
  overflow-y: auto;
}

/* Better reading experience */
body.legal .content {
  max-width: 720px;
  padding-bottom: 120px;
}

/* PRODUCT DEMO VIDEO */
.demo-video {
  margin-top: 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.demo-video video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}

/* #product {
  padding-top: 80px;
  padding-bottom: 120px;
} */

/* DEMO VIDEO MODAL */
#demoModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#demoModal.active {
  display: flex;
}

.demo-modal-content {
  width: 92%;
  max-width: 900px;
  position: relative;
}

.demo-modal-content video {
  width: 100%;
  border-radius: 16px;
  background: #000;
}

/* CLOSE BUTTON */
#closeDemo {
  position: absolute;
  top: -44px;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
