/* global styles */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Addtional styles */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0f1624;
  --secondary-dark: #1a1f35;
  --accent-cyan: #00d4ff;
  --accent-magenta: #d946ef;
  --accent-dark: #b73eca;
  --accent-green: #5bf7c3;
  --text-primary: #ffffff;
  --text-secondary: #c5cdd7;
  --border-cyan: rgba(0, 212, 255, 0.2);
}

body {
  background: linear-gradient(to right, #171837, #151734);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}


/* mobile menu */

/* --- 1. Hide Desktop Elements on Mobile --- */
/* Only applies when screen is smaller than 768px (tablets/phones) */
@media (max-width: 767px) {

  header nav,
  header>div:not(.logo) {
    display: none;
  }
}

/* --- 2. Create the Hamburger Button --- */
.mobile-toggle {
  display: none;
  /* Hidden on desktop by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  margin-left: auto;
  /* Sits above the menu */
}

/* Hamburger Lines */
.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  /* Changed to white */
  border-radius: 2px;
  transition: 0.3s;
}

/* Show Hamburger on Mobile */
@media (max-width: 767px) {
  .mobile-toggle {
    display: flex;
  }
}

/* Animation when Hamburger is clicked (X shape) */
.mobile-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- 3. The Off-canvas Sidebar --- */
.offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #5240859c;
  backdrop-filter: blur(10px);
  /* Dark Background */
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- 4. The Dark Backdrop --- */
.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Slightly darker overlay */
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
}

/* --- 5. Active States (Triggered by JS) --- */
.offcanvas-menu.is-open {
  transform: translateX(0);
  /* Slide into view */
}

.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Stop background scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* --- 6. Styling links inside the menu --- */
.offcanvas-menu a {
  text-decoration: none;
  color: #ffffff;
  /* White Text */
  font-size: 1.1rem;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  /* Darker border color */
}

.offcanvas-menu a:hover {
  color: #cccccc;
  /* Light grey on hover */
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

/* --- Content Styling --- */
.card-content {
  z-index: 2;
}

.card-content h2 {
  margin: 0 0 10px 0;
  font-weight: 300;
  letter-spacing: 2px;
}

.card-content p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* --- The Glare Blob --- */
.glare-blob {
  position: absolute;
  width: 1000px;
  /* Large size for a soft gradient */
  height: 1000px;
  background: radial-gradient(circle,
      rgba(209, 93, 255, 0.2) 0%,
      rgba(209, 93, 255, 0.05) 40%,
      transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  /* Mouse ignores the blob itself */

  /* Variables set by JS */
  transform: translate(var(--x), var(--y));

  /* Animation States */
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Fade in/out */
}

/* When card is hovered, show the blob */
.glass-card:hover .glare-blob {
  opacity: 1;
}


.blob {
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

.blob-bg {
  top: 0;
  right: 0;
}

/* card */

.card-container {
  perspective: 1000px;
  width: 100%;
  max-width: 400px;
}

.card-header {
  margin-bottom: 20px;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.4s ease;
}

.glass-card:hover .card-icon {
  transform: translateY(-8px) scale(1.1);
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.card-content {
  margin-bottom: 25px;
}

.card-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: all 0.4s ease;
}

.glass-card:hover .card-text {
  color: rgba(255, 255, 255, 0.95);
}

.card-button {
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.card-button:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.card-button:active {
  transform: scale(0.98);
}


@media (max-width: 600px) {
  .card-title {
    font-size: 24px;
  }

  .card-icon {
    font-size: 40px;
  }
}

/* Header Navigation */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  border: 1px solid #41425c;
  background: #41425c86;
  backdrop-filter: blur(10px);
}

header {
  display: flex;
  align-items: center;
  padding: 1.5rem 4rem;
  gap: 1rem;
  max-width: 1400px;
  margin: auto;
}

nav {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  width: 100%;

}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-cyan);
}

.btn-early-access {
  background: linear-gradient(135deg, var(--accent-magenta), #46c8d9);
  border: none;
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-early-access:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(217, 70, 239, 0.3);
}

/* Main Content */
main {
  padding: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-left h1 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-left p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.hero-left p:first-of-type {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

/* Live Demo Card */
.live-demo {
  background: #41425c59;
  border: 1px solid #67698e;
  border-radius: 1.5rem;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.15);
  max-width: 400px;
}

.live-demo-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-demo-number {
  font-size: 5.5rem;
  font-weight: 600;
  background: linear-gradient(#6fe7cb, #a76ef9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demo-metrics {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.metric-badge {
  border: 1px solid rgba(72, 249, 190, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  background: rgba(64, 255, 191, 0.2);
  color: #6fe7cb;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-badge.purple {
  border: 1px solid rgba(205, 72, 249, 0.4);
  background: rgba(188, 64, 255, 0.2);
  color: #db97ff;
}

.metric-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #6fe7cb;
  border-radius: 50%;
}

.metric-badge .metric-dot {
  background: #db97ff;
}

.demo-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

.demo-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

/* Observe & Model Section */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Sample Users List */
.sample-users {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.user-card {
  /* backdrop-filter: blur(10px); */
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.1rem;  transition: all 0.3s ease;
  cursor: pointer;
}

.user-card:hover {
  border: 2px solid var(--accent-dark);
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74618d, #352b3b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.user-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.user-info p {
  color: var(--text-secondary);
}

.user-arrow {
  margin-left: auto;
  opacity: 0.7;
}

/* Behavioral Profile Grid */
.behavioral-profile {
  border: 1px solid #7d2d89;
  background: #41425c86;
  border-radius: 1rem;
  padding: 2rem;
}

.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.tag-secondary {
  background: rgba(217, 70, 239, 0.2);
  color: var(--accent-magenta);
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.metric-item {
  padding: 1.5rem;
  border-radius: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-item:hover {
  border: 2px solid var(--accent-dark);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  display: block;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  border-radius: 3px;
}

/* Comments & Retain Section */
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

/* Comments Section */
.comments-section {
  background: rgba(26, 31, 53, 0.4);
  border: 1px solid var(--border-cyan);
  border-radius: 1rem;
  padding: 2rem;
}

.profile-connection {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.avatar-small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
}

.profile-info-small {
  margin-left: 1rem;
}

.profile-info-small h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.profile-info-small p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.connection-line {
  position: absolute;
  left: 25px;
  top: 50px;
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent-magenta), transparent);
}

/* Retention Segments */
.segments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.segment-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem;
  border-radius: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

.segment-item:hover {
  border: 2px solid var(--accent-dark);
}

.segment-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #74618d, #352b3b);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.segment-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.segment-stat {
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.tag-accent {
  display: inline-block;
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.tag-accent.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
}

.tag-accent.special {
  background: rgba(217, 70, 239, 0.2);
  color: var(--accent-magenta);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 4rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent-cyan);
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 1024px) {

  .hero-section,
  .content-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 2rem;
  }

  header {
    padding: 1.5rem 2rem;
  }

  .hero-left h1 {
    font-size: 2.5rem;
  }

  .live-demo-number {
    font-size: 3rem;
  }
}


/* custom classes */

.smaller {
  font-size: 0.75rem;
}

.mini {
  font-size: 0.65rem;
}

.micro {
  font-size: 0.5rem;
}

.reset-input {
  border: none;
  outline: none;
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.reset-input::placeholder {
  color: inherit;
  opacity: 0.5;
}

/* media classes */

@media (max-width: 1200px) {
  /* large screens */
}

@media (max-width: 992px) {

  /* medium screens */
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {

  /* small screens */
  html {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  /* extra small screens */
}