/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* ===== DESIGN TOKENS ===== */
:root {
  --accent:        #F15F5F;
  --accent-hover:  #E04F4F;
  --accent-bg:     #FFF1F1;
  --accent-border: #FECACA;

  --text-1:   #111111;
  --text-2:   #444444;
  --text-3:   #999999;
  --text-sub: #666666;

  --border:      #E8E8EC;
  --border-soft: #F0F0F3;
  --bg:          #FFFFFF;
  --bg-muted:    #F8F8FA;
  --bg-soft:     #FAFAFA;
  --dark:        #111111;
  --dark-2:      #1E1E1E;
  --dark-3:      #2A2A2A;

  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --max-w:     1080px;
  --section-py: 96px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ===== DISPLAY FONT ===== */
/* Playfair Display handles Latin/numbers; Pretendard handles Korean characters */
:root {
  --font-display: 'Playfair Display', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}
.display {
  font-family: var(--font-display);
}

/* ===== LAYOUT UTILS ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: var(--section-py) 0; }
.section--muted { background: var(--bg-muted); }
.section--soft  { background: var(--bg-soft); }

/* ===== TYPOGRAPHY ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 520px;
}
.section-sub--center { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(241,95,95,.30);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(241,95,95,.40);
}
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.btn--outline:hover {
  border-color: #ccc;
  background: var(--bg-muted);
}
.btn--lg {
  padding: 14px 34px;
  font-size: 15px;
}
.btn[data-href-pending] {
  cursor: not-allowed;
  opacity: .45;
  pointer-events: none;
  transform: none;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -.02em;
}
.nav__logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(241,95,95,.35);
}
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  transition: color .15s;
}
.nav__links a:hover { color: var(--text-1); }

/* ===== HERO ===== */
.hero {
  padding: 100px 0 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, #FFF0F0 0%, #FFFFFF 70%);
}
.hero__badge { margin-bottom: 24px; }
.hero__title {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 60px;
}
.hero__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero__meta span::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}
.hero__preview {
  background: linear-gradient(180deg, #F4F4F8 0%, #EBEBEF 100%);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 0;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 -4px 32px rgba(0,0,0,.06);
  /* 16:9 영역 강제 */
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  overflow: hidden;
}
.hero__screenshot {
  width: 100%;
  height: 100%;
  border-radius: 10px 10px 0 0;
  display: block;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border);
  border-bottom: none;
}

/* ===== STATS STRIP ===== */
.stats {
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
}
.stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.stats__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ===== FEATURES ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
  text-align: left;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.feature-card:hover {
  border-color: #D8D8DC;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.feature-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feature-card__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ===== SCREENSHOTS ===== */
.screenshots__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 48px;
}
.screenshot-thumb {
  background: var(--border-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.screenshot-thumb:hover {
  box-shadow: var(--shadow-md);
  transform: scale(1.01);
}
.screenshot-thumb--main { aspect-ratio: 16 / 10; }
.screenshot-thumb--side { aspect-ratio: 16 / 10; }
.screenshots__thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}
.lightbox__img {
  border-radius: var(--radius-lg);
  max-width: 100%;
  max-height: 80vh;
}
.lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: rgba(255,255,255,.8);
  font-size: 26px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color .15s;
}
.lightbox__close:hover { color: #fff; }

/* ===== FAQ ===== */
.faq__list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .15s;
}
.faq-item.open {
  box-shadow: var(--shadow-sm);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  background: var(--bg);
  user-select: none;
  transition: background .15s;
  gap: 16px;
}
.faq-item__q:hover { background: var(--bg-soft); }
.faq-item__chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-3);
  transition: transform .2s, background .2s, border-color .2s;
  flex-shrink: 0;
}
.faq-item.open .faq-item__chevron {
  transform: rotate(180deg);
  background: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--accent);
}
.faq-item__a {
  display: none;
  padding: 16px 22px 20px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  text-align: left;
}
.faq-item.open .faq-item__a { display: block; }

/* ===== CTA ===== */
.cta {
  background: var(--dark);
  padding: var(--section-py) 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(241,95,95,.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  color: rgba(241,95,95,.8);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cta__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.cta__sub {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer-bar {
  margin-top: 64px;
  padding: 22px 0;
  border-top: 1px solid var(--dark-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.footer-bar a { color: rgba(255,255,255,.4); transition: color .15s; }
.footer-bar a:hover { color: rgba(255,255,255,.65); }

/* ===== CONTACT ===== */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact__info .section-label { display: inline-flex; margin-bottom: 14px; }
.contact__info .section-title { margin-bottom: 14px; }
.contact__info .section-sub { margin-bottom: 32px; }
.contact__reasons {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact__reasons li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}
.contact__reason-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.contact__form-wrap {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}
.form-label__opt {
  font-weight: 400;
  color: var(--text-3);
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(241,95,95,.12);
}
.form-input::placeholder { color: var(--text-3); }
.form-select { cursor: pointer; }
.form-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.6;
}
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.contact__success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.contact__success.visible { display: block; }
.contact__success-icon {
  width: 52px;
  height: 52px;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #059669;
  margin: 0 auto 20px;
}
.contact__success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.contact__success-sub {
  font-size: 14px;
  color: var(--text-sub);
}

/* ===== PAIN POINTS ===== */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.pain-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}
.pain-card__emoji {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1.4;
}
.pain-card__text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
}
.pain-card__text strong {
  color: var(--text-1);
  font-weight: 600;
}
.pain__resolve {
  margin-top: 36px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* ===== PERSONA / WHO IT'S FOR ===== */
.persona__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.persona-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.persona-card:hover {
  border-color: #D8D8DC;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.persona-card--featured {
  background: var(--dark);
  border-color: var(--dark);
}
.persona-card--featured:hover {
  border-color: var(--dark-2);
}
.persona-card__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.persona-card__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 20px;
}
.persona-card--featured .persona-card__desc {
  color: rgba(255,255,255,.8);
}
.persona-card__list {
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
  line-height: 2.2;
}
.persona-card--featured .persona-card__list {
  color: rgba(255,255,255,.75);
}
.persona-card--featured .persona-card__list li {
  color: rgba(255,255,255,.75);
}
.persona-card__list li::before {
  content: '✓  ';
  color: var(--accent);
  font-weight: 700;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ACTIVE NAV LINK ===== */
.nav__links a.active { color: var(--text-1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .container { padding: 0 20px; }

  /* Nav */
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }

  /* Hero */
  .hero { padding: 72px 0 0; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  .hero__cta { flex-direction: column; align-items: center; }

  /* Stats */
  .stats__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 0;
  }
  .stats__divider { display: none; }

  /* Section titles */
  .section-title { font-size: 28px; }

  /* Pain */
  .pain__grid { grid-template-columns: 1fr; }

  /* Features */
  .features__grid { grid-template-columns: 1fr; }

  /* Persona */
  .persona__grid { grid-template-columns: 1fr; }

  /* Screenshots */
  .screenshots__layout { grid-template-columns: 1fr; }
  .screenshots__thumbs { flex-direction: row; }
  .screenshot-thumb--side { aspect-ratio: 4/3; }

  /* Contact */
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* CTA */
  .cta__title { font-size: 32px; }

  /* Footer */
  .footer-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .section-title { font-size: 24px; }
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .btn--lg { padding: 13px 24px; font-size: 14px; }
  .contact__form-wrap { padding: 24px; }
}
