/* Motion Cam — homepage */
:root {
  --bg: #0a0d13;
  --bg-2: #0f131c;
  --surface: #151a25;
  --surface-2: #1b2130;
  --line: #262d3d;
  --text: #f1f3f8;
  --muted: #a3acbd;
  --dim: #6f7889;
  --accent: #ff6a2b;
  --accent-2: #ffb347;
  --rec: #ff4d4d;
  --green: #3ddc84;
  --blue: #8ab4ff;
  --radius: 22px;
  --max: 1160px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { text-wrap: balance; word-break: keep-all; }
p { word-break: keep-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--accent); }
.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 19, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.lang-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-small { padding: 9px 16px; font-size: 14px; background: var(--accent); color: #1c0c03; }
.btn-small:hover { box-shadow: 0 8px 24px -8px rgba(255, 106, 43, 0.8); }
.btn-play {
  padding: 12px 22px 12px 18px; background: #fff; color: #0b0d12; min-height: 60px;
  box-shadow: 0 16px 40px -18px rgba(255, 106, 43, 0.9);
}
.btn-play:hover { transform: translateY(-2px); }
.btn-play svg { width: 28px; height: 28px; flex: none; }
.btn-play .label { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-play .label small { font-size: 12px; font-weight: 600; color: #4b5262; }
.btn-play .label strong { font-size: 19px; letter-spacing: -0.01em; }
.btn-ghost { padding: 15px 22px; color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 16px; }
.btn-ghost:hover { border-color: #3a4357; background: rgba(255, 255, 255, 0.06); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(255, 106, 43, 0.28), rgba(255, 106, 43, 0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 106, 43, 0.12); border: 1px solid rgba(255, 106, 43, 0.35); color: #ffc3a6;
  font-size: 14px; font-weight: 700;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,77,77,.7); } 80%,100% { box-shadow: 0 0 0 10px rgba(255,77,77,0); } }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -0.035em; margin: 22px 0 20px; font-weight: 850; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Phone mockup */
.phone {
  position: relative; width: 300px; aspect-ratio: 540 / 1145; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #3a3f4b, #11141b 40%, #2b303b);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #05070a; z-index: 2; box-shadow: inset 0 0 0 2px #1a1e27; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 35px; background: #000; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(330px, 78vw); transform: rotate(3deg); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(21, 26, 37, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.float-card .muted { color: var(--muted); font-weight: 600; }
.float-card.rec { top: 12%; left: -4%; }
.float-card.rec .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: blink 1s infinite alternate; }
.float-card.level { bottom: 22%; right: -6%; flex-direction: column; align-items: flex-start; gap: 6px; animation-delay: -2s; }
.float-card.level .bar { width: 150px; height: 6px; border-radius: 6px; background: #2b3242; overflow: hidden; }
.float-card.level .bar span { display: block; height: 100%; width: 83%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.float-card.saved { bottom: 6%; left: 0; animation-delay: -3.5s; }
.float-card.saved svg { width: 20px; height: 20px; color: var(--green); }
@keyframes blink { from { opacity: 1; } to { opacity: 0.3; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; right: 18px; top: -10px; font-size: 110px; font-weight: 900; color: rgba(255,255,255,0.04); line-height: 1;
}
.step .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,106,43,0.14); color: var(--accent); margin-bottom: 18px; }
.step .icon svg { width: 26px; height: 26px; }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-4px); border-color: #3a4357; }
.feature .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.i-orange { background: rgba(255,106,43,0.14); color: var(--accent); }
.i-red { background: rgba(255,77,77,0.14); color: var(--rec); }
.i-blue { background: rgba(138,180,255,0.14); color: var(--blue); }
.i-green { background: rgba(61,220,132,0.13); color: var(--green); }
.i-amber { background: rgba(255,179,71,0.14); color: var(--accent-2); }

/* Screens */
.screens { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 auto; scroll-snap-align: center; text-align: center; margin: 0; }
.screen .phone { width: 250px; margin: 0 auto 18px; }
.screen h3 { margin: 0 0 4px; font-size: 18px; }
.screen p { margin: 0 auto; color: var(--muted); font-size: 15px; max-width: 250px; }
.screens-wrap { display: flex; justify-content: center; }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.use { border-radius: var(--radius); padding: 26px 24px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); }
.use .emoji { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.06); margin-bottom: 14px; }
.use .emoji svg { width: 26px; height: 26px; color: var(--accent-2); }
.use h3 { margin: 0 0 6px; font-size: 18px; }
.use p { margin: 0; color: var(--muted); font-size: 15px; }

/* Privacy band */
.privacy-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, rgba(255,106,43,0.16), rgba(255,106,43,0.03) 60%), var(--surface); border: 1px solid rgba(255,106,43,0.3); border-radius: 32px; padding: 56px; }
.privacy-band h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 14px; }
.privacy-band > div > p { color: var(--muted); margin: 0; }
.privacy-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.privacy-points li { display: flex; gap: 14px; align-items: flex-start; background: rgba(10,13,19,0.55); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.privacy-points svg { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 2px; }
.privacy-points strong { display: block; font-size: 16px; }
.privacy-points span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }

/* Final CTA */
.final { text-align: center; padding: 104px 0 112px; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,106,43,0.25), rgba(255,106,43,0) 70%); pointer-events: none; }
.final .container { position: relative; }
.final img.app-icon { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 22px; box-shadow: 0 20px 60px -20px rgba(255,106,43,0.8); }
.final h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 14px; }
.final p { color: var(--muted); margin: 0 0 30px; font-size: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .eyebrow .dot, .float-card.rec .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features, .uses { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 36px 26px; gap: 28px; }
  .section { padding: 72px 0; }
  .float-card.rec { left: 0; }
  .float-card.level { right: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header-inner { height: 60px; gap: 12px; }
  .brand span { display: none; }
  .btn-small { padding: 8px 13px; font-size: 13px; }
  .features, .uses { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 16px; }
  .float-card { font-size: 12px; padding: 9px 12px; }
  .float-card.level .bar { width: 110px; }
  /* 좁은 화면에서는 폰 화면 속 글자를 가리지 않도록 녹화 카드를 숨기고 나머지는 폰 밖으로 */
  .float-card.rec { display: none; }
  .float-card.level { bottom: auto; top: 30%; right: -2px; }
  .float-card.saved { bottom: -18px; left: 50%; transform: translateX(-50%); animation: none; }
  .hero-visual .phone { transform: none; }
  .screens { margin: 0 -18px; padding: 8px 18px 24px; }
  .screen .phone { width: 220px; }
  .btn-play, .btn-ghost { width: 100%; }
}
