/* Reset & Base */
* {
  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: #1d1d1f;
  background-color: #fff;
  overflow-x: hidden;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(88, 86, 214, 0.3), transparent 50%);
  animation: float 20s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 40px 20px;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-screenshots {
  flex: 0 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}

.hero-screenshot {
  width: 300px;
  height: auto;
  border-radius: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.hero-screenshot:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease;
}

.hero-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  opacity: 0.95;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-cta {
  margin-bottom: 60px;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.app-store-badge {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.app-store-badge:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.app-store-badge-cta {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.app-store-badge-cta:hover {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.hero-pattern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.pattern-item {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.pattern-item:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.pattern-arrow {
  font-size: 1.5rem;
  opacity: 0.7;
}

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  padding: 15px 0;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav-list a {
  color: #1d1d1f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-list a:hover {
  color: #667eea;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-intro {
  text-align: center;
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Screenshots Section */
.section-screenshots {
  background: white;
}

.screenshots-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.screenshot-item {
  flex: 0 0 auto;
  text-align: center;
}

.screenshot-image {
  width: 250px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.screenshot-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-caption {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1d1d1f;
}

.feature-description {
  color: #666;
  line-height: 1.8;
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 60px auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.fade-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  width: 45%;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #1d1d1f;
}

.timeline-content p {
  color: #666;
  margin: 0;
}

/* Curve Visual */
.curve-visual {
  max-width: 600px;
  margin: 60px auto 0;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.forgetting-curve {
  width: 100%;
  height: auto;
}

.curve-legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #666;
}

.legend-line {
  width: 40px;
  height: 3px;
  border-radius: 2px;
}

.legend-with-review {
  background: linear-gradient(90deg, #007aff 0%, #5ac8fa 100%);
}

.legend-without-review {
  background: linear-gradient(90deg, #007aff 0%, #5ac8fa 100%);
  opacity: 0.4;
}

/* CTA Section */
.section-cta {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  background: none;
  -webkit-text-fill-color: white;
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn-icon {
  font-size: 1.3rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-screenshot {
    width: 260px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-marker {
    left: 30px;
    transform: translateX(0);
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 100px;
    margin-right: 0;
    width: calc(100% - 100px);
  }
}

@media (max-width: 768px) {
  .hero-logo-wrapper {
    margin-bottom: 20px;
  }

  .hero-app-icon {
    width: 50px;
    height: 50px;
  }

  .hero-logo {
    font-size: 2rem;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .app-store-badge {
    height: 45px;
  }

  .hero-pattern {
    gap: 10px;
    justify-content: center;
  }

  .pattern-item {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .pattern-arrow {
    font-size: 1.2rem;
  }

  .hero-screenshot {
    width: 240px;
  }

  .nav-list {
    gap: 20px;
    flex-wrap: wrap;
  }

  .section {
    padding: 60px 0;
  }

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

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

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

  .cta-subtitle {
    font-size: 1.1rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .screenshot-image {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .hero-logo-wrapper {
    margin-bottom: 15px;
  }

  .hero-app-icon {
    width: 45px;
    height: 45px;
  }

  .hero-logo {
    font-size: 1.8rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Page Styles (for privacy.html, support.html) */
.page-header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  letter-spacing: 1px;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.header-nav a.active {
  color: #667eea;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

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

.page-main {
  padding: 60px 0 100px;
  background: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.page-title-section {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
}

.page-updated {
  color: #999;
  font-size: 0.9rem;
}

.content-card {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 40px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-heading {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1d1d1f;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
}

.content-subheading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 25px 0 15px;
  color: #1d1d1f;
}

.content-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.content-list {
  margin-left: 25px;
  margin-bottom: 20px;
}

.content-list li {
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.content-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.content-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* FAQ Styles */
.faq-item {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: #f0f2f5;
  transform: translateX(5px);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 10px;
}

.faq-answer {
  color: #555;
  line-height: 1.8;
  margin: 0;
}

.contact-box {
  text-align: center;
  margin: 30px 0;
}

/* Responsive for page styles */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .header-nav {
    gap: 20px;
  }

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

  .content-card {
    padding: 30px 20px;
  }

  .content-heading {
    font-size: 1.5rem;
  }

  .faq-question {
    font-size: 1.1rem;
  }
}
