@import url("https://fonts.googleapis.com/css2?family=Jua&family=Noto+Sans+KR:wght@400;700&display=swap");

:root {
  --primary-color: #4aa8d8;
  --secondary-color: #a3d16d;
  --bg-sky: #e2f0f9;
  --bg-green: #e8f5e9;
  --bg-ivory: #fff9f0;
  --bg-skyblue: #cfe2f3;
  --text-dark: #374151;
  --text-gray: #6b7280;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.btn {
  font-family: "Jua", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 80px 20px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Float Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Section */
.hero {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 10px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 2.8rem; /* 3.5rem -> 2.8rem text size reduced */
  font-weight: normal; /* bold removed */
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.3;
  word-break: keep-all;
  white-space: nowrap; /* Force one line if container allows, or at least respect word-break better */
}

.hero-text p {
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.cta-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 40px;
  border-radius: 50px;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(74, 168, 216, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite ease-in-out;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 168, 216, 0.4);
}

.hero-image {
  width: 100%;
  max-width: 600px; /* Increased to accommodate two phones */
  height: 600px;
  position: relative;
  margin-top: 20px;
}

.hero-image img {
  position: absolute;
  width: 90%; /* [목업 크기 조절] 이 값을 변경하세요 (예: 50% = 작게, 80% = 크게) */
  height: auto;
  transition: transform 0.3s ease;
}

.phone-1 {
  left: 60px; /* Centered slightly */
  top: -20px; /* Moved up */
  transform: rotate(0deg); /* Straightened */
  z-index: 1;
  animation: float-phone-1 6s ease-in-out infinite;
  animation-delay: 0s;
}

.phone-2 {
  right: -270px; /* Adjusted to keep it visible */
  top: 40px; /* Moved up */
  transform: rotate(15deg);
  z-index: 2;
  animation: float-phone-2 6s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float-phone-1 {
  0% {
    transform: rotate(0deg) translateY(0px);
  }
  50% {
    transform: rotate(0deg) translateY(-15px);
  }
  100% {
    transform: rotate(0deg) translateY(0px);
  }
}

@keyframes float-phone-2 {
  0% {
    transform: rotate(15deg) translateY(0px);
  }
  50% {
    transform: rotate(15deg) translateY(-15px);
  }
  100% {
    transform: rotate(15deg) translateY(0px);
  }
}

/* Why Section */
.why {
  background-color: var(--bg-ivory);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.3rem; /* Reduced from 2.8rem */
  font-weight: normal; /* Removed bold */
  margin-bottom: 15px;
  color: var(--text-dark);
  word-break: keep-all;
  line-height: 1.35;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-gray);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.why-visual {
  position: relative;
  height: 500px; /* Increased height for the phone image */
  /* background: #f0f0f0; Removed background */
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Removed .before and .after styles as they are no longer used */

.why-text h3 {
  font-size: 1.8rem; /* Reduced from 2rem */
  font-weight: normal;
  margin-bottom: 20px;
  word-break: keep-all;
}

.why-text h4 {
  font-size: 1.4rem; /* Reduced from 2rem */
  font-weight: normal;
  margin-bottom: 20px;
  word-break: keep-all;
}

.why-text p {
  font-size: 1.2rem;
  color: var(--text-gray);
  white-space: pre-line;
}

/* Features Section */
.features {
  background-color: var(--white);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 2rem; /* Reduced from 2.2rem */
  font-weight: normal;
  margin-bottom: 15px;
  color: var(--primary-color);
  word-break: keep-all;
}

.feature-text p {
  font-size: 1.2rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.store-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px; /* Reduced gap slightly */
  margin-top: 25px;
  align-items: center;
  justify-content: flex-start;
}

.store-badge {
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

/* Visually matching sizing */
.store-badge.apple {
  height: 45px;
}

.store-badge.google {
  height: 58px; /* Reduced from 68px to match Apple height visually */
  margin: -9px 0; /* Adjusted margin for new height */
}

/* Mobile adjustment */
@media (max-width: 767px) {
  .store-buttons {
    justify-content: center;
  }
}

.feature-img {
  flex: 1;
  max-width: 350px;
  border-radius: 60px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-img2 {
  flex: 1;
  max-width: 300px;
  border-radius: 60px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.feature-img:hover {
  transform: scale(1.02);
}

/* Social Proof */
.social {
  background-color: #fdf2f8; /* Pinkish background */
  text-align: center;
}

.proof-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.proof-card {
  background: white;
  padding: 15px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: rotate(-3deg);
  max-width: 300px;
}

.proof-card:nth-child(2) {
  transform: rotate(3deg);
}

.proof-card img {
  border-radius: 2px;
  margin-bottom: 15px;
}

.section-footer {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-sky) 100%);
  padding: 100px 20px;
}

.section-footer h2 {
  font-size: 2.2rem; /* Reduced from 2.5rem */
  font-weight: normal;
  margin-bottom: 40px;
  word-break: keep-all;
  line-height: 1.35;
}

.contact-info {
  margin-top: 40px;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  text-decoration: underline;
  color: var(--text-dark);
}

.privacy-link {
  margin-top: 15px;
  font-weight: bold;
}

/* Responsiveness */
@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center; /* Vertically center */
  }

  .hero-text {
    flex: 1; /* Take up available space */
    max-width: 60%; /* Increased from 50% to give more space for text */
    align-items: flex-start;
    padding-right: 20px; /* Add some spacing */
  }

  .hero-image {
    flex: 1; /* Take up available space */
    max-width: 40%; /* Reduced to balance */
    margin-top: 0;
    height: 500px; /* Adjust height to fit phones */
    min-width: 300px; /* Prevent it from getting too small */
  }
}

@media (max-width: 767px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .feature-item:nth-child(even) {
    flex-direction: column;
  }

  .feature-img {
    max-width: 80%;
  }
}
