/* ============================================================
   쉼표 (Shimpyo) — 랜딩 페이지 스타일
   ============================================================ */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF6FF;

  --grade-1: #2BDDFF;   --grade-1-bg: #E0F9FF;
  --grade-2: #66BB6A;   --grade-2-bg: #E8F5E9;
  --grade-3: #FFC107;   --grade-3-bg: #FFF8E1;
  --grade-4: #FF9800;   --grade-4-bg: #FFF3E0;
  --grade-5: #EF4444;   --grade-5-bg: #FEE2E2;
  --grade-6: #7C2D12;   --grade-6-bg: #FECACA;

  --dark: #0F172A;
  --text: #334155;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --bg: #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-sm);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--dark);
}
.nav__logo img,
.nav__logo canvas { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--dark); }
.nav__links a:hover { color: var(--primary); }
.nav.is-scrolled .nav__links a { color: var(--dark); }
.nav__cta {
  background: var(--dark); color: #fff !important;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px !important; font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav__cta:hover { background: var(--primary); transform: translateY(-1px); }

@media (max-width: 640px) {
  .nav { padding: 12px 20px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO (하늘 배경)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 120px 20px 80px;
}

/* --- 하늘 영상 배경 --- */
.sky {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #87CEEB 0%, #B8DDF0 55%, #E7F3FA 100%);
}
.sky__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
/* 영상 위에 부드러운 톤 다운 오버레이 — 텍스트 가독성 + 하단 페이드 */
.sky__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.6) 100%),
    radial-gradient(ellipse at center 40%, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 70%);
}

/* --- Hero 컨텐츠 --- */
.hero__content {
  position: relative; z-index: 2;
  max-width: 760px; text-align: center;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero__title--accent {
  background: linear-gradient(135deg, var(--primary) 0%, #38BDF8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.hero__cta {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__stats {
  font-size: 13px; color: var(--text-tertiary);
  font-weight: 500;
}

/* --- 다운로드 뱃지 --- */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--dark); color: #fff;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.2;
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.badge small { display: block; font-size: 11px; opacity: 0.85; font-weight: 400; }
.badge strong { display: block; font-size: 16px; font-weight: 700; }
.badge--lg { padding: 14px 26px; }
.badge--lg strong { font-size: 18px; }
.badge--disabled {
  opacity: 0.45; cursor: not-allowed;
  pointer-events: none;
  background: #475569;
}

/* --- Scroll indicator --- */
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(15, 23, 42, 0.4);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 4px; height: 8px;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 2px;
  margin: 6px auto;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 100px 20px;
}
.section--alt { background: var(--surface); }

.container {
  max-width: 1160px; margin: 0 auto;
}
.container--narrow { max-width: 760px; }

.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section__head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ============================================================
   FEATURES (3 x 2 grid)
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature__icon img { width: 40px; height: 40px; }
.feature__icon--grade1 { background: var(--grade-1-bg); }
.feature__icon--grade2 { background: var(--grade-2-bg); }
.feature__icon--grade3 { background: var(--grade-3-bg); }
.feature__icon--grade4 { background: var(--grade-4-bg); }
.feature__icon--grade5 { background: var(--grade-5-bg); }

.feature h3 {
  font-size: 19px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   SHOWCASE (스크린샷 기반 기능 소개)
   ============================================================ */

.showcase {
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.showcase:last-child { margin-bottom: 40px; }
.showcase--reverse .showcase__phone { order: 2; }
.showcase--reverse .showcase__text { order: 1; }

.showcase__phone {
  position: relative;
  display: flex; justify-content: center;
}

/* 장식 blob */
.showcase__blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}
.showcase__blob--green  { background: radial-gradient(circle, var(--grade-2) 0%, transparent 70%); }
.showcase__blob--yellow { background: radial-gradient(circle, var(--grade-3) 0%, transparent 70%); }
.showcase__blob--orange { background: radial-gradient(circle, var(--grade-4) 0%, transparent 70%); }
.showcase__blob--blue   { background: radial-gradient(circle, var(--primary) 0%, transparent 70%); }

/* iPhone 목업 프레임 */
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 80%;
  padding: 10px;
  background: linear-gradient(145deg, #1C1C1E 0%, #0F0F10 100%);
  border-radius: 42px;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.08) inset,
    var(--shadow-lg),
    0 30px 80px rgba(15, 23, 42, 0.2);
  transition: transform 0.4s ease;
}
.phone:hover { transform: translateY(-8px) rotate(-1deg); }
.phone img,
.phone canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
}
/* 노치 더미 */
.phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}

.showcase__text .eyebrow {
  margin-bottom: 12px;
}
.showcase__text h3 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 18px;
}
.showcase__text > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.showcase__list {
  list-style: none;
  padding: 0;
}
.showcase__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}
.dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 0 0 4px currentColor;
}
.dot--g1 { background: var(--grade-1); color: var(--grade-1); }
.dot--g2 { background: var(--grade-2); color: var(--grade-2); }
.dot--g3 { background: var(--grade-3); color: var(--grade-3); }
.dot--g4 { background: var(--grade-4); color: var(--grade-4); }
.dot--g5 { background: var(--grade-5); color: var(--grade-5); }

@media (max-width: 860px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }
  .showcase--reverse .showcase__phone { order: initial; }
  .showcase--reverse .showcase__text { order: initial; }
  .showcase__text { text-align: center; }
  .showcase__list li { justify-content: flex-start; text-align: left; }
  .showcase__list { max-width: 360px; margin: 0 auto; }
}

/* ============================================================
   STEPS (How It Works)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  text-align: center;
  padding: 32px 20px;
}
.step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #38BDF8 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}
.step h3 {
  font-size: 20px; font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
}

@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   GRADES GALLERY
   ============================================================ */

.grades {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.grade {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 12px;
  border-radius: var(--radius);
  transition: transform 0.2s;
}
.grade:hover { transform: translateY(-3px); }
.grade img,
.grade canvas {
  width: 68px; height: 68px;
  margin-bottom: 12px;
}
.grade span {
  font-size: 13px; font-weight: 600;
  color: var(--dark);
}
.grade--1 { background: var(--grade-1-bg); }
.grade--2 { background: var(--grade-2-bg); }
.grade--3 { background: var(--grade-3-bg); }
.grade--4 { background: var(--grade-4-bg); }
.grade--5 { background: var(--grade-5-bg); }
.grade--6 { background: var(--grade-6-bg); }
.grade--6 span { color: #fff; }

@media (max-width: 700px) { .grades { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   FAQ
   ============================================================ */

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.faq summary {
  padding: 20px 24px;
  font-size: 16px; font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px; font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq a { color: var(--primary); text-decoration: underline; }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */

.cta {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, var(--grade-1-bg) 0%, transparent 50%),
    #fff;
}
.cta .container { position: relative; z-index: 1; }
.cta__icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
  display: block;
}
.cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--dark);
  color: #94A3B8;
  padding: 48px 20px 28px;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  margin-bottom: 20px;
}
.footer__brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; font-weight: 700;
}
.footer__brand img,
.footer__brand canvas {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: block;
}
.footer__links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.footer__links a {
  font-size: 14px;
  transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }
.footer__copy {
  font-size: 13px;
  text-align: center;
}
.footer__credit {
  font-size: 11px;
  text-align: center;
  color: rgba(148, 163, 184, 0.5);
  margin-top: 6px;
}
.footer__credit a { color: inherit; text-decoration: underline; }

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */

.legal {
  padding: 140px 20px 80px;
  background: var(--bg);
}
.legal h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.legal__meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.legal__lead {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  padding: 20px 24px;
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
  margin-bottom: 32px;
}
.legal section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.legal section:first-of-type { border-top: none; padding-top: 0; }
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin: 20px 0 8px;
}
.legal p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 10px;
}
.legal ul, .legal ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal li {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 6px;
}
.legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal blockquote {
  margin: 10px 0 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-xs);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal__service {
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.legal__service h3 {
  margin-top: 0;
  font-size: 15px;
  color: var(--primary-dark);
}
.legal__service ul {
  margin-bottom: 0;
}
.legal__service li { font-size: 14px; }
.legal__biz {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.legal__biz h2 { font-size: 16px; margin-bottom: 10px; }
.legal__biz ul { list-style: none; padding: 0; margin: 0; }
.legal__biz li { font-size: 14px; margin-bottom: 4px; }
.legal__biz strong { color: var(--text-tertiary); display: inline-block; min-width: 120px; }

/* ============================================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================================ */

*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .sky__gradient, .sky__sun, .hero__scroll span, .hero__content {
    animation: none !important;
  }
}
