:root {
  --blue: #3182f6;
  --blue-deep: #1b64da;
  --blue-soft: #e8f3ff;
  --tg: #229ed9;
  --ink: #191f28;
  --ink-2: #4e5968;
  --muted: #8b95a1;
  --line: #e5e8eb;
  --bg: #ffffff;
  --bg-tint: #f7fafc;
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(720px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  width: min(960px, calc(100% - 32px));
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.22);
}

.logo-text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 999px;
}

.btn-block {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
}

.btn-block span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.btn-block strong {
  font-size: 1.02rem;
}

.btn-block small {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.88;
}

.tg-icon,
.sms-ico {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sms-ico {
  color: var(--blue);
}

.btn-telegram {
  color: #fff;
  background: linear-gradient(180deg, #34b7f1, #229ed9);
  box-shadow: 0 8px 18px rgba(34, 158, 217, 0.28);
}

.btn-inquiry {
  color: var(--blue-deep);
  background: #fff;
  border: 1.5px solid var(--blue);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  text-align: left;
  background: #e8f3ff;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
}

.hero-card {
  max-width: 640px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(25, 31, 40, 0.1);
  backdrop-filter: blur(8px);
}

.hero-headline {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.hero-headline strong {
  color: var(--blue-deep);
}

.hero-sub {
  margin: 0 0 26px;
  color: var(--ink-2);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.btn-hero {
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(25, 31, 40, 0.08);
}

.btn-hero span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.btn-hero strong {
  font-size: 1rem;
}

.btn-hero small {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

.btn-hero .tg-icon,
.btn-hero .sms-ico {
  width: 26px;
  height: 26px;
}

.btn-inquiry.btn-hero {
  color: #fff;
  background: var(--blue);
  border: 0;
  box-shadow: 0 8px 18px rgba(49, 130, 246, 0.3);
}

.btn-inquiry.btn-hero .sms-ico {
  color: #fff;
}

.cta-stack {
  display: grid;
  gap: 10px;
}

/* Sections — cleaner */
.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--bg-tint);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 800;
}

.section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Compact blue icons */
.ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.ico svg {
  width: 24px;
  height: 24px;
}

/* Why */
.why-grid {
  display: grid;
  gap: 14px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px 26px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Steps — numbered list, text-first */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.step-body {
  min-width: 0;
}

.step h3 {
  margin: 2px 0 6px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Gifts */
.gift-grid {
  display: grid;
  gap: 12px;
}

.gift {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 18px 24px;
}

.gift h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.gift p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: left;
}

.review p {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

.review cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Live board */
.live-board {
  margin: 8px 0 28px;
  text-align: left;
}

.live-board-head {
  margin-bottom: 14px;
  text-align: center;
}

.live-board-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-board-title h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: live-pulse 1.6s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-board-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.live-board-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(25, 31, 40, 0.05);
}

.live-board-cols {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(90deg, #3182f6, #1b64da);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.live-board-viewport {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.live-board-viewport::before,
.live-board-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.live-board-viewport::before {
  top: 0;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.live-board-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.live-board-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: live-scroll 42s linear infinite;
}

.live-board-track:hover {
  animation-play-state: paused;
}

@keyframes live-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.live-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr;
  gap: 8px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.88rem;
  min-height: 48px;
}

.live-row:nth-child(even) {
  background: #fafbfc;
}

.live-info {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-info em {
  font-style: normal;
  color: var(--blue-deep);
  font-weight: 700;
}

.live-time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 68px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.live-status.done {
  color: #15803d;
  background: #dcfce7;
}

.live-status.ing {
  color: #b45309;
  background: #fef3c7;
}

.live-status.wait {
  color: #1d4ed8;
  background: #dbeafe;
}

@media (max-width: 520px) {
  .live-board-cols,
  .live-row {
    grid-template-columns: 1.4fr 0.55fr 0.75fr;
    padding-inline: 12px;
    gap: 4px;
  }

  .live-info {
    font-size: 0.82rem;
  }

  .live-board-viewport {
    height: 260px;
  }
}

/* FAQ */
.faq {
  margin: 8px 0 28px;
  text-align: left;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

.cta-banner {
  background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
  border: 1px solid #d6e6ff;
  border-radius: 20px;
  padding: 36px 20px;
}

.cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 4.5vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.cta-banner > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 36px 0 110px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--tg);
  font-weight: 700;
}

.copyright {
  margin-top: 8px !important;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
}

/* Dock */
.dock {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 8px;
  width: min(420px, calc(100% - 20px));
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(25, 31, 40, 0.12);
}

.dock .btn {
  flex: 1;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 0.92rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.12s; }

@media (min-width: 560px) {
  .hero-cta {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (min-width: 900px) {
  .wrap {
    width: min(880px, calc(100% - 48px));
  }

  .hero {
    padding: 96px 0 100px;
    min-height: 560px;
    display: flex;
    align-items: center;
  }

  .hero-inner {
    width: min(1120px, calc(100% - 48px));
  }

  .hero-card {
    padding: 40px;
  }

  .why-grid,
  .gift-grid,
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .cta-banner {
    padding: 44px 48px;
  }

  .cta-banner .cta-stack {
    max-width: 400px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-photo {
    object-position: 72% center;
    opacity: 0.55;
  }

  .hero-card {
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.96);
  }

  .section {
    padding: 56px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .live-board-track {
    transform: none !important;
  }

  .live-board-viewport {
    overflow-y: auto;
  }
}
