/* ==========================================
   Horang Landing Page — Design System
   Concept: 프리랜서 일러스트레이터의 커미션 장부(ledger).
   팔레트는 마스코트 SVG의 실제 색상에서 그대로 가져옴 - 임의의
   "따뜻한 크림+테라코타" 배색이 아니라 이 캐릭터의 색.
   단일 테마(따뜻한 종이 톤)로 확정 - 다크모드 토글 없음.
   ========================================== */

:root {
  --font-display: 'Jua', 'Fredoka', sans-serif;
  --font-body: 'Noto Sans KR', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Paper */
  --paper: #f7ecd3;
  --paper-card: #fffcf3;
  --paper-raised: #fff8e8;

  /* Ink */
  --ink: #2e2015;
  --ink-muted: #7a6a54;
  --ink-faint: #a9977c;

  /* Tiger palette (mascot.svg) */
  --tiger: #f0a63f;
  --tiger-deep: #c97a1f;
  --stamp: #e05a34;
  --stripe: #3a2a20;

  --line: #e2cd9e;
  --line-strong: #d1b578;

  /* Semantic, kept muted/warm so the tiger accent stays the one loud color */
  --green: #5a8f5e;
  --red: #c0503a;

  --radius-sm: 10px;
  --radius-lg: 22px;
  --radius-tag: 4px 16px 4px 16px;
  --radius-pill: 999px;

  --shadow-card: 0 2px 0 var(--line-strong);
  --shadow-lift: 0 10px 26px rgba(58, 42, 32, 0.16);

  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  background-image:
    radial-gradient(rgba(58, 42, 32, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ==========================================
   Tiger-stripe divider band — used sparingly as
   a real graphic motif tied to the mascot, not decoration
   ========================================== */
.stripe-divider {
  height: 14px;
  background: repeating-linear-gradient(
    -35deg,
    var(--stripe) 0 10px,
    var(--tiger) 10px 26px
  );
  opacity: 0.9;
}

/* ==========================================
   Buttons — thick ink outline + hard offset shadow,
   like a rubber-stamped ticket, not a flat SaaS pill
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
}

.btn-primary {
  background: var(--tiger);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--stamp);
  color: #fff8e8;
  transform: translate(-1px, -2px);
  box-shadow: 4px 6px 0 var(--ink);
}

.btn-hero-primary {
  background: var(--stamp);
  color: #fff8e8;
  padding: 15px 30px;
  font-size: 1.1rem;
  box-shadow: 3px 4px 0 var(--ink);
}
.btn-hero-primary:hover {
  transform: translate(-1px, -2px);
  box-shadow: 5px 7px 0 var(--ink);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  background: rgba(247, 236, 211, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  width: 36px;
  height: 36px;
  /* border-radius: var(--radius-tag); */
  /* border: 2px solid var(--ink); */
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--stripe);
  color: var(--tiger);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  gap: 30px;
}
.nav-menu a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-menu a:hover {
  color: var(--stamp);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 다크모드 토글은 없앴다 - 마스코트가 사는 이 따뜻한 종이 톤 하나로
   확정한 의도적 선택. 버튼 자체를 HTML에서도 제거했다. */
.theme-toggle-btn {
  display: none;
}

/* ==========================================
   Hero — asymmetric: 왼쪽 텍스트+CTA, 오른쪽 마스코트+영수증형
   통계 카드. 가운데 정렬된 뻔한 히어로 대신.
   ========================================== */
.hero {
  padding-top: 148px;
  padding-bottom: 60px;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 48px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.badge-mascot-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.28;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title .hl {
  color: var(--stamp);
}
.hero-desc {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 480px;
}

.hero-cta-group {
  margin-top: 4px;
}

/* Reassurance Download Notice — receipt-note styling */
.download-notice {
  margin-top: 4px;
  max-width: 100%;
  background: var(--paper-card);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  line-height: 1.55;
}
.download-notice .notice-icon {
  width: 20px;
  height: 20px;
  color: var(--tiger-deep);
  flex-shrink: 0;
}
.download-notice strong {
  color: var(--ink);
  font-weight: 700;
}
.download-notice u {
  color: var(--stamp);
  font-weight: 700;
  text-decoration: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat-item i {
  color: var(--tiger-deep);
  width: 17px;
  height: 17px;
}

/* Hero right — mascot in a stamped circle + ledger receipt card */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.hero-mascot-stamp {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--paper-raised);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}
.hero-mascot-stamp::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px dashed var(--tiger);
}
.hero-mascot-stamp img {
  width: 100%;
  height: 100%;
}

.hero-receipt {
  width: 100%;
  max-width: 260px;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: var(--shadow-card);
}
.hero-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--ink-muted);
}
.hero-receipt-row b {
  color: var(--ink);
  font-weight: 600;
}
.hero-receipt-divider {
  border-top: 1px dashed var(--line-strong);
  margin: 6px 0;
}
.hero-receipt-total {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  font-weight: 700;
  color: var(--stamp);
}

/* Hero App Preview Mockup */
.hero-preview-wrapper {
  margin-top: 56px;
  width: 100%;
}

.app-window-frame {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: var(--transition);
}
.app-window-frame:hover {
  transform: translateY(-4px);
}

.app-window-header {
  height: 40px;
  background: var(--paper-raised);
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}
.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.window-controls .control {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.window-controls .control.red {
  background: #e05a34;
}
.window-controls .control.yellow {
  background: #f0a63f;
}
.window-controls .control.green {
  background: #7fa66a;
}
.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.app-window-body {
  width: 100%;
  background: var(--paper);
  line-height: 0;
}
.preview-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Common */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 46px;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--tiger-deep);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  text-wrap: balance;
}
.section-desc {
  font-size: 0.96rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* ==========================================
   Feature Grid — index-card 스타일. 모서리를 균일한
   rounded-lg 대신 비대칭으로(스티커/메모지 느낌).
   ========================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-tag);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--ink);
}
.feature-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.feature-wide-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--tiger);
  color: var(--ink);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ==========================================
   AI Section — "official stamp" card
   ========================================== */
.ai-box {
  background: var(--stripe);
  color: #f4e9cf;
  border-radius: 22px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.ai-box .section-title,
.ai-box .section-eyebrow {
  color: #fdf4de;
}
.ai-box .section-desc {
  color: #c9b593;
}
.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--stripe);
  background: var(--tiger);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  border: 2px solid var(--ink);
}
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ai-card {
  background: rgba(247, 236, 211, 0.06);
  border: 1.5px solid rgba(247, 236, 211, 0.22);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}
.ai-card:hover {
  border-color: var(--tiger);
  background: rgba(247, 236, 211, 0.1);
}
.ai-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-tag);
  background: var(--tiger);
  color: var(--stripe);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-card h4 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #fdf4de;
}
.ai-card p {
  font-size: 0.88rem;
  color: #c9b593;
}

/* ==========================================
   FAQ Section — ledger-line list
   ========================================== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px dashed var(--line-strong);
}
.faq-item:first-child {
  border-top: 1px dashed var(--line-strong);
}
.faq-question {
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-question span {
  flex: 1;
}
.faq-arrow {
  color: var(--tiger-deep);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.faq-open .faq-arrow {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  padding: 0 4px 20px 4px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* ==========================================
   CTA Banner — 큰 스탬프 티켓
   ========================================== */
.cta-section {
  padding: 40px 0 90px 0;
}
.cta-card {
  background: var(--paper-card);
  border: 3px solid var(--ink);
  border-radius: 26px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lift);
  position: relative;
}
.cta-content h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 22px;
  text-wrap: balance;
}
.cta-mascot-box {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  /* background: var(--tiger);
  border: 3px solid var(--ink); */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-shrink: 0;
}
.cta-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================
   Footer — stripe-brown band, ties the palette
   together with the mascot's darkest tone
   ========================================== */
.footer {
  background: var(--stripe);
  color: #d8c7a4;
  padding: 40px 0;
}
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fdf4de;
}
.footer-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-tag);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #a3906f;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  font-size: 0.85rem;
  color: #d8c7a4;
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--tiger);
}

/* ==========================================
   Scroll Reveal Fade-In & Slide-Up Animations
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}
.delay-2 {
  transition-delay: 0.16s;
}
.delay-3 {
  transition-delay: 0.24s;
}
.delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .feature-card,
  .ai-card,
  .app-window-frame,
  .showcase-image-box img {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-right {
    order: -1;
  }
  .hero-mascot-stamp {
    width: 160px;
    height: 160px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card-wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .ai-features-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    flex-direction: column-reverse;
    text-align: center;
    gap: 22px;
    padding: 34px;
  }
  .cta-content h2 {
    margin-bottom: 0;
  }
  .download-notice {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   Screens Showcase — 스케치북에 테이프로 붙인 사진 느낌
   ========================================== */
.screens-section {
  padding: 64px 0;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: var(--paper-card);
  color: var(--ink-muted);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--stamp);
}

.tab-btn.active {
  background: var(--tiger);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.showcase-display {
  position: relative;
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 34px;
  align-items: center;
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow-card);
}

.showcase-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.showcase-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--paper-raised);
  color: var(--tiger-deep);
  border: 1.5px solid var(--line-strong);
}

.showcase-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.35;
}

.showcase-info p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.showcase-list li i {
  width: 18px;
  height: 18px;
  color: var(--tiger-deep);
  flex-shrink: 0;
}

.showcase-image-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transform: rotate(-1.2deg);
  transition: var(--transition);
}
.showcase-image-box:hover {
  transform: rotate(0deg) translateY(-3px);
}

.showcase-image-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 32, 21, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff8e8;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.showcase-image-box:hover .zoom-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(46, 32, 21, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  max-width: 92%;
  max-height: 90vh;
  border-radius: 12px;
  border: 3px solid var(--paper-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff8e8;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--tiger);
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
}
