/* ===========================================================================
   MoaRemote — 마케팅 사이트 디자인 시스템
   다크 프리미엄. 인디고→시안 그라데이션, 글래스모피즘, 부드러운 모션.
   =========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg:        #07080d;
  --bg-2:      #0b0d16;
  --surface:   rgba(255,255,255,.038);
  --surface-2: rgba(255,255,255,.06);
  --stroke:    rgba(255,255,255,.09);
  --stroke-2:  rgba(255,255,255,.16);
  --fg:        #eef0f7;
  --fg-muted:  #aeb4c7;
  --fg-dim:    #767c92;
  --indigo:    #6366f1;
  --violet:    #8b5cf6;
  --cyan:      #22d3ee;
  --blue:      #3b82f6;
  --accent:    #7c7dfb;
  --grad:      linear-gradient(120deg, #6366f1 0%, #4f7cf5 42%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(99,102,241,.16), rgba(34,211,238,.16));
  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 24px 60px -20px rgba(0,0,0,.7);
  --glow:      0 0 46px -6px rgba(99,102,241,.55);
  --maxw:      1180px;
  --nav-h:     68px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 14px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.62;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(124,125,251,.35); }

/* atmospheric background */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(720px 480px at 78% -8%, rgba(99,102,241,.30), transparent 60%),
    radial-gradient(680px 520px at 8% 4%, rgba(34,211,238,.16), transparent 55%),
    radial-gradient(900px 700px at 50% 108%, rgba(139,92,246,.16), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(1000px 700px at 50% -5%, #000 30%, transparent 72%);
          mask-image: radial-gradient(1000px 700px at 50% -5%, #000 30%, transparent 72%);
}

/* layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 9vw, 128px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8,9,15,.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled { background: rgba(8,9,15,.82); border-bottom-color: var(--stroke); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand svg, .brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; color: var(--fg-muted); font-weight: 600; font-size: 15px;
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--fg); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  --pad: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border-radius: 12px; font-weight: 700; font-size: 15px; font-family: inherit;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap; line-height: 1;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(99,102,241,.7); background-size: 160% 160%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(99,102,241,.85); background-position: 100% 0; }
.btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--stroke-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--stroke-2); transform: translateY(-2px); }
.btn-lg { --pad: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: #c7cbfb; background: var(--grad-soft); border: 1px solid var(--stroke-2);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1,h2,h3 { letter-spacing: -.035em; line-height: 1.1; font-weight: 800; }
.h-grad { background: linear-gradient(115deg,#fff 30%, #b9c0ff 60%, #7fe6f7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); margin: 16px 0 14px; }
.section-head p { color: var(--fg-muted); font-size: clamp(16px,2vw,18px); }
.center { text-align: center; margin-inline: auto; }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(46px, 8vw, 96px)); padding-bottom: clamp(40px,7vw,90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 22px 0 20px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 21px); color: var(--fg-muted); max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--fg-dim); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--cyan); font-weight: 700; }

/* product mock (console grid) */
.mock {
  position: relative; border-radius: var(--radius-lg); padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid var(--stroke-2); box-shadow: var(--shadow), var(--glow);
  transform: perspective(1400px) rotateY(-11deg) rotateX(5deg); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}
.mock:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 6px 8px 12px; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f52; display: inline-block; }
.mock-bar i:nth-child(1){ background:#ff5f57 } .mock-bar i:nth-child(2){ background:#febc2e } .mock-bar i:nth-child(3){ background:#28c840 }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--fg-dim); font-weight: 600; }
.mock-screen { border-radius: 14px; overflow: hidden; background: #06070d; border: 1px solid var(--stroke); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 9px; }
.tile {
  aspect-ratio: 4/3; border-radius: 8px; position: relative; overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(99,102,241,.30), rgba(34,211,238,.14));
}
.tile::after { content:""; position:absolute; inset:0; background: radial-gradient(120px 60px at 30% 20%, rgba(255,255,255,.18), transparent 60%); }
.tile b { position: absolute; left: 7px; top: 6px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.85); z-index: 1; }
.tile .live { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #28c840; box-shadow: 0 0 8px #28c840; animation: pulse 1.8s var(--ease) infinite; }
.tile.off { background: rgba(255,255,255,.03); }
.tile.off .live { background: #454b60; box-shadow: none; animation: none; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }
.mock-float {
  position: absolute; right: -18px; bottom: 26px; z-index: 3;
  background: rgba(12,14,22,.92); border: 1px solid var(--stroke-2); border-radius: 14px;
  padding: 12px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 11px;
  backdrop-filter: blur(8px);
}
.mock-float .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--grad-soft); font-size: 18px; }
.mock-float small { color: var(--fg-dim); font-size: 11px; display: block; }
.mock-float strong { font-size: 14px; }

/* ---------- stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.stat .num { font-size: clamp(28px,3.6vw,40px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--fg-muted); font-size: 14px; margin-top: 4px; }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--stroke); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.card::before {
  content:""; position:absolute; inset:0; border-radius: inherit; padding:1px; opacity:0;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .25s;
}
.card:hover { transform: translateY(-5px); background: var(--surface-2); }
.card:hover::before { opacity: .9; }
.card .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--stroke-2); margin-bottom: 18px; font-size: 24px;
}
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--fg-muted); font-size: 15px; }
.card .tag { position:absolute; top:20px; right:20px; font-size:11px; font-weight:700; color:#7fe6f7; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--stroke); }
.step .n { counter-increment: step; font-size: 15px; font-weight: 800; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--fg-muted); font-size: 15px; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--stroke); position: relative;
  transition: transform .25s var(--ease), border-color .25s;
}
.plan:hover { transform: translateY(-6px); }
.plan.featured { background: linear-gradient(180deg, rgba(99,102,241,.16), rgba(34,211,238,.05)); border-color: rgba(124,125,251,.55); box-shadow: var(--glow); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan .pname { font-size: 15px; font-weight: 700; color: var(--fg-muted); }
.plan .scope { font-size: 13px; color: var(--fg-dim); margin-top: 2px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan .price .won { font-size: 40px; font-weight: 800; letter-spacing: -.04em; }
.plan .price .per { color: var(--fg-dim); font-size: 14px; font-weight: 600; }
.plan .cut { font-size: 13px; color: #7fe6f7; font-weight: 700; margin-bottom: 18px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 6px 0 24px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14px; color: var(--fg-muted); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--cyan); }

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--stroke); }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--stroke); font-size: 15px; }
.cmp thead th { background: var(--surface-2); font-weight: 700; }
.cmp th.us { color: #fff; background: linear-gradient(180deg, rgba(99,102,241,.28), rgba(34,211,238,.1)); }
.cmp td.us { color: var(--fg); font-weight: 600; }
.cmp td .yes { color: var(--cyan); } .cmp td .no { color: var(--fg-dim); }
.cmp tr:last-child td { border-bottom: 0; }

/* ---------- guide ---------- */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 42px; align-items: start; }
.guide-toc { position: sticky; top: calc(var(--nav-h) + 22px); display: flex; flex-direction: column; gap: 4px; }
.guide-toc a { padding: 9px 14px; border-radius: 10px; color: var(--fg-muted); font-size: 14px; font-weight: 600; border-left: 2px solid transparent; }
.guide-toc a:hover, .guide-toc a.active { color: var(--fg); background: var(--surface); border-left-color: var(--accent); }
.guide-body h2 { font-size: 28px; margin: 46px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.guide-body h2:first-child { margin-top: 0; }
.guide-body h3 { font-size: 19px; margin: 26px 0 10px; }
.guide-body p, .guide-body li { color: var(--fg-muted); font-size: 16px; }
.guide-body ul, .guide-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.guide-body strong { color: var(--fg); }
.callout { display: flex; gap: 13px; padding: 18px 20px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--stroke-2); margin: 20px 0; }
.callout .ic { font-size: 20px; }
.callout p { color: var(--fg); font-size: 15px; margin: 0; }
.kbd { font-family: ui-monospace, 'SF Mono', Consolas, monospace; background: rgba(255,255,255,.08); border: 1px solid var(--stroke-2); border-radius: 6px; padding: 2px 7px; font-size: 13px; color: #dfe3f5; }
code.cmd { display: block; font-family: ui-monospace, 'SF Mono', Consolas, monospace; background: #05060b; border: 1px solid var(--stroke); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: #cfe7ff; overflow-x: auto; margin: 14px 0; white-space: pre; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .25s; font-weight: 400; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--fg-muted); font-size: 15px; }

/* ---------- cta band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); text-align: center; overflow: hidden; border: 1px solid var(--stroke-2); background: linear-gradient(120deg, rgba(99,102,241,.22), rgba(34,211,238,.12)); }
.cta-band h2 { font-size: clamp(28px,4vw,46px); margin-bottom: 14px; }
.cta-band p { color: var(--fg-muted); font-size: 18px; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.dl-card { padding: 34px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--stroke); text-align: center; }
.dl-card .os { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--stroke-2); font-size: 32px; }
.dl-card h3 { font-size: 23px; margin-bottom: 6px; }
.dl-card .ver { color: var(--fg-dim); font-size: 14px; margin-bottom: 20px; }
.dl-card .btn { margin-bottom: 10px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--stroke); padding-block: 54px 34px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--fg-dim); font-size: 14px; max-width: 280px; }
.footer h4 { font-size: 14px; color: var(--fg); margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer ul a { color: var(--fg-muted); font-size: 14px; }
.footer ul a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; border-top: 1px solid var(--stroke); color: var(--fg-dim); font-size: 13px; flex-wrap: wrap; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s } .reveal.d4 { transition-delay: .32s }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { transform: none; max-width: 520px; }
  .mock:hover { transform: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 20px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; padding: 14px; gap: 6px; background: rgba(8,9,15,.97); border-bottom: 1px solid var(--stroke); }
  .nav.open .nav-links a { padding: 13px 16px; }
  .grid-3, .grid-2, .steps, .stats, .price-grid, .dl-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cmp { font-size: 13px; } .cmp th, .cmp td { padding: 11px 12px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
