/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #FF6B6B;
  --secondary-color: #4ECDC4;
  --accent-color: #FFE66D;
  --dark-color: #2A2A2A;
  --light-color: #FFFDF8;
  --text-color: #333333;
  --shadow-light: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-heavy: 0 12px 40px rgba(0,0,0,0.15);
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  line-height: 1.7;
  background: linear-gradient(135deg, #FFFDF8 0%, #F8F4E6 100%);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, var(--dark-color) 0%, #3A3A3A 100%);
  color: var(--light-color);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="20" fill="rgba(255,255,255,0.03)">🐾</text></svg>') repeat;
  animation: float 20s linear infinite;
  pointer-events: none;
}

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

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

nav {
  position: relative;
  z-index: 1;
}

nav a {
  display: inline-block;
  margin: 0 15px;
  padding: 8px 16px;
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #FF8E8E 50%, var(--accent-color) 100%);
  color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

#hero::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.06)"/></svg>');
  animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

#hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.download-buttons {
  position: relative;
  z-index: 1;
}

.download-buttons .btn {
  display: inline-block;
  margin: 10px;
  padding: 15px 30px;
  background: var(--dark-color);
  color: var(--light-color);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.download-buttons .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.download-buttons .btn:hover::before {
  width: 300px;
  height: 300px;
}

.download-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: #333;
}

/* Section Styles */
#features, #screenshots, main {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

#features h2, #screenshots h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark-color);
  position: relative;
}

#features h2::after, #screenshots h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

#features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

#features li {
  background: var(--light-color);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

#features li::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(30px, -30px);
}

#features li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

#features li strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Gallery Styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 2rem;
  justify-content: center;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-heavy);
}

/* Privacy Page Styles */
main {
  background: var(--light-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin: 2rem auto;
}

main section {
  padding: 2rem;
  border-bottom: 1px solid #eee;
}

main section:last-child {
  border-bottom: none;
}

main h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

main ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

main li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

main a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

main a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #3A3A3A 100%);
  color: var(--light-color);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  position: relative;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--light-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  #hero h2 {
    font-size: 1.8rem;
  }
  
  #features ul {
    grid-template-columns: 1fr;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .download-buttons .btn {
    display: block;
    margin: 10px auto;
    max-width: 200px;
  }
  
  nav a {
    display: block;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  #features, #screenshots, main {
    padding: 2rem 1rem;
  }
  
  header {
    padding: 1.5rem 1rem;
  }
  
  #hero {
    padding: 3rem 1rem;
  }
}

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

#features li, .gallery img, main section {
  animation: fadeInUp 0.6s ease-out;
}

/* Hero Section Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  background: rgba(255,255,255,0.2);
  padding: 1rem;
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.feature-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(255,107,107,0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

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

/* Screenshot Items */
.screenshot-item {
  text-align: center;
  transition: var(--transition);
}

.screenshot-item p {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--dark-color);
}

/* Benefits Section */
#benefits {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 1.5rem;
  margin: 3rem 0;
}

#benefits h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--dark-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.benefit-content p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
#cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  margin: 3rem 0;
}

.cta-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn-large {
  padding: 18px 35px !important;
  font-size: 1.2rem !important;
}

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

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-section h4 {
  color: var(--light-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

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

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

.footer-section a {
  color: #ccc;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  text-align: center;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    width: 200px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.5rem;
  }
  
  .benefit-card {
    padding: 1.5rem;
  }
  
  .stats {
    gap: 0.5rem;
  }
  
  .stat-item {
    width: 150px;
    padding: 0.8rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Privacy Page Specific Styles */
.header-content {
  position: relative;
  z-index: 1;
}

.privacy-nav {
  margin-top: 1.5rem;
}

.privacy-nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  transition: var(--transition);
}

.privacy-nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.privacy-intro {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-medium);
}

.privacy-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.privacy-intro p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.section-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.section-content {
  padding: 1rem 0;
}

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

.info-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid rgba(255,107,107,0.1);
  text-align: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.info-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.info-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.info-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  color: #666;
}

.info-card li:last-child {
  border-bottom: none;
}

.important-note {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffeaa7;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-color);
}

.important-note h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.important-note p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

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

.usage-item {
  display: flex;
  align-items: flex-start;
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-left: 4px solid var(--secondary-color);
}

.usage-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.usage-icon {
  font-size: 2.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

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

.usage-text p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.storage-info {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.storage-info h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.storage-info h3:first-child {
  margin-top: 0;
}

.storage-info p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.storage-info ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.storage-info li {
  margin: 0.5rem 0;
  color: #666;
}

.contact-info {
  background: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-card {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  border: 1px solid #dee2e6;
}

.contact-icon {
  font-size: 3rem;
  margin-right: 2rem;
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  margin: 0.5rem 0;
}

.contact-details a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.contact-details small {
  color: #666;
  font-size: 0.9rem;
}

.policy-footer {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 3rem;
  border: 1px solid #dee2e6;
}

.policy-footer p {
  color: #666;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.policy-footer p:first-child {
  font-weight: 600;
  color: var(--dark-color);
}

/* Privacy Page Responsive */
@media (max-width: 768px) {
  .privacy-nav a {
    display: block;
    margin: 5px 0;
    text-align: center;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .section-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .usage-grid {
    grid-template-columns: 1fr;
  }
  
  .usage-item {
    flex-direction: column;
    text-align: center;
  }
  
  .usage-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .contact-card {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .privacy-intro {
    padding: 2rem 1rem;
  }
  
  .privacy-intro h2 {
    font-size: 1.6rem;
  }
  
  .info-card, .usage-item, .storage-info, .contact-info {
    padding: 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
}
