/* ========================================
   Aithlo Website Styles
   Matching the frontend app styling
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand Colors */
  --teal-50: #e6faf6;
  --teal-100: #b3f0e5;
  --teal-200: #80e6d4;
  --teal-300: #4ddcc3;
  --teal-400: #1ad2b2;
  --teal-500: #00b894;
  --teal-600: #00a080;
  --teal-700: #00876b;
  --teal-800: #006e56;
  --teal-900: #005542;

  --navy-50: #e8eef1;
  --navy-100: #c5d4dc;
  --navy-200: #9fb8c5;
  --navy-300: #799cae;
  --navy-400: #5c869c;
  --navy-500: #3f708a;
  --navy-600: #325a70;
  --navy-700: #264456;
  --navy-800: #1b3a4b;
  --navy-900: #0f2530;

  /* Gradients */
  --gradient-teal: linear-gradient(135deg, #00b894 0%, #00d4aa 100%);
  --gradient-navy: linear-gradient(135deg, #1b3a4b 0%, #264456 100%);
  --gradient-hero: linear-gradient(135deg, #1b3a4b 0%, #264456 50%, #00b894 100%);

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Aeonik', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy-800);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--gray-600);
  font-size: 1.125rem;
}

a {
  color: var(--teal-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-600);
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background-color: var(--gray-50);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-logo {
  height: 36px;
  width: auto;
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-800);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-500);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-teal);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: var(--navy-800);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.hero::before {
  width: 400px;
  height: 400px;
  background: var(--teal-400);
  top: -100px;
  left: -100px;
  animation-delay: -5s;
}

.hero::after {
  width: 500px;
  height: 500px;
  background: var(--teal-500);
  bottom: -150px;
  right: -150px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-2xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: var(--gradient-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-teal);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 184, 148, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--teal-500);
  border: 2px solid var(--teal-500);
}

.btn-outline:hover {
  background: var(--teal-500);
  color: white;
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

/* ========================================
   Features Section
   ======================================== */

.features {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: 1.25rem;
  color: var(--gray-500);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-100);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-teal);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 1rem;
  color: var(--gray-500);
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
  background: var(--gray-50);
  padding: var(--spacing-3xl) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--gray-200);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--gradient-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-md);
}

.step h3 {
  margin-bottom: var(--spacing-sm);
}

.step p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================
   App Preview Section
   ======================================== */

.app-preview {
  padding: var(--spacing-3xl) 0;
  overflow: hidden;
}

.preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.preview-content h2 {
  margin-bottom: var(--spacing-md);
}

.preview-content p {
  margin-bottom: var(--spacing-lg);
}

.preview-features {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.preview-features li {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  color: var(--gray-600);
}

.preview-features li svg {
  width: 24px;
  height: 24px;
  color: var(--teal-500);
  flex-shrink: 0;
}

.preview-image {
  position: relative;
}

.preview-image > img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.phone-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.phone-marquee-track {
  display: flex;
  gap: var(--spacing-lg);
  width: max-content;
  animation: phone-scroll 40s linear infinite;
}

.phone-marquee-track img {
  height: 560px;
  width: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  background: var(--navy-800);
}

.phone-marquee:hover .phone-marquee-track {
  animation-play-state: paused;
}

@keyframes phone-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--spacing-lg) / 2)); }
}

.preview-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--gradient-teal);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

/* ========================================
   Shift Section (Turbo Trainer)
   ======================================== */

.shift-section {
  background: var(--navy-800);
  padding: var(--spacing-3xl) 0;
  color: white;
}

.shift-section h2 {
  color: white;
}

.shift-section p {
  color: rgba(255, 255, 255, 0.8);
}

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.shift-features {
  list-style: none;
}

.shift-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.shift-features li:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.shift-features li svg {
  width: 24px;
  height: 24px;
  color: var(--teal-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.shift-features li strong {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: white;
}

.shift-features li span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.shift-image {
  position: relative;
}

.shift-image > img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.shift-gallery {
  position: relative;
  display: grid;
  gap: var(--spacing-md);
}

.shift-gallery img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shift-gallery img:nth-child(1) {
  transform: translateX(-4%) rotate(-1.2deg);
}

.shift-gallery img:nth-child(2) {
  transform: translateX(4%) rotate(1.2deg);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  background: var(--gradient-teal);
  padding: var(--spacing-3xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-secondary {
  background: white;
  color: var(--teal-600);
  border: none;
}

.cta-section .btn-secondary:hover {
  background: var(--gray-100);
  color: var(--teal-700);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  background: var(--navy-900);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .navbar-brand {
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-nav h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--spacing-lg);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--spacing-sm);
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   Software/Download Page
   ======================================== */

.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient-navy);
  text-align: center;
}

.page-hero h1 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.downloads-section {
  padding: var(--spacing-3xl) 0;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-3xl);
}

.download-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--teal-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.download-card.featured {
  border-color: var(--teal-500);
  position: relative;
}

.download-card.featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-teal);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 40px;
  height: 40px;
  color: var(--navy-800);
}

.download-card h3 {
  margin-bottom: var(--spacing-sm);
}

.download-card .version {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-lg);
}

.download-card .btn {
  width: 100%;
}

.system-requirements {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
}

.system-requirements h3 {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.requirement-group h4 {
  color: var(--teal-600);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
}

.requirement-group ul {
  list-style: none;
}

.requirement-group li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.95rem;
  color: var(--gray-600);
}

.requirement-group li svg {
  width: 16px;
  height: 16px;
  color: var(--teal-500);
  flex-shrink: 0;
  margin-top: 4px;
}

/* ========================================
   Mobile Navigation
   ======================================== */

.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: white;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--spacing-md);
  color: var(--navy-800);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }

  .features-grid,
  .steps,
  .download-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .preview-container,
  .shift-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .preview-image {
    order: -1;
  }

  .phone-marquee-track img {
    height: 440px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .features-grid,
  .steps,
  .download-cards {
    grid-template-columns: 1fr;
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .phone-marquee-track img {
    height: 380px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero {
    padding-top: 100px;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
