/*
 * Time0 Website Styles
 * Based on the app's main.css theme system for consistency
 */

/* ========================================
   CSS Variables - Theme System (from app)
   ======================================== */

:root {
  /* Brand Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-dark: #4f46e5;
  --secondary: #f1f5f9;
  --accent: #10b981;
  --brand-emerald: #1DB584;
  --brand-navy: #1E2B4D;

  /* Semantic Colors */
  --warning: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --info: #3b82f6;

  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  /* Border Colors */
  --border-primary: #e2e8f0;
  --border: #e2e8f0;
  --border-secondary: #cbd5e1;

  /* Surface Colors */
  --surface-primary: #ffffff;
  --surface-primary-alpha: rgba(255, 255, 255, 0.8);
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;
  --surface: #ffffff;

  /* Background */
  --background: #f8fafc;

  /* Shadows */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Gradients */
  --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--brand-emerald) 100%);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  /* Brand Colors (adjusted for dark mode) */
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #334155;
  --accent: #34d399;

  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;

  /* Border Colors */
  --border-primary: #334155;
  --border: #334155;
  --border-secondary: #475569;

  /* Surface Colors */
  --surface-primary: #1e293b;
  --surface-primary-alpha: rgba(30, 41, 59, 0.8);
  --surface-secondary: #192232;
  --surface-tertiary: #334155;
  --surface: #1e293b;

  /* Background */
  --background: #1a202c;

  /* Shadows (lighter for dark mode) */
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.75);

  /* Gradients for dark mode */
  --gradient-bg: linear-gradient(135deg, #4338ca 0%, #581c87 100%);
}

/* Auto Theme - System Preference Detection */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    /* Brand Colors (adjusted for dark mode) */
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #334155;
    --accent: #34d399;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    /* Border Colors */
    --border-primary: #334155;
    --border: #334155;
    --border-secondary: #475569;

    /* Surface Colors */
    --surface-primary: #1e293b;
    --surface-primary-alpha: rgba(30, 41, 59, 0.8);
    --surface-secondary: #192232;
    --surface-tertiary: #334155;
    --surface: #1e293b;

    /* Background */
    --background: #1a202c;

    /* Shadows (lighter for dark mode) */
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.75);

    /* Gradients for dark mode */
    --gradient-bg: linear-gradient(135deg, #4338ca 0%, #581c87 100%);
  }
}

/* ========================================
   Base Styles - Reset and Typography
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  line-height: 1.6;
  color: var(--text-primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   SVG Icons
   ======================================== */

.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

.icon-xl {
  width: 48px;
  height: 48px;
}

/* ========================================
   Theme Toggle Button
   ======================================== */

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}

.theme-toggle .icon {
  width: 20px;
  height: 20px;
}

/* ========================================
   Header Styles
   ======================================== */

.header {
  background: var(--surface-primary);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-normal);
}

.mobile-menu-toggle:hover {
  background: var(--surface-secondary);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--surface-primary);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  opacity: 0;
  transform: translateY(-20px);
  transition: all var(--transition-normal);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu-content {
  padding: 2rem;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 2rem;
}

.mobile-nav-links li {
  margin-bottom: 1rem;
}

.mobile-nav-links a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-normal);
}

.mobile-nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.mobile-menu-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.mobile-cta {
  width: 100%;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: transform var(--transition-normal);
}

.mobile-cta:hover {
  transform: translateY(-1px);
  color: white;
}

.header-scrolled {
  backdrop-filter: blur(10px);
  background: var(--surface-primary-alpha);
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-normal);
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  transition: opacity var(--transition-normal);
}

/* Logo switching for themes */
[data-theme="light"] .logo-dark,
[data-theme="auto"] .logo-dark {
  display: none;
}

[data-theme="dark"] .logo-light {
  display: none;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .logo-light {
    display: none;
  }

  [data-theme="auto"] .logo-dark {
    display: block;
  }
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-normal);
}

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

.cta-nav {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

.hero {
  background: var(--gradient-bg);
  color: white;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 500px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 500px;
  color: white;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-app-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

.hero-device-frame {
  position: relative;
  max-width: 500px;
  filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.3));
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform var(--transition-slow);
}

.hero-device-frame:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* ========================================
   Page Header (for non-hero pages)
   ======================================== */

.page-header {
  background: var(--gradient-primary);
  color: white;
  padding: 120px 0 60px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

/* ========================================
   Content Section
   ======================================== */

.content-section {
  padding: 80px 0;
  background: var(--surface-primary);
  transition: background-color var(--transition-normal);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-container h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.content-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.content-container p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.content-container ul,
.content-container ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  margin-left: 2rem;
}

.content-container li {
  margin-bottom: 0.5rem;
}

.highlight-box {
  background: var(--surface-secondary);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-normal);
}

/* ========================================
   Button Styles (from app)
   ======================================== */

.btn {
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  user-select: none;
}

.btn:disabled,
a[disabled],
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-tertiary);
  transform: translateY(-1px);
  color: var(--text-primary);
}

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

.features {
  padding: 80px 0;
  background: var(--surface-primary);
  transition: background-color var(--transition-normal);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.faq-item {
  background: var(--surface-secondary);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-normal);
}

.faq-question:hover {
  background: var(--surface-tertiary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition-slow);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-container ul {
    padding-left: 1rem;
}

/* ========================================
   Audience Sections
   ======================================== */

.audience-section {
  padding: 80px 0;
  background: var(--surface-secondary);
  transition: background-color var(--transition-normal);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.audience-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

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

.audience-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 32px;
}

.audience-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.audience-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.audience-benefits {
  list-style: none;
  text-align: left;
}

.audience-benefits li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.audience-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ========================================
   Philosophy Section
   ======================================== */

.philosophy-section {
  padding: 80px 0;
  background: var(--gradient-primary);
  color: white;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.philosophy-card {
  text-align: center;
}

.philosophy-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.philosophy-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.philosophy-text {
  opacity: 0.9;
  color: white;
}

.philosophy-highlight {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

.philosophy-highlight h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.philosophy-highlight p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  color: white;
}

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

.cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  color: white;
}

.cta-section .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

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

.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  max-width: 150px;
  opacity: 0.9;
  transition: opacity var(--transition-normal);
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-section h3 {
  color: #f1f5f9;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-section ul li a:hover {
  color: #f1f5f9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

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

@media (max-width: 768px) {
  .logo img {
    height: 32px;
    max-width: 120px;
  }

  .nav {
    padding: 0.75rem 0;
  }

  .nav-links {
    display: none;
  }

  .cta-nav {
    display: none;
  }

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

  .mobile-menu {
    display: block;
  }

  /* Debug: temporary visible background */
  .mobile-menu.active {
    background: var(--surface-primary) !important;
    border: 2px solid var(--primary) !important;
  }

  /* Fix language selector z-index in mobile menu */
  .mobile-menu .language-dropdown {
    z-index: 1001 !important;
    position: static;
    width: 100%;
    min-width: auto;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-sm);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--surface-tertiary);
    border: 1px solid var(--border);
  }

  .mobile-menu .language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu .language-selector {
    position: relative;
    width: 100%;
  }

  .mobile-menu .language-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
  }

  .mobile-menu .language-option {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu .language-option:last-child {
    border-bottom: none;
  }

  .mobile-menu .language-option:hover {
    background: var(--surface-secondary);
  }

  .mobile-menu .language-option.active {
    background: var(--primary);
    color: white;
  }

  .mobile-menu .language-option.active:hover {
    background: var(--primary-hover);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    order: 2;
  }

  .hero-visual {
    order: 1;
    margin-bottom: 1rem;
  }

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

  .hero-subtitle {
    max-width: none;
  }

  .hero-device-frame {
    max-width: 350px;
    transform: none;
  }

  .hero-device-frame:hover {
    transform: scale(1.02);
  }

  .hero-app-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2rem;
  }

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

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

  .content-container {
    padding: 0 15px;
  }

  .content-container h2 {
    font-size: 1.75rem;
  }

  .content-container h3 {
    font-size: 1.25rem;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   Scrollbar Styling (from app)
   ======================================== */

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 4px solid transparent;
  background-clip: padding-box;
  min-height: 30px;
  transition: background-color var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-corner {
  background-color: transparent;
}

/* Dark mode scrollbar colors */
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:active {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

[data-theme="dark"] * {
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* ========================================
   Screenshots Section
   ======================================== */

.screenshots-section {
  padding: 80px 0;
  background: var(--surface-primary);
  overflow: hidden;
}

.screenshots-showcase {
  margin-top: 3rem;
}

/* ========================================
   Lightbox Styles
   ======================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
  animation: lightboxZoom 0.3s ease-out;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.lightbox-close::before,
.lightbox-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: white;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  max-width: 80%;
  text-align: center;
}

/* Make screenshots clickable */
.device-screenshot,
.screenshot-thumbnail img {
  cursor: zoom-in;
  transition: transform var(--transition-normal);
}

.device-screenshot:hover,
.screenshot-thumbnail img:hover {
  transform: scale(1.02);
}

.device-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.device-frame {
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

.device-frame:hover {
  transform: translateY(-10px) scale(1.02);
}

/* iPhone Frame */
.iphone-frame {
  width: 280px;
  padding: 10px;
  background: #1a1a1a;
  border-radius: 40px;
  border: 3px solid #333;
  position: relative;
}

.iphone-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.iphone-frame .device-screenshot {
  width: 100%;
  border-radius: 30px;
  display: block;
}

/* iPad Frame */
.ipad-frame {
  width: 400px;
  padding: 15px;
  background: #2a2a2a;
  border-radius: 25px;
  border: 3px solid #444;
  position: relative;
}

.ipad-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 3px;
  height: 40px;
  background: #444;
  border-radius: 2px;
}

.ipad-frame .device-screenshot {
  width: 100%;
  border-radius: 15px;
  display: block;
}

/* Mac Frame */
.mac-frame {
  width: 600px;
  background: #e8e8e8;
  border-radius: 10px 10px 0 0;
  padding-top: 25px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.mac-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 10px;
  width: 8px;
  height: 8px;
  background: #ff5f57;
  border-radius: 50%;
  box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #28ca42;
}

.mac-frame::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 20px;
  background: #d1d1d1;
  border-radius: 0 0 10px 10px;
}

.mac-frame .device-screenshot {
  width: 100%;
  display: block;
  border-radius: 0 0 5px 5px;
}

/* Screenshot Features Grid */
.screenshot-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.screenshot-feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
}

.screenshot-feature:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.screenshot-thumbnail {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screenshot-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.screenshot-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Dark mode adjustments */
[data-theme="dark"] .mac-frame {
  background: #3a3a3a;
}

[data-theme="dark"] .mac-frame::after {
  background: #2a2a2a;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .mac-frame {
    width: 500px;
  }

  .ipad-frame {
    width: 350px;
  }
}

@media (max-width: 768px) {
  .device-carousel {
    flex-direction: column;
    gap: 3rem;
  }

  .mac-frame {
    width: 90%;
    max-width: 400px;
  }

  .ipad-frame {
    width: 80%;
    max-width: 300px;
  }

  .iphone-frame {
    width: 60%;
    max-width: 240px;
  }

  .screenshot-features {
    grid-template-columns: 1fr;
  }

  .screenshot-feature {
    flex-direction: column;
    text-align: center;
  }

  .screenshot-thumbnail {
    width: 150px;
    height: 150px;
  }
}


/* how it works section */
.how-it-works {
    padding: 80px 0;
    background: var(--surface-primary);
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.video-features {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-features h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a202c;
    font-weight: 600;
}

.video-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-highlights li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
    color: #4a5568;
    border-bottom: 1px solid #f0f0f0;
}

.video-highlights li:last-child {
    border-bottom: none;
}

.video-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1DB584;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Tablet and Mobile Responsive */
@media (max-width: 968px) {
    .video-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .video-features {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .video-features {
        padding: 20px;
        border-radius: 12px;
    }

    .video-features h3 {
        font-size: 1.25rem;
    }

    .video-highlights li {
        font-size: 0.95rem;
        padding: 10px 0;
        padding-left: 28px;
    }
}

/* Dark mode support */
[data-theme="dark"] .how-it-works {
    background: var(--surface-primary);
}

[data-theme="dark"] .video-features {
    background: #2d3748;
}

[data-theme="dark"] .video-features h3 {
    color: #f7fafc;
}

[data-theme="dark"] .video-highlights li {
    color: #e2e8f0;
    border-bottom-color: #4a5568;
}
