/* ============================================================
   Bside Components
   ============================================================ */

/* ── Button ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-button);
  font-size: 16px;
  font-weight: 400;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
}

.btn-primary:hover {
  background-color: var(--pink);
  color: var(--white);
}

.btn-ghost {
  background-color: rgba(0, 0, 0, 0.08);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  background-color: var(--pink);
  color: var(--white);
}

/* ── Nav ─────────────────────────────────────────────────── */

/* Fixed transparent wrapper that sits above page content */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--page-padding);
  pointer-events: none; /* let clicks pass through the empty space */
}

.nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-top: var(--space-md);
  pointer-events: auto; /* re-enable clicks on the bar itself */
}

.nav-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  max-height: 50px;
  display: block;
}

/* Right-side wrapper: links + lang toggle */
.nav-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Reset global li styles that break nav alignment */
.nav-link-list li {
  padding-bottom: 0;
  font-size: inherit;
  line-height: 1;
}

.nav-link {
  background-color: rgba(0, 0, 0, 0.08);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 7px 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;          /* same as lang-drop-title for consistent height */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.3s;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--pink);
  color: var(--white);
}

/* Language dropdown wrapper */
.lang-drop {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger button */
.lang-drop-title {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.08);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-body);
  line-height: 1;          /* match nav-link so heights are identical */
  vertical-align: middle;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.3s;
}

.lang-drop-title:hover,
.lang-drop-title:focus-visible {
  background-color: var(--pink);
  color: var(--white);
  outline: none;
}

.lang-drop.is-open .lang-drop-title {
  background-color: var(--pink);
  color: var(--white);
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-icon {
  width: 16px;
  height: auto;
  display: block;
}

.lang-arrow-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lang-drop.is-open .lang-arrow-icon {
  transform: rotate(180deg);
}

/* Dropdown list */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px #0000001f;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
  z-index: 200;
  /* open/close animation */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown[hidden] {
  display: flex !important; /* override browser hidden so we can animate */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
}

[hidden] {
  display: none !important;
}

/* Each option row */
.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-body);
  color: #333;
  transition: background-color 0.2s;
}

.lang-option:hover,
.lang-option:focus-visible {
  background-color: var(--color-secondary);
  outline: none;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background-color: var(--color-card);
  color: var(--color-card-foreground);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px #0000001a;
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: var(--space-md);
}

.card-tag {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-secondary-foreground);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius);
}

/* ── App store badges ────────────────────────────────────── */
.store-badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.store-badge {
  height: 44px;
  width: auto;
  transition: opacity 0.3s;
}

.store-badge:hover {
  opacity: 0.8;
}

/* ── SNS Sidebar ─────────────────────────────────────────── */
.sns-sidebar {
  position: fixed;
  right: var(--space-md);
  top: 50%;
  transform: translateY(10%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.sns-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 1.5px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.sns-icon:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ── Page foot (minimal one-line bar) ────────────────────── */
/* Default: for dark/gradient backgrounds (index.html)        */
.page-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 20px var(--page-padding) 28px;
  font-size: 13px;
  flex-wrap: wrap;
  color: #ffffff;
}

.page-foot-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.page-foot-link:hover {
  color: var(--pink);
}

.page-foot-sep {
  color: rgba(255, 255, 255, 0.35);
  user-select: none;
  font-size: 12px;
}

/* ── About / Hero Section ────────────────────────────────── */
.about-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background now comes from body — this div is kept as a z-index layer placeholder */
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Character Swiper — covers entire section, images right-bottom aligned */
.about-swiper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  /* Fade horizontal edges so character blends in */
  -webkit-mask-image: linear-gradient(to right, #0000 0%, #000 15% 100%);
  mask-image: linear-gradient(to right, #0000 0%, #000 15% 100%);
}

.about-slide {
  display: flex !important;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  /* Fade top and bottom edges of each character */
  -webkit-mask-image: linear-gradient(to bottom, #0000 0%, #000 8% 92%, #0000 100%);
  mask-image: linear-gradient(to bottom, #0000 0%, #000 8% 92%, #0000 100%);
}

.about-character-img {
  height: 70vh;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  align-self: flex-end;
}

/* Keep added hero slides proportional; use a fixed box so they align left with earlier slides. */
.about-character-img--stretch {
  height: 70vh;
  width: 58vh;
  object-fit: contain;
  object-position: left bottom;
}

/* Left-side text + badges */
.about-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  padding-top: 148px;    /* reserve space for fixed nav */
  padding-bottom: 88px;  /* slightly larger bottom offset to nudge visual center downward */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;   /* horizontally center all children */
  gap: var(--space-lg);
  text-align: center;
}

.about-title {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: center;
  align-items: center;
}

.about-heading {
  font-family: var(--font-heading);
  font-size: clamp(52px, 7vw, 110px);
  line-height: 1;
  color: var(--white);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Line 1: static text — fixed height, no flex tricks */
.about-heading-line1 {
  display: block;
  height: 1.05em;
}

/* Line 2: typed animation wrapper — fixed height prevents vertical layout shift */
.about-heading-line2 {
  display: block;
  height: 1.2em;    /* fixed height — subtitle never jumps regardless of word length */
  line-height: 1;
}

/* The span Typed.js types into — stays inline so cursor follows text */
.typed-text {
  display: inline;
  color: #F74BAE;
}

.about-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  line-height: 150%;
  text-align: center;
  margin: 0;
}

/* Badges section — two rows stacked vertically, each centered */
.about-badges {
  display: flex;
  flex-direction: column;  /* row 1: App Store + Google Play; row 2: Steam */
  gap: var(--space-sm);
  align-items: center;
}

.about-badge-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-badge-label {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.about-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.about-badge-link {
  display: inline-flex;
  height: 44px;
  transition: opacity 0.5s;
}

.about-badge-link:hover {
  opacity: 0.8;
}

.about-badge-img {
  height: 100%;
  width: auto;
  display: block;
}

/* ── Features Section ────────────────────────────────────── */
.features-section {
  /* No background — inherits body's fixed Frame-118.avif for seamless continuity */
  padding-block: 0;
}

/* Scroll fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Each feature group: two equal columns, full-viewport height */
.feature-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  /* border-box ensures padding is included in 100vh, not added on top */
  box-sizing: border-box;
  height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
}

/* Reverse layout: text left, image right */
.feature-group--reverse {
  flex-direction: row-reverse;
}

/* ── Image side ──────────────────────────────────────────── */
.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 560px;
  /* overflow visible so rotated images can bleed outside */
}

/* Stacked phone screenshots */
.feature-placeholder {
  position: absolute;
  width: 46%;
  height: auto;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32);
  transition: transform 0.45s cubic-bezier(.25, .8, .25, 1),
              opacity 0.35s ease,
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              z-index 0s;
  object-fit: cover;
  cursor: pointer;
}

/* Front image — positioned left-center, slight CCW tilt */
.feature-placeholder[data-img="0"] {
  top: 30px;
  left: 3%;
  width: 55%;
  transform: rotate(-5deg);
  z-index: 2;
  opacity: 1;
}

/* Back image — offset to the right, overlaps front by ~20% of image width */
.feature-placeholder[data-img="1"] {
  top: 65px;
  right: 0;
  width: 55%;
  transform: rotate(7deg);
  z-index: 1;
  opacity: 0.78;
}

/* Active: bring to very front, subtle lift */
.feature-placeholder.active {
  z-index: 3;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.feature-placeholder[data-img="0"].active {
  transform: rotate(-3deg) scale(1.04) translateY(-5px);
}

.feature-placeholder[data-img="1"].active {
  transform: rotate(5deg) scale(1.04) translateY(-5px);
}

/* ── Text side ───────────────────────────────────────────── */
.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
  text-align: center;
}

.feature-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  padding: 8px 0;
  cursor: pointer;
}

/* Heading row: heading centered via text-align */
.feature-item-heading-row {
  text-align: center;
  margin-bottom: 10px;
}

/* Inline wrap — stickers position relative to the text itself */
.feature-heading-wrap {
  position: relative;
  display: inline-block;
}

.feature-heading-wrap--compact-left {
  padding-left: 0;
}

/* Sticker-l: top-left, just outside the text boundary */
.feature-sticker-l {
  position: absolute;
  top: -16px;
  right: calc(100% + 2px);
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
  display: none;
}

.feature-heading-wrap--compact-left .feature-sticker-l {
  top: 50%;
  right: auto;
  left: 0;
  transform: translateY(-50%);
}

/* Sticker-r: bottom-right, just outside the text boundary */
.feature-sticker-r {
  position: absolute;
  bottom: -16px;
  left: calc(100% + 2px);
  width: 46px;
  height: 46px;
  object-fit: contain;
  pointer-events: none;
  display: none;
}

.feature-item-heading {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  transition: color 0.35s;
  display: inline-block;
  vertical-align: middle;
}

.feature-item.active .feature-item-heading {
  color: #F74BAE;
}

.feature-item-desc {
  font-size: 19px;
  color: #ffffff;
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

/* English feature copy typography */
html[lang="en"] .feature-item-heading {
  font-family: "Poppins", var(--font-body);
  font-weight: 700;
}

html[lang="en"] .feature-item-desc {
  font-family: "Poppins", var(--font-body);
  font-weight: 600;
}

/* Desktop: nudge section title up to align with visual top edge */
@media (min-width: 992px) {
  .feature-title {
    margin-top: -18px;
  }
}

@media (max-width: 991px) {
  .feature-group,
  .feature-group--reverse {
    min-height: auto;
    height: auto;
    flex-direction: column;
    gap: 28px;
    padding-top: 76px;
    padding-bottom: 64px;
  }

  .feature-group:nth-child(even) {
    flex-direction: column-reverse;
  }

  .feature-visual,
  .feature-text {
    width: 100%;
  }

  .feature-img-stack {
    width: min(100%, 430px);
    height: min(460px, 78vw);
    margin-inline: auto;
  }

  .feature-title,
  .feature-item-desc {
    text-align: center;
  }

  .feature-sticker-l,
  .feature-sticker-r {
    display: none;
  }

  .feature-heading-wrap--compact-left {
    padding-left: 0;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-carousel-shell {
    padding-inline: 52px;
  }
}

/* ── Blog Section ────────────────────────────────────────── */
.blog-section {
  padding-top: 30px;
  padding-bottom: 120px;
}

.blog-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Heading area — ghost text + overlay text (Webflow blog-heading-170 / blog-heading-80 pattern) */
.blog-heading-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-heading-170 {
  font-family: var(--font-heading);
  font-size: clamp(60px, 12vw, 170px);
  color: rgba(255, 255, 255, 0.06); /* ghost text adapted for dark bg */
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 90%;
  font-weight: 400;
  pointer-events: none;
  white-space: nowrap;
}

.blog-heading-80 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 80px);
  color: var(--white);
  margin: 0;
  margin-top: clamp(-28px, -4vw, -60px); /* pulls up to overlap ghost text */
  line-height: 100%;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Blog header frame (gradient banner with characters) ─── */
.blog-header-frame {
  background-image: linear-gradient(90deg, #9ea0fa, #c59dcf 50%, #dc557d);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  position: relative;
  overflow: hidden;
}

/* Characters sit at bottom, spanning full width */
.blog-header-image-wrapper {
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
}

.blog-header-image {
  width: 35%;
  height: auto;
}

/* Decorative arch SVGs at top and bottom */
.blog-header-frame-wrapper {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: -1%;
  bottom: -1%;
  left: 0;
  right: 0;
  z-index: 1;
}

.blog-header-frame-object {
  width: 100%;
  height: 48px;
  display: block;
}

.blog-header-frame-object.is-reverse {
  transform: rotate(180deg);
}

/* Center text overlay */
.blog-header-frame-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 415px;
  color: var(--white);
  text-align: center;
  position: relative;
  z-index: 3;
}

.blog-frame-heading {
  font-family: "Poppins", var(--font-body);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--white);
}

.blog-frame-desc {
  font-family: "Poppins", var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  color: var(--white);
}

/* 6-card grid: 2×3 on wide screens */
.blog-carousel-shell {
  position: relative;
  padding-inline: 64px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Individual card */
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 396px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

/* Cover image / gradient area */
.blog-card-img-wrap {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 4px 16px 0 0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text content area */
.blog-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card-date {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin: 0;
  line-height: 1;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.25;
  margin: 0;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.6;
  margin: 0;
  /* Clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Read more" button — matches Webflow .btn-basic.size-s */
.blog-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
  align-self: flex-start;
  pointer-events: none; /* interaction via overlay link */
}

.blog-card:hover .blog-card-btn {
  background-color: #ff67b1;
}

/* Full-card overlay link */
.blog-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blog-page-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.blog-page-btn:hover:not(:disabled) {
  background-color: var(--pink);
  border-color: var(--pink);
}

.blog-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

#blog-prev {
  left: 0;
}

#blog-next {
  right: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav-header {
    padding-inline: 14px;
  }

  .nav-bar {
    align-items: flex-start;
    gap: 12px;
    padding-top: 12px;
  }

  .nav-logo {
    max-height: 40px;
  }

  .nav-content {
    flex: 1;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  .nav-link-list {
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    max-width: min(74vw, 420px);
  }

  .nav-link,
  .lang-drop-title {
    padding: 7px 10px;
    font-size: 13px;
    min-height: 30px;
  }

  .lang-drop {
    flex-shrink: 0;
  }

  .sns-sidebar {
    top: auto;
    right: 12px;
    bottom: 12px;
    transform: none;
    flex-direction: row;
    gap: 8px;
    z-index: 90;
  }

  .sns-icon {
    width: 38px;
    height: 38px;
  }

  .about-section {
    min-height: 100svh;
    height: auto;
  }

  .about-content {
    min-height: 100svh;
    padding-top: 92px;
    max-width: 100%;
    justify-content: center;
    padding-bottom: 68px;
    gap: 18px;
  }

  .about-heading {
    font-size: clamp(40px, 12vw, 64px);
  }

  .about-heading-line2 {
    min-height: 2.08em;
    height: auto;
  }

  .about-subtitle {
    font-size: 16px;
    max-width: 31rem;
  }

  .about-badge-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-badge-link {
    height: 40px;
  }

  .about-swiper {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-character-img {
    height: 60vh;
    opacity: 0.4;
  }

  .about-character-img--stretch {
    height: 60vh;
    width: 50vh;
    object-fit: contain;
    object-position: left bottom;
  }

  .feature-group,
  .feature-group--reverse {
    min-height: auto;
    height: auto;
    flex-direction: column;
    gap: 28px;
    padding-top: 76px;
    padding-bottom: 64px;
  }

  .feature-group:nth-child(even) {
    flex-direction: column-reverse;
  }

  .feature-visual,
  .feature-text {
    width: 100%;
  }

  .feature-img-stack {
    width: min(100%, 390px);
    height: min(440px, 92vw);
    margin-inline: auto;
  }

  .feature-placeholder[data-img="0"],
  .feature-placeholder[data-img="1"] {
    height: 84%;
    width: auto;
    max-width: 58%;
  }

  .feature-placeholder[data-img="0"] {
    top: 8px;
    left: 12%;
  }

  .feature-placeholder[data-img="1"] {
    top: 42px;
    right: 10%;
  }

  .feature-title {
    font-size: clamp(31px, 9vw, 44px);
    text-align: center;
  }

  .feature-text {
    gap: 20px;
  }

  .feature-items {
    gap: 18px;
  }

  .feature-item {
    padding: 4px 0;
  }

  .feature-item-heading {
    font-size: clamp(20px, 5vw, 24px);
  }

  .feature-item-desc {
    font-size: 16px;
    line-height: 1.65;
    text-align: center;
  }

  .feature-sticker-l,
  .feature-sticker-r {
    width: 36px;
    height: 36px;
  }

  .feature-heading-wrap--compact-left {
    padding-left: 42px;
  }

  .blog-section {
    padding-top: 64px;
    padding-bottom: 80px;
  }

  .blog-carousel-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
    padding-inline: clamp(0px, 4vw, 24px);
  }

  .blog-grid {
    flex-basis: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-page-btn {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    margin-top: 18px;
  }

  #blog-prev {
    order: 2;
  }

  #blog-next {
    order: 3;
  }

  .blog-page-btn {
    width: 40px;
    height: 40px;
  }

  .blog-inner {
    gap: 40px;
  }

  .blog-header-frame {
    height: 340px;
  }

  .blog-header-image {
    width: 30%;
  }

  .blog-header-frame-object {
    height: 27px;
  }

  .comments-section {
    padding-block: 72px 84px;
  }

  .comments-inner {
    margin-bottom: 28px;
  }

  .review-card {
    width: min(78vw, 280px);
    padding: 20px 18px;
  }

  .cta-section {
    padding-block: 84px 96px;
  }

  .cta-subtitle {
    font-size: 17px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .legal-page,
  .blog-detail-page {
    padding-top: 116px !important;
    padding-bottom: 56px !important;
  }

  .legal-body,
  .blog-detail-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
  }

  .legal-toc-wrap,
  .legal-spacer,
  .blog-toc-sticky,
  .blog-body-spacer {
    display: none !important;
  }

  .legal-article,
  .blog-article,
  .blog-detail-body {
    width: 100%;
    min-width: 0;
  }

  .blog-detail-header {
    gap: 32px !important;
  }

  .blog-detail-title-wrap {
    text-align: left !important;
    margin-inline: 0 !important;
  }

  .blog-detail-cover {
    max-height: 420px !important;
  }
}

@media (max-width: 479px) {
  .nav-header {
    padding-inline: 10px;
  }

  .nav-bar {
    gap: 8px;
  }

  .nav-logo {
    max-height: 34px;
  }

  .nav-content {
    gap: 6px;
  }

  .nav-link-list {
    max-width: calc(100vw - 108px);
    gap: 5px;
  }

  .nav-link,
  .lang-drop-title {
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 11px;
    min-height: 28px;
  }

  .lang-drop-title {
    gap: 3px;
  }

  .lang-icon {
    width: 14px;
  }

  .lang-arrow-icon {
    display: none;
  }

  .lang-dropdown {
    min-width: 76px;
  }

  .sns-sidebar {
    right: 10px;
    bottom: 10px;
    gap: 6px;
  }

  .sns-icon {
    width: 34px;
    height: 34px;
  }

  .sns-icon svg {
    width: 17px;
    height: 17px;
  }

  .about-content {
    padding-top: 84px;
    padding-bottom: 46px;
    gap: 16px;
  }

  .about-heading {
    font-size: clamp(34px, 11vw, 46px);
  }

  .about-heading-line2 {
    min-height: 2.12em;
    height: auto;
  }

  .about-subtitle {
    font-size: 14px;
  }

  .about-badge-label {
    font-size: 12px;
  }

  .about-badge-link {
    height: 36px;
  }

  .about-character-img {
    height: 54vh;
    opacity: 0.32;
  }

  .about-character-img--stretch {
    height: 54vh;
    width: 45vh;
  }

  .feature-group,
  .feature-group--reverse {
    padding-top: 58px;
    padding-bottom: 54px;
    gap: 22px;
  }

  .feature-img-stack {
    height: min(360px, 92vw);
  }

  .feature-placeholder[data-img="0"],
  .feature-placeholder[data-img="1"] {
    height: 82%;
    max-width: 60%;
  }

  .feature-placeholder[data-img="0"] {
    left: 11%;
  }

  .feature-placeholder[data-img="1"] {
    top: 36px;
    right: 8%;
  }

  .feature-title {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .feature-item-heading {
    font-size: 19px;
  }

  .feature-item-desc {
    font-size: 15px;
  }

  .feature-sticker-l,
  .feature-sticker-r {
    display: none;
  }

  .feature-heading-wrap--compact-left {
    padding-left: 0;
  }

  .blog-section {
    padding-top: 52px;
    padding-bottom: 64px;
  }

  .blog-heading-170,
  .comments-heading-ghost {
    font-size: clamp(46px, 15vw, 64px);
  }

  .blog-heading-80,
  .comments-heading-text {
    font-size: clamp(30px, 10vw, 40px);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-page-btn {
    width: 38px;
    height: 38px;
  }

  .blog-header-frame {
    height: 200px;
    border-radius: 16px;
  }

  .blog-header-frame-title {
    display: none;
  }

  .blog-header-frame-object {
    height: 12px;
  }

  .blog-header-image {
    width: 45%;
  }

  .blog-card {
    min-height: 0;
  }

  .blog-card-img-wrap {
    height: 190px;
  }

  .blog-card-body {
    padding: 16px;
  }

  .blog-card-title {
    font-size: 18px;
  }

  .comments-section {
    padding-block: 60px 72px;
  }

  .review-card {
    width: 260px;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .review-text {
    font-size: 14px;
  }

  .cta-section {
    padding-block: 72px 82px;
  }

  .cta-title {
    font-size: clamp(32px, 11vw, 44px);
  }

  .cta-subtitle {
    font-size: 15px;
  }

  .cta-btn {
    width: 100%;
    max-width: 260px;
    padding-inline: 24px;
  }

  .page-foot {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-foot-sep {
    display: none;
  }

  .legal-page,
  .blog-detail-page {
    padding-top: 104px !important;
    gap: 36px !important;
  }

  .legal-title,
  .blog-detail-title {
    font-size: clamp(30px, 10vw, 40px) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .legal-subtitle,
  .blog-detail-desc {
    font-size: 15px !important;
  }

  .legal-article,
  .blog-article,
  .blog-detail-body {
    font-size: 15px !important;
    line-height: 1.75 !important;
  }

  .legal-article h2,
  .blog-article h2,
  .blog-detail-body h2 {
    font-size: 25px !important;
    margin-top: 34px !important;
  }

  .legal-article h3,
  .blog-article h3,
  .blog-detail-body h3 {
    font-size: 18px !important;
  }

  .blog-detail-cover {
    border-radius: 8px !important;
    max-height: 300px !important;
  }
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  padding-block: 120px 140px;
  text-align: center;
}

.cta-inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.02em;
}

.cta-subtitle {
  font-family: var(--font-body); /* Inter — matches body text */
  font-size: 20px;
  color: #ffffff;
  margin: 0;
  line-height: 1.5;
}

.cta-btn {
  font-size: 18px;
  padding: 14px 52px;
  margin-top: 8px;
  background-color: var(--pink);
  color: #ffffff;
}

.cta-btn:hover {
  background-color: #ff67b1;
  color: #ffffff;
}

.cta-terms {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.cta-terms-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  transition: color 0.3s;
}

.cta-terms-link:hover {
  color: var(--pink);
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: rgba(18, 8, 30, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 48px var(--page-padding) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo {
  max-height: 44px;
  display: block;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--pink);
}

.footer-social {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-shrink: 0;
}

.footer-sns {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transition: color 0.3s, background 0.3s;
}

.footer-sns:hover {
  color: var(--pink);
  background: rgba(255, 138, 195, 0.15);
}

.footer-copy-bar {
  max-width: 1200px;
  margin-inline: auto;
  padding: 20px var(--page-padding);
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-family: var(--font-body);
}

/* ── Comments / Testimonials Section ────────────────────── */
.comments-section {
  padding-block: 100px 120px;
}

.comments-inner {
  text-align: center;
  overflow: hidden;      /* clips ghost text that bleeds past viewport width */
  margin-bottom: 56px;
}

/* Ghost + overlay — same pattern as blog-heading-170 / blog-heading-80 */
.comments-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comments-heading-ghost {
  font-family: var(--font-heading);
  font-size: clamp(60px, 12vw, 170px);
  color: rgba(255, 255, 255, 0.06);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 90%;
  font-weight: 400;
  pointer-events: none;
  white-space: nowrap;
}

.comments-heading-text {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 80px);
  color: var(--white);
  margin: 0;
  margin-top: clamp(-28px, -4vw, -60px);
  line-height: 100%;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Outer wrapper — clips overflowing cards + pause on hover */
.reviews-track-wrapper {
  overflow: hidden;
}

.reviews-track-wrapper:hover .reviews-track {
  animation-play-state: paused;
}

/* Scrolling strip */
.reviews-track {
  display: flex;
  width: max-content;
  padding-block: 24px; /* breathing room for hover scale */
  animation: scroll-reviews 60s linear infinite;
}

/* One set of 9 cards — padding-right equals gap, ensuring seamless pitch at -50% */
.reviews-set {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}

@keyframes scroll-reviews {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Individual review card */
.review-card {
  --review-bg-alpha: 0.66;
  width: 300px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, var(--review-bg-alpha));
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 4px 20px rgba(180, 80, 160, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(.25, .8, .25, 1),
              box-shadow 0.3s ease,
              background-color 0.2s ease;
  cursor: default;
}

.review-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(255, 138, 195, 0.25), 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.review-stars {
  color: var(--pink);
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-text {
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.review-author {
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  margin: 0;
  letter-spacing: 0.03em;
}
