:root {
  --color-bg: #050508;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.08);
  --color-primary: #45f3ff;
  --color-secondary: #9d4edd;
  --color-text: #ffffff;
  --color-text-muted: #a0a0b0;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Glow Effects */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-glow::before, .bg-glow::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  animation: float 20s infinite alternate;
}
.bg-glow::before {
  background: var(--color-primary);
  top: -200px;
  left: -200px;
}
.bg-glow::after {
  background: var(--color-secondary);
  bottom: -200px;
  right: -200px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Layout & Typography */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #fff 0%, var(--color-text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-shadow: 0 0 10px rgba(69, 243, 255, 0.5);
}

/* Glassmorphism Components */
.glass-card {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--color-surface-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: var(--transition);
}
nav.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  gap: 12px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: #000;
  box-shadow: 0 10px 20px rgba(69, 243, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(69, 243, 255, 0.4);
  color: #000;
  text-shadow: none;
}
.btn-secondary {
  background: var(--color-surface);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  z-index: 10;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition);
}
.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}
.hero-image img { width: 100%; height: auto; display: block; object-fit: contain; }

/* Feature Grid */
.features {
  padding: 100px 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(69, 243, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-primary);
  font-size: 24px;
}

/* Two Column Sections (How it works, Tech details) */
.split-section {
  padding: 100px 0;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-grid.reverse .split-content {
  order: 2;
}
.split-grid.reverse .split-image {
  order: 1;
}
.split-image img { width: 100%; height: auto; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.feature-list {
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}
.feature-list li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Stats Section */
.stats {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
}
.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.stat-label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

/* FAQ Accordion */
.faq-section {
  padding: 100px 0;
}
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  margin-bottom: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-header {
  padding: 24px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-inner {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
}

/* Long Form Content (Privacy Policy) */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 0;
}
.prose h2 {
  text-align: left;
  margin-top: 60px;
  margin-bottom: 24px;
}
.prose p {
  margin-bottom: 24px;
}
.prose ul, .prose ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--color-text-muted);
  font-size: 1.125rem;
}
.prose li {
  margin-bottom: 8px;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
}
.cta-box {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(69, 243, 255, 0.1) 100%);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.cta-box h2 {
  margin-bottom: 24px;
}
.play-badge {
  display: inline-block;
  margin-top: 40px;
  transition: var(--transition);
}
.play-badge:hover {
  transform: scale(1.05);
}
.play-badge img { height: 60px; width: auto; object-fit: contain; }

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 300px;
}
.footer-links h4 {
  margin-bottom: 24px;
}
.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--color-text-muted);
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .split-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .split-grid.reverse .split-content, .split-grid.reverse .split-image {
    order: initial;
  }
  .feature-list li {
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none; /* In production, add a hamburger menu */
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 120px 0 60px;
  }
}

/* Homepage Refinements: Animations & Testimonials */

/* Breathing Background Gradient */
@keyframes breathing-glow {
    0% {
        background-position: 0% 50%;
        opacity: 0.15;
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.25;
    }
    100% {
        background-position: 0% 50%;
        opacity: 0.15;
    }
}

.bg-glow {
    background-size: 200% 200%;
    animation: breathing-glow 15s ease-in-out infinite;
}

/* Scroll Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Testimonial Cards */
.testimonials {
    padding-top: 40px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--background);
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
}
