/* iq3.ai - AI Lab Landing Page Styles */

:root {
  /* Breakoutprop-inspired blue theme */
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #60a5fa;
  --accent-color: #1d4ed8;

  --bg-color: #1e40af;
  --surface-color: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.65);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(90deg, #1e3a8a, #1e40af, #2563eb, #3b82f6, #2563eb, #1e40af);
  background-size: 600% 600%;
  animation: gradientShift 12s ease-in-out infinite;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 25% 50%; }
  50% { background-position: 50% 50%; }
  75% { background-position: 75% 50%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.2s ease;
}

.logo-img:hover {
  opacity: 0.85;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.auth-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

/* Main content */
.main-content {
  flex: 1;
  padding: var(--spacing-xxl) 0;
}

/* Hero Section */
.hero {
  padding: calc(var(--spacing-xxl) * 1.5) 0;
  margin: 0;
  text-align: left;
}

.hero-content {
  max-width: 1000px;
  margin: 0;
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -3px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 32px;
  max-width: 1000px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 21px;
  font-weight: 400;
  margin-bottom: 48px;
  line-height: 1.65;
  max-width: 750px;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

/* Content Sections */
.content-section {
  padding: var(--spacing-xxl) 0;
  margin: var(--spacing-xl) 0;
}

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

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -2px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.7;
  font-weight: 400;
}

/* White sections - for contrast */
.section-white {
  background: #ffffff;
  padding: 80px 0;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.section-white .section-title {
  color: #1f2937;
}

.section-white .section-subtitle,
.section-white p {
  color: #4b5563;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.card ul {
  list-style: none;
  margin-top: var(--spacing-md);
}

.card li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
}

.card li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* White card variant */
.section-white .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.section-white .card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 1);
  border-color: rgba(59, 130, 246, 0.2);
}

.section-white .card h3 {
  color: #1f2937;
}

.section-white .card p,
.section-white .card li {
  color: #6b7280;
}

/* Steps/Process Section */
.steps-container {
  max-width: 900px;
  margin: var(--spacing-xxl) auto;
}

.step {
  margin-bottom: var(--spacing-xxl);
  padding-left: var(--spacing-xl);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.step:hover {
  padding-left: calc(var(--spacing-xl) + 8px);
  border-left-color: #60a5fa;
}

.step h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.step p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Fix text visibility in white sections */
.section-white .step h3 {
  color: #1f2937;
}

.section-white .step p {
  color: #4b5563;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 120px;
  font-family: inherit;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

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

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

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

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-cta-hero {
  padding: 18px 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: #ffffff !important;
  color: #1e40af !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.3) !important;
}

.btn-cta-hero:hover {
  background: #f8fafc !important;
  color: #1e3a8a !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.4) !important;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  margin: var(--spacing-xxl) 0;
}

.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  letter-spacing: -1px;
}

.cta-section p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: auto;
}

.footer-links {
  margin-top: var(--spacing-sm);
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Blockquote */
blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 18px;
}

.section-white blockquote {
  color: #6b7280;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
  transition: opacity 0.2s;
}

.mobile-menu-toggle:active {
  opacity: 0.7;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: rgba(30, 58, 138, 0.98);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 24px;
  padding-top: 64px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 36px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  padding-left: 8px;
  color: #60a5fa;
}

.mobile-menu-btn {
  margin-top: 8px;
  padding: 14px 24px !important;
  text-align: center;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  background: transparent !important;
}

.mobile-menu-btn.primary {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  margin-top: 12px;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  padding-left: 24px !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .header {
    padding: 16px 0;
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 32px;
  }

  /* Hide desktop nav, show mobile toggle */
  .nav-menu {
    display: none !important;
  }

  .auth-buttons {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
  }
  
  /* Hero mobile fixes */
  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero-title {
    font-size: 48px !important;
    letter-spacing: -1.8px !important;
    line-height: 1.05 !important;
    margin-bottom: 32px !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4) !important;
  }
  
  .hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  
  /* Buttons mobile */
  .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 13px;
    justify-content: center;
  }

  .btn-cta-hero {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  .btn-outline {
    width: 100%;
  }

  /* Section spacing */
  .content-section {
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-md) 0;
  }

  .section-white {
    padding: var(--spacing-xxl) 0;
  }

  .section-title {
    font-size: 32px !important;
    letter-spacing: -1px !important;
    margin-bottom: var(--spacing-md);
  }

  .section-subtitle {
    font-size: 17px;
    line-height: 1.65;
  }
  
  /* Cards */
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .card {
    padding: var(--spacing-lg);
  }

  .card h3 {
    font-size: 22px;
  }

  .card p {
    font-size: 15px;
  }

  /* Steps */
  .step {
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }

  .step h3 {
    font-size: 22px;
  }

  .step p {
    font-size: 16px;
  }

  /* CTA section */
  .cta-section h2 {
    font-size: 32px !important;
    letter-spacing: -1px !important;
  }

  .cta-section p {
    font-size: 17px;
  }

  .cta-buttons {
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-lg) 0;
    text-align: center;
  }

  .footer p {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 40px !important;
    letter-spacing: -1.2px !important;
    line-height: 1.08 !important;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px !important;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-overlay,
  .mobile-menu-toggle {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Tablet improvements */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 64px;
    letter-spacing: -2px;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
