/* Base Styles */
:root {
  --pink-light: #ffb5e8;
  --pink-medium: #ff719a;
  --pink-dark: #ff6584;
  --blue-light: #7aa9f5;
  --blue-medium: #4a89dc;
  --blue-dark: #3a6bc5;
  --purple-light: #d4bfff;
  --purple-medium: #9b87f5;
  --purple-dark: #7e69ab;
  --white: #ffffff;
  --grey-light: #f7f8fa;
  --grey-medium: #e5e7eb;
  --grey-dark: #8e9196;
  --text-dark: #1a1f2c;
  --text-medium: #4b5563;
  --text-light: #6b7280;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  word-break: keep-all;
}

@font-face {
  font-family: "Paperlogy-8ExtraBold";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2")
    format("woff2");
  font-weight: 800;
  font-style: normal;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.section-header h2 {
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  /* max-width: 1280px; */
  margin: 0 auto;
}

/* Animation keyframes */
@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translateY(-40vh) translateX(20px) scale(1.2) rotate(20deg);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-90vh) translateX(-20px) scale(0.8) rotate(-10deg);
    opacity: 0;
  }
}

/* Animated elements */
.animate-float-1 {
  animation: float 4s ease-in-out infinite;
}

.animate-float-2 {
  animation: float 6s ease-in-out infinite;
}

.animate-float-3 {
  animation: float 5s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.8s forwards;
}

/* Header/Hero Section */
.hero {
  min-height: 720px;
  background: linear-gradient(to bottom right, #60a5ea, #fbcfe8);
  color: var(--white);
  padding: 0 5rem;
  padding-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.logo {
  width: 8rem;
  height: auto;
  margin-bottom: 2.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6.25rem;
  gap: 2.5rem;
}

.hero-text {
  text-align: left;
  max-width: 36rem;
  z-index: 10;
  flex: 1;
}

.hero-text h1 {
  font-size: 3.125rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-text p {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .app-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2.5rem;
  }
}

.store-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.store-link:hover {
  transform: scale(1.05);
}

.store-link img {
  height: 3rem;
}

.hero-image {
  max-width: 900px;
  z-index: 10;
  flex: 1;
}

/* Features Section */
.features {
  background-color: var(--white);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 800;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 48rem;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.features-grid {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 2.5rem;
  padding: 0 5rem;
}
@media (min-width: 768px) {
  .features-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2.5rem;
    padding: 0 5rem;
  }
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-card.blue {
  background-color: #eff6ff;
}

.feature-card.pink {
  background-color: #fce7f3;
}

.feature-card.purple {
  background-color: #f5f3ff;
}

.feature-icon {
  background-color: rgba(255, 255, 255, 0.5);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-card.blue .feature-icon {
  background-color: rgba(122, 169, 245, 0.2);
}

.feature-card.pink .feature-icon {
  background-color: rgba(255, 113, 154, 0.2);
}

.feature-card.purple .feature-icon {
  background-color: rgba(155, 135, 245, 0.2);
}

.feature-card.blue .feature-icon .icon {
  color: var(--blue-medium);
}

.feature-card.pink .feature-icon .icon {
  color: var(--pink-medium);
}

.feature-card.purple .feature-icon .icon {
  color: var(--purple-medium);
}

.icon {
  width: 2rem;
  height: 2rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.feature-card p {
  color: var(--text-medium);
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Nearby Connection Section */
.nearby-connection {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, #eff6ff, #fdf2f8);
}

/* Profile Cards */
.profile-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.profile-card {
  position: relative;
  width: 220px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: visible;
}

.profile-card-inner {
  background-color: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.profile-info {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
}

.profile-name-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.profile-name-container h4 {
  font-size: 1rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.profile-distance {
  font-size: 0.875rem;
  color: var(--text-medium);
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.profile-tag.age {
  background-color: rgba(255, 113, 154, 0.2);
  color: var(--pink-medium);
}

.profile-tag.gender {
  background-color: rgba(142, 145, 150, 0.2);
  color: var(--text-medium);
}

.profile-tag.mbti {
  background-color: rgba(122, 169, 245, 0.2);
  color: var(--blue-medium);
}

.heart-icon {
  position: absolute;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-medium);
  fill: var(--pink-medium);
  z-index: 10;
}

.heart-icon.top-left {
  top: -0.75rem;
  left: -0.75rem;
}

.heart-icon.top-right {
  top: -0.75rem;
  right: -0.75rem;
}

.heart-icon.bottom-right {
  bottom: -0.75rem;
  right: -0.75rem;
}

.heart-icon.bottom-left {
  bottom: -0.75rem;
  left: -0.75rem;
}

.heart-icon .icon {
  width: 100%;
  height: 100%;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow-x: hidden;
}

.how-it-works::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.how-it-works .container {
  position: relative;
  z-index: 2;
}

.section-header.light h2 {
  color: var(--white);
}

.section-header.light p {
  color: var(--white);
  opacity: 0.9;
}

.chat-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.interaction-mockup {
  position: relative;
  margin-top: 4rem;
  height: 40rem;
}

.phone-container {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.phone {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.speech-bubble {
  position: absolute;
  z-index: 30;
}

.speech-bubble.left {
  top: 30%;
  right: 80%;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  transform: scale(0.9);
  transition: transform 0.3s ease;
  animation: pulse 4s ease-in-out infinite;
}

.speech-bubble.left:hover {
  transform: scale(1);
}

.speech-bubble.right {
  top: 60%;
  left: 80%;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
  animation: float 6s ease-in-out infinite;
}

.bubble-img {
  width: 13rem;
  height: 11rem;
  object-fit: contain;
}

.profile,
.message,
.map-pin,
.heart,
.chat-message {
  position: absolute;
  z-index: 30;
}

.profile img,
.message img,
.map-pin img,
.heart img,
.chat-message img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile.top-left {
  top: -5%;
  left: -40%;
  transform: translateY(-25%);
  width: 6rem;
  animation: float 4s ease-in-out infinite;
}

.message.left-side {
  top: 25%;
  left: -45%;
  width: 5rem;
  animation: float 7s ease-in-out infinite;
}

.profile.bottom-left {
  bottom: 25%;
  left: -30%;
  width: 6rem;
  animation: float 6s ease-in-out infinite;
}

.map-pin.top-right {
  top: 0;
  right: -45%;
  width: 5rem;
  transform: translateY(-25%);
  animation: float 5s ease-in-out infinite;
}

.profile.top-right-side {
  top: 25%;
  right: -40%;
  width: 6rem;
  animation: float 8s ease-in-out infinite;
}

.profile.bottom-right {
  bottom: 25%;
  right: -35%;
  width: 6rem;
  animation: float 4s ease-in-out infinite;
}

.heart.center-left {
  top: 33%;
  left: 50%;
  transform: translateX(-200%);
  width: 5rem;
  animation: pulse 2s ease-in-out infinite;
}

.chat-message {
  width: 11rem;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

.chat-message.right-side {
  top: 30%;
  right: 28%;
  animation-delay: 1s;
  transform: translateY(4px);
}

.chat-message.left-side {
  top: 45%;
  left: 28%;
  animation-delay: 1.5s;
  transform: translateY(4px);
}

/* Text Article Section */
.text-article {
  padding: 0;
  background-color: var(--white);
  text-align: center;
}

/* Feature rows */
.feature-row-outer {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-row-outer-reverse {
  background: var(--grey-light);
}

.feature-row {
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5rem 0;
  gap: 3rem;
}

.feature-row.reverse {
  background-color: var(--grey-light);
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
}

.feature-text h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.feature-text-image {
  width: 80%;
  max-width: 300px;
  position: relative;
  margin-top: 1rem;
}

.feature-text-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 280px;
  height: auto;
}

.feature-image img {
  width: 100%;
  height: auto;
  /* border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); */
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 1.25rem;
  background: linear-gradient(to bottom right, #fdf2f8, #eff6ff);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 3.5rem;
  height: 3.5rem;
  margin-right: 1rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background-color: #f1f1f1;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  background-color: #eee;
  visibility: hidden;
}

.avatar img:not([src]),
.avatar img[src=""],
.avatar
  img:not([src=""]):not([src^="data:"]):not([src^="http"]):not([src^="/"]) {
  visibility: hidden;
}

.avatar img:not([src]),
.avatar img[src=""],
.avatar
  img:not([src=""]):not([src^="data:"]):not([src^="http"]):not([src^="/"])
  + .avatar-fallback {
  visibility: visible;
}

.testimonial-meta {
  flex: 1;
}

.name-rating {
  display: flex;
  align-items: center;
}

.name-rating h3 {
  font-weight: 700;
  margin-right: 0.5rem;
  letter-spacing: -0.02em;
}

.rating {
  display: flex;
  align-items: center;
}

.star {
  color: #ffc107;
  margin-right: 0.25rem;
}

.score {
  font-weight: 700;
}

.date {
  color: #777;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.testimonial-text {
  color: #333;
  line-height: 1.6;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Download CTA Section */
.download-cta {
  padding: 6rem 5rem;
  background: linear-gradient(
    to bottom right,
    var(--blue-light),
    var(--blue-medium),
    var(--pink-light)
  );
  color: var(--white);
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-text {
  flex: 1;
  margin-bottom: 2.5rem;
  text-align: center;
}

.cta-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta-text p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cta-image {
  flex: 1;
  transform: rotate(6deg);
  max-width: 400px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 2.5rem 1.25rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  margin-bottom: 2.5rem;
}

.footer-logo-img {
  width: 8rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  width: 100%;
  margin-bottom: 3rem;
}

.footer-links-column h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-links-column ul li {
  margin-bottom: 0.5rem;
}

.footer-links-column ul li a {
  color: var(--grey-light);
  opacity: 0.75;
  transition: opacity 0.2s;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-links-column ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  /* align-items: center; */
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  gap: 1.5rem;
}

.footer-email,
.footer-bottom p {
  color: var(--grey-light);
  opacity: 0.75;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.footer-link-cont {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .footer {
    padding: 4rem 5rem;
  }
  .footer-link-cont {
    flex-direction: row;
    gap: 16px;
  }
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--white);
  opacity: 0.75;
  transition: opacity 0.2s;
}

.social-link:hover {
  opacity: 1;
}

/* Floating Hearts */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  width: 2rem;
  height: 2rem;
  animation: floatHeart 5s linear forwards;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    padding: 0 5rem;
    padding-top: 2.5rem;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-image {
    max-width: 800px;
  }

  .feature-row {
    flex-direction: row;
    padding: 6rem 2rem;
  }

  .feature-row.reverse {
    flex-direction: row-reverse;
  }

  .feature-text {
    padding: 0 2rem;
  }

  .feature-image {
    max-width: 350px;
  }

  .cta-content {
    flex-direction: row;
  }

  .cta-text {
    text-align: left;
    margin-bottom: 0;
    padding-right: 2rem;
  }

  .cta-image {
    max-width: 700px;
  }

  .footer-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-logo {
    margin-bottom: 0;
    margin-right: 2.5rem;
  }

  /* .footer-bottom {
    flex-direction: column;
    justify-content: space-between;
  } */
}

@media (max-width: 767px) {
  .hero {
    min-height: 700px;
    padding-bottom: 4rem;
  }

  .logo {
    width: 6rem;
    margin-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2.25rem;
    letter-spacing: -0.03em;
  }

  .hero-text p {
    font-size: 1.125rem;
  }

  .store-link img {
    height: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.875rem;
    letter-spacing: -0.03em;
  }

  .section-header p {
    font-size: 1rem;
  }

  .feature-text h2 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
  }

  .cta-text h2 {
    font-size: 1.875rem;
    letter-spacing: -0.03em;
  }

  .feature-row {
    padding: 3rem 1rem;
  }

  .feature-text,
  .feature-image {
    padding: 0 1rem;
  }
}

.paperlogy {
  font-family: "Paperlogy-8ExtraBold", "Noto Sans KR", sans-serif;
}

.pink {
  color: rgb(236 72 153 / var(--tw-text-opacity, 1));
}

.height-fit-content {
  height: fit-content;
}

.align-self-center {
  align-self: center;
}
.footer-button-cont {
  display: flex;
  gap: 8px;
  font-weight: bold;
  flex-direction: column;
}

@media (min-width: 768px) {
  .footer-button-cont {
    gap: 32px;
    flex-direction: row;
  }
}
