/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  font-family: "Spoqa Han Sans Neo", "sans-serif";
  list-style: none;
  letter-spacing: -0.4px;
}

/* Fixed Nav */
nav.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: #fff;
  z-index: 9999;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
}

#wrap {
  margin-top: 6.6rem;
}

#page-container {
  background-color: var(--color-grey-10);
}

section article {
  max-width: 800px;
  margin: 0 auto;
}

/* Common Heading Styles */
section h1 {
  color: var(--color-grey-80);
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  min-height: calc(2.4rem * 1.4 * 2);
}
section h2 {
  color: var(--color-grey-80);
  font-size: 2rem;
}
section h3 {
  color: var(--color-grey-80);
  font-size: 1.8rem;
}

/* Hero Section Headings */
section#hero h1 {
  font-size: 3.6rem;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.2;
  text-align: inherit;
}
section#hero h2 {
  color: var(--color-blue-30);
  font-weight: normal;
  line-height: 1.2;
}

/* common highlight style */
span.highlight {
  color: var(--color-blue-50);
}

/* Hero Section */
#hero {
  background-image: linear-gradient(to bottom, var(--color-navy-90), var(--color-blue-50));
}

#hero article {
  align-items: center;
  margin: 0 auto;
  padding: 100px;
  box-sizing: border-box;
}

#hero div {
  color: white;
  margin-top: 28px;
}

#hero h2 > span {
  display: block;
  margin-bottom: 6px;
}

#hero video,
#hero img {
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  margin-top: 3rem;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1.0, 1.0);
  transform: translateZ(0) scale(1.0, 1.0);
}

#hero a {
  display: inline-block;
  padding: 18px 50px;
  margin-top: 27px;
  border-radius: 30px;
  background-color: #3beaff;
  border: none;
  animation: breathe 1.6s ease-out infinite;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#hero a:hover {
  transform: translateY(-2px);
}

#hero a.btn-mobile {
  display: none;
}

#hero button {
  background: none;
  color: #0f243d;
  font-size: 1.6rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 20px 0 rgba(59, 234, 255, 0.5); } 
  50% { box-shadow: 0 0 26px 4px rgba(59, 234, 255, 0.6); }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Button Styles */
.btn-story {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 14px 4px 4px;
  border-radius: 27px;
  border: none;
  background-color: var(--color-grey-20);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-grey-70);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-story:hover {
  transform: translateY(-2px);
}

.btn-story .icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(50, 130, 245, 0.5);
}

.btn-story .chevron {
  margin-left: auto;
}

/* Common Grid Layout */
.grid-layout {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "figure header"
    "figure description"
    "cta cta";
  gap: 20px;
  align-items: start;
}

.grid-layout .header { grid-area: header; text-align: center; align-self: center; }
.grid-layout .figure { grid-area: figure; justify-self: end; }
.grid-layout .description { grid-area: description; align-self: center; }
.grid-layout .cta { grid-area: cta; text-align: center; }

/* Time Over Timing Section */
#time-over-timing {
  background-color: white;
}

#time-over-timing article {
  grid-template-columns: 6fr 5fr;
}

#time-over-timing .intro-text {
  color: var(--color-blue-50);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

#time-over-timing .bubble-container {
  width: 100%;
  max-width: 400px;
}

#time-over-timing .bubble-title {
  text-align: left;
  color: var(--color-grey-80);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

#time-over-timing .bubble-chart-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

#time-over-timing .investment-message {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* Smart Difference Section */
#smart-difference {
  background-color: var(--color-grey-20);
}

#smart-difference .comparison-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

#smart-difference .comparison-box {
  padding: 24px;
  border-radius: 20px;
  background-color: white;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#smart-difference .comparison-box.regular {
  border: none;
}

#smart-difference .comparison-box.smart {
  background-color: var(--color-blue-20);
  position: relative;
}

#smart-difference .box-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-grey-80);
  margin-bottom: 8px;
}

#smart-difference .comparison-box.regular .box-title {
  color: var(--color-grey-60);
}

#smart-difference .box-description {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--color-grey-80);
  margin: 0;
}

#smart-difference .comparison-box.regular .box-description {
  color: var(--color-grey-60);
}

#smart-difference .comparison-box img {
  width: 24px;
  margin-top: -4px;
}

#smart-difference .box-description strong {
  font-weight: 700;
}

#smart-difference .smart-description {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-grey-80);
  text-align: center;
}

#smart-difference .btn-story {
  background-color: var(--color-white);
}

#time-over-timing .bubble {
  position: absolute;
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

#time-over-timing .bubble-1 {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-grey-80);
  outline: 1.5px solid var(--color-btc1-50);
  background: white;
}

#time-over-timing .bubble-2 {
  bottom: 30px;
  right: 20px;
  color: var(--color-red-50);
  background: white;
  outline: 1.5px solid var(--color-btc1-50);
}

#time-over-timing .text {
  position: absolute;
  color: var(--color-grey-60);
  font-size: 1.2rem;
  font-weight: 400;
}

#time-over-timing .text-1 { top: 75px; left: 70px; }
#time-over-timing .text-2 { top: 100px; left: 30px; }
#time-over-timing .text-3 { top: 125px; left: 100px; }
#time-over-timing .text-4 { bottom: 65px; left: 25px; }
#time-over-timing .text-5 { bottom: 45px; left: 60px; }
#time-over-timing .text-6 { top: 70px; right: 50px; }
#time-over-timing .text-7 { top: 35px; right: 80px; }

/* Popular Piggy Section */
#popular-piggy {
  background: var(--color-white);
  padding: 80px 0 40px 0;
}

#popular-piggy article {
  max-width: fit-content;
  margin: 0 auto;
  padding: 0 20px;
}

#popular-piggy .card-swiper {
  padding: 20px 0 0 0;
}

.piggy-card {
  width: fit-content;
  font-size: 1.4rem;
  padding: 24px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-grey-30);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.piggy-card .card-header {
  background-color: var(--color-white);
  padding: 0;
  margin-bottom: 12px;
  width: 240px;
  border-bottom: none;
}
.piggy-card .card-header h3 span{
  width: fit-content;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-white);
  background: var(--color-blue-50);
  border-radius: 11px;
  padding: 2px 6px;
  vertical-align: middle;
}

.piggy-card .piggy-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.piggy-items:has(.piggy-item:nth-child(3)) {
  width: 260px;
}

.piggy-items:has(.piggy-item:nth-child(3)) .info {
  gap: 0;
  font-size: 1.5rem;
}

.piggy-item {
  min-width: 240px;
  font-size: 1.5rem;
  background: var(--color-grey-20);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 5px 16px;
  position: relative;
}

.piggy-item:nth-child(1) .icon::before,
.piggy-item:nth-child(2) .icon::before,
.piggy-item:nth-child(3) .icon::before,
.piggy-item:nth-child(4) .icon::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  background-size: contain;
  background-repeat: no-repeat;
}

.piggy-item:nth-child(1) .icon::before {
  background-image: url('https://cdn.bitsaving.kr/img/landing/trad-piggy.webp');
}
.piggy-item:nth-child(2) .icon::before {
  background-image: url('https://cdn.bitsaving.kr/img/landing/ai-piggy.webp');
}
.piggy-item:nth-child(3) .icon::before {
  background-image: url('https://cdn.bitsaving.kr/img/landing/trad-piggy.webp');
}
.piggy-item:nth-child(4) .icon::before {
  background-image: url('https://cdn.bitsaving.kr/img/landing/ai-piggy.webp');
}

.piggy-item .info {
  font-size: 1.6rem;
  display: flex;
  gap: 4px;
  flex-direction: column;
  justify-content: center;
}

.piggy-item .info .sub-title {
  font-size: 1rem;
  color: #FF6B6B;
}

.piggy-item .info .title {
  font-weight: bold;
  color: var(--color-grey-90);
}

.piggy-item .tag {
  width: fit-content;
  font-size: 1.1rem;
  color: var(--color-blue-50);
  background: var(--color-blue-20);
  border-radius: 2px;
  padding: 4px 6px;
}

/* Technology Section */
#technology {
  padding: 80px 0;
  background-image: linear-gradient(to bottom, var(--color-navy-90), #2b60a3);
}

#technology article {
  max-width: fit-content;
  margin: 0 auto;
  padding: 0 20px;
}

#technology h1,
#technology h3 {
  color: var(--color-white);
}
#technology h1 .highlight {
  color: var(--color-cyan-50);
}

#technology .cta {
  display: flex;
  justify-content: center;
}
#technology .btn-story {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--color-white);
  text-align: center;
}

#technology .card-swiper {
  padding: 20px 0 32px 0;
}

.tech-card {
  width: fit-content;
  height: 324px;
  padding: 24px 16px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background-color: var(--color-navy-90);
}

.tech-card .card-header {
  padding: 0;
  margin-bottom: 12px;
  width: 256px;
  border-bottom: none;
}
.tech-card .card-header h3 span {
  font-size: 1.2rem;
  font-weight: 400;
}
.tech-card .card-header p {
  font-size: 1.4rem;
  color: var(--color-blue-30);
}

.tech-card .tech-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tech-item {
  height: 46px;
  color: var(--color-white);
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 5px 16px;
  position: relative;
}
.tech-item .icon img {
  width: 24px;
  margin-right: 6px;
}
.tech-item .info {
  font-size: 1.4rem;
  font-weight: normal;
}
.tech-item .info .title {
  font-weight: bold;
}

.tech-question {
  margin: auto;
}
.tech-question a {
  font-size: 1.2rem;
  color: var(--color-white);
  text-decoration: underline;
}

/* Habit System Section */
#habit-system {
  padding: 80px 0;
  background: var(--color-white);
}

#habit-system article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
#habit-system article h1 {
  margin-bottom: 24px;
}

#habit-system .item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-grey-10);
  margin-top: 10px;
}
#habit-system .tip {
  background: var(--color-blue-20);
}

#habit-system .badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-blue-50);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 1.4rem;
}

#habit-system .badge.double {
  margin: 0 -6px;
  width: 44px;
  height: 44px;
  background-color: rgba(55, 77, 154, 0.1);
}
#habit-system .badge.double .inner {
  padding: 5px;
  border-radius: 50%;
  background: var(--color-navy-50);
}

#habit-system .title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 4px;
  line-height: 1.25;
  color: var(--color-grey-80);
}

#habit-system .desc {
  font-size: 1.2rem;
  color: var(--color-grey-60);
  margin: 0;
}

/* Safe Asset Section */
#safe-asset {
  background-image: linear-gradient(to bottom, var(--color-navy-90), #2b60a3);
}

#safe-asset article {
  gap: 40px;
  align-items: center;
  margin: 0 auto;
  padding: 60px;
  box-sizing: border-box;
}

#safe-asset h1 {
  font-size: 2.4rem;
  color: var(--color-white);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: inherit;
}

#safe-asset h2 {
  font-size: 1.4rem;
  color: var(--color-blue-30);
  font-weight: normal;
}

#safe-asset h2 > span {
  display: block;
  margin-bottom: 6px;
}

#safe-asset .image-placeholder {
  width: 300px;
  height: 220px;
  background: var(--color-grey-30);
  border-radius: 20px;
  margin-top: 3rem;
}

/* Fade 애니메이션 */
.fade-animation {
  opacity: 1;
}
.fade-animation span {
  display: inline-block;
  opacity: 0;
}
.fade-animation.active span {
  animation-name: slideInFromLeft;
  animation-duration: 2s;
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
.fade-animation > div {
  opacity: 0;
}
.fade-animation.active > div {
  animation-name: fadeInRight;
  animation-duration: 0.8s;
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

/* 타이핑 효과 초기 상태 (JS 제어) */
#smart-difference .header h1,
#popular-piggy h1,
#technology h1 {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Responsive: Mobile (~800px) */
@media (max-width: 800px) {
  #hero article {
    flex-direction: column;
    justify-content: space-evenly;
    padding: 70px 30px;
    min-height: 538px;
  }

  #hero div {
    text-align: center;
  }

  #hero h1 {
    font-size: 3.6rem;
  }

  #hero h2 {
    font-size: 1.6rem;
  }

  #hero a {
    margin-top: 42px;
  }

  #hero a.btn-desktop {
    display: none;
  }

  #hero a.btn-mobile {
    display: inline-block;
    width: 70%;
    text-align: center;
  }

  #hero video,
  #hero img {
    height: 180px;
  }

  .grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "figure"
      "description"
      "cta";
    gap: 25px;
    padding: 70px 30px;
  }

  .grid-layout .figure { justify-self: center; }

  /* Time over Timing Section - Mobile */
  #time-over-timing article {
    grid-template-columns: 1fr;
  }

  #time-over-timing .bubble-container {
    margin: 0 auto;
  }

  /* Smart Difference Section - Mobile */
  #smart-difference .comparison-boxes {
    gap: 12px;
  }

  #smart-difference .comparison-box {
    min-height: auto;
    padding: 20px;
  }

  /* Safe Asset Section - Mobile */
  #safe-asset article {
    flex-direction: column;
    padding: 60px 20px;
  }

  #safe-asset div {
    text-align: center;
  }
}

/* FAQ Section */
#faq {
  padding: 80px 0;
  background-color: var(--color-white);
}

#faq article {
  padding: 0 20px;
}

#faq h1 {
  margin-bottom: 24px;
}

#faq .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-grey-20);
}

#faq .accordion-header {
  white-space: initial; /* 텍스트 줄바꿈 허용 */
}

#faq .accordion-button {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-grey-80);
  padding: 2rem 1.25rem;
  background: none;
  box-shadow: none;
}

#faq .accordion-button:not(.collapsed) {
  color: var(--color-blue-50);
  background: none;
  box-shadow: none;
}

#faq .accordion-body {
  font-size: 1.6rem;
  color: var(--color-grey-60);
  padding: 2rem;
  line-height: 1.6;
}

/* Story Section */
#story {
  padding: 60px 0 10px 0;
  background-color: var(--color-grey-10);
}

#story .card-swiper {
  padding: 20px 20px 40px;
}
