:root {
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --primary-gradient: linear-gradient(180deg, #BA60D0 13%, #1C1B1F 100%);
  --primary-gradient2: linear-gradient(90deg, #E257A3 0%, #3D2CAD 95%);
  --card-bg: #111111;
  --border-color: #222222;
}

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

body {
  font-family: "Noto Sans KR", -apple-system, sans-serif;
  /* background-color: var(--bg-color); */
  color: var(--text-primary);
  line-height: 1.5;
  word-break: keep-all;
  /* Important for Korean text */
}

/* body>* {
    max-width: 1080px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
} */

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

ul {
  list-style: none;
}

.purple {
  color: #5621F3;
}

.orange-badge {
  background-color: #FF7700;
  color: white;
  padding: 2px 12px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 300;
}

.container {
  max-width: 1080px;
  /* Slightly narrower for a centered feel */
  margin: 0 auto;
  padding: 0 20px;
  z-index: 11;
}

.gap-2 {
  height: 2px;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* background: url(https://images.unsplash.com/photo-1493225255756-d9584f8606e9?q=80&w=2670&auto=format&fit=crop) no-repeat center center/cover; */

}

.first-background {
  background: url(resources/main_img1.png) no-repeat center center/cover;
}

.second-background {
  background: url(resources/main_img2.png) no-repeat center center/cover;
}

.third-background {
  background: url(resources/main_img3.png) no-repeat center center/cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), #000000); */
  background-color: rgba(0, 0, 0, 0.8);

}

.bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-top-text {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0px;
  opacity: 0.9;
  text-shadow: 0 16px 7px rgba(255, 255, 255, 0.6);
}

.hero-top-text-2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-logo {
  font-size: 2rem;
  font-weight: 900;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 20px 0 70px;
  letter-spacing: -2px;
}

.btn-primary {
  background: var(--primary-gradient2);
  color: white;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 24px;
  transition: transform 0.2s;
  opacity: 0.7;
}

.btn-primary:hover {
  transform: scale(1.05);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

/* Features Section */
.features-section {
  padding: 120px 0;
  background-color: #000;
  position: relative;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  /* font-size: 2.2rem; */
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0px;
  text-align: center;
  font-size: 1.5rem;
}

.section-second-header {
  /* font-size: 2.2rem; */
  /* font-weight: 700; */
  /* line-height: 1.3; */
  /* margin-bottom: 20px; */
  /* text-align: center; */
  /* font-size: 1.5rem; */
  margin-bottom: 20px;
  text-align: center;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: #FF0055;
  /* Red accent from image */
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* 말풍선 */
.bubble-title {
  margin: 0 0 10px 20px;
  font-size: 18px;
}

.bubble {
  background-color: white;
  padding: 20px 30px;
  border-radius: 45px;
  color: black;
}



.card-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.card-header .icon-indicator {
  color: #666;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* Visual Interlude */
.visual-interlude {
  position: relative;
  height: 400px;
  background: url(https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?q=80&w=2669&auto=format&fit=crop) no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.interlude-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.visual-interlude .content-wrapper {
  position: relative;
  z-index: 2;
}

.visual-interlude h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
}

/* App Showcase */
.app-showcase {
  padding: 100px 0;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

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

}

.app-content.reverse {
  flex-direction: row-reverse;
}

.text-side {
  flex: 1;
  padding-right: 40px;
  /* padding-left: 40px; */
}

.app-content.reverse .text-side {
  padding-right: 0;
  padding-left: 40px;

}

.text-side h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.text-side p {
  color: var(--text-secondary);
  font-size: 15px;
}

.image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  height: 500px;
}

.phone-mockup {
  width: 280px;
  /* height: 560px; */
  background: #000;
  border-radius: 40px;
  border: 8px solid #222;
  overflow: hidden;
  position: absolute;
  top: 50px;
  left: 0px;
}

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

/* Steps Section */
.steps-section {
  padding: 100px 0;
  background-color: #050505;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 80px;
}

.steps-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 40px;
}


.step-number {
  font-size: 16px;
  font-weight: 500;
  /* color: #333; */
  min-width: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-content {
  flex: 1;
  background: #111;
  border: 1px solid #222;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.step-head {
  /* display: flex; */
  /* align-items: center; */
  margin-bottom: 8px;
}

.step-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.icon-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-right: 12px; */
  /* margin-bottom: 8px; */
  font-size: 24px;
}

.icon-box.red {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.icon-box.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.icon-box.green {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.icon-box.orange {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.icon-box.purple {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.icon-box.gradiant {
  background: linear-gradient(0deg, #B8B5F6 0%, #6C6A90 100%);
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  /* padding-left: 44px; */
  /* Align with text start */
}

/* Footer & FAQ */
.footer-section {
  background: #000;
  padding: 80px 0 40px;
  border-top: 1px solid #222;
}

.faq-section {
  margin-bottom: 60px;
}

.faq-section h3 {
  font-size: 1.2rem;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.faq-item {
  position: relative;
  /* For absolute positioning of bubble */
  padding: 12px 0;
  border-bottom: 1px solid #222;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s;
}

.question {
  transition: color 0.3s;
}

.faq-item:hover .question {
  color: white;
  font-weight: 500;
}

/* Answer Bubble Styling */
.answer-bubble {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: 100%;
  /* Show below the question */
  left: 180px;
  /* Indent to the right */
  background-color: white;
  color: black;
  padding: 15px 20px;
  border-radius: 12px;
  width: 60vw;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 100;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 10px;
  /* Space between question and bubble */
}

/* Arrow/Tail for bubble pointing UP */
.answer-bubble::after {
  content: "";
  position: absolute;
  bottom: 100%;
  /* At the top of the bubble */
  left: 30px;
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent white transparent;
  /* Points UP */
}

/* Show on hover or active */
.faq-item:hover .answer-bubble,
.faq-item:active .answer-bubble {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-info {
  text-align: center;
  color: #444;
  font-size: 0.8rem;
}

.footer-info p {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    position: relative;
  }

  .app-content,
  .app-content.reverse {
    flex-direction: column;
    text-align: center;
  }

  .text-side,
  .app-content.reverse .text-side {
    padding: 0 0 40px 0;
  }

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

  .step-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .step-number {
    align-self: flex-start;
    flex-direction: row;
  }

  .answer-bubble {
    left: 80px;
  }
}

/* Welcome Modal */
.modal-overlay {
  display: none;
  /* Hidden by default */
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  /* Backdrop */
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal-content {
  background-color: #F6F7F9;
  /* Very light grey/white */
  border-radius: 30px;
  padding: 50px;
  width: 90%;
  max-width: 440px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 28px;
  font-weight: 300;
  color: #000;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  text-align: start;
}

.modal-header h2 {
  color: #000;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-header h3 {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-header p {
  color: #888;
  font-size: 15px;
}

.confirm-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.confirm-modal>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: black;
  padding: 30px;
  border-radius: 25px;
  opacity: 0.9;
}

.confirm-modal>div>p {
  font-size: 15px;
}

.confirm-modal>div>button {
  background-color: #FFFFFF;
  color: #000;
  border: 1px solid #eee;
  border-radius: 25px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s;
  line-height: 1.3;
}

.confirm-modal>div>button:hover {
  transform: scale(1.05);
}

.error-message {
  color: red;
  font-size: 12px;
}


.modal-content input {
  width: 100%;
  padding: 16px 20px;
  border-radius: 20px;
  border: none;
  background-color: #FFFFFF;
  font-size: 16px;
  text-align: center;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.modal-content input::placeholder {
  color: #CCCCCC;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

.modal-footer.center {
  justify-content: center;
}



.next-btn {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1.2;
}

.next-btn:hover {
  transform: scale(1.05);
}

/* Step Container */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Option Cards (Step 2) */
.experience-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.option-card {
  background-color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
  border-color: #000;
  background-color: #f8f8f8;
}

.option-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111;
}

.option-card p {
  font-size: 14px;
  color: #888;
}

/* Footer Layout */
.modal-footer.space-between {
  justify-content: space-between;
  margin-top: 20px;
}

/* Previous Button */
.prev-btn {
  background-color: #FFFFFF;
  color: #000;
  border: 1px solid #eee;
  /* Light border for visibility on light bg */
  border-radius: 25px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}


.prev-btn:hover {
  background-color: #f0f0f0;
}

/* Interest Grid (Step 3) */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.interest-btn {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px 0;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  color: #000;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

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

.interest-btn.selected {
  background: #000;
  /* Selected state: Black background */
  color: #fff;
}

/* Survey Progress Bar */
.survey-progress {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  gap: 20px;
}

/* Survey Options (Steps 4-7) */
.survey-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.survey-item {
  display: flex;
  align-items: center;
  /* Center vertically */
  gap: 12px;
  cursor: pointer;
  text-align: left;
  padding: 8px 0;
}

.check-box {
  min-width: 24px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background-color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  position: relative;
}

/* Checkmark icon (pseudo) */
.check-box::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
  opacity: 1;
}

.survey-item.selected .check-box {
  background-color: #B91C1C;
  /* Dark red based on image */
}

.survey-item span {
  font-size: 16px;
  color: #000;
  font-weight: 500;
  line-height: 1.4;
}