@font-face {
    font-family: 'Avenir Next LT Pro';
    src: url('Fonts/Avenir%20Next%20LT%20Pro%20Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

*{margin:0;padding:0;box-sizing:border-box;}
:root{
  --white:#ffffff;
  --lavender:#dbc5eb;
  --purple:#683695;
  --purple-dark:#4a2469;
  --purple-light:#8b4fc4;
  --bg:#faf8fc;
  --text:#1a1a2e;
  --text-muted:#6b6b8a;
}
html{scroll-behavior:smooth;}
body{
  font-family:'Avenir Next LT Pro';
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Fits viewport exactly without scrollbars on desktop */
}

/* NAV */
nav{position:fixed;top:0;left:0;right:0;z-index:100;padding:1.2rem 4rem;display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,0.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid #f0edf5;}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;}
.nav-links{display:flex;align-items:center;gap:2rem;}
.nav-links a{font-size:0.875rem;color:var(--text-muted);text-decoration:none;font-weight:500;transition:color 0.2s;}
.nav-links a:hover{color:var(--purple);}
.nav-links a.nav-cta{background:var(--purple);color:white;padding:0.6rem 1.5rem;border-radius:100px;font-size:0.875rem;font-weight:600;text-decoration:none;transition:all 0.2s;}
.nav-links a.nav-cta:hover{background:var(--purple-dark);color:white;transform:translateY(-1px);}

/* PAGE BACKGROUND WRAPPER */
.page-bg {
  flex: 1; /* Uses remaining height between nav and footer */
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-top: 72px; /* Clears navbar height */
}

/* BACKGROUND GRID & BLOBS */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(104, 54, 149, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(104, 54, 149, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.8;
}
.bg-blob-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(219, 197, 235, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bg-blob-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(104, 54, 149, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* SPLIT VIEWPORT WRAPPER */
.hero-card {
  position: relative;
  z-index: 10;
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  height: 100%; /* Dynamic fill */
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: none;
}

/* LEFT — HERO CONTENT */
.card-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 6rem 7.5rem; /* Shifted upwards dynamically to clear corner floating element */
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ebe6f2;
  border: 1px solid rgba(104, 54, 149, 0.15);
  border-radius: 100px;
  padding: 0.45rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.5rem; /* Reduced to fit vertical height */
  align-self: flex-start;
  animation: fadeUp 0.6s ease both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.5;transform:scale(1.5);}}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem); /* Scaled down slightly to fit desktop screens exactly */
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a2e;
  margin-bottom: 1.2rem; /* Tighter layout */
  letter-spacing: -0.015em;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title span {
  display: block;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.2rem; /* Compact layout */
  font-weight: 400;
  max-width: 460px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* RIGHT — VIDEO CONTENT */
.card-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3.5rem 7.5rem; /* Shifted upwards dynamically to clear corner floating element */
  background: #ffffff;
  border-left: 1px solid #f0edf5;
  position: relative;
}
.video-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 0.6rem;
}
.video-section-title {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.video-section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.8rem;
}
.video-frame {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0 15px 40px rgba(104, 54, 149, 0.1);
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 680px; /* Expanded limit for readable technical screen recordings */
  align-self: flex-start;
}
.video-inner {
  background: linear-gradient(135deg, #1b122c 0%, #0d0818 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(104, 54, 149, 0.1);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fixes Chrome/Safari subpixel clip blur */
  mask-image: radial-gradient(white, black);                 /* Standard property for compatibility */
}
#demo-vid {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  z-index: 1;
  image-rendering: -webkit-optimize-contrast; /* Sharpens text & contrast in Safari/Chrome */
  image-rendering: crisp-edges;               /* Sharpens text in Firefox */
}






/* BUTTONS */
.btn-primary {
  background: var(--purple);
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(104, 54, 149, 0.25);
}
.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(104, 54, 149, 0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--purple);
  padding: 0.75rem 1.8rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--purple);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--purple);
  color: white;
}

/* FOOTER */
footer {
  background: var(--text);
  padding: 1.2rem 4rem; /* Balanced, thin padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 10;
  flex-shrink: 0; /* Prevents shrinking */
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media(max-width:900px){
  body {
    height: auto;
    overflow: auto; /* Fallback to standard scroll layout on mobile */
  }
  .page-bg {
    height: auto;
    overflow: visible;
  }
  .hero-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }
  .card-left {
    padding: 6rem 2rem 3rem;
  }
  .card-right {
    padding: 3rem 2rem 4rem;
    border-left: none;
    border-top: 1px solid #f0edf5;
  }
  .video-frame {
    max-width: 100%;
  }
  nav{padding:1rem 1.5rem;}
  footer{padding:1.5rem;flex-direction:column;text-align:center;}
}

/* ============ CORNER GIF ============ */
.corner-gif {
    position: fixed;
    bottom: 12px;
    right: 20px;
    width: 160px;
    z-index: 50;
    pointer-events: none;
    animation: float-premium 8s ease-in-out infinite;
    animation-fill-mode: forwards;
}

.corner-gif img {
    width: 100%;
    height: auto;
}

@keyframes float-premium {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 1440px) {
    .corner-gif {
        width: 100px; /* Reduced from 120px to prevent visual overlap with fullscreen and video */
        bottom: 12px;
        right: 16px;
    }
}

@media (max-width: 1200px) {
    .corner-gif {
        width: 80px; /* Reduced from 90px to prevent visual overlap with fullscreen and video */
        bottom: 10px;
        right: 12px;
    }
}

@media (max-width: 1024px) {
    .corner-gif {
        display: none;
        /* Hide on tablets and mobile screens to prevent overlap with core content */
    }
}

/* ============ FLOATING FULLSCREEN BUTTON ============ */
.fullscreen-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(104, 54, 149, 0.85); /* Premium purple brand color with opacity */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.fullscreen-btn:hover {
  background: var(--purple);
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(104, 54, 149, 0.45);
  border-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.fullscreen-btn:active {
  transform: scale(0.95);
}
