/* Import Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Modern CSS Reset & Design Tokens */
:root {
  /* Color System - Warm Gold & Deep Bronze Charcoal */
  --primary-hue: 43; /* Warm Gold */
  --primary: hsl(var(--primary-hue), 74%, 56%);
  --primary-light: hsl(var(--primary-hue), 85%, 65%);
  --primary-glow: hsla(var(--primary-hue), 74%, 56%, 0.15);
  
  --secondary-hue: 16; /* Sunset Orange */
  --secondary: hsl(var(--secondary-hue), 100%, 62%);
  --secondary-light: hsl(var(--secondary-hue), 100%, 70%);
  
  --bg-color: hsl(20, 10%, 8%);      /* Deep Charcoal/Bronze Black */
  --bg-gradient: linear-gradient(135deg, hsl(20, 10%, 6%) 0%, hsl(20, 12%, 11%) 100%);
  
  --card-bg: hsla(20, 10%, 14%, 0.6);
  --card-border: hsla(var(--primary-hue), 30%, 30%, 0.2);
  --card-border-hover: hsla(var(--primary-hue), 74%, 56%, 0.5);
  
  --text-primary: hsl(0, 0%, 96%);   /* Off-white */
  --text-secondary: hsl(20, 10%, 70%); /* Muted gold-gray */
  --text-muted: hsl(20, 5%, 50%);
  
  /* Fonts */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --header-height-shrink: 60px;
  --container-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Glassmorphism */
  --glass-bg: hsla(20, 10%, 8%, 0.7);
  --glass-border: hsla(0, 0%, 100%, 0.08);
  --glass-blur: blur(20px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--primary-hue), 15%, 25%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Background Decorative Ambient Lights */
.ambient-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, hsla(var(--primary-hue), 74%, 56%, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--secondary-hue), 100%, 62%, 0.1) 0%, transparent 70%);
  top: 40%;
  left: -200px;
  z-index: 0;
  pointer-events: none;
  animation: pulse-glow 12s infinite alternate-reverse;
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.15) translate(20px, 30px); opacity: 1; }
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
}

/* Header & Sticky Navigation with Scroll-driven shrinking */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

header.shrink {
  height: var(--header-height-shrink);
  background-color: hsla(20, 10%, 8%, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Native CSS Scroll Driven Shrinking Header for Supporting Browsers */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: var(--header-height-shrink);
      background-color: hsla(20, 10%, 8%, 0.9);
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
  }
  header {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

nav a:hover, nav a.active {
  color: var(--primary);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--bg-color);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.3);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 59, 0.5);
  color: var(--bg-color);
}

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.badge {
  align-self: flex-start;
  background: hsla(var(--primary-hue), 74%, 56%, 0.1);
  border: 1px solid hsla(var(--primary-hue), 74%, 56%, 0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* App Badges */
.btn-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #000;
  border: 1px solid #333;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.btn-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-badge:hover {
  border-color: var(--primary);
  background-color: #111;
  transform: translateY(-2px);
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text .small {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #aaa;
}

.badge-text .large {
  font-size: 1rem;
  font-weight: 700;
}

/* Stats Group */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Phone Mockup Frame in CSS */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 570px;
  background-color: #0d0d0d;
  border: 10px solid #2d2d2d;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(229, 169, 59, 0.15);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.phone-mockup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  pointer-events: none;
}

/* Phone Screen notch/camera */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background-color: #2d2d2d;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-notch::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #111;
}

.phone-notch::after {
  content: '';
  position: absolute;
  right: 30px;
  top: 11px;
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: #444;
}

/* Phone Screen Slide Container */
.phone-slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.phone-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a1a1a;
}

.phone-slide.active {
  opacity: 1;
  z-index: 1;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlights reflection overlay on screen */
.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  z-index: 5;
}

/* Slide Indicator Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background-color: var(--primary);
  width: 18px;
  border-radius: 4px;
}

/* Features Grid Section */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px 32px;
  border-radius: 20px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-hover);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: hsla(var(--primary-hue), 74%, 56%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Showcase Section (Side-by-side Showcase) */
.showcase-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-row.reverse {
  direction: rtl;
}

.showcase-row.reverse .showcase-text {
  direction: ltr;
}

.showcase-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-tag {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.showcase-text h3 {
  font-size: 2.2rem;
  font-weight: 800;
}

.showcase-text p {
  color: var(--text-secondary);
}

.showcase-points {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.showcase-point svg {
  color: var(--primary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.showcase-mockup {
  display: flex;
  justify-content: center;
}

/* Call to Action Banner */
.cta-section {
  padding: 80px 0;
}

.cta-banner {
  background: linear-gradient(135deg, hsla(20, 15%, 12%, 0.8) 0%, hsla(20, 15%, 7%, 0.8) 100%);
  border: 1px solid var(--card-border);
  padding: 60px 40px;
  border-radius: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  max-width: 600px;
}

.cta-banner p {
  color: var(--text-secondary);
  max-width: 500px;
}

.cta-banner .hero-buttons {
  justify-content: center;
}

/* About Us Company Information Section */
.company-section {
  background-color: rgba(20, 15, 12, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 80px 0;
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.company-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.company-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.company-detail-item {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.company-detail-label {
  width: 140px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.company-detail-value {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-secondary);
}

/* Footer styles */
footer {
  background-color: hsl(20, 10%, 4%);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links-col h4 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Privacy Policy & Terms of Service Styles (Dedicated Legal Layout)
   ========================================================================== */
.legal-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.legal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legal-content {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
  font-family: var(--font-primary);
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-subtitle {
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .showcase-row.reverse {
    direction: ltr;
  }
  
  .showcase-row.reverse .showcase-text {
    direction: ltr;
  }
  
  .showcase-points {
    align-items: center;
  }
  
  .company-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  nav {
    display: none; /* Mobile menu can toggle using script */
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Mobile drawer navigation styled dynamically or by adding active class */
  nav.mobile-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: hsl(20, 12%, 10%);
    padding: 30px;
    border-bottom: 1px solid var(--glass-border);
    gap: 20px;
    z-index: 99;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .legal-container {
    padding: 24px;
  }
}
