/* PicZap Landing Page Styles */

:root {
  --color-primary: #FFC800;
  --color-primary-dark: #FFB800;
  --color-black: #0A0A0A;
  --color-white: #FFFFFF;
  --color-cream: #FFF9E6;
  --color-gray: #666666;
  --color-light-gray: #F5F5F5;
  --color-dark-gray: #1A1A1A;

  --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --border-radius: 24px;
  --border-radius-sm: 12px;
  --max-width: 1400px;
  --header-height: 80px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-black);
  background: linear-gradient(135deg, #FFF9E6 0%, #FFFFFF 50%, #FFF9E6 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 249, 230, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  height: 56px;
  width: 56px;
  border-radius: var(--border-radius-sm);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
  background: #333;
}

.app-store-btn {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  line-height: 0;
}

.app-store-btn:hover {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.app-store-btn img {
  height: 100%;
  width: auto;
  display: block;
}

/* Header App Store Button - Smaller */
.header .app-store-btn {
  height: 40px;
}

/* Hero & CTA App Store Button - Larger */
.hero-cta .app-store-btn,
.final-cta .app-store-btn {
  height: 60px;
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 30px;
}

@media (min-width: 1024px) {
  .hero-inner {
    gap: 40px;
  }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-black);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  padding: 4px 16px;
  border-radius: var(--border-radius-sm);
  display: inline-block;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero h1 span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.hero-subtitle {
  font-size: clamp(20px, 3.5vw, 26px);
  color: var(--color-gray);
  max-width: 700px;
  margin: 0 auto 24px;
  font-weight: 400;
  line-height: 1.5;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .hero-subtitle {
    margin-bottom: 12px;
  }
}

  .hero-cta {
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/* Screenshots */
.screenshots {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  flex: 1;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.screenshot {
  width: min(50vw, 800px);
  height: auto;
  aspect-ratio: 1240 / 1346;
  object-fit: contain;
  border-radius: 40px;
  box-shadow: var(--shadow-xl), 0 0 0 8px rgba(255, 200, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  position: relative;
}

@media (min-width: 1024px) {
  .screenshot {
    width: min(45vw, 900px);
  }
}

.screenshot:hover {
  transform: translateY(-20px) scale(1.02);
  box-shadow: var(--shadow-xl), 0 0 0 12px rgba(255, 200, 0, 0.15);
}

.screenshot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--color-primary), rgba(255, 200, 0, 0.3));
  border-radius: 42px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.screenshot:hover::after {
  opacity: 1;
}

/* Features Section */
.features {
  padding: 120px 32px;
  background: linear-gradient(180deg, var(--color-white) 0%, #FAFAFA 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 80px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.feature-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 200, 0, 0.2);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-gray);
  font-size: 17px;
  line-height: 1.6;
}

/* Trust Section */
.trust {
  padding: 100px 32px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.05) 0%, transparent 100%);
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  min-width: 280px;
}

.trust-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 200, 0, 0.3);
}

.trust-badge-icon {
  font-size: 36px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

.trust-badge:nth-child(2) .trust-badge-icon {
  animation-delay: 0.5s;
}

.trust-badge:nth-child(3) .trust-badge-icon {
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.trust-badge-text {
  text-align: left;
}

.trust-badge-text strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.trust-badge-text span {
  color: var(--color-gray);
  font-size: 15px;
}

/* FAQ Section */
.faq {
  padding: 120px 32px;
  background: var(--color-white);
}

.faq-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 80px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

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

.faq-item {
  padding: 32px;
  background: var(--color-light-gray);
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.faq-item h3 {
  font-size: 22px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.faq-item p {
  color: var(--color-gray);
  font-size: 16px;
  line-height: 1.6;
}

.faq-item a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.faq-item a:hover {
  color: var(--color-primary-dark);
}

/* Final CTA */
.final-cta {
  padding: 120px 32px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark-gray) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.final-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
  font-size: 20px;
  line-height: 1.6;
}

.final-cta .app-store-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer */
.footer {
  padding: 60px 32px;
  background: var(--color-black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 0, 0.3), transparent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Legal Pages */
.legal-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

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

.legal-content h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--color-gray);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 700;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--color-gray);
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--color-gray);
}

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

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo {
    height: 48px;
    width: 48px;
  }

  /* Header App Store Button - Smaller on mobile */
  .header .app-store-btn {
    height: 36px;
  }

  /* Hero & CTA App Store Button - Medium on mobile */
  .hero-cta .app-store-btn,
  .final-cta .app-store-btn {
    height: 50px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 10px);
    padding-bottom: 10px;
    min-height: auto;
  }

  .hero-inner {
    padding: 0 20px;
    gap: 10px;
  }

  .screenshots {
    padding: 0;
    flex: 1;
  }

  .screenshot {
    width: min(90vw, 500px);
    aspect-ratio: 1240 / 1346;
    border-radius: 32px;
  }

  .features {
    padding: 80px 20px;
  }

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

  .feature-card {
    padding: 40px 24px;
  }

  .trust {
    padding: 80px 20px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .trust-badge {
    min-width: auto;
    justify-content: center;
  }

  .faq {
    padding: 80px 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-item {
    padding: 24px;
  }

  .final-cta {
    padding: 80px 20px;
  }

  .footer {
    padding: 40px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

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

@media (max-width: 480px) {
  .screenshot {
    width: min(80vw, 400px);
    max-height: calc(100vh - var(--header-height) - 80px);
    aspect-ratio: 1240 / 1346;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 12px;
  }
}
