/* Shared styles for Pixio AI website */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

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

/* Header */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.cta-button {
  background: #1a1a1a;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.cta-button:hover {
  color: white;
  background: #2d2d2d;
}

.back-link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: #1a1a1a;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.hero p {
  font-size: 20px;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #1a1a1a;
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-primary:hover {
  color: white;
  background: #2d2d2d;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #1a1a1a;
  color: #1a1a1a;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #1a1a1a15;
}

/* Features Section */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #1a1a1a;
}

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

.feature {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: #f8f9fa;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #1a1a1a;
}

.feature p {
  color: #666;
  font-size: 16px;
}

/* Screenshots Section */
.screenshots {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
  position: relative;
}

.screenshots::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000" opacity="0.02"/><circle cx="80" cy="80" r="1" fill="%23000" opacity="0.02"/><circle cx="40" cy="60" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.screenshots h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #1a1a1a;
  position: relative;
  z-index: 1;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.screenshot {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.screenshot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: 1;
  pointer-events: none;
}

.screenshot:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.05);
}

.screenshot:nth-child(odd) {
  animation: float 6s ease-in-out infinite;
}

.screenshot:nth-child(even) {
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.screenshot-image-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.screenshot-image-container::after {
  content: '🔍';
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.screenshot:hover .screenshot-image-container::after {
  opacity: 1;
}

.screenshot img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.screenshot:hover img {
  transform: scale(1.05);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 75%;
  max-height: 100%;
  position: relative;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-caption {
  position: absolute;
  bottom: -80px;
  left: 0;
  right: 0;
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

.screenshot-caption {
  padding: 15px 30px 20px 30px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  z-index: 2;
}

.screenshot-caption::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e9ecef 50%, transparent 100%);
}

.screenshot-caption h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 600;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screenshot-caption p {
  color: #666;
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
}

/* Add special styling for first and last cards */
.screenshot:first-child {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.screenshot:last-child {
  background: linear-gradient(135deg, #fff 0%, #f1f3f4 100%);
}

/* Add glow effect on hover for better visual appeal */
.screenshot:hover::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(10px);
}

/* How It Works */
.how-it-works {
  padding: 80px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 60px;
  color: #1a1a1a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #1a1a1a;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.step p {
  color: #666;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Privacy Page Specific Styles */
.main {
  padding: 40px 0 80px;
}

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

.content h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.last-updated {
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
  padding: 12px 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: #1a1a1a;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
  color: #1a1a1a;
}

.content p {
  margin-bottom: 16px;
  color: #444;
}

.content ul,
.content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content li {
  margin-bottom: 8px;
  color: #444;
}

.highlight {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.highlight h3 {
  color: #2e7d32;
  margin-top: 0;
}

.contact-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
}

.contact-info h3 {
  margin-top: 0;
}

a {
  color: #1a1a1a;
  text-decoration: underline;
}

a:hover {
  color: #2d2d2d;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content h1 {
    font-size: 28px;
  }

  .content h2 {
    font-size: 20px;
  }

  .content h3 {
    font-size: 18px;
  }
}
